comparison ra288.c @ 7451:85ab7655ad4d libavcodec

Modify all codecs to report their supported input and output sample format(s).
author pross
date Thu, 31 Jul 2008 10:47:31 +0000
parents 18fc253b4991
children 50e0b25882cd
comparison
equal deleted inserted replaced
7450:30d38a880fde 7451:85ab7655ad4d
39 float gain_rec[11]; 39 float gain_rec[11];
40 40
41 float sp_block[41]; ///< Speech data of four blocks (spec: STTMP) 41 float sp_block[41]; ///< Speech data of four blocks (spec: STTMP)
42 float gain_block[10]; ///< Gain data of four blocks (spec: GSTATE) 42 float gain_block[10]; ///< Gain data of four blocks (spec: GSTATE)
43 } RA288Context; 43 } RA288Context;
44
45 static av_cold int ra288_decode_init(AVCodecContext *avctx)
46 {
47 avctx->sample_fmt = SAMPLE_FMT_S16;
48 return 0;
49 }
44 50
45 static inline float scalar_product_float(const float * v1, const float * v2, 51 static inline float scalar_product_float(const float * v1, const float * v2,
46 int size) 52 int size)
47 { 53 {
48 float res = 0.; 54 float res = 0.;
256 { 262 {
257 "real_288", 263 "real_288",
258 CODEC_TYPE_AUDIO, 264 CODEC_TYPE_AUDIO,
259 CODEC_ID_RA_288, 265 CODEC_ID_RA_288,
260 sizeof(RA288Context), 266 sizeof(RA288Context),
261 NULL, 267 ra288_decode_init,
262 NULL, 268 NULL,
263 NULL, 269 NULL,
264 ra288_decode_frame, 270 ra288_decode_frame,
265 .long_name = NULL_IF_CONFIG_SMALL("RealAudio 2.0 (28.8K)"), 271 .long_name = NULL_IF_CONFIG_SMALL("RealAudio 2.0 (28.8K)"),
266 }; 272 };