* fixed-point AC-3 encoder.
*/
+#undef CONFIG_AC3ENC_FLOAT
#include "ac3enc.c"
/**
* Apply KBD window to input samples prior to MDCT.
*/
-static void apply_window(int16_t *output, const int16_t *input,
+static void apply_window(DSPContext *dsp, int16_t *output, const int16_t *input,
const int16_t *window, int n)
{
int i;
}
+/**
+ * Scale MDCT coefficients from float to fixed-point.
+ */
+static void scale_coefficients(AC3EncodeContext *s)
+{
+ /* scaling/conversion is obviously not needed for the fixed-point encoder
+ since the coefficients are already fixed-point. */
+ return;
+}
+
+
#ifdef TEST
/*************************************************************************/
/* TEST */
#endif /* TEST */
-AVCodec ac3_encoder = {
- "ac3",
+AVCodec ff_ac3_fixed_encoder = {
+ "ac3_fixed",
AVMEDIA_TYPE_AUDIO,
CODEC_ID_AC3,
sizeof(AC3EncodeContext),