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

qtrle.cpp File Reference

#include "image/codecs/qtrle.h"
#include "common/debug.h"
#include "common/scummsys.h"
#include "common/stream.h"
#include "common/system.h"
#include "common/textconsole.h"
#include "graphics/colormasks.h"
#include "graphics/surface.h"
Include dependency graph for qtrle.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 CHECK_STREAM_PTR(n)
#define CHECK_PIXEL_PTR(n)

Define Documentation

#define CHECK_PIXEL_PTR (   n  ) 
Value:
do { \
        if ((int32)pixelPtr + n > (int)_paddedWidth * _surface->h) { \
            warning("QTRLE Problem: pixel ptr = %d, pixel limit = %d", pixelPtr + n, _paddedWidth * _surface->h); \
            return; \
        } \
    } while (0)

Definition at line 72 of file qtrle.cpp.

#define CHECK_STREAM_PTR (   n  ) 
Value:
do { \
        if ((stream.pos() + n) > stream.size()) { \
            warning("QTRLE Problem: stream out of bounds (%d > %d)", stream.pos() + n, stream.size()); \
            return; \
        } \
    } while (0)

Definition at line 64 of file qtrle.cpp.



Generated on Sat May 18 2019 05:03:54 for ResidualVM by doxygen 1.7.1
curved edge   curved edge