*/
/**
- * @file libavcodec/nellymoserenc.c
+ * @file
* Nellymoser encoder
* by Bartlomiej Wolowiec
*
#include "nellymoser.h"
#include "avcodec.h"
#include "dsputil.h"
+#include "fft.h"
#define BITSTREAM_WRITER_LE
#include "put_bits.h"
int have_saved;
DSPContext dsp;
FFTContext mdct_ctx;
- DECLARE_ALIGNED_16(float, mdct_out)[NELLY_SAMPLES];
- DECLARE_ALIGNED_16(float, in_buff)[NELLY_SAMPLES];
- DECLARE_ALIGNED_16(float, buf)[2][3 * NELLY_BUF_LEN]; ///< sample buffer
+ DECLARE_ALIGNED(16, float, mdct_out)[NELLY_SAMPLES];
+ DECLARE_ALIGNED(16, float, in_buff)[NELLY_SAMPLES];
+ DECLARE_ALIGNED(16, float, buf)[2][3 * NELLY_BUF_LEN]; ///< sample buffer
float (*opt )[NELLY_BANDS];
uint8_t (*path)[NELLY_BANDS];
} NellyMoserEncodeContext;
}
/**
- * Encodes NELLY_SAMPLES samples. It assumes, that samples contains 3 * NELLY_BUF_LEN values
+ * Encode NELLY_SAMPLES samples. It assumes, that samples contains 3 * NELLY_BUF_LEN values
* @param s encoder context
* @param output output buffer
* @param output_size size of output buffer
AVCodec nellymoser_encoder = {
.name = "nellymoser",
- .type = CODEC_TYPE_AUDIO,
+ .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_NELLYMOSER,
.priv_data_size = sizeof(NellyMoserEncodeContext),
.init = encode_init,