libavcodec/targaenc.c File Reference

#include "avcodec.h"
#include "rle.h"

Go to the source code of this file.

Functions

static int targa_encode_rle (uint8_t *outbuf, int out_size, AVFrame *pic, int bpp, int w, int h)
 RLE compress the image, with maximum size of out_size.
static int targa_encode_normal (uint8_t *outbuf, AVFrame *pic, int bpp, int w, int h)
static int targa_encode_frame (AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data)
static int targa_encode_init (AVCodecContext *avctx)

Variables

AVCodec targa_encoder


Function Documentation

static int targa_encode_frame ( AVCodecContext avctx,
unsigned char *  outbuf,
int  buf_size,
void *  data 
) [static]

Definition at line 69 of file targaenc.c.

static int targa_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 136 of file targaenc.c.

static int targa_encode_normal ( uint8_t outbuf,
AVFrame pic,
int  bpp,
int  w,
int  h 
) [static]

Definition at line 54 of file targaenc.c.

Referenced by targa_encode_frame().

static int targa_encode_rle ( uint8_t outbuf,
int  out_size,
AVFrame pic,
int  bpp,
int  w,
int  h 
) [static]

RLE compress the image, with maximum size of out_size.

Parameters:
outbuf Output buffer
out_size Maximum output size
pic Image to compress
bpp Bytes per pixel
w Image width
h Image height
Returns:
Size of output in bytes, or -1 if larger than out_size

Definition at line 34 of file targaenc.c.

Referenced by targa_encode_frame().


Variable Documentation

Initial value:

 {
    .name = "targa",
    .type = CODEC_TYPE_VIDEO,
    .id = CODEC_ID_TARGA,
    .priv_data_size = 0,
    .init = targa_encode_init,
    .encode = targa_encode_frame,
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, -1},
}

Definition at line 141 of file targaenc.c.


Generated on Sat Sep 6 21:24:53 2008 for ffmpeg by  doxygen 1.5.6