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

vlc.cpp File Reference

#include "image/codecs/indeo/vlc.h"
#include "image/codecs/indeo/mem.h"
#include "common/textconsole.h"
#include "common/util.h"
Include dependency graph for vlc.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.


namespace  Image::Indeo

Defines

#define AV_QSORT(p, num, type, cmp)
 Quicksort This sort is fast, and fully inplace but not stable and it is possible to construct input that requires O(n^2) time but this is very unlikely to happen with non constructed input.
#define COPY(condition)

Define Documentation

#define AV_QSORT (   p,
  num,
  type,
  cmp 
)

Quicksort This sort is fast, and fully inplace but not stable and it is possible to construct input that requires O(n^2) time but this is very unlikely to happen with non constructed input.

Definition at line 43 of file vlc.cpp.

#define COPY (   condition  ) 
Value:
for (i = 0; i < nbCodes; i++) {                                         \
        buf[j].bits = getData(p_bits, i, bitsWrap, bitsSize);               \
        if (!(condition))                                                   \
            continue;                                                       \
        if (buf[j].bits > (3 * nbBits) || buf[j].bits > 32) {               \
            warning("Too long VLC (%d) in init_vlc", buf[j].bits);          \
            if (!(flags & INIT_VLC_USE_NEW_STATIC))                         \
                free(buf);                                                  \
            return -1;                                                      \
        }                                                                   \
        buf[j].code = getData(codes, i, codesWrap, codesSize);              \
        if (buf[j].code >= (1LL << buf[j].bits)) {                            \
            warning("Invalid code %x for %d in init_vlc", buf[j].code, i);  \
            if (!(flags & INIT_VLC_USE_NEW_STATIC))                         \
                free(buf);                                                  \
            return -1;                                                      \
        }                                                                   \
        if (flags & INIT_VLC_LE)                                            \
            buf[j].code = bitswap32(buf[j].code);                           \
        else                                                                \
            buf[j].code <<= 32 - buf[j].bits;                               \
        if (symbols)                                                        \
            buf[j].symbol = getData(symbols, i, symbolsWrap, symbolsSize);  \
        else                                                                \
            buf[j].symbol = i;                                              \
        j++;                                                                \
    }

Definition at line 107 of file vlc.cpp.



Generated on Sat May 18 2019 05:04:36 for ResidualVM by doxygen 1.7.1
curved edge   curved edge