Added FindKeyFrameForFrame() to the VideoTrackSupplier API

and the implementation to MediaTrackerVideoSupplier.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38438 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-08-30 09:50:47 +00:00
parent 25e6c31893
commit 7516d989b1
3 changed files with 13 additions and 0 deletions
@@ -141,6 +141,17 @@ delete bitmap;
}
status_t
MediaTrackVideoSupplier::FindKeyFrameForFrame(int64* frame)
{
if (!fVideoTrack)
return B_NO_INIT;
return fVideoTrack->FindKeyFrameForFrame(frame,
B_MEDIA_SEEK_CLOSEST_BACKWARD);
}
status_t
MediaTrackVideoSupplier::SeekToTime(bigtime_t* performanceTime)
{
@@ -28,6 +28,7 @@ class MediaTrackVideoSupplier : public VideoTrackSupplier {
bigtime_t* performanceTime,
const media_format* format,
bool& wasCached);
virtual status_t FindKeyFrameForFrame(int64* frame);
virtual status_t SeekToTime(bigtime_t* performanceTime);
virtual status_t SeekToFrame(int64* frame);
@@ -25,6 +25,7 @@ class VideoTrackSupplier {
bigtime_t* performanceTime,
const media_format* format,
bool& wasCached) = 0;
virtual status_t FindKeyFrameForFrame(int64* frame) = 0;
virtual status_t SeekToTime(bigtime_t* performanceTime) = 0;
virtual status_t SeekToFrame(int64* frame) = 0;