22 #ifndef VIDEO_PSX_DECODER_H 23 #define VIDEO_PSX_DECODER_H 25 #include "common/bitstream.h" 26 #include "common/endian.h" 27 #include "common/rational.h" 28 #include "common/rect.h" 29 #include "common/str.h" 30 #include "graphics/surface.h" 31 #include "video/video_decoder.h" 34 class QueuingAudioStream;
38 template <
class BITSTREAM>
74 void readNextPacket();
75 bool useAudioSync()
const;
83 uint16 getWidth()
const {
return _width; }
84 uint16 getHeight()
const {
return _height; }
86 bool setOutputPixelFormat(
const Graphics::PixelFormat &format) { _pixelFormat = format;
return true; }
87 bool endOfTrack()
const {
return _endOfTrack; }
88 int getCurFrame()
const {
return _curFrame; }
89 int getFrameCount()
const {
return _frameCount; }
90 uint32 getNextFrameStartTime()
const;
93 void setEndOfTrack() { _endOfTrack =
true; }
114 uint16 _macroBlocksW, _macroBlocksH;
115 byte *_yBuffer, *_cbBuffer, *_crBuffer;
120 HuffmanDecoder *_acHuffman;
123 HuffmanDecoder *_dcHuffmanLuma, *_dcHuffmanChroma;
126 void dequantizeBlock(
int *coefficients,
float *block, uint16 scale);
127 void idct(
float *dequantData,
float *result);
136 bool endOfTrack()
const;
138 void setEndOfTrack() { _endOfTrack =
true; }
154 PSXVideoTrack *_videoTrack;
155 PSXAudioTrack *_audioTrack;
Definition: video_decoder.h:711
Definition: timestamp.h:83
Definition: psx_decoder.h:58
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
SoundType
Definition: mixer.h:62
Definition: video_decoder.h:53
Definition: bitstream.h:55
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: audiostream.h:50
Definition: audiostream.h:370
Definition: bitstream.h:337
Definition: avi_frames.h:36
Definition: video_decoder.h:577