Skip to content

Commit

Permalink
Merge pull request #1013 from ccawley2011/15bit-indeo
Browse files Browse the repository at this point in the history
IMAGE: Support rendering Indeo videos at 15bpp
  • Loading branch information
dreammaster committed Sep 12, 2017
2 parents e489e1c + 7846d09 commit 2b745ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions image/codecs/indeo/indeo.cpp
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions image/codecs/indeo3.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2b745ac

Please sign in to comment.