aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dsp.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-03-11 17:16:27 +0000
committerMans Rullgard <mans@mansr.com>2011-03-30 01:21:56 +0100
commit52fd16a264d1eb14b1a84b7b38041da1756fb216 (patch)
tree9ed5f74a9043e4099d8d5a1b95fdc457632c75ac /libavcodec/ac3dsp.h
parent6f718471eaae9d25c4fd2dd8d8defa412e2d041c (diff)
downloadffmpeg-52fd16a264d1eb14b1a84b7b38041da1756fb216.tar.gz
ac3enc: move compute_mantissa_size() to ac3dsp
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/ac3dsp.h')
-rw-r--r--libavcodec/ac3dsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ac3dsp.h b/libavcodec/ac3dsp.h
index bf4fc144d7..aa605a8b29 100644
--- a/libavcodec/ac3dsp.h
+++ b/libavcodec/ac3dsp.h
@@ -100,6 +100,11 @@ typedef struct AC3DSPContext {
void (*bit_alloc_calc_bap)(int16_t *mask, int16_t *psd, int start, int end,
int snr_offset, int floor,
const uint8_t *bap_tab, uint8_t *bap);
+
+ /**
+ * Calculate the number of bits needed to encode a set of mantissas.
+ */
+ int (*compute_mantissa_size)(int mant_cnt[5], uint8_t *bap, int nb_coefs);
} AC3DSPContext;
void ff_ac3dsp_init (AC3DSPContext *c, int bit_exact);