mirror of
https://github.com/scummvm/scummvm.git
synced 2026-05-21 05:40:43 +00:00
VIDEO: Complete reversion from previous commit
This commit is contained in:
@@ -894,20 +894,10 @@ uint32 QuickTimeDecoder::VideoTrackHandler::getCurEditTrackDuration() const {
|
||||
return _parent->editList[_curEdit].trackDuration * _parent->timeScale / _decoder->_timeScale;
|
||||
}
|
||||
|
||||
bool QuickTimeDecoder::VideoTrackHandler::atFirstEdit() const {
|
||||
return _curEdit == 0;
|
||||
}
|
||||
|
||||
bool QuickTimeDecoder::VideoTrackHandler::atLastEdit() const {
|
||||
return _curEdit == _parent->editList.size();
|
||||
}
|
||||
|
||||
bool QuickTimeDecoder::VideoTrackHandler::beforeCurEdit() const {
|
||||
// We're at the end of the edit once the next frame's time would
|
||||
// bring us past the end of the edit.
|
||||
return getRateAdjustedFrameTime() <= getCurEditTimeOffset();
|
||||
}
|
||||
|
||||
bool QuickTimeDecoder::VideoTrackHandler::endOfCurEdit() const {
|
||||
// We're at the end of the edit once the next frame's time would
|
||||
// bring us past the end of the edit.
|
||||
|
||||
@@ -180,9 +180,7 @@ private:
|
||||
uint32 getRateAdjustedFrameTime() const; // media time
|
||||
uint32 getCurEditTimeOffset() const; // media time
|
||||
uint32 getCurEditTrackDuration() const; // media time
|
||||
bool atFirstEdit() const;
|
||||
bool atLastEdit() const;
|
||||
bool beforeCurEdit() const;
|
||||
bool endOfCurEdit() const;
|
||||
void checkEditListBounds();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user