Debian Codegraph @

components/decoder/lame/lame.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(DecoderLAME)
17
18 namespace BoCA
19 {
20 class DecoderLAME : public CS::DecoderComponent
21 {
22 private:
23 hip_t context;
24
25 Buffer<short> pcm_l;
26 Buffer<short> pcm_r;
27
28 Int delaySamples;
29 Int padSamples;
30
31 Int delaySamplesLeft;
32
33 Bool SkipID3v2Tag(IO::InStream &);
34 Bool ParseVBRHeaders(IO::InStream &);
35 public:
36 static const String &GetComponentSpecs();
37
38 DecoderLAME();
39 ~DecoderLAME();
40
41 Bool CanOpenStream(const String &);
42 Error GetStreamInfo(const String &, Track &);
43
44 Bool Activate();
45 Bool Deactivate();
46
47 Int ReadData(Buffer<UnsignedByte> &);
48 };
49 };
50
51 BoCA_DEFINE_DECODER_COMPONENT(DecoderLAME)
52
53 BoCA_END_COMPONENT(DecoderLAME)