changeset 24104:b0a47d3bf2f3

Fix blue color for yv12 and i420 image formats in "automute" screen
author voroshil
date Thu, 23 Aug 2007 14:20:31 +0000
parents d44e23b469a3
children 9e71e0345c35
files stream/tvi_def.h
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_def.h	Wed Aug 22 23:37:06 2007 +0000
+++ b/stream/tvi_def.h	Thu Aug 23 14:20:31 2007 +0000
@@ -61,16 +61,18 @@
 */
 static inline void fill_blank_frame(char* buffer,int len,int fmt){
     int i;
+    // RGB(0,0,255) <-> YVU(41,110,240) 
 
     switch(fmt){
     case IMGFMT_YV12:
-        memset(buffer, 0xFF,5*len/6);
-        memset(buffer+5*len/6, 0xFF,len/6);
+        memset(buffer, 41,4*len/6);       //Y
+        memset(buffer+4*len/6, 110,len/6);//V
+        memset(buffer+5*len/6, 240,len/6);//U
         break;
     case IMGFMT_I420:
-        memset(buffer, 0xFF,4*len/6);
-        memset(buffer+4*len/6, 0xFF,len/6);
-        memset(buffer+5*len/6, 0xFF,len/6);
+        memset(buffer, 41,4*len/6);       //Y
+        memset(buffer+4*len/6, 240,len/6);//U
+        memset(buffer+5*len/6, 110,len/6);//V
         break;
     case IMGFMT_UYVY:
         for(i=0;i<len;i+=4){