Debian Codegraph @

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