| 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(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) |