Skip to content

Commit

Permalink
BLADERUNNER: Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
madmoose authored and sev- committed Sep 29, 2016
1 parent 74a8b53 commit 420d7f9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions engines/bladerunner/vqa_decoder.cpp
Expand Up @@ -650,7 +650,6 @@ bool VQADecoder::VQAVideoTrack::readCBFZ(Common::SeekableReadStream *s, uint32 s
return true;
}

#if 1
static
int decodeZBUF_partial(uint8 *src, uint16 *curZBUF, uint32 srcLen)
{
Expand Down Expand Up @@ -694,13 +693,9 @@ int decodeZBUF_partial(uint8 *src, uint16 *curZBUF, uint32 srcLen)
}
return dstSize - dstRemain;
}
#endif

bool VQADecoder::VQAVideoTrack::readZBUF(Common::SeekableReadStream *s, uint32 size)
{
// s->skip(roundup(size));
// return true;
#if 1
if (size > _maxZBUFChunkSize) {
debug("VQA ERROR: ZBUF chunk size: %08x > %08x", size, _maxZBUFChunkSize);
s->skip(roundup(size));
Expand All @@ -725,24 +720,17 @@ bool VQADecoder::VQAVideoTrack::readZBUF(Common::SeekableReadStream *s, uint32 s
_zbufChunkComplete = complete;
_zbufChunkSize = remain;
s->read(_zbufChunk, roundup(remain));
#endif

return true;
}

#if 1
const uint16 *VQADecoder::VQAVideoTrack::decodeZBuffer()
{
if (_maxZBUFChunkSize == 0)
return nullptr;

if (!_zbuffer)
_zbuffer = new uint16[_width * _height];
// {
// if (!complete) {
// return false;
// }
// }

if (_zbufChunkComplete) {
size_t zbufOutSize;
Expand All @@ -751,13 +739,8 @@ const uint16 *VQADecoder::VQAVideoTrack::decodeZBuffer()
decodeZBUF_partial(_zbufChunk, _zbuffer, _zbufChunkSize);
}

// if (!_zbuf)
// return false;

// memcpy(zbuf, _zbuffer, 2 * _width * _height);
return _zbuffer;
}
#endif

bool VQADecoder::VQAVideoTrack::readVIEW(Common::SeekableReadStream *s, uint32 size)
{
Expand Down

0 comments on commit 420d7f9

Please sign in to comment.