diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-23 14:20:31 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-23 14:20:31 +0000 |
commit | ffac6ce7eba3dea5878f3eb482a11e9ab7606455 (patch) | |
tree | 0bc7f9d14ce045afe43640fdabb7c299903c54f3 /stream | |
parent | 374de7f61f5e765a9e752691753842171e4886bf (diff) |
Fix blue color for yv12 and i420 image formats in "automute" screen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24124 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_def.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/stream/tvi_def.h b/stream/tvi_def.h index 0395c90eef..6dff1c8924 100644 --- a/stream/tvi_def.h +++ b/stream/tvi_def.h @@ -61,16 +61,18 @@ static void free_handle(tvi_handle_t *h) */ 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){ |