summaryrefslogtreecommitdiff
path: root/libavcodec/twinvq.h
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2013-10-20 16:15:03 +0200
committerDiego Biurrun <diego@biurrun.de>2013-11-14 13:38:10 +0100
commit1afa8a7568ba57ad0cd2923f6e641e10d32cded4 (patch)
treee0e8b4180f44f7618768fe2726ba723d3a00698e /libavcodec/twinvq.h
parentddb839e9286594ff7a862a956402106fca7055c9 (diff)
twinvq: support multiple frames per packet
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/twinvq.h')
-rw-r--r--libavcodec/twinvq.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/twinvq.h b/libavcodec/twinvq.h
index d3a548a9f9..f6b3942ff2 100644
--- a/libavcodec/twinvq.h
+++ b/libavcodec/twinvq.h
@@ -58,6 +58,8 @@ enum TwinVQFrameType {
#define TWINVQ_SUBBLOCKS_MAX 16
#define TWINVQ_BARK_N_COEF_MAX 4
+#define TWINVQ_MAX_FRAMES_PER_PACKET 2
+
/**
* Parameters and tables that are different for each frame type
*/
@@ -162,7 +164,8 @@ typedef struct TwinVQContext {
// scratch buffers
float *tmp_buf;
- TwinVQFrameData bits;
+ int frame_size, frames_per_packet, cur_frame;
+ TwinVQFrameData bits[TWINVQ_MAX_FRAMES_PER_PACKET];
enum TwinVQCodec codec;