XenevaOS
Loading...
Searching...
No Matches
upng.h
Go to the documentation of this file.
1#ifndef __UPNG_H__
2#define __UPNG_H__
3
4#include <stdint.h>
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
22
36
37typedef struct upng_t upng_t;
38
39upng_t* upng_new_from_bytes (const unsigned char* buffer, unsigned long size);
40void upng_free (upng_t* upng);
41
44
45upng_error upng_get_error (const upng_t* upng);
46unsigned int upng_get_error_line (const upng_t* upng);
47
48unsigned int upng_get_width (const upng_t* upng);
49unsigned int upng_get_height (const upng_t* upng);
50unsigned int upng_get_bpp (const upng_t* upng);
51unsigned int upng_get_bitdepth (const upng_t* upng);
52unsigned int upng_get_components (const upng_t* upng);
53unsigned int upng_get_pixelsize (const upng_t* upng);
55
56const unsigned char* upng_get_buffer (const upng_t* upng);
57unsigned int upng_get_size (const upng_t* upng);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* __UPNG_H__ */
size_t size
Definition drm_bridge.h:1299
Definition upng.cpp:36
const unsigned char * buffer
Definition upng.cpp:49
upng_error upng_get_error(const upng_t *upng)
Definition upng.cpp:505
void upng_free(upng_t *upng)
Definition upng.cpp:403
unsigned int upng_get_height(const upng_t *upng)
Definition upng.cpp:500
upng_format upng_get_format(const upng_t *upng)
Definition upng.cpp:504
unsigned int upng_get_bitdepth(const upng_t *upng)
unsigned int upng_get_size(const upng_t *upng)
Definition upng.cpp:503
unsigned int upng_get_pixelsize(const upng_t *upng)
unsigned int upng_get_components(const upng_t *upng)
upng_t * upng_new_from_bytes(const unsigned char *buffer, unsigned long size)
Definition upng.cpp:393
upng_error upng_decode(upng_t *upng)
Definition upng.cpp:439
const unsigned char * upng_get_buffer(const upng_t *upng)
Definition upng.cpp:502
upng_error
Definition upng.h:11
@ UPNG_EPARAM
Definition upng.h:20
@ UPNG_EUNSUPPORTED
Definition upng.h:17
@ UPNG_EUNFORMAT
Definition upng.h:19
@ UPNG_ENOTPNG
Definition upng.h:15
@ UPNG_EOK
Definition upng.h:12
@ UPNG_ENOMEM
Definition upng.h:13
@ UPNG_EUNINTERLACED
Definition upng.h:18
@ UPNG_ENOTFOUND
Definition upng.h:14
@ UPNG_EMALFORMED
Definition upng.h:16
unsigned int upng_get_error_line(const upng_t *upng)
upng_error upng_header(upng_t *upng)
Definition upng.cpp:410
upng_format
Definition upng.h:23
@ UPNG_LUMINANCE1
Definition upng.h:27
@ UPNG_LUMINANCE_ALPHA4
Definition upng.h:33
@ UPNG_LUMINANCE8
Definition upng.h:30
@ UPNG_LUMINANCE_ALPHA2
Definition upng.h:32
@ UPNG_LUMINANCE4
Definition upng.h:29
@ UPNG_RGBA8
Definition upng.h:26
@ UPNG_LUMINANCE_ALPHA1
Definition upng.h:31
@ UPNG_LUMINANCE_ALPHA8
Definition upng.h:34
@ UPNG_LUMINANCE2
Definition upng.h:28
@ UPNG_BADFORMAT
Definition upng.h:24
@ UPNG_RGB8
Definition upng.h:25
unsigned int upng_get_width(const upng_t *upng)
Definition upng.cpp:499
unsigned int upng_get_bpp(const upng_t *upng)
Definition upng.cpp:501