image_writer: add TGA image format

For getting rid of vo_tga.

This makes use of the libavcodec TGA encoder.
This commit is contained in:
wm4 2012-08-06 17:50:31 +02:00
parent c74afab393
commit 0a0925be82
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ static const struct img_writer img_writers[] = {
.lavc_codec = CODEC_ID_PGMYUV,
.pixfmts = (int[]) { IMGFMT_YV12, 0 },
},
{ "tga", write_lavc,
.lavc_codec = CODEC_ID_TARGA,
.pixfmts = (int[]) { IMGFMT_BGR24, IMGFMT_BGRA, IMGFMT_BGR15LE,
IMGFMT_Y800, 0},
},
#ifdef CONFIG_JPEG
{ "jpg", write_jpeg },
{ "jpeg", write_jpeg },