[FFmpeg-cvslog] r25465 - trunk/libavcodec/targaenc.c

stefano subversion
Wed Oct 13 12:39:48 CEST 2010


Author: stefano
Date: Wed Oct 13 12:39:47 2010
New Revision: 25465

Log:
Use named constants defined in targa.h.

Modified:
   trunk/libavcodec/targaenc.c

Modified: trunk/libavcodec/targaenc.c
==============================================================================
--- trunk/libavcodec/targaenc.c	Wed Oct 13 12:39:45 2010	(r25464)
+++ trunk/libavcodec/targaenc.c	Wed Oct 13 12:39:47 2010	(r25465)
@@ -102,15 +102,15 @@ static int targa_encode_frame(AVCodecCon
     /* 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:



More information about the ffmpeg-cvslog mailing list