MHEG5  15.3.0
source/decoder/src/mg_png.c File Reference

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"

Data Structures

struct  buffer
struct  info

Defines

#define MAX_HEADER   8

Typedefs

typedef struct buffer S_BUFFER
typedef struct info S_INFO

Functions

S_IMAGEDEC_DecodePng (U8BIT *data, U32BIT len)
 Allocate memory for png and decode bitmap.
void DEC_FreePng (S_IMAGE *data)
 Free memory allocated for PNG bitmap.

Detailed Description

Implementation of PNG decoder - according to the specification.

Date:
18-07-2008
Author:
Adam Sturtridge

Function Documentation

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.

Parameters:
void* data PNG data. int len Length of data for PNG.
Returns:
S_IMAGE * The decoded bitmap.
Warning:
Bug:
void DEC_FreePng ( S_IMAGE image)

Free memory allocated for PNG bitmap.

Parameters:
dataPNG image
Returns:
void
 All Data Structures Files Functions Variables Typedefs Defines