summaryrefslogtreecommitdiffstats
path: root/libavcodec/g723_1.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-15 13:20:43 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-18 18:52:39 +0100
commit62dbcb7ddf106ce43018d3087f8fc49286a1fbc5 (patch)
treef85da15860a23feadad253df48d552c5b9401b6d /libavcodec/g723_1.h
parent06a436a224c00b97c0d2a173be2f5d792fd643db (diff)
downloadffmpeg-streaming-62dbcb7ddf106ce43018d3087f8fc49286a1fbc5.zip
ffmpeg-streaming-62dbcb7ddf106ce43018d3087f8fc49286a1fbc5.tar.gz
avcodec/g723_1: add support for stereo files
Diffstat (limited to 'libavcodec/g723_1.h')
-rw-r--r--libavcodec/g723_1.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libavcodec/g723_1.h b/libavcodec/g723_1.h
index f833af0..d60d481 100644
--- a/libavcodec/g723_1.h
+++ b/libavcodec/g723_1.h
@@ -116,9 +116,7 @@ typedef struct FCBParam {
int pulse_sign[PULSE_MAX];
} FCBParam;
-typedef struct g723_1_context {
- AVClass *class;
-
+typedef struct G723_1_ChannelContext {
G723_1_Subframe subframe[4];
enum FrameType cur_frame_type;
enum FrameType past_frame_type;
@@ -144,8 +142,6 @@ typedef struct g723_1_context {
int reflection_coef;
int pf_gain; ///< formant postfilter
///< gain scaling unit memory
- int postfilter;
-
int16_t audio[FRAME_LEN + LPC_ORDER + PITCH_MAX + 4];
/* encoder */
@@ -158,6 +154,13 @@ typedef struct g723_1_context {
int16_t perf_iir_mem[LPC_ORDER]; ///< and iir memories
int16_t harmonic_mem[PITCH_MAX];
+} G723_1_ChannelContext;
+
+typedef struct G723_1_Context {
+ AVClass *class;
+ int postfilter;
+
+ G723_1_ChannelContext ch[2];
} G723_1_Context;
OpenPOWER on IntegriCloud