diff options
author | Paul Gilbert | 2016-09-10 21:05:49 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-10 21:05:49 -0400 |
commit | 2f7da2d3d9a6c9ef998a8e1b91a4554e6d1b9d74 (patch) | |
tree | bf4f8e4473bc152f47ca2a0afb13efcacb786075 /image/codecs/indeo4.cpp | |
parent | 23b1dbbb0e9c10035a1df98bffa9d6eaa5a6d338 (diff) | |
download | scummvm-rg350-2f7da2d3d9a6c9ef998a8e1b91a4554e6d1b9d74.tar.gz scummvm-rg350-2f7da2d3d9a6c9ef998a8e1b91a4554e6d1b9d74.tar.bz2 scummvm-rg350-2f7da2d3d9a6c9ef998a8e1b91a4554e6d1b9d74.zip |
IMAGE: Miscellaneous cleanup for Indeo decompressors
Diffstat (limited to 'image/codecs/indeo4.cpp')
-rw-r--r-- | image/codecs/indeo4.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/image/codecs/indeo4.cpp b/image/codecs/indeo4.cpp index 60707e6642..7daecf4c20 100644 --- a/image/codecs/indeo4.cpp +++ b/image/codecs/indeo4.cpp @@ -35,6 +35,7 @@ #include "common/util.h" #include "graphics/yuv_to_rgb.h" #include "image/codecs/indeo4.h" +#include "image/codecs/indeo/indeo_dsp.h" #include "image/codecs/indeo/mem.h" namespace Image { @@ -259,10 +260,10 @@ void Indeo4Decoder::switchBuffers() { } if (is_prev_ref && is_ref) { - FFSWAP(int, _ctx._dstBuf, _ctx._refBuf); + SWAP(_ctx._dstBuf, _ctx._refBuf); } else if (is_prev_ref) { - FFSWAP(int, _ctx._refBuf, _ctx._bRefBuf); - FFSWAP(int, _ctx._dstBuf, _ctx._refBuf); + SWAP(_ctx._refBuf, _ctx._bRefBuf); + SWAP(_ctx._dstBuf, _ctx._refBuf); } } @@ -459,7 +460,7 @@ int Indeo4Decoder::decodeMbInfo(IVIBandDesc *band, IVITile *tile) { blksPerMb = band->_mbSize != band->_blkSize ? 4 : 1; mbTypeBits = _ctx._frameType == IVI4_FRAMETYPE_BIDIR ? 2 : 1; - /* scale factor for motion vectors */ + // scale factor for motion vectors mvScale = (_ctx._planes[0]._bands[0]._mbSize >> 3) - (band->_mbSize >> 3); mvX = mvY = 0; |