btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / mediaplayer / media_node_framework / video / VideoSupplier.h
blobae57e4122e168bb93cd19e8692a7621781b1c457
1 /*
2 * Copyright 2001-2008 Ingo Weinhold <ingo_weinhold@gmx.de>
3 * Copyright 2001-2008 Stephan Aßmus <superstippi@gmx.de>
4 * All rights reserved. Distributed under the terms of the MIT licensce.
5 */
6 #ifndef VIDEO_SUPPLIER_H
7 #define VIDEO_SUPPLIER_H
10 #include <SupportDefs.h>
13 struct media_raw_video_format;
16 class VideoSupplier {
17 public:
18 VideoSupplier();
19 virtual ~VideoSupplier();
21 virtual status_t FillBuffer(int64 startFrame, void* buffer,
22 const media_raw_video_format& format,
23 bool forceGeneration, bool& wasCached) = 0;
25 virtual void DeleteCaches();
27 inline bigtime_t ProcessingLatency() const
28 { return fProcessingLatency; }
30 protected:
31 bigtime_t fProcessingLatency;
34 #endif // VIDEO_SUPPLIER_H