Changeset c3299726 in ffmpeg
- Timestamp:
- Sep 30, 2011, 1:02:02 AM (13 years ago)
- Branches:
- master
- Children:
- f42b319
- Parents:
- 8045af65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libavcodec/g729dec.c
r8045af65 rc3299726 333 333 } 334 334 335 static int32_t scalarproduct_int16_c(const int16_t * v1, const int16_t * v2, int order, int shift) 336 { 337 int res = 0; 338 339 while (order--) 340 res += (*v1++ * *v2++) >> shift; 341 342 return res; 343 } 344 335 345 static av_cold int decoder_init(AVCodecContext * avctx) 336 346 { … … 368 378 ctx->quant_energy[i] = -14336; // -14 in (5.10) 369 379 370 avctx->dsp_mask= ~AV_CPU_FLAG_FORCE;371 380 dsputil_init(&ctx->dsp, avctx); 381 ctx->dsp.scalarproduct_int16 = scalarproduct_int16_c; 372 382 373 383 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.