/* BSD-2-Clause license * * Copyright (c) 2018-2023 NST , sss . * */ #pragma once #include #include #include typedef struct { uint8_t *buf; size_t buf_size, written; } rdp_png_buf; void png_destroy(png_structp *p, png_infop *i); bool png_generate_from_argb( int width, int height, uint8_t *data, rdp_png_buf *out_buf);