ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

smc.cpp File Reference

#include "image/codecs/smc.h"
#include "common/stream.h"
#include "common/textconsole.h"
Include dependency graph for smc.cpp:

Go to the source code of this file.

Namespaces

namespace  Image
 

Based on the PCX specs: http://www.fileformat.info/format/pcx/spec/a10e75307b3a4cc49c3bbe6db4c41fa2/view.htm and the PCX decoder of FFmpeg (libavcodec/pcx.c): http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/pcx.c.


Defines

#define GET_BLOCK_COUNT()   (opcode & 0x10) ? (1 + stream.readByte()) : 1 + (opcode & 0x0F);
#define ADVANCE_BLOCK()

Define Documentation

#define ADVANCE_BLOCK (  ) 
Value:
{ \
    pixelPtr += 4; \
    if (pixelPtr >= _surface->w) { \
        pixelPtr = 0; \
        rowPtr += _surface->w * 4; \
    } \
    totalBlocks--; \
    if (totalBlocks < 0) { \
        warning("block counter just went negative (this should not happen)"); \
        return _surface; \
    } \
}

Definition at line 34 of file smc.cpp.

#define GET_BLOCK_COUNT (  )     (opcode & 0x10) ? (1 + stream.readByte()) : 1 + (opcode & 0x0F);

Definition at line 31 of file smc.cpp.



Generated on Sat May 25 2019 05:03:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge