libavcodec/pngdec.c File Reference

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

Go to the source code of this file.

Data Structures

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, const 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 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 int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
const 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.

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

Definition at line 286 of file pngdec.c.

Referenced by decode_frame().

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 png_handle_row ( PNGDecContext s  )  [static]

Definition at line 216 of file pngdec.c.

Referenced by png_decode_idat().

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().


Variable Documentation

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.

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().

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().


Generated on Fri Oct 3 22:46:57 2008 for ffmpeg by  doxygen 1.5.6