aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorCameron Cawley2017-09-05 23:40:05 +0100
committerCameron Cawley2017-09-05 23:40:05 +0100
commit7846d098b25fa90526cb137efd5e68a8b089da25 (patch)
tree2d1d431f1fb5cc0d8831ad8fdb0422ae09f98165 /image
parent128edeebda490794d0ce78d3d6d84beab29c2246 (diff)
downloadscummvm-rg350-7846d098b25fa90526cb137efd5e68a8b089da25.tar.gz
scummvm-rg350-7846d098b25fa90526cb137efd5e68a8b089da25.tar.bz2
scummvm-rg350-7846d098b25fa90526cb137efd5e68a8b089da25.zip
IMAGE: Support rendering Indeo videos at 15bpp
Diffstat (limited to 'image')
-rw-r--r--image/codecs/indeo/indeo.cpp3
-rw-r--r--image/codecs/indeo3.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/image/codecs/indeo/indeo.cpp b/image/codecs/indeo/indeo.cpp
index 34377537d7..4826137358 100644
--- a/image/codecs/indeo/indeo.cpp
+++ b/image/codecs/indeo/indeo.cpp
@@ -466,6 +466,9 @@ IVI45DecContext::IVI45DecContext() : _gb(nullptr), _frameNum(0), _frameType(0),
IndeoDecoderBase::IndeoDecoderBase(uint16 width, uint16 height, uint bitsPerPixel) : Codec() {
switch (bitsPerPixel) {
+ case 15:
+ _pixelFormat = Graphics::PixelFormat(2, 5, 5, 5, 0, 0, 5, 10, 0);
+ break;
case 16:
_pixelFormat = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
break;
diff --git a/image/codecs/indeo3.cpp b/image/codecs/indeo3.cpp
index d862d5352b..7d3a121bcd 100644
--- a/image/codecs/indeo3.cpp
+++ b/image/codecs/indeo3.cpp
@@ -45,6 +45,9 @@ Indeo3Decoder::Indeo3Decoder(uint16 width, uint16 height, uint bitsPerPixel) : _
_iv_frame[1].the_buf = 0;
switch (bitsPerPixel) {
+ case 15:
+ _pixelFormat = Graphics::PixelFormat(2, 5, 5, 5, 0, 0, 5, 10, 0);
+ break;
case 16:
_pixelFormat = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
break;