blob: a3a3bfc81336124bfb0f44ecc1fde54f7326f2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* BSD-2-Clause license
*
* Copyright (c) 2018-2023 NST <www.newinfosec.ru>, sss <sss at dark-alexandr dot net>.
*
*/
#pragma once
#include <png.h>
#include <stdbool.h>
#include <stdint.h>
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);
|