Debian Codegraph @

components/decoder/mediafoundation/mediafoundation.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2019 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
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)