Debian Codegraph @

components/encoder/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(EncoderBonk)
17
18 namespace BoCA
19 {
20 class EncoderBonk : public CS::EncoderComponent
21 {
22 private:
23 ConfigLayer *configLayer;
24 Config *config;
25
26 void *encoder;
27
28 Int frameSize;
29
30 Buffer<unsigned char> dataBuffer;
31 Buffer<short> samplesBuffer;
32
33 static Bool ConvertArguments(Config *);
34 public:
35 static const String &GetComponentSpecs();
36
37 EncoderBonk();
38 ~EncoderBonk();
39
40 Bool IsLossless() const;
41
42 Bool Activate();
43 Bool Deactivate();
44
45 Int WriteData(Buffer<UnsignedByte> &);
46
47 ConfigLayer *GetConfigurationLayer();
48 };
49 };
50
51 BoCA_DEFINE_ENCODER_COMPONENT(EncoderBonk)
52
53 BoCA_END_COMPONENT(EncoderBonk)