libavcodec/png.h File Reference

#include <stdint.h>
#include <zlib.h>
#include "avcodec.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  PNGDecContext

Defines

#define PNG_COLOR_MASK_PALETTE   1
#define PNG_COLOR_MASK_COLOR   2
#define PNG_COLOR_MASK_ALPHA   4
#define PNG_COLOR_TYPE_GRAY   0
#define PNG_COLOR_TYPE_PALETTE   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)
#define PNG_COLOR_TYPE_RGB   (PNG_COLOR_MASK_COLOR)
#define PNG_COLOR_TYPE_RGB_ALPHA   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
#define PNG_COLOR_TYPE_GRAY_ALPHA   (PNG_COLOR_MASK_ALPHA)
#define PNG_FILTER_TYPE_LOCO   64
#define PNG_FILTER_VALUE_NONE   0
#define PNG_FILTER_VALUE_SUB   1
#define PNG_FILTER_VALUE_UP   2
#define PNG_FILTER_VALUE_AVG   3
#define PNG_FILTER_VALUE_PAETH   4
#define PNG_FILTER_VALUE_MIXED   5
#define PNG_IHDR   0x0001
#define PNG_IDAT   0x0002
#define PNG_ALLIMAGE   0x0004
#define PNG_PLTE   0x0008
#define NB_PASSES   7

Functions

void * ff_png_zalloc (void *opaque, unsigned int items, unsigned int size)
void ff_png_zfree (void *opaque, void *ptr)
int ff_png_get_nb_channels (int color_type)
int ff_png_pass_row_size (int pass, int bits_per_pixel, int width)
void ff_add_png_paeth_prediction (uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp)
void ff_png_init_mmx (PNGDecContext *s)

Variables

const uint8_t ff_pngsig [8]
const uint8_t ff_mngsig [8]
const uint8_t ff_png_pass_ymask [NB_PASSES]
const uint8_t ff_png_pass_mask [NB_PASSES]


Define Documentation

#define NB_PASSES   7

Definition at line 54 of file png.h.

Referenced by encode_frame(), and png_handle_row().

#define PNG_ALLIMAGE   0x0004

Definition at line 51 of file png.h.

Referenced by decode_frame(), png_decode_idat(), and png_handle_row().

#define PNG_COLOR_MASK_ALPHA   4

Definition at line 33 of file png.h.

Referenced by ff_png_get_nb_channels().

#define PNG_COLOR_MASK_COLOR   2

Definition at line 32 of file png.h.

Referenced by ff_png_get_nb_channels().

#define PNG_COLOR_MASK_PALETTE   1

Definition at line 31 of file png.h.

Referenced by ff_png_get_nb_channels().

#define PNG_COLOR_TYPE_GRAY   0

Definition at line 35 of file png.h.

Referenced by decode_frame(), and encode_frame().

#define PNG_COLOR_TYPE_GRAY_ALPHA   (PNG_COLOR_MASK_ALPHA)

Definition at line 39 of file png.h.

Referenced by decode_frame(), and encode_frame().

#define PNG_COLOR_TYPE_PALETTE   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)

Definition at line 36 of file png.h.

Referenced by decode_frame(), and encode_frame().

#define PNG_COLOR_TYPE_RGB   (PNG_COLOR_MASK_COLOR)

Definition at line 37 of file png.h.

Referenced by decode_frame(), encode_frame(), and png_handle_row().

#define PNG_COLOR_TYPE_RGB_ALPHA   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)

Definition at line 38 of file png.h.

Referenced by decode_frame(), encode_frame(), and png_handle_row().

#define PNG_FILTER_TYPE_LOCO   64

Definition at line 41 of file png.h.

Referenced by png_handle_row().

#define PNG_FILTER_VALUE_AVG   3

Definition at line 45 of file png.h.

Referenced by png_filter_row().

#define PNG_FILTER_VALUE_MIXED   5

Definition at line 47 of file png.h.

Referenced by encode_frame(), png_choose_filter(), and png_enc_init().

#define PNG_FILTER_VALUE_NONE   0

Definition at line 42 of file png.h.

Referenced by png_enc_init(), and png_filter_row().

#define PNG_FILTER_VALUE_PAETH   4

Definition at line 46 of file png.h.

Referenced by png_filter_row().

#define PNG_FILTER_VALUE_SUB   1

Definition at line 43 of file png.h.

Referenced by png_choose_filter(), and png_filter_row().

#define PNG_FILTER_VALUE_UP   2

Definition at line 44 of file png.h.

Referenced by png_filter_row().

#define PNG_IDAT   0x0002

Definition at line 50 of file png.h.

Referenced by decode_frame().

#define PNG_IHDR   0x0001

Definition at line 49 of file png.h.

Referenced by decode_frame().

#define PNG_PLTE   0x0008

Definition at line 52 of file png.h.

Referenced by decode_frame().


Function Documentation

void ff_add_png_paeth_prediction ( uint8_t *  dst,
uint8_t *  src,
uint8_t *  top,
int  w,
int  bpp 
)

int ff_png_get_nb_channels ( int  color_type  ) 

Definition at line 59 of file png.c.

Referenced by decode_frame(), and encode_frame().

void ff_png_init_mmx ( PNGDecContext s  ) 

Definition at line 131 of file png_mmx.c.

Referenced by png_dec_init().

int ff_png_pass_row_size ( int  pass,
int  bits_per_pixel,
int  width 
)

Definition at line 72 of file png.c.

Referenced by decode_frame(), encode_frame(), and png_handle_row().

void* ff_png_zalloc ( void *  opaque,
unsigned int  items,
unsigned int  size 
)

Definition at line 47 of file png.c.

Referenced by decode_frame(), and encode_frame().

void ff_png_zfree ( void *  opaque,
void *  ptr 
)

Definition at line 54 of file png.c.

Referenced by decode_frame(), and encode_frame().


Variable Documentation

const uint8_t ff_mngsig[8]

Definition at line 25 of file png.c.

Referenced by decode_frame().

const uint8_t ff_png_pass_mask[NB_PASSES]

Definition at line 43 of file png.c.

Referenced by png_put_interlaced_row().

const uint8_t ff_png_pass_ymask[NB_PASSES]

Definition at line 28 of file png.c.

Referenced by encode_frame(), and png_handle_row().

const uint8_t ff_pngsig[8]

Definition at line 24 of file png.c.

Referenced by decode_frame(), and encode_frame().


Generated on Fri Oct 26 02:46:09 2012 for FFmpeg by  doxygen 1.5.8