Debian Codegraph @

components/decoder/bonk/bonk.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2018 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(DecoderBonk)
17
18 namespace BoCA
19 {
20 class DecoderBonk : public CS::DecoderComponent
21 {
22 private:
23 void *decoder;
24 public:
25 static const String &GetComponentSpecs();
26
27 DecoderBonk();
28 ~DecoderBonk();
29
30 Bool CanOpenStream(const String &);
31 Error GetStreamInfo(const String &, Track &);
32
33 Bool Activate();
34 Bool Deactivate();
35
36 Int ReadData(Buffer<UnsignedByte> &);
37 };
38 };
39
40 BoCA_DEFINE_DECODER_COMPONENT(DecoderBonk)
41
42 BoCA_END_COMPONENT(DecoderBonk)