| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#include <boca.h> |
| 14 |
#include "dllinterface.h" |
| 15 |
|
| 16 |
BoCA_BEGIN_COMPONENT(DecoderMediaFoundation) |
| 17 |
|
| 18 |
namespace BoCA |
| 19 |
{ |
| 20 |
class DecoderMediaFoundation : public CS::DecoderComponent |
| 21 |
{ |
| 22 |
private: |
| 23 |
IMFSourceReader *reader; |
| 24 |
IMFMediaType *mediaType; |
| 25 |
public: |
| 26 |
static const String &GetComponentSpecs(); |
| 27 |
|
| 28 |
static Void Initialize(); |
| 29 |
static Void Cleanup(); |
| 30 |
|
| 31 |
DecoderMediaFoundation(); |
| 32 |
~DecoderMediaFoundation(); |
| 33 |
|
| 34 |
Bool CanOpenStream(const String &); |
| 35 |
Error GetStreamInfo(const String &, Track &); |
| 36 |
|
| 37 |
Bool Activate(); |
| 38 |
Bool Deactivate(); |
| 39 |
|
| 40 |
Bool Seek(Int64); |
| 41 |
|
| 42 |
Int ReadData(Buffer<UnsignedByte> &); |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
BoCA_DEFINE_DECODER_COMPONENT(DecoderMediaFoundation) |
| 47 |
|
| 48 |
BoCA_END_COMPONENT(DecoderMediaFoundation) |