Commit 1084f2d6 authored by atmos4's avatar atmos4

fix rgb/bgr for 15/16bpp


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2231 b3059339-0415-0410-9bf9-f77b7e298cf2
parent a8700a47
...@@ -103,11 +103,11 @@ static int s_last_ypos; ...@@ -103,11 +103,11 @@ static int s_last_ypos;
dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)]; dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)];
#else #else
unsigned short *d=dest; unsigned short *d=dest;
unsigned int r=clip_table[((Y + yuvtab_3343[U]) >>13)]; unsigned int b=clip_table[((Y + yuvtab_3343[U]) >>13)];
unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)]; unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)];
unsigned int b=clip_table[((Y + yuvtab_40cf[V]) >>13)]; unsigned int r=clip_table[((Y + yuvtab_40cf[V]) >>13)];
d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp // d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
// d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
#endif #endif
dest+=dstbpp; dest+=dstbpp;
} }
......
...@@ -103,11 +103,11 @@ static int s_last_ypos; ...@@ -103,11 +103,11 @@ static int s_last_ypos;
dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)]; dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)];
#else #else
unsigned short *d=dest; unsigned short *d=dest;
unsigned int r=clip_table[((Y + yuvtab_3343[U]) >>13)]; unsigned int b=clip_table[((Y + yuvtab_3343[U]) >>13)];
unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)]; unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)];
unsigned int b=clip_table[((Y + yuvtab_40cf[V]) >>13)]; unsigned int r=clip_table[((Y + yuvtab_40cf[V]) >>13)];
d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp // d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
// d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
#endif #endif
dest+=dstbpp; dest+=dstbpp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment