#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 |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static int png_dec_init | ( | AVCodecContext * | avctx | ) | [static] |
static int png_decode_idat | ( | PNGDecContext * | s, | |
int | length | |||
) | [static] |
static void png_handle_row | ( | PNGDecContext * | s | ) | [static] |
Initial value:
{ "png", CODEC_TYPE_VIDEO, CODEC_ID_PNG, sizeof(PNGDecContext), png_dec_init, NULL, NULL, decode_frame, 0 , NULL }
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().