diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-30 09:15:09 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-30 09:15:09 +0000 |
commit | 49a3af8585178fa4b790bedfb587a8c23ec9c99e (patch) | |
tree | d580a9eb8d4512209354a96bdd6e7ef1cea3f625 /libvo | |
parent | 6df2ca6ea6d6e8f9ceda72e00991a0331ccdbc5d (diff) | |
download | mpv-49a3af8585178fa4b790bedfb587a8c23ec9c99e.tar.bz2 mpv-49a3af8585178fa4b790bedfb587a8c23ec9c99e.tar.xz |
fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9172 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_svga.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index aa541d559a..e1a057b0a3 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -517,7 +517,10 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, } #endif if (pformat == IMGFMT_YV12) { - yuv2rgb_init(bpp, MODE_RGB); + if(bpp==4) + yuv2rgb_init(bpp|128, MODE_RGB); + else + yuv2rgb_init(bpp, MODE_RGB); } x_pos = (WIDTH - maxw) / 2; @@ -748,7 +751,7 @@ static uint32_t query_format(uint32_t format) { case 8 : if ((format == IMGFMT_RGB8 ) || (format == IMGFMT_BGR8)) return ((bpp_avail & BPP_8 ) ? 1 : 0); break; - case 4 : if ((format == IMGFMT_RGB4 ) || (format == IMGFMT_BGR4)) + case 4 : if ((format == IMGFMT_RG4B ) || (format == IMGFMT_BG4B)) return ((bpp_avail & BPP_4 ) ? 1 : 0); break; case 1 : if ((format == IMGFMT_RGB1 ) || (format == IMGFMT_BGR1)) |