aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/targaenc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-13 10:39:47 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-13 10:39:47 +0000
commitbbf874f19ba609b9926c9ee312a2576a5171f340 (patch)
tree072b6d1351cb04a12d2737d228312ad2b0eb271e /libavcodec/targaenc.c
parentb5becbab090c0a5be1c2df47ecd116cf2c1d7823 (diff)
downloadffmpeg-bbf874f19ba609b9926c9ee312a2576a5171f340.tar.gz
Use named constants defined in targa.h.
Originally committed as revision 25465 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/targaenc.c')
-rw-r--r--libavcodec/targaenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index 1d50326573..a179baad3c 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -102,15 +102,15 @@ static int targa_encode_frame(AVCodecContext *avctx,
/* TODO: support alpha channel */
switch(avctx->pix_fmt) {
case PIX_FMT_GRAY8:
- outbuf[2] = 3; /* uncompressed grayscale image */
+ outbuf[2] = TGA_BW; /* uncompressed grayscale image */
outbuf[16] = 8; /* bpp */
break;
case PIX_FMT_RGB555LE:
- outbuf[2] = 2; /* uncompresses true-color image */
+ outbuf[2] = TGA_RGB; /* uncompresses true-color image */
outbuf[16] = 16; /* bpp */
break;
case PIX_FMT_BGR24:
- outbuf[2] = 2; /* uncompressed true-color image */
+ outbuf[2] = TGA_RGB; /* uncompressed true-color image */
outbuf[16] = 24; /* bpp */
break;
default: