libavcodec/png.c File Reference

#include "avcodec.h"
#include "bytestream.h"
#include "png.h"

Go to the source code of this file.

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)

Variables

const uint8_t ff_pngsig [8] = {137, 80, 78, 71, 13, 10, 26, 10}
const uint8_t ff_mngsig [8] = {138, 77, 78, 71, 13, 10, 26, 10}
const uint8_t ff_png_pass_ymask [NB_PASSES]
const uint8_t ff_png_pass_xmin [NB_PASSES]
const uint8_t ff_png_pass_xshift [NB_PASSES]
const uint8_t ff_png_pass_mask [NB_PASSES]


Function Documentation

int ff_png_get_nb_channels ( int  color_type  ) 

Definition at line 60 of file png.c.

Referenced by decode_frame(), and encode_frame().

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

Definition at line 73 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 48 of file png.c.

Referenced by decode_frame(), and encode_frame().

void ff_png_zfree ( void *  opaque,
void *  ptr 
)

Definition at line 55 of file png.c.

Referenced by decode_frame(), and encode_frame().


Variable Documentation

const uint8_t ff_mngsig[8] = {138, 77, 78, 71, 13, 10, 26, 10}

Definition at line 26 of file png.c.

Referenced by decode_frame().

const uint8_t ff_png_pass_mask[NB_PASSES]

Initial value:

 {
    0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff
}

Definition at line 44 of file png.c.

Referenced by png_get_interlaced_row(), and png_put_interlaced_row().

const uint8_t ff_png_pass_xmin[NB_PASSES]

Initial value:

 {
    0, 4, 0, 2, 0, 1, 0
}

Definition at line 34 of file png.c.

Referenced by ff_png_pass_row_size().

const uint8_t ff_png_pass_xshift[NB_PASSES]

Initial value:

 {
    3, 3, 2, 2, 1, 1, 0
}

Definition at line 39 of file png.c.

Referenced by ff_png_pass_row_size().

const uint8_t ff_png_pass_ymask[NB_PASSES]

Initial value:

 {
    0x80, 0x80, 0x08, 0x88, 0x22, 0xaa, 0x55,
}

Definition at line 29 of file png.c.

Referenced by encode_frame(), and png_handle_row().

const uint8_t ff_pngsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}

Definition at line 25 of file png.c.

Referenced by decode_frame(), and encode_frame().


Generated on Fri Oct 26 02:35:44 2012 for FFmpeg by  doxygen 1.5.8