[FFmpeg-cvslog] Remove unused ac3_parametric_bit_allocation function.
Diego Elio Pettenò
git
Wed Jan 26 04:01:17 CET 2011
ffmpeg | branch: master | Diego Elio Petten? <flameeyes at gmail.com> | Mon Jan 24 23:36:14 2011 +0000| [a172126c38427bf7b72b9f66babd6261911d73f4] | committer: Michael Niedermayer
Remove unused ac3_parametric_bit_allocation function.
Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 362bfe29971b3bb8497d2b341337697be15a257c)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a172126c38427bf7b72b9f66babd6261911d73f4
---
libavcodec/ac3.c | 23 -----------------------
libavcodec/ac3.h | 7 -------
2 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c
index 4ab77b8..0f442fa 100644
--- a/libavcodec/ac3.c
+++ b/libavcodec/ac3.c
@@ -237,29 +237,6 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
} while (end > band_start_tab[band++]);
}
-/* AC-3 bit allocation. The algorithm is the one described in the AC-3
- spec. */
-void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap,
- int8_t *exp, int start, int end,
- int snr_offset, int fast_gain, int is_lfe,
- int dba_mode, int dba_nsegs,
- uint8_t *dba_offsets, uint8_t *dba_lengths,
- uint8_t *dba_values)
-{
- int16_t psd[AC3_MAX_COEFS]; /* scaled exponents */
- int16_t band_psd[AC3_CRITICAL_BANDS]; /* interpolated exponents */
- int16_t mask[AC3_CRITICAL_BANDS]; /* masking value */
-
- ff_ac3_bit_alloc_calc_psd(exp, start, end, psd, band_psd);
-
- ff_ac3_bit_alloc_calc_mask(s, band_psd, start, end, fast_gain, is_lfe,
- dba_mode, dba_nsegs, dba_offsets, dba_lengths,
- dba_values, mask);
-
- ff_ac3_bit_alloc_calc_bap(mask, psd, start, end, snr_offset, s->floor,
- ff_ac3_bap_tab, bap);
-}
-
/**
* Initialize some tables.
* note: This function must remain thread safe because it is called by the
diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h
index 89a88b6..283b134 100644
--- a/libavcodec/ac3.h
+++ b/libavcodec/ac3.h
@@ -181,11 +181,4 @@ void ff_ac3_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);
-void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap,
- int8_t *exp, int start, int end,
- int snr_offset, int fast_gain, int is_lfe,
- int dba_mode, int dba_nsegs,
- uint8_t *dba_offsets, uint8_t *dba_lengths,
- uint8_t *dba_values);
-
#endif /* AVCODEC_AC3_H */
More information about the ffmpeg-cvslog
mailing list