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

psx_decoder.cpp File Reference

#include "audio/audiostream.h"
#include "audio/decoders/raw.h"
#include "common/bitstream.h"
#include "common/huffman.h"
#include "common/stream.h"
#include "common/system.h"
#include "common/textconsole.h"
#include "graphics/yuv_to_rgb.h"
#include "video/psx_decoder.h"
Include dependency graph for psx_decoder.cpp:

Go to the source code of this file.

Namespaces

namespace  Video

Defines

#define DC_CODE_COUNT   9
#define DC_HUFF_VAL(b, n, p)   (((b) << 16) | ((n) << 8) | (p))
#define GET_DC_BITS(x)   ((x) >> 16)
#define GET_DC_NEG(x)   ((int)(((x) >> 8) & 0xff))
#define GET_DC_POS(x)   ((int)((x) & 0xff))
#define AC_CODE_COUNT   113
#define AC_HUFF_VAL(z, a)   ((z << 8) | a)
#define ESCAPE_CODE   ((uint32)-1)
#define END_OF_BLOCK   ((uint32)-2)
#define GET_AC_ZERO_RUN(code)   (code >> 8)
#define GET_AC_COEFFICIENT(code)   ((int)(code & 0xff))
#define RAW_CD_SECTOR_SIZE   2352
#define CDXA_TYPE_MASK   0x0E
#define CDXA_TYPE_DATA   0x08
#define CDXA_TYPE_AUDIO   0x04
#define CDXA_TYPE_VIDEO   0x02
#define VIDEO_DATA_CHUNK_SIZE   2016
#define VIDEO_DATA_HEADER_SIZE   56
#define AUDIO_DATA_CHUNK_SIZE   2304
#define AUDIO_DATA_SAMPLE_COUNT   4032
#define BLOCK_OVERFLOW_CHECK()

Variables

static const uint32 Video::s_huffmanDCChromaCodes [DC_CODE_COUNT]
static const byte Video::s_huffmanDCChromaLengths [DC_CODE_COUNT]
static const uint32 Video::s_huffmanDCLumaCodes [DC_CODE_COUNT]
static const byte Video::s_huffmanDCLumaLengths [DC_CODE_COUNT]
static const uint32 Video::s_huffmanDCSymbols [DC_CODE_COUNT]
static const uint32 Video::s_huffmanACCodes [AC_CODE_COUNT]
static const byte Video::s_huffmanACLengths [AC_CODE_COUNT]
static const uint32 Video::s_huffmanACSymbols [AC_CODE_COUNT]
static const byte Video::s_syncHeader [12] = { 0x00, 0xff ,0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00 }
static const int Video::s_xaTable [5][2]
static const byte Video::s_zigZagTable [8 *8]
static const byte Video::s_quantizationTable [8 *8]
static const double Video::s_idct8x8 [8][8]

Define Documentation

#define AC_CODE_COUNT   113

Definition at line 73 of file psx_decoder.cpp.

#define AC_HUFF_VAL (   z,
  a 
)    ((z << 8) | a)

Definition at line 74 of file psx_decoder.cpp.

#define AUDIO_DATA_CHUNK_SIZE   2304

Definition at line 299 of file psx_decoder.cpp.

#define AUDIO_DATA_SAMPLE_COUNT   4032

Definition at line 300 of file psx_decoder.cpp.

#define BLOCK_OVERFLOW_CHECK (  ) 
Value:
if (count > 63) \
        error("PSXStreamDecoder::readAC(): Too many coefficients")

Definition at line 574 of file psx_decoder.cpp.

#define CDXA_TYPE_AUDIO   0x04

Definition at line 164 of file psx_decoder.cpp.

#define CDXA_TYPE_DATA   0x08

Definition at line 163 of file psx_decoder.cpp.

#define CDXA_TYPE_MASK   0x0E

Definition at line 162 of file psx_decoder.cpp.

#define CDXA_TYPE_VIDEO   0x02

Definition at line 165 of file psx_decoder.cpp.

#define DC_CODE_COUNT   9

Definition at line 42 of file psx_decoder.cpp.

#define DC_HUFF_VAL (   b,
  n,
  p 
)    (((b) << 16) | ((n) << 8) | (p))

Definition at line 43 of file psx_decoder.cpp.

#define END_OF_BLOCK   ((uint32)-2)

Definition at line 76 of file psx_decoder.cpp.

#define ESCAPE_CODE   ((uint32)-1)

Definition at line 75 of file psx_decoder.cpp.

#define GET_AC_COEFFICIENT (   code  )     ((int)(code & 0xff))

Definition at line 78 of file psx_decoder.cpp.

#define GET_AC_ZERO_RUN (   code  )     (code >> 8)

Definition at line 77 of file psx_decoder.cpp.

#define GET_DC_BITS (   x  )     ((x) >> 16)

Definition at line 44 of file psx_decoder.cpp.

#define GET_DC_NEG (   x  )     ((int)(((x) >> 8) & 0xff))

Definition at line 45 of file psx_decoder.cpp.

#define GET_DC_POS (   x  )     ((int)((x) & 0xff))

Definition at line 46 of file psx_decoder.cpp.

#define RAW_CD_SECTOR_SIZE   2352

Definition at line 160 of file psx_decoder.cpp.

#define VIDEO_DATA_CHUNK_SIZE   2016

Definition at line 186 of file psx_decoder.cpp.

#define VIDEO_DATA_HEADER_SIZE   56

Definition at line 187 of file psx_decoder.cpp.



Generated on Sat Jul 13 2019 05:02:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge