Skip to content

Commit

Permalink
VIDEO: Fix Indeo3 luma scale
Browse files Browse the repository at this point in the history
Now black is really black
  • Loading branch information
clone2727 committed Jul 1, 2013
1 parent 318200c commit 7da9b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/codecs/indeo3.cpp
Expand Up @@ -288,14 +288,14 @@ const Graphics::Surface *Indeo3Decoder::decodeImage(Common::SeekableReadStream *

if (scaleWidth == 1 && scaleHeight == 1) {
// Shortcut: Don't need to scale so we can decode straight to the surface
YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleFull, srcY, tempU, tempV,
YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleITU, srcY, tempU, tempV,
fWidth, fHeight, fWidth, chromaWidth + 1);
} else {
// Need to upscale, so decode to a temp surface first
Graphics::Surface tempSurface;
tempSurface.create(fWidth, fHeight, _surface->format);

YUVToRGBMan.convert410(&tempSurface, Graphics::YUVToRGBManager::kScaleFull, srcY, tempU, tempV,
YUVToRGBMan.convert410(&tempSurface, Graphics::YUVToRGBManager::kScaleITU, srcY, tempU, tempV,
fWidth, fHeight, fWidth, chromaWidth + 1);

// Upscale
Expand Down

0 comments on commit 7da9b34

Please sign in to comment.