/* * Copyright 2001-2008 Ingo Weinhold * Copyright 2001-2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT licensce. */ #ifndef VIDEO_SUPPLIER_H #define VIDEO_SUPPLIER_H #include struct media_raw_video_format; class VideoSupplier { public: VideoSupplier(); virtual ~VideoSupplier(); virtual status_t FillBuffer(int64 startFrame, void* buffer, const media_raw_video_format& format, bool forceGeneration, bool& wasCached) = 0; virtual void DeleteCaches(); inline bigtime_t ProcessingLatency() const { return fProcessingLatency; } protected: bigtime_t fProcessingLatency; }; #endif // VIDEO_SUPPLIER_H