![]() |
MHEG5
22.11.0
|
Implementation of PNG decoder - according to the specification. More...
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <png.h>
#include "decoder.h"
#include "glue_memory.h"
#include "glue_debug.h"
#include "mg_ctxt.h"
#include "osd_utils.h"
#include "glue_assert.h"
Classes | |
struct | buffer |
struct | info |
Macros | |
#define | MAX_HEADER 8 |
Typedefs | |
typedef struct buffer | S_BUFFER |
typedef struct info | S_INFO |
Functions | |
S_IMAGE * | DEC_DecodePng (U8BIT *data, U32BIT len) |
Allocate memory for png and decode bitmap. More... | |
void | DEC_FreePng (S_IMAGE *data) |
Free memory allocated for PNG bitmap. More... | |
Implementation of PNG decoder - according to the specification.
S_IMAGE* DEC_DecodePng | ( | U8BIT * | data, |
U32BIT | len | ||
) |
Allocate memory for png and decode bitmap.
Allocate memory for PNG and decode bitmap To free "S_IMAGE" memory, DEC_FreePng will be called.
void | * data PNG data. int len Length of data for PNG. |
void DEC_FreePng | ( | S_IMAGE * | image | ) |
Free memory allocated for PNG bitmap.
data | PNG image |