libavcodec/pngenc.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  PNGEncContext

Defines

#define IOBUF_SIZE   4096

Functions

static void png_get_interlaced_row (uint8_t *dst, int row_size, int bits_per_pixel, int pass, const uint8_t *src, int width)
static void convert_from_rgb32 (uint8_t *dst, const uint8_t *src, int width)
static void png_write_chunk (uint8_t **f, uint32_t tag, const uint8_t *buf, int length)
static int png_write_row (PNGEncContext *s, const uint8_t *data, int size)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
static int png_enc_init (AVCodecContext *avctx)

Variables

AVCodec png_encoder


Define Documentation

#define IOBUF_SIZE   4096

Definition at line 34 of file pngenc.c.

Referenced by encode_frame(), and png_write_row().


Function Documentation

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

Definition at line 84 of file pngenc.c.

Referenced by encode_frame().

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void *  data 
) [static]

Definition at line 141 of file pngenc.c.

static int png_enc_init ( AVCodecContext avctx  )  [static]

Definition at line 316 of file pngenc.c.

static void png_get_interlaced_row ( uint8_t dst,
int  row_size,
int  bits_per_pixel,
int  pass,
const uint8_t src,
int  width 
) [static]

Definition at line 46 of file pngenc.c.

Referenced by encode_frame().

static void png_write_chunk ( uint8_t **  f,
uint32_t  tag,
const uint8_t buf,
int  length 
) [static]

Definition at line 101 of file pngenc.c.

Referenced by encode_frame(), and png_write_row().

static int png_write_row ( PNGEncContext s,
const uint8_t data,
int  size 
) [static]

Definition at line 121 of file pngenc.c.

Referenced by encode_frame().


Variable Documentation

Initial value:

Definition at line 325 of file pngenc.c.


Generated on Thu Apr 2 07:16:13 2009 for ffmpeg by  doxygen 1.5.6