pngdec.c File Reference

Go to the source code of this file.

Classes

struct  PNGDecContext

Functions

static void png_put_interlaced_row (uint8_t *dst, int width, int bits_per_pixel, int pass, int color_type, const uint8_t *src)
static void png_filter_row (uint8_t *dst, int filter_type, uint8_t *src, uint8_t *last, int size, int bpp)
static void convert_to_rgb32 (uint8_t *dst, const uint8_t *src, int width)
static void png_handle_row (PNGDecContext *s)
static int png_decode_idat (PNGDecContext *s, int length)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int png_dec_init (AVCodecContext *avctx)

Variables

static const uint8_t png_pass_dsp_ymask [NB_PASSES]
static const uint8_t png_pass_dsp_mask [NB_PASSES]
AVCodec png_decoder


Function Documentation

static void png_put_interlaced_row ( uint8_t *  dst,
int  width,
int  bits_per_pixel,
int  pass,
int  color_type,
const uint8_t *  src 
) [static]

Definition at line 77 of file pngdec.c.

Referenced by png_handle_row().

static void png_filter_row ( uint8_t *  dst,
int  filter_type,
uint8_t *  src,
uint8_t *  last,
int  size,
int  bpp 
) [static]

Definition at line 134 of file pngdec.c.

Referenced by png_handle_row().

static void convert_to_rgb32 ( uint8_t *  dst,
const uint8_t *  src,
int  width 
) [static]

Definition at line 199 of file pngdec.c.

Referenced by png_handle_row().

static void png_handle_row ( PNGDecContext s  )  [static]

Definition at line 216 of file pngdec.c.

Referenced by png_decode_idat().

static int png_decode_idat ( PNGDecContext s,
int  length 
) [static]

Definition at line 286 of file pngdec.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 313 of file pngdec.c.

static int png_dec_init ( AVCodecContext avctx  )  [static]

Definition at line 532 of file pngdec.c.


Variable Documentation

const uint8_t png_pass_dsp_ymask[NB_PASSES] [static]

Initial value:

 {
    0xff, 0xff, 0x0f, 0xcc, 0x33, 0xff, 0x55,
}

Definition at line 65 of file pngdec.c.

Referenced by png_handle_row().

const uint8_t png_pass_dsp_mask[NB_PASSES] [static]

Initial value:

 {
    0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff
}

Definition at line 70 of file pngdec.c.

Referenced by png_put_interlaced_row().

Initial value:

 {
    "png",
    CODEC_TYPE_VIDEO,
    CODEC_ID_PNG,
    sizeof(PNGDecContext),
    png_dec_init,
    NULL,
    NULL, 
    decode_frame,
    0  ,
    NULL
}

Definition at line 541 of file pngdec.c.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5