changeset 28741:b6e1b6af8e99

Add warnings to yuv2rgb_vis.c because alpha is set wrong (0 instead of 255).
author reimar
date Sun, 01 Mar 2009 11:38:46 +0000
parents 1f76d86e49ae
children 28aa6d8a23ba
files libswscale/yuv2rgb_vis.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/yuv2rgb_vis.c	Sun Mar 01 11:36:39 2009 +0000
+++ b/libswscale/yuv2rgb_vis.c	Sun Mar 01 11:38:46 2009 +0000
@@ -80,6 +80,7 @@
 
 
 
+// FIXME: must be changed to ste alpha to 255 instead of 0
 static int vis_420P_ARGB32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
                            int srcSliceH, uint8_t* dst[], int dstStride[]){
   int y, out1, out2, out3, out4, out5, out6;
@@ -131,6 +132,7 @@
   return srcSliceH;
 }
 
+// FIXME: must be changed to ste alpha to 255 instead of 0
 static int vis_422P_ARGB32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
                            int srcSliceH, uint8_t* dst[], int dstStride[]){
   int y, out1, out2, out3, out4, out5, out6;
@@ -196,11 +198,11 @@
     c->sparc_coeffs[4]=(((int16_t)c->vOffset*(int16_t)c->vrCoeff>>11) & 0xffff) * 0x0001000100010001ULL;
 
     if (c->dstFormat == PIX_FMT_RGB32 && c->srcFormat == PIX_FMT_YUV422P && (c->dstW & 7)==0) {
-        av_log(c, AV_LOG_INFO, "SPARC VIS accelerated YUV422P -> RGB32\n");
+        av_log(c, AV_LOG_INFO, "SPARC VIS accelerated YUV422P -> RGB32 (WARNING: alpha value is wrong)\n");
         return vis_422P_ARGB32;
     }
     else if (c->dstFormat == PIX_FMT_RGB32 && c->srcFormat == PIX_FMT_YUV420P && (c->dstW & 7)==0) {
-        av_log(c, AV_LOG_INFO, "SPARC VIS accelerated YUV420P -> RGB32\n");
+        av_log(c, AV_LOG_INFO, "SPARC VIS accelerated YUV420P -> RGB32 (WARNING: alpha value is wrong)\n");
         return vis_420P_ARGB32;
     }
     return NULL;