From 7846d098b25fa90526cb137efd5e68a8b089da25 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Tue, 5 Sep 2017 23:40:05 +0100 Subject: IMAGE: Support rendering Indeo videos at 15bpp --- image/codecs/indeo/indeo.cpp | 3 +++ image/codecs/indeo3.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'image') 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; -- cgit v1.2.3