Originally committed as revision 19032 to svn://svn.ffmpeg.org/ffmpeg/trunk
AVCodecContext *avctx;
AVFrame pic;
- PutBitContext pb;
// Image type
int imgtype;
int compression;
// Flags
int flags;
- // Decompressed data size
- unsigned int decomp_size;
- // Maximum compressed data size
- unsigned int max_comp_size;
- // Compression buffer
- unsigned char* comp_buf;
z_stream zstream;
} LclEncContext;
switch(avctx->pix_fmt){
case PIX_FMT_BGR24:
c->imgtype = IMGTYPE_RGB24;
- c->decomp_size = avctx->width * avctx->height * 3;
avctx->bits_per_coded_sample= 24;
break;
default:
LclEncContext *c = avctx->priv_data;
av_freep(&avctx->extradata);
- av_freep(&c->comp_buf);
deflateEnd(&c->zstream);
return 0;