ScummVM API documentation
4xm_decoder.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef VIDEO_4XM_DECODER_H
23#define VIDEO_4XM_DECODER_H
24
25#include "common/ptr.h"
26#include "video/video_decoder.h"
27
28namespace Video {
29
37public:
39
40 bool loadStream(Common::SeekableReadStream *stream) override;
41 bool useAudioSync() const override { return false; }
42
43private:
44 struct Frame {
45 int64 offset;
46 int64 end;
47 };
48
49 class FourXMVideoTrack;
50 class FourXMAudioTrack;
51 class FourXMRawVideoTrack;
52 class FourXMRawAudioTrack;
53
54 void readList(uint32 size);
55 void decodeNextFrameImpl();
56 bool loadRawStream();
57
58 uint32 _dataRate = 0;
59 Common::Rational _frameRate;
62 uint _curFrame = 0;
63 FourXMVideoTrack *_video = nullptr;
64 FourXMAudioTrack *_audio = nullptr;
65 FourXMRawVideoTrack *_rawVideo = nullptr;
66 FourXMRawAudioTrack *_rawAudio = nullptr;
67};
68
69} // namespace Video
70
71#endif // VIDEO_4XM_DECODER_H
Definition: rational.h:40
Definition: stream.h:745
Definition: 4xm_decoder.h:36
bool useAudioSync() const override
Definition: 4xm_decoder.h:41
bool loadStream(Common::SeekableReadStream *stream) override
Definition: video_decoder.h:53