2 * Copyright 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT licensce.
5 #ifndef PROXY_VIDEO_SUPPLIER_H
6 #define PROXY_VIDEO_SUPPLIER_H
10 #include "VideoSupplier.h"
13 class VideoTrackSupplier
;
16 class ProxyVideoSupplier
: public VideoSupplier
{
19 virtual ~ProxyVideoSupplier();
21 virtual status_t
FillBuffer(int64 startFrame
, void* buffer
,
22 const media_raw_video_format
& format
,
23 bool forceGeneration
, bool& wasCached
);
25 virtual void DeleteCaches();
27 void SetSupplier(VideoTrackSupplier
* supplier
);
30 BLocker fSupplierLock
;
32 VideoTrackSupplier
* fSupplier
;
35 #endif // PROXY_VIDEO_SUPPLIER_H