• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

67     int isampf       = tctx->avctx->sample_rate / 1000;
68 int ibps = tctx->avctx->bit_rate / (1000 * tctx->avctx->channels);
77 if (tctx->avctx->channels == 1) {
87 if (tctx->avctx->channels == 1)
105 pgain_base = tctx->avctx->channels == 2 ? 25000.0 : 20000.0;
126 if (tctx->avctx->channels == 1)
134 if (tctx->avctx->channels == 1)
164 static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
169 int channels = tctx->avctx->channels;
183 av_log(avctx, AV_LOG_ERROR, "Invalid window type, broken sample?\n");
271 static av_cold int metasound_decode_init(AVCodecContext *avctx)
274 TwinVQContext *tctx = avctx->priv_data;
278 if (!avctx->extradata || avctx->extradata_size < 16) {
279 av_log(avctx, AV_LOG_ERROR, "Missing or incomplete extradata\n");
283 tag = AV_RL32(avctx->extradata + 12);
287 av_log(avctx, AV_LOG_ERROR, "Could not find tag %08"PRIX32"\n", tag);
291 avctx->sample_rate = props->sample_rate;
292 avctx->channels = props->channels;
293 avctx->bit_rate = props->bit_rate * 1000;
294 isampf = avctx->sample_rate / 1000;
300 if (avctx->channels <= 0 || avctx->channels > TWINVQ_CHANNELS_MAX) {
301 av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %i\n",
302 avctx->channels);
305 avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO
308 ibps = avctx->bit_rate / (1000 * avctx->channels);
310 switch ((avctx->channels << 16) + (isampf << 8) + ibps) {
360 av_log(avctx, AV_LOG_ERROR,
370 tctx->frame_size = avctx->bit_rate * tctx->mtab->size
371 / avctx->sample_rate;
374 return ff_twinvq_decode_init(avctx);