Mercurial > libavcodec.hg
comparison targaenc.c @ 11560:8a4984c5cacc libavcodec
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | a744eb5328b2 |
children |
comparison
equal
deleted
inserted
replaced
11559:444f4b594fdb | 11560:8a4984c5cacc |
---|---|
151 return 0; | 151 return 0; |
152 } | 152 } |
153 | 153 |
154 AVCodec targa_encoder = { | 154 AVCodec targa_encoder = { |
155 .name = "targa", | 155 .name = "targa", |
156 .type = CODEC_TYPE_VIDEO, | 156 .type = AVMEDIA_TYPE_VIDEO, |
157 .id = CODEC_ID_TARGA, | 157 .id = CODEC_ID_TARGA, |
158 .priv_data_size = sizeof(TargaContext), | 158 .priv_data_size = sizeof(TargaContext), |
159 .init = targa_encode_init, | 159 .init = targa_encode_init, |
160 .encode = targa_encode_frame, | 160 .encode = targa_encode_frame, |
161 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555LE, PIX_FMT_GRAY8, PIX_FMT_NONE}, | 161 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555LE, PIX_FMT_GRAY8, PIX_FMT_NONE}, |