diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-05 08:38:18 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-05 08:38:18 +0000 |
commit | 0e949b7ec52f3dc6331839a7b65b3d716e1faf28 (patch) | |
tree | e93c4bbfefb6bc8fe00e9bf3b3d54cff7f56c3ee /libvo | |
parent | 0d29f843f771ff2556e49d4503ecf5001886cae9 (diff) |
rgb32to16, rgb32to15 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2713 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_vesa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c index e4b78c3496..b28e0d5e34 100644 --- a/libvo/vo_vesa.c +++ b/libvo/vo_vesa.c @@ -700,6 +700,10 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 else if(image_bpp == 32 && video_mode_info.BitsPerPixel == 24) rgb2rgb_fnc = rgb32to24; else + if(image_bpp == 32 && video_mode_info.BitsPerPixel == 16) rgb2rgb_fnc = rgb32to16; + else + if(image_bpp == 32 && video_mode_info.BitsPerPixel == 15) rgb2rgb_fnc = rgb32to15; + else if(image_bpp == 15 && video_mode_info.BitsPerPixel == 16) rgb2rgb_fnc = rgb15to16; else { |