diff options
author | Matthew Hoops | 2012-07-25 11:19:36 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-07-25 11:19:36 -0400 |
commit | c0cece8d1335a3397ea980d9a2abc4075656068c (patch) | |
tree | 0d828be183b80256a76bd2d1444b2ea564cca36e /video/video_decoder.cpp | |
parent | 714c6ae1195ac372998c3d5b6f3739725554bf85 (diff) | |
download | scummvm-rg350-c0cece8d1335a3397ea980d9a2abc4075656068c.tar.gz scummvm-rg350-c0cece8d1335a3397ea980d9a2abc4075656068c.tar.bz2 scummvm-rg350-c0cece8d1335a3397ea980d9a2abc4075656068c.zip |
VIDEO: Add functions for default high color PixelFormat
To be used by video that converts from YUV to RGB
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r-- | video/video_decoder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index 80a208fda3..8b9a009b98 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -101,6 +101,12 @@ AdvancedVideoDecoder::AdvancedVideoDecoder() { _audioVolume = Audio::Mixer::kMaxChannelVolume; _audioBalance = 0; _pauseLevel = 0; + + // Find the best format for output + _defaultHighColorFormat = g_system->getScreenFormat(); + + if (_defaultHighColorFormat.bytesPerPixel == 1) + _defaultHighColorFormat = Graphics::PixelFormat(4, 8, 8, 8, 8, 8, 16, 24, 0); } void AdvancedVideoDecoder::close() { |