channel 408 libavcodec/aacpsy.c int channel, int prev_type) channel 414 libavcodec/aacpsy.c AacPsyChannel *pch = &pctx->ch[channel]; channel 649 libavcodec/aacpsy.c static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel, channel 653 libavcodec/aacpsy.c AacPsyChannel *pch = &pctx->ch[channel]; channel 706 libavcodec/aacpsy.c ctx->ch[channel].entropy = pe; channel 833 libavcodec/aacpsy.c FFPsyBand *psy_band = &ctx->ch[channel].psy_bands[w+g]; channel 845 libavcodec/aacpsy.c static void psy_3gpp_analyze(FFPsyContext *ctx, int channel, channel 849 libavcodec/aacpsy.c FFPsyChannelGroup *group = ff_psy_find_group(ctx, channel); channel 852 libavcodec/aacpsy.c psy_3gpp_analyze_channel(ctx, channel + ch, coeffs[ch], &wi[ch]); channel 881 libavcodec/aacpsy.c const float *la, int channel, int prev_type) channel 884 libavcodec/aacpsy.c AacPsyChannel *pch = &pctx->ch[channel]; channel 936 libavcodec/adpcm.c int n, m, channel, i; channel 972 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 975 libavcodec/adpcm.c cs = &(c->status[channel]); channel 997 libavcodec/adpcm.c channel, cs->step_index); channel 1001 libavcodec/adpcm.c samples = samples_p[channel]; channel 1103 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1104 libavcodec/adpcm.c samples = samples_p[channel]; channel 1108 libavcodec/adpcm.c channel, block_predictor); channel 1111 libavcodec/adpcm.c c->status[channel].coeff1 = ff_adpcm_AdaptCoeff1[block_predictor]; channel 1112 libavcodec/adpcm.c c->status[channel].coeff2 = ff_adpcm_AdaptCoeff2[block_predictor]; channel 1113 libavcodec/adpcm.c c->status[channel].idelta = sign_extend(bytestream2_get_le16u(&gb), 16); channel 1114 libavcodec/adpcm.c c->status[channel].sample1 = sign_extend(bytestream2_get_le16u(&gb), 16); channel 1115 libavcodec/adpcm.c c->status[channel].sample2 = sign_extend(bytestream2_get_le16u(&gb), 16); channel 1116 libavcodec/adpcm.c *samples++ = c->status[channel].sample2; channel 1117 libavcodec/adpcm.c *samples++ = c->status[channel].sample1; channel 1120 libavcodec/adpcm.c *samples++ = adpcm_ms_expand_nibble(&c->status[channel], byte >> 4 ); channel 1121 libavcodec/adpcm.c *samples++ = adpcm_ms_expand_nibble(&c->status[channel], byte & 0x0F); channel 1166 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel+=2) { channel 1168 libavcodec/adpcm.c c->status[channel ].step = bytestream2_get_le16u(&gb) & 0x1f; channel 1169 libavcodec/adpcm.c c->status[channel + 1].step = bytestream2_get_le16u(&gb) & 0x1f; channel 1170 libavcodec/adpcm.c c->status[channel ].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); channel 1172 libavcodec/adpcm.c c->status[channel + 1].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); channel 1176 libavcodec/adpcm.c samples_p[channel][n ] = adpcm_mtaf_expand_nibble(&c->status[channel], v & 0x0F); channel 1177 libavcodec/adpcm.c samples_p[channel][n + 1] = adpcm_mtaf_expand_nibble(&c->status[channel], v >> 4 ); channel 1181 libavcodec/adpcm.c samples_p[channel + 1][n ] = adpcm_mtaf_expand_nibble(&c->status[channel + 1], v & 0x0F); channel 1182 libavcodec/adpcm.c samples_p[channel + 1][n + 1] = adpcm_mtaf_expand_nibble(&c->status[channel + 1], v >> 4 ); channel 1187 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1188 libavcodec/adpcm.c cs = &c->status[channel]; channel 1193 libavcodec/adpcm.c channel, cs->step_index); channel 1268 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1269 libavcodec/adpcm.c cs = &c->status[channel]; channel 1274 libavcodec/adpcm.c channel, cs->step_index); channel 1295 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1296 libavcodec/adpcm.c cs = &c->status[channel]; channel 1297 libavcodec/adpcm.c samples = samples_p[channel]; channel 1322 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1324 libavcodec/adpcm.c *samples++ = adpcm_ima_qt_expand_nibble(&c->status[channel], v >> 4 ); channel 1325 libavcodec/adpcm.c samples[st] = adpcm_ima_qt_expand_nibble(&c->status[channel], v & 0x0F); channel 1332 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1334 libavcodec/adpcm.c *samples++ = adpcm_ima_alp_expand_nibble(&c->status[channel], v >> 4 , 2); channel 1335 libavcodec/adpcm.c samples[st] = adpcm_ima_alp_expand_nibble(&c->status[channel], v & 0x0F, 2); channel 1355 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1356 libavcodec/adpcm.c cs = &c->status[channel]; channel 1361 libavcodec/adpcm.c channel, cs->step_index); channel 1371 libavcodec/adpcm.c for(channel = 0; channel < avctx->channels; channel++) { channel 1372 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[channel], byte[channel] & 0x0F, 3); channel 1374 libavcodec/adpcm.c for(channel = 0; channel < avctx->channels; channel++) { channel 1375 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[channel], byte[channel] >> 4 , 3); channel 1381 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1382 libavcodec/adpcm.c int16_t *smp = samples_p[channel]; channel 1386 libavcodec/adpcm.c *smp++ = adpcm_ima_expand_nibble(&c->status[channel], v >> 4 , 3); channel 1387 libavcodec/adpcm.c *smp++ = adpcm_ima_expand_nibble(&c->status[channel], v & 0x0F, 3); channel 1392 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1394 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[channel], v >> 4 , 3); channel 1395 libavcodec/adpcm.c samples[st] = adpcm_ima_expand_nibble(&c->status[channel], v & 0x0F, 3); channel 1512 libavcodec/adpcm.c for(channel = 0; channel < avctx->channels; channel++) { channel 1515 libavcodec/adpcm.c coeff[channel][i] = ea_adpcm_table[(byte >> 4) + 4*i]; channel 1516 libavcodec/adpcm.c shift[channel] = 20 - (byte & 0x0F); channel 1524 libavcodec/adpcm.c for(channel = 0; channel < avctx->channels; channel++) { channel 1525 libavcodec/adpcm.c int sample = sign_extend(byte[channel] >> i, 4) * (1 << shift[channel]); channel 1527 libavcodec/adpcm.c c->status[channel].sample1 * coeff[channel][0] + channel 1528 libavcodec/adpcm.c c->status[channel].sample2 * coeff[channel][1] + 0x80) >> 8; channel 1529 libavcodec/adpcm.c c->status[channel].sample2 = c->status[channel].sample1; channel 1530 libavcodec/adpcm.c c->status[channel].sample1 = av_clip_int16(sample); channel 1531 libavcodec/adpcm.c *samples++ = c->status[channel].sample1; channel 1549 libavcodec/adpcm.c unsigned int channel; channel 1554 libavcodec/adpcm.c for (channel=0; channel<avctx->channels; channel++) channel 1555 libavcodec/adpcm.c offsets[channel] = (big_endian ? bytestream2_get_be32(&gb) : channel 1559 libavcodec/adpcm.c for (channel=0; channel<avctx->channels; channel++) { channel 1560 libavcodec/adpcm.c bytestream2_seek(&gb, offsets[channel], SEEK_SET); channel 1561 libavcodec/adpcm.c samplesC = samples_p[channel]; channel 1567 libavcodec/adpcm.c current_sample = c->status[channel].predictor; channel 1568 libavcodec/adpcm.c previous_sample = c->status[channel].prev_sample; channel 1610 libavcodec/adpcm.c c->status[channel].predictor = current_sample; channel 1611 libavcodec/adpcm.c c->status[channel].prev_sample = previous_sample; channel 1620 libavcodec/adpcm.c for (channel=0; channel<avctx->channels; channel++) { channel 1622 libavcodec/adpcm.c int16_t *s = samples_p[channel]; channel 1635 libavcodec/adpcm.c s = &samples_p[channel][m]; channel 1750 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) channel 1751 libavcodec/adpcm.c c->status[channel].step = 0; channel 1754 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1755 libavcodec/adpcm.c samples = samples_p[channel]; channel 1758 libavcodec/adpcm.c *samples++ = adpcm_yamaha_expand_nibble(&c->status[channel], v & 0x0F); channel 1759 libavcodec/adpcm.c *samples++ = adpcm_yamaha_expand_nibble(&c->status[channel], v >> 4 ); channel 1777 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1778 libavcodec/adpcm.c int prev1 = c->status[channel].sample1; channel 1779 libavcodec/adpcm.c int prev2 = c->status[channel].sample2; channel 1781 libavcodec/adpcm.c samples = samples_p[channel] + m * 16; channel 1809 libavcodec/adpcm.c c->status[channel].sample1 = prev1; channel 1810 libavcodec/adpcm.c c->status[channel].sample2 = prev2; channel 1889 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1890 libavcodec/adpcm.c samples = samples_p[channel]; channel 1895 libavcodec/adpcm.c if (channel) channel 1898 libavcodec/adpcm.c bytestream2_skipu(&gb, 3 - channel); channel 1906 libavcodec/adpcm.c prev = (c->status[channel].sample1 * 0x3c); channel 1909 libavcodec/adpcm.c prev = (c->status[channel].sample1 * 0x73) - (c->status[channel].sample2 * 0x34); channel 1912 libavcodec/adpcm.c prev = (c->status[channel].sample1 * 0x62) - (c->status[channel].sample2 * 0x37); channel 1921 libavcodec/adpcm.c if (!channel) channel 1928 libavcodec/adpcm.c c->status[channel].sample2 = c->status[channel].sample1; channel 1929 libavcodec/adpcm.c c->status[channel].sample1 = sampledat; channel 1932 libavcodec/adpcm.c if (!channel) channel 1937 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1938 libavcodec/adpcm.c samples = samples_p[channel]; channel 1964 libavcodec/adpcm.c sample = (int)((scale >> shift) + (c->status[channel].sample1 * xa_adpcm_table[filter][0] + c->status[channel].sample2 * xa_adpcm_table[filter][1]) / 64); channel 1967 libavcodec/adpcm.c c->status[channel].sample2 = c->status[channel].sample1; channel 1968 libavcodec/adpcm.c c->status[channel].sample1 = sample; channel 1991 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 1994 libavcodec/adpcm.c samples = samples_p[channel]; channel 1995 libavcodec/adpcm.c cs = c->status + channel; channel 2010 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 2011 libavcodec/adpcm.c c->status[channel].predictor = 0; channel 2012 libavcodec/adpcm.c c->status[channel].step_index = 0; channel 2023 libavcodec/adpcm.c for (channel = 0; channel < avctx->channels; channel++) { channel 2025 libavcodec/adpcm.c *samples++ = adpcm_ima_mtf_expand_nibble(&c->status[channel], v >> 4); channel 2026 libavcodec/adpcm.c samples[st] = adpcm_ima_mtf_expand_nibble(&c->status[channel], v & 0x0F); channel 376 libavcodec/aptx.c static void aptx_update_codeword_history(Channel *channel) channel 378 libavcodec/aptx.c int32_t cw = ((channel->quantize[0].quantized_sample & 3) << 0) + channel 379 libavcodec/aptx.c ((channel->quantize[1].quantized_sample & 2) << 1) + channel 380 libavcodec/aptx.c ((channel->quantize[2].quantized_sample & 1) << 3); channel 381 libavcodec/aptx.c channel->codeword_history = (cw << 8) + ((unsigned)channel->codeword_history << 4); channel 384 libavcodec/aptx.c void ff_aptx_generate_dither(Channel *channel) channel 390 libavcodec/aptx.c aptx_update_codeword_history(channel); channel 392 libavcodec/aptx.c m = (int64_t)5184443 * (channel->codeword_history >> 7); channel 395 libavcodec/aptx.c channel->dither[subband] = (unsigned)d << (23 - 5*subband); channel 396 libavcodec/aptx.c channel->dither_parity = (d >> 25) & 1; channel 496 libavcodec/aptx.c void ff_aptx_invert_quantize_and_prediction(Channel *channel, int hd) channel 500 libavcodec/aptx.c aptx_process_subband(&channel->invert_quantize[subband], channel 501 libavcodec/aptx.c &channel->prediction[subband], channel 502 libavcodec/aptx.c channel->quantize[subband].quantized_sample, channel 503 libavcodec/aptx.c channel->dither[subband], channel 528 libavcodec/aptx.c Channel *channel = &s->channels[chan]; channel 530 libavcodec/aptx.c Prediction *prediction = &channel->prediction[subband]; channel 191 libavcodec/aptx.h static inline int32_t aptx_quantized_parity(Channel *channel) channel 193 libavcodec/aptx.h int32_t parity = channel->dither_parity; channel 197 libavcodec/aptx.h parity ^= channel->quantize[subband].quantized_sample; channel 215 libavcodec/aptx.h void ff_aptx_invert_quantize_and_prediction(Channel *channel, int hd); channel 216 libavcodec/aptx.h void ff_aptx_generate_dither(Channel *channel); channel 80 libavcodec/aptxdec.c static void aptx_decode_channel(Channel *channel, int32_t samples[4]) channel 85 libavcodec/aptxdec.c subband_samples[subband] = channel->prediction[subband].previous_reconstructed_sample; channel 86 libavcodec/aptxdec.c aptx_qmf_tree_synthesis(&channel->qmf, subband_samples, samples); channel 89 libavcodec/aptxdec.c static void aptx_unpack_codeword(Channel *channel, uint16_t codeword) channel 91 libavcodec/aptxdec.c channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 7); channel 92 libavcodec/aptxdec.c channel->quantize[1].quantized_sample = sign_extend(codeword >> 7, 4); channel 93 libavcodec/aptxdec.c channel->quantize[2].quantized_sample = sign_extend(codeword >> 11, 2); channel 94 libavcodec/aptxdec.c channel->quantize[3].quantized_sample = sign_extend(codeword >> 13, 3); channel 95 libavcodec/aptxdec.c channel->quantize[3].quantized_sample = (channel->quantize[3].quantized_sample & ~1) channel 96 libavcodec/aptxdec.c | aptx_quantized_parity(channel); channel 99 libavcodec/aptxdec.c static void aptxhd_unpack_codeword(Channel *channel, uint32_t codeword) channel 101 libavcodec/aptxdec.c channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 9); channel 102 libavcodec/aptxdec.c channel->quantize[1].quantized_sample = sign_extend(codeword >> 9, 6); channel 103 libavcodec/aptxdec.c channel->quantize[2].quantized_sample = sign_extend(codeword >> 15, 4); channel 104 libavcodec/aptxdec.c channel->quantize[3].quantized_sample = sign_extend(codeword >> 19, 5); channel 105 libavcodec/aptxdec.c channel->quantize[3].quantized_sample = (channel->quantize[3].quantized_sample & ~1) channel 106 libavcodec/aptxdec.c | aptx_quantized_parity(channel); channel 113 libavcodec/aptxdec.c int channel, ret; channel 115 libavcodec/aptxdec.c for (channel = 0; channel < NB_CHANNELS; channel++) { channel 116 libavcodec/aptxdec.c ff_aptx_generate_dither(&ctx->channels[channel]); channel 119 libavcodec/aptxdec.c aptxhd_unpack_codeword(&ctx->channels[channel], channel 120 libavcodec/aptxdec.c AV_RB24(input + 3*channel)); channel 122 libavcodec/aptxdec.c aptx_unpack_codeword(&ctx->channels[channel], channel 123 libavcodec/aptxdec.c AV_RB16(input + 2*channel)); channel 124 libavcodec/aptxdec.c ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd); channel 129 libavcodec/aptxdec.c for (channel = 0; channel < NB_CHANNELS; channel++) channel 130 libavcodec/aptxdec.c aptx_decode_channel(&ctx->channels[channel], samples[channel]); channel 140 libavcodec/aptxdec.c int pos, opos, channel, sample, ret; channel 162 libavcodec/aptxdec.c for (channel = 0; channel < NB_CHANNELS; channel++) channel 164 libavcodec/aptxdec.c AV_WN32A(&frame->data[channel][4*(opos+sample)], channel 165 libavcodec/aptxdec.c samples[channel][sample] * 256); channel 135 libavcodec/aptxenc.c static void aptx_encode_channel(Channel *channel, int32_t samples[4], int hd) channel 139 libavcodec/aptxenc.c aptx_qmf_tree_analysis(&channel->qmf, samples, subband_samples); channel 140 libavcodec/aptxenc.c ff_aptx_generate_dither(channel); channel 142 libavcodec/aptxenc.c int32_t diff = av_clip_intp2(subband_samples[subband] - channel->prediction[subband].predicted_sample, 23); channel 143 libavcodec/aptxenc.c aptx_quantize_difference(&channel->quantize[subband], diff, channel 144 libavcodec/aptxenc.c channel->dither[subband], channel 145 libavcodec/aptxenc.c channel->invert_quantize[subband].quantization_factor, channel 168 libavcodec/aptxenc.c static uint16_t aptx_pack_codeword(Channel *channel) channel 170 libavcodec/aptxenc.c int32_t parity = aptx_quantized_parity(channel); channel 171 libavcodec/aptxenc.c return (((channel->quantize[3].quantized_sample & 0x06) | parity) << 13) channel 172 libavcodec/aptxenc.c | (((channel->quantize[2].quantized_sample & 0x03) ) << 11) channel 173 libavcodec/aptxenc.c | (((channel->quantize[1].quantized_sample & 0x0F) ) << 7) channel 174 libavcodec/aptxenc.c | (((channel->quantize[0].quantized_sample & 0x7F) ) << 0); channel 177 libavcodec/aptxenc.c static uint32_t aptxhd_pack_codeword(Channel *channel) channel 179 libavcodec/aptxenc.c int32_t parity = aptx_quantized_parity(channel); channel 180 libavcodec/aptxenc.c return (((channel->quantize[3].quantized_sample & 0x01E) | parity) << 19) channel 181 libavcodec/aptxenc.c | (((channel->quantize[2].quantized_sample & 0x00F) ) << 15) channel 182 libavcodec/aptxenc.c | (((channel->quantize[1].quantized_sample & 0x03F) ) << 9) channel 183 libavcodec/aptxenc.c | (((channel->quantize[0].quantized_sample & 0x1FF) ) << 0); channel 190 libavcodec/aptxenc.c int channel; channel 191 libavcodec/aptxenc.c for (channel = 0; channel < NB_CHANNELS; channel++) channel 192 libavcodec/aptxenc.c aptx_encode_channel(&ctx->channels[channel], samples[channel], ctx->hd); channel 196 libavcodec/aptxenc.c for (channel = 0; channel < NB_CHANNELS; channel++) { channel 197 libavcodec/aptxenc.c ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd); channel 199 libavcodec/aptxenc.c AV_WB24(output + 3*channel, channel 200 libavcodec/aptxenc.c aptxhd_pack_codeword(&ctx->channels[channel])); channel 202 libavcodec/aptxenc.c AV_WB16(output + 2*channel, channel 203 libavcodec/aptxenc.c aptx_pack_codeword(&ctx->channels[channel])); channel 211 libavcodec/aptxenc.c int pos, ipos, channel, sample, output_size, ret; channel 223 libavcodec/aptxenc.c for (channel = 0; channel < NB_CHANNELS; channel++) channel 225 libavcodec/aptxenc.c samples[channel][sample] = (int32_t)AV_RN32A(&frame->data[channel][4*(ipos+sample)]) >> 8; channel 50 libavcodec/atrac9dec.c ATRAC9ChannelData channel[2]; channel 206 libavcodec/atrac9dec.c b->channel[1].band_ext = get_bits(gb, 2); channel 207 libavcodec/atrac9dec.c b->channel[1].band_ext = ext_band > 2 ? b->channel[1].band_ext : 4; channel 223 libavcodec/atrac9dec.c b->channel[0].band_ext = get_bits(gb, 2); channel 224 libavcodec/atrac9dec.c b->channel[0].band_ext = ext_band > 2 ? b->channel[0].band_ext : 4; channel 228 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; channel 240 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; channel 294 libavcodec/atrac9dec.c channel_idx ? b->channel[0].scalefactors : channel 315 libavcodec/atrac9dec.c const int *baseline = channel_idx ? b->channel[0].scalefactors : channel 471 libavcodec/atrac9dec.c float *src = b->channel[ b->cpe_base_channel].coeffs; channel 472 libavcodec/atrac9dec.c float *dst = b->channel[!b->cpe_base_channel].coeffs; channel 493 libavcodec/atrac9dec.c float *coeffs = b->channel[i].coeffs; channel 497 libavcodec/atrac9dec.c const int scalefactor = b->channel[i].scalefactors[j]; channel 550 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[ch]; channel 643 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[0]; channel 741 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; channel 764 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; channel 817 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; channel 154 libavcodec/audiotoolboxenc.c static av_cold int get_channel_label(int channel) channel 156 libavcodec/audiotoolboxenc.c uint64_t map = 1 << channel; channel 158 libavcodec/audiotoolboxenc.c return channel + 1; channel 160 libavcodec/audiotoolboxenc.c return channel + 29; channel 162 libavcodec/audiotoolboxenc.c return channel - 1; channel 164 libavcodec/audiotoolboxenc.c return channel - 4; channel 166 libavcodec/audiotoolboxenc.c return channel + 1; channel 170 libavcodec/audiotoolboxenc.c return channel + 4; channel 172 libavcodec/audiotoolboxenc.c return channel - 23; channel 141 libavcodec/cfhd.c int i, channel; channel 143 libavcodec/cfhd.c channel = alpha[i]; channel 144 libavcodec/cfhd.c channel -= ALPHA_COMPAND_DC_OFFSET; channel 145 libavcodec/cfhd.c channel <<= 3; channel 146 libavcodec/cfhd.c channel *= ALPHA_COMPAND_GAIN; channel 147 libavcodec/cfhd.c channel >>= 16; channel 148 libavcodec/cfhd.c channel = av_clip_uintp2(channel, 12); channel 149 libavcodec/cfhd.c alpha[i] = channel; channel 467 libavcodec/dcaenc.c int32_t spectrum1, int32_t spectrum2, int channel, channel 470 libavcodec/dcaenc.c static void walk_band_low(DCAEncContext *c, int band, int channel, channel 477 libavcodec/dcaenc.c walk(c, 0, 0, f, 0, -2047, channel, arg); channel 481 libavcodec/dcaenc.c c->band_spectrum[7 - f], c->band_spectrum[f], channel, arg); channel 485 libavcodec/dcaenc.c static void walk_band_high(DCAEncContext *c, int band, int channel, channel 492 libavcodec/dcaenc.c walk(c, 31, 31, 256 - 4 + f, 0, -2047, channel, arg); channel 496 libavcodec/dcaenc.c c->band_spectrum[f], c->band_spectrum[7 - f], channel, arg); channel 502 libavcodec/dcaenc.c int channel, int32_t * arg) channel 701 libavcodec/exr.c EXRChannel *channel; channel 735 libavcodec/exr.c channel = &s->channels[i]; channel 737 libavcodec/exr.c if (channel->pixel_type == EXR_HALF) channel 754 libavcodec/exr.c channel = &s->channels[j]; channel 755 libavcodec/exr.c if (channel->pixel_type == EXR_HALF) channel 805 libavcodec/exr.c EXRChannel *channel = &s->channels[c]; channel 809 libavcodec/exr.c switch (channel->pixel_type) { channel 1358 libavcodec/exr.c EXRChannel *channel; channel 1462 libavcodec/exr.c channel = &s->channels[s->nb_channels - 1]; channel 1463 libavcodec/exr.c channel->pixel_type = current_pixel_type; channel 1464 libavcodec/exr.c channel->xsub = xsub; channel 1465 libavcodec/exr.c channel->ysub = ysub; channel 405 libavcodec/flacdec.c static inline int decode_subframe(FLACContext *s, int channel) channel 407 libavcodec/flacdec.c int32_t *decoded = s->decoded[channel]; channel 412 libavcodec/flacdec.c if (channel == 0) { channel 434 libavcodec/libopusenc.c int sample, channel; channel 436 libavcodec/libopusenc.c for (channel = 0; channel < nb_channels; ++channel) { channel 437 libavcodec/libopusenc.c const size_t src_pos = bytes_per_sample * (nb_channels * sample + channel); channel 438 libavcodec/libopusenc.c const size_t dst_pos = bytes_per_sample * (nb_channels * sample + channel_map[channel]); channel 248 libavcodec/mlpdec.c unsigned int mat, channel; channel 254 libavcodec/mlpdec.c for (channel = s->min_channel; channel <= s->max_channel; channel++) { channel 255 libavcodec/mlpdec.c ChannelParams *cp = &s->channel_params[channel]; channel 257 libavcodec/mlpdec.c int quant_step_size = s->quant_step_size[channel]; channel 274 libavcodec/mlpdec.c m->sample_buffer[pos + s->blockpos][channel] = result; channel 574 libavcodec/mlpdec.c uint64_t channel = thd_channel_layout_extract_channel(s->mask, channel 577 libavcodec/mlpdec.c channel); channel 645 libavcodec/mlpdec.c unsigned int substr, unsigned int channel, channel 649 libavcodec/mlpdec.c FilterParams *fp = &s->channel_params[channel].filter_params[filter]; channel 657 libavcodec/mlpdec.c if (m->filter_changed[channel][filter]++ > 1) { channel 672 libavcodec/mlpdec.c int32_t *fcoeff = s->channel_params[channel].coeff[filter]; channel 928 libavcodec/mlpdec.c unsigned int channel) channel 931 libavcodec/mlpdec.c const int32_t *fircoeff = s->channel_params[channel].coeff[FIR]; channel 935 libavcodec/mlpdec.c FilterParams *fir = &s->channel_params[channel].filter_params[FIR]; channel 936 libavcodec/mlpdec.c FilterParams *iir = &s->channel_params[channel].filter_params[IIR]; channel 938 libavcodec/mlpdec.c int32_t mask = MSB_MASK(s->quant_step_size[channel]); channel 946 libavcodec/mlpdec.c &m->sample_buffer[s->blockpos][channel]); channel 259 libavcodec/mlpenc.c unsigned int channel, mat; channel 267 libavcodec/mlpenc.c for (channel = rh->min_channel; channel <= rh->max_channel; channel++) channel 268 libavcodec/mlpenc.c if (prev->fbits[channel] != mp->fbits[channel]) channel 275 libavcodec/mlpenc.c for (channel = 0; channel < ctx->num_channels; channel++) channel 276 libavcodec/mlpenc.c if (prev->coeff[mat][channel] != mp->coeff[mat][channel]) channel 364 libavcodec/mlpenc.c unsigned int channel, count; channel 366 libavcodec/mlpenc.c for (channel = 0; channel < MAX_CHANNELS; channel++) { channel 368 libavcodec/mlpenc.c dst->fbits[channel] = src->fbits[channel]; channel 369 libavcodec/mlpenc.c dst->shift[channel] = src->shift[channel]; channel 372 libavcodec/mlpenc.c dst->coeff[count][channel] = src->coeff[count][channel]; channel 387 libavcodec/mlpenc.c unsigned int channel; channel 391 libavcodec/mlpenc.c for (channel = 0; channel < ctx->avctx->channels; channel++) { channel 392 libavcodec/mlpenc.c ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel; channel 395 libavcodec/mlpenc.c dp->quant_step_size[channel] = ctx->cur_decoding_params->quant_step_size[channel]; channel 396 libavcodec/mlpenc.c dp->matrix_params.shift[channel] = ctx->cur_decoding_params->matrix_params.shift[channel]; channel 400 libavcodec/mlpenc.c copy_filter_params(cp, &ctx->cur_channel_params[channel], filter); channel 424 libavcodec/mlpenc.c unsigned int channel; channel 426 libavcodec/mlpenc.c for (channel = 0; channel < ctx->avctx->channels; channel++) { channel 427 libavcodec/mlpenc.c ChannelParams *cp = &channel_params[channel]; channel 854 libavcodec/mlpenc.c unsigned int channel; channel 860 libavcodec/mlpenc.c for (channel = 0; channel < ctx->num_channels; channel++) { channel 861 libavcodec/mlpenc.c int32_t coeff = mp->coeff[mat][channel]; channel 878 libavcodec/mlpenc.c unsigned int channel, unsigned int filter) channel 880 libavcodec/mlpenc.c FilterParams *fp = &ctx->cur_channel_params[channel].filter_params[filter]; channel 886 libavcodec/mlpenc.c int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter]; channel 1247 libavcodec/mlpenc.c unsigned int channel; channel 1251 libavcodec/mlpenc.c for (channel = 0; channel <= rh->max_channel; channel++) { channel 1262 libavcodec/mlpenc.c temp_lossless_check_data ^= (sample & 0x00ffffff) << channel; channel 1292 libavcodec/mlpenc.c unsigned int i, channel; channel 1295 libavcodec/mlpenc.c for (channel = 0; channel < ctx->avctx->channels; channel++) channel 1332 libavcodec/mlpenc.c unsigned int channel; channel 1338 libavcodec/mlpenc.c for (channel = 0; channel <= rh->max_channel; channel++) channel 1339 libavcodec/mlpenc.c sample_mask[channel] |= *sample_buffer++; channel 1344 libavcodec/mlpenc.c for (channel = 0; channel <= rh->max_channel; channel++) channel 1345 libavcodec/mlpenc.c dp->quant_step_size[channel] = number_trailing_zeroes(sample_mask[channel]) - mp->shift[channel]; channel 1383 libavcodec/mlpenc.c unsigned int channel, unsigned int filter, channel 1386 libavcodec/mlpenc.c ChannelParams *cp = &ctx->cur_channel_params[channel]; channel 1397 libavcodec/mlpenc.c int32_t *sample_buffer = ctx->sample_buffer + channel; channel 1400 libavcodec/mlpenc.c int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter]; channel 1433 libavcodec/mlpenc.c int channel, filter; channel 1435 libavcodec/mlpenc.c for (channel = rh->min_channel; channel <= rh->max_channel; channel++) { channel 1437 libavcodec/mlpenc.c set_filter_params(ctx, channel, filter, 0); channel 1486 libavcodec/mlpenc.c unsigned int channel; channel 1489 libavcodec/mlpenc.c for (channel = 0; channel < ctx->num_channels; channel++) { channel 1490 libavcodec/mlpenc.c int32_t coeff = mp->coeff[mat][channel]; channel 1505 libavcodec/mlpenc.c unsigned int channel; channel 1544 libavcodec/mlpenc.c for (channel = 0; channel < ctx->num_channels; channel++) channel 1545 libavcodec/mlpenc.c mp->shift[channel] = shift; channel 1561 libavcodec/mlpenc.c unsigned int channel, int16_t offset, channel 1590 libavcodec/mlpenc.c unsigned int channel, channel 1630 libavcodec/mlpenc.c unsigned int channel, int codebook, channel 1636 libavcodec/mlpenc.c int32_t *sample_buffer = ctx->sample_buffer + channel; channel 1663 libavcodec/mlpenc.c int32_t sample = *sample_buffer >> dp->quant_step_size[channel]; channel 1694 libavcodec/mlpenc.c unsigned int channel, int codebook, channel 1708 libavcodec/mlpenc.c codebook_bits_offset(ctx, channel, codebook, channel 1737 libavcodec/mlpenc.c unsigned int channel; channel 1739 libavcodec/mlpenc.c for (channel = 0; channel <= rh->max_channel; channel++) { channel 1740 libavcodec/mlpenc.c ChannelParams *cp = &ctx->cur_channel_params[channel]; channel 1741 libavcodec/mlpenc.c int32_t *sample_buffer = ctx->sample_buffer + channel; channel 1750 libavcodec/mlpenc.c int32_t sample = *sample_buffer >> dp->quant_step_size[channel]; channel 1763 libavcodec/mlpenc.c no_codebook_bits(ctx, channel, min, max, &ctx->cur_best_offset[channel][0]); channel 1766 libavcodec/mlpenc.c no_codebook_bits_offset(ctx, channel, offset, min, max, &ctx->cur_best_offset[channel][0]); channel 1773 libavcodec/mlpenc.c codebook_bits_offset(ctx, channel, i - 1, channel 1780 libavcodec/mlpenc.c codebook_bits(ctx, channel, i - 1, temp_bo.min - 1, channel 1782 libavcodec/mlpenc.c codebook_bits(ctx, channel, i - 1, offset_max + 1, channel 1786 libavcodec/mlpenc.c ctx->cur_best_offset[channel][i] = temp_bo; channel 1805 libavcodec/mlpenc.c static int apply_filter(MLPEncodeContext *ctx, unsigned int channel) channel 1807 libavcodec/mlpenc.c FilterParams *fp[NUM_FILTERS] = { &ctx->cur_channel_params[channel].filter_params[FIR], channel 1808 libavcodec/mlpenc.c &ctx->cur_channel_params[channel].filter_params[IIR], }; channel 1810 libavcodec/mlpenc.c int32_t mask = MSB_MASK(ctx->cur_decoding_params->quant_step_size[channel]); channel 1811 libavcodec/mlpenc.c int32_t *sample_buffer = ctx->sample_buffer + channel; channel 1841 libavcodec/mlpenc.c int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter]; channel 1861 libavcodec/mlpenc.c sample_buffer = ctx->sample_buffer + channel; channel 1879 libavcodec/mlpenc.c int channel; channel 1881 libavcodec/mlpenc.c for (channel = rh->min_channel; channel <= rh->max_channel; channel++) { channel 1882 libavcodec/mlpenc.c if (apply_filter(ctx, channel) < 0) { channel 1885 libavcodec/mlpenc.c set_filter_params(ctx, channel, FIR, 1); channel 1886 libavcodec/mlpenc.c set_filter_params(ctx, channel, IIR, 1); channel 1887 libavcodec/mlpenc.c apply_filter(ctx, channel); channel 1977 libavcodec/mlpenc.c static int best_codebook_path_cost(MLPEncodeContext *ctx, unsigned int channel, channel 1987 libavcodec/mlpenc.c prev_bo = ctx->best_offset[i][channel]; channel 1991 libavcodec/mlpenc.c cur_bo = ctx->best_offset[i][channel]; channel 2006 libavcodec/mlpenc.c unsigned int channel; channel 2008 libavcodec/mlpenc.c for (channel = rh->min_channel; channel <= rh->max_channel; channel++) { channel 2021 libavcodec/mlpenc.c cur_bo = ctx->best_offset[index][channel]; channel 2043 libavcodec/mlpenc.c temp_bitcount = best_codebook_path_cost(ctx, channel, src_path, codebook); channel 2069 libavcodec/mlpenc.c ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel; channel 2072 libavcodec/mlpenc.c cur_bo = &ctx->best_offset[index][channel][best_codebook]; channel 2075 libavcodec/mlpenc.c cp->huff_lsbs = cur_bo->lsb_bits + dp->quant_step_size[channel]; channel 2101 libavcodec/mlpenc.c unsigned int channel; channel 2104 libavcodec/mlpenc.c for (channel = 0; channel < ctx->avctx->channels; channel++) { channel 2105 libavcodec/mlpenc.c uint8_t huff_lsbs = (seq_cp + index*(ctx->avctx->channels) + channel)->huff_lsbs; channel 2108 libavcodec/mlpenc.c memcpy(&ctx->major_channel_params[index][channel], channel 2109 libavcodec/mlpenc.c (seq_cp + index*(ctx->avctx->channels) + channel), channel 733 libavcodec/on2avc.c static int on2avc_reconstruct_channel(On2AVCContext *c, int channel, channel 737 libavcodec/on2avc.c float *out = (float*)dst->extended_data[channel] + offset; channel 738 libavcodec/on2avc.c float *in = c->coeffs[channel]; channel 739 libavcodec/on2avc.c float *saved = c->delay[channel]; channel 509 libavcodec/opus_silk.c int frame_num, int channel, int coded_channels, int active, int active1) channel 526 libavcodec/opus_silk.c SilkFrame * const frame = s->frame + channel; channel 531 libavcodec/opus_silk.c if (coded_channels == 2 && channel == 0) { channel 669 libavcodec/opus_silk.c if (s->output_channels == channel) channel 133 libavcodec/pcm-bluray.c int num_source_channels, channel, retval; channel 195 libavcodec/pcm-bluray.c channel = avctx->channels; channel 198 libavcodec/pcm-bluray.c } while (--channel); channel 204 libavcodec/pcm-bluray.c channel = avctx->channels; channel 207 libavcodec/pcm-bluray.c } while (--channel); channel 73 libavcodec/psymodel.c FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel) channel 77 libavcodec/psymodel.c while (ch <= channel) channel 129 libavcodec/psymodel.h FFPsyWindowInfo (*window)(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type); channel 139 libavcodec/psymodel.h void (*analyze)(FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi); channel 169 libavcodec/psymodel.h FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel); channel 115 libavcodec/qdm2.c uint8_t channel; channel 1243 libavcodec/qdm2.c int offset, int duration, int channel, channel 1251 libavcodec/qdm2.c q->fft_coefs[q->fft_coefs_index].channel = channel; channel 1261 libavcodec/qdm2.c int channel, stereo, phase, exp; channel 1312 libavcodec/qdm2.c channel = get_bits1(gb); channel 1315 libavcodec/qdm2.c channel = 0; channel 1341 libavcodec/qdm2.c channel, exp, phase); channel 1344 libavcodec/qdm2.c 1 - channel, channel 1490 libavcodec/qdm2.c ch = (q->channels == 1) ? 0 : q->fft_coefs[i].channel; channel 1519 libavcodec/qdm2.c ch = (q->channels == 1) ? 0 : q->fft_coefs[j].channel; channel 1542 libavcodec/qdm2.c static void qdm2_calculate_fft(QDM2Context *q, int channel, int sub_packet) channel 1545 libavcodec/qdm2.c float *out = q->output_buffer + channel; channel 1547 libavcodec/qdm2.c q->fft.complex[channel][0].re *= 2.0f; channel 1548 libavcodec/qdm2.c q->fft.complex[channel][0].im = 0.0f; channel 1549 libavcodec/qdm2.c q->rdft_ctx.rdft_calc(&q->rdft_ctx, (FFTSample *)q->fft.complex[channel]); channel 1552 libavcodec/qdm2.c out[0] += q->fft.complex[channel][i].re * gain; channel 1553 libavcodec/qdm2.c out[q->channels] += q->fft.complex[channel][i].im * gain; channel 350 libavcodec/shorten.c static int decode_subframe_lpc(ShortenContext *s, int command, int channel, channel 385 libavcodec/shorten.c s->decoded[channel][i] -= (unsigned)coffset; channel 392 libavcodec/shorten.c sum += coeffs[j] * (unsigned)s->decoded[channel][i - j - 1]; channel 393 libavcodec/shorten.c s->decoded[channel][i] = get_sr_golomb_shorten(&s->gb, residual_size) + channel 400 libavcodec/shorten.c s->decoded[channel][i] += (unsigned)coffset; channel 668 libavcodec/shorten.c int channel = s->cur_chan; channel 686 libavcodec/shorten.c coffset = s->offset[channel][0]; channel 690 libavcodec/shorten.c sum += (unsigned)s->offset[channel][i]; channel 699 libavcodec/shorten.c s->decoded[channel][i] = 0; channel 701 libavcodec/shorten.c if ((ret = decode_subframe_lpc(s, cmd, channel, channel 710 libavcodec/shorten.c sum += s->decoded[channel][i]; channel 713 libavcodec/shorten.c s->offset[channel][i - 1] = s->offset[channel][i]; channel 716 libavcodec/shorten.c s->offset[channel][s->nmean - 1] = sum / s->blocksize; channel 718 libavcodec/shorten.c s->offset[channel][s->nmean - 1] = s->bitshift == 32 ? 0 : (sum / s->blocksize) * (1LL << s->bitshift); channel 723 libavcodec/shorten.c s->decoded[channel][i] = s->decoded[channel][i + s->blocksize]; channel 727 libavcodec/shorten.c fix_bitshift(s, s->decoded[channel]); channel 1002 libavcodec/vorbisenc.c int channel; channel 1008 libavcodec/vorbisenc.c for (channel = 0; channel < venc->channels; channel++) { channel 1009 libavcodec/vorbisenc.c float *offset = venc->samples + channel * window_len * 2; channel 1019 libavcodec/vorbisenc.c venc->mdct[1].mdct_calc(&venc->mdct[1], venc->coeffs + channel * window_len, channel 1020 libavcodec/vorbisenc.c venc->samples + channel * window_len * 2); channel 174 libavcodec/wavpack.c int channel, int *last) channel 178 libavcodec/wavpack.c WvChannel *c = &ctx->ch[channel]; channel 240 libavcodec/wavpack.c if (ctx->hybrid && !channel) { channel 461 libavcodec/wavpack.c for (int channel = 0; channel < stereo + 1; channel++) { channel 462 libavcodec/wavpack.c DSDfilters *sp = filters + channel; channel 119 libavcodec/wmalosslessdec.c WmallChannelCtx channel[WMALL_MAX_CHANNELS]; ///< per channel data channel 247 libavcodec/wmalosslessdec.c s->channel[i].prev_block_len = s->samples_per_frame; channel 344 libavcodec/wmalosslessdec.c s->channel[c].num_subframes = 0; channel 380 libavcodec/wmalosslessdec.c WmallChannelCtx *chan = &s->channel[c]; channel 409 libavcodec/wmalosslessdec.c for (i = 0; i < s->channel[c].num_subframes; i++) { channel 410 libavcodec/wmalosslessdec.c s->channel[c].subframe_offsets[i] = offset; channel 411 libavcodec/wmalosslessdec.c offset += s->channel[c].subframe_len[i]; channel 517 libavcodec/wmalosslessdec.c s->channel[ch].transient_counter = channel 518 libavcodec/wmalosslessdec.c FFMAX(s->channel[ch].transient_counter, s->samples_per_frame / 2); channel 519 libavcodec/wmalosslessdec.c } else if (s->channel[ch].transient_counter) channel 615 libavcodec/wmalosslessdec.c s->channel[ich].transient_counter = s->samples_per_frame; channel 848 libavcodec/wmalosslessdec.c if (offset > s->channel[i].decoded_samples) { channel 849 libavcodec/wmalosslessdec.c offset = s->channel[i].decoded_samples; channel 851 libavcodec/wmalosslessdec.c s->channel[i].subframe_len[s->channel[i].cur_subframe]; channel 858 libavcodec/wmalosslessdec.c const int cur_subframe = s->channel[i].cur_subframe; channel 860 libavcodec/wmalosslessdec.c total_samples -= s->channel[i].decoded_samples; channel 863 libavcodec/wmalosslessdec.c if (offset == s->channel[i].decoded_samples && channel 864 libavcodec/wmalosslessdec.c subframe_len == s->channel[i].subframe_len[cur_subframe]) { channel 865 libavcodec/wmalosslessdec.c total_samples -= s->channel[i].subframe_len[cur_subframe]; channel 866 libavcodec/wmalosslessdec.c s->channel[i].decoded_samples += channel 867 libavcodec/wmalosslessdec.c s->channel[i].subframe_len[cur_subframe]; channel 990 libavcodec/wmalosslessdec.c int subframe_len = s->channel[c].subframe_len[s->channel[c].cur_subframe]; channel 1004 libavcodec/wmalosslessdec.c if (s->channel[c].cur_subframe >= s->channel[c].num_subframes) { channel 1008 libavcodec/wmalosslessdec.c ++s->channel[c].cur_subframe; channel 1076 libavcodec/wmalosslessdec.c s->channel[i].decoded_samples = 0; channel 1077 libavcodec/wmalosslessdec.c s->channel[i].cur_subframe = 0; channel 1082 libavcodec/wmalosslessdec.c int decoded_samples = s->channel[0].decoded_samples; channel 238 libavcodec/wmaprodec.c WMAProChannelCtx channel[WMAPRO_MAX_CHANNELS]; ///< per channel data channel 448 libavcodec/wmaprodec.c s->channel[i].prev_block_len = s->samples_per_frame; channel 662 libavcodec/wmaprodec.c s->channel[c].num_subframes = 0; channel 690 libavcodec/wmaprodec.c WMAProChannelCtx* chan = &s->channel[c]; channel 719 libavcodec/wmaprodec.c for (i = 0; i < s->channel[c].num_subframes; i++) { channel 722 libavcodec/wmaprodec.c s->channel[c].subframe_len[i]); channel 723 libavcodec/wmaprodec.c s->channel[c].subframe_offset[i] = offset; channel 724 libavcodec/wmaprodec.c offset += s->channel[c].subframe_len[i]; channel 816 libavcodec/wmaprodec.c if (!s->channel[channel_idx].grouped channel 819 libavcodec/wmaprodec.c s->channel[channel_idx].grouped = 1; channel 820 libavcodec/wmaprodec.c *channel_data++ = s->channel[channel_idx].coeffs; channel 827 libavcodec/wmaprodec.c if (!s->channel[channel_idx].grouped) channel 828 libavcodec/wmaprodec.c *channel_data++ = s->channel[channel_idx].coeffs; channel 829 libavcodec/wmaprodec.c s->channel[channel_idx].grouped = 1; channel 913 libavcodec/wmaprodec.c WMAProChannelCtx* ci = &s->channel[c]; channel 1015 libavcodec/wmaprodec.c s->channel[c].scale_factors = s->channel[c].saved_scale_factors[!s->channel[c].scale_factor_idx]; channel 1016 libavcodec/wmaprodec.c sf_end = s->channel[c].scale_factors + s->num_bands; channel 1023 libavcodec/wmaprodec.c if (s->channel[c].reuse_sf) { channel 1024 libavcodec/wmaprodec.c const int8_t* sf_offsets = s->sf_offsets[s->table_idx][s->channel[c].table_idx]; channel 1027 libavcodec/wmaprodec.c s->channel[c].scale_factors[b] = channel 1028 libavcodec/wmaprodec.c s->channel[c].saved_scale_factors[s->channel[c].scale_factor_idx][*sf_offsets++]; channel 1031 libavcodec/wmaprodec.c if (!s->channel[c].cur_subframe || get_bits1(&s->gb)) { channel 1033 libavcodec/wmaprodec.c if (!s->channel[c].reuse_sf) { channel 1036 libavcodec/wmaprodec.c s->channel[c].scale_factor_step = get_bits(&s->gb, 2) + 1; channel 1037 libavcodec/wmaprodec.c val = 45 / s->channel[c].scale_factor_step; channel 1038 libavcodec/wmaprodec.c for (sf = s->channel[c].scale_factors; sf < sf_end; sf++) { channel 1072 libavcodec/wmaprodec.c s->channel[c].scale_factors[i] += (val ^ sign) - sign; channel 1076 libavcodec/wmaprodec.c s->channel[c].scale_factor_idx = !s->channel[c].scale_factor_idx; channel 1077 libavcodec/wmaprodec.c s->channel[c].table_idx = s->table_idx; channel 1078 libavcodec/wmaprodec.c s->channel[c].reuse_sf = 1; channel 1082 libavcodec/wmaprodec.c s->channel[c].max_scale_factor = s->channel[c].scale_factors[0]; channel 1083 libavcodec/wmaprodec.c for (sf = s->channel[c].scale_factors + 1; sf < sf_end; sf++) { channel 1084 libavcodec/wmaprodec.c s->channel[c].max_scale_factor = channel 1085 libavcodec/wmaprodec.c FFMAX(s->channel[c].max_scale_factor, *sf); channel 1157 libavcodec/wmaprodec.c int winlen = s->channel[c].prev_block_len; channel 1158 libavcodec/wmaprodec.c float* start = s->channel[c].coeffs - (winlen >> 1); channel 1172 libavcodec/wmaprodec.c s->channel[c].prev_block_len = s->subframe_len; channel 1197 libavcodec/wmaprodec.c s->channel[i].grouped = 0; channel 1198 libavcodec/wmaprodec.c if (offset > s->channel[i].decoded_samples) { channel 1199 libavcodec/wmaprodec.c offset = s->channel[i].decoded_samples; channel 1201 libavcodec/wmaprodec.c s->channel[i].subframe_len[s->channel[i].cur_subframe]; channel 1211 libavcodec/wmaprodec.c const int cur_subframe = s->channel[i].cur_subframe; channel 1213 libavcodec/wmaprodec.c total_samples -= s->channel[i].decoded_samples; channel 1216 libavcodec/wmaprodec.c if (offset == s->channel[i].decoded_samples && channel 1217 libavcodec/wmaprodec.c subframe_len == s->channel[i].subframe_len[cur_subframe]) { channel 1218 libavcodec/wmaprodec.c total_samples -= s->channel[i].subframe_len[cur_subframe]; channel 1219 libavcodec/wmaprodec.c s->channel[i].decoded_samples += channel 1220 libavcodec/wmaprodec.c s->channel[i].subframe_len[cur_subframe]; channel 1247 libavcodec/wmaprodec.c s->channel[c].coeffs = &s->channel[c].out[offset]; channel 1284 libavcodec/wmaprodec.c if ((s->channel[c].transmit_coefs = get_bits1(&s->gb))) channel 1303 libavcodec/wmaprodec.c av_assert0(num_vec_coeffs + offset <= FF_ARRAY_ELEMS(s->channel[c].out)); channel 1304 libavcodec/wmaprodec.c s->channel[c].num_vec_coeffs = num_vec_coeffs; channel 1309 libavcodec/wmaprodec.c s->channel[c].num_vec_coeffs = s->subframe_len; channel 1331 libavcodec/wmaprodec.c s->channel[s->channel_indexes_for_cur_subframe[0]].quant_step = quant_step; channel 1336 libavcodec/wmaprodec.c s->channel[c].quant_step = quant_step; channel 1339 libavcodec/wmaprodec.c s->channel[c].quant_step += get_bits(&s->gb, modifier_len) + 1; channel 1341 libavcodec/wmaprodec.c ++s->channel[c].quant_step; channel 1357 libavcodec/wmaprodec.c if (s->channel[c].transmit_coefs && channel 1361 libavcodec/wmaprodec.c memset(s->channel[c].coeffs, 0, channel 1362 libavcodec/wmaprodec.c sizeof(*s->channel[c].coeffs) * subframe_len); channel 1374 libavcodec/wmaprodec.c const int* sf = s->channel[c].scale_factors; channel 1384 libavcodec/wmaprodec.c const int exp = s->channel[c].quant_step - channel 1385 libavcodec/wmaprodec.c (s->channel[c].max_scale_factor - *sf++) * channel 1386 libavcodec/wmaprodec.c s->channel[c].scale_factor_step; channel 1390 libavcodec/wmaprodec.c s->channel[c].coeffs + start, channel 1395 libavcodec/wmaprodec.c mdct->imdct_half(mdct, s->channel[c].coeffs, s->tmp); channel 1405 libavcodec/wmaprodec.c if (s->channel[c].cur_subframe >= s->channel[c].num_subframes) { channel 1409 libavcodec/wmaprodec.c ++s->channel[c].cur_subframe; channel 1479 libavcodec/wmaprodec.c s->channel[i].decoded_samples = 0; channel 1480 libavcodec/wmaprodec.c s->channel[i].cur_subframe = 0; channel 1481 libavcodec/wmaprodec.c s->channel[i].reuse_sf = 0; channel 1494 libavcodec/wmaprodec.c memcpy(frame->extended_data[i], s->channel[i].out, channel 1495 libavcodec/wmaprodec.c s->samples_per_frame * sizeof(*s->channel[i].out)); channel 1499 libavcodec/wmaprodec.c memcpy(&s->channel[i].out[0], channel 1500 libavcodec/wmaprodec.c &s->channel[i].out[s->samples_per_frame], channel 1501 libavcodec/wmaprodec.c s->samples_per_frame * sizeof(*s->channel[i].out) >> 1); channel 1626 libavcodec/wmaprodec.c s->samples_per_frame * sizeof(*s->channel[i].out)); channel 1628 libavcodec/wmaprodec.c memcpy(frame->extended_data[i], s->channel[i].out, channel 1629 libavcodec/wmaprodec.c s->samples_per_frame * sizeof(*s->channel[i].out) >> 1); channel 1965 libavcodec/wmaprodec.c memset(s->channel[i].out, 0, s->samples_per_frame * channel 1966 libavcodec/wmaprodec.c sizeof(*s->channel[i].out)); channel 76 libavdevice/iec61883.c int channel; ///< returned by libiec61883 channel 257 libavdevice/iec61883.c dv->channel = -1; channel 352 libavdevice/iec61883.c dv->channel = iec61883_cmp_connect(dv->raw1394, dv->node, &dv->output_port, channel 356 libavdevice/iec61883.c if (dv->channel < 0) channel 357 libavdevice/iec61883.c dv->channel = 63; channel 398 libavdevice/iec61883.c iec61883_mpeg2_recv_start(dv->iec61883_mpeg2, dv->channel); channel 400 libavdevice/iec61883.c iec61883_dv_fb_start(dv->iec61883_dv, dv->channel); channel 477 libavdevice/iec61883.c dv->input_port, dv->channel, dv->bandwidth); channel 88 libavdevice/v4l2.c int channel; channel 851 libavdevice/v4l2.c if (s->channel != -1) { channel 853 libavdevice/v4l2.c av_log(ctx, AV_LOG_DEBUG, "Selecting input_channel: %d\n", s->channel); channel 854 libavdevice/v4l2.c if (v4l2_ioctl(s->fd, VIDIOC_S_INPUT, &s->channel) < 0) { channel 861 libavdevice/v4l2.c if (v4l2_ioctl(s->fd, VIDIOC_G_INPUT, &s->channel) < 0) { channel 869 libavdevice/v4l2.c input.index = s->channel; channel 877 libavdevice/v4l2.c s->channel, input.name, (uint64_t)input.std); channel 1104 libavdevice/v4l2.c { "channel", "set TV channel, used only by frame grabber", OFFSET(channel), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, INT_MAX, DEC }, channel 292 libavfilter/af_afir.c int channel, i, x; channel 302 libavfilter/af_afir.c channel = av_clip(s->ir_channel, 0, s->ir[s->selir]->channels - 1); channel 304 libavfilter/af_afir.c const float *src = (const float *)s->ir[s->selir]->extended_data[channel]; channel 819 libavfilter/af_aiir.c static void get_response(int channel, int format, double w, channel 50 libavfilter/af_anequalizer.c int channel; channel 129 libavfilter/af_anequalizer.c if (s->filters[n].channel != ch || channel 611 libavfilter/af_anequalizer.c if (sscanf(arg, "c%d f=%lf w=%lf g=%lf t=%d", &s->filters[s->nb_filters].channel, channel 616 libavfilter/af_anequalizer.c sscanf(arg, "c%d f=%lf w=%lf g=%lf", &s->filters[s->nb_filters].channel, channel 628 libavfilter/af_anequalizer.c if (s->filters[s->nb_filters].channel < 0 || channel 629 libavfilter/af_anequalizer.c s->filters[s->nb_filters].channel >= inlink->channels) channel 726 libavfilter/af_anequalizer.c bptr = (double *)buf->extended_data[f->channel]; channel 82 libavfilter/af_channelsplit.c uint64_t channel = av_channel_layout_extract_channel(channel_layout, i); channel 86 libavfilter/af_channelsplit.c pad.name = av_get_channel_name(channel); channel 91 libavfilter/af_channelsplit.c if ((ret = av_get_channel_layout_channel_index(s->channel_layout, channel)) < 0) { channel 93 libavfilter/af_channelsplit.c av_get_channel_name(channel), s->channel_layout_str); channel 125 libavfilter/af_channelsplit.c uint64_t channel = av_channel_layout_extract_channel(s->channel_layout, s->map[i]); channel 127 libavfilter/af_channelsplit.c if ((ret = ff_add_channel_layout(&out_layouts, channel)) < 0 || channel 391 libavfilter/af_dynaudnorm.c static double find_peak_magnitude(AVFrame *frame, int channel) channel 396 libavfilter/af_dynaudnorm.c if (channel == -1) { channel 404 libavfilter/af_dynaudnorm.c double *data_ptr = (double *)frame->extended_data[channel]; channel 413 libavfilter/af_dynaudnorm.c static double compute_frame_rms(AVFrame *frame, int channel) channel 418 libavfilter/af_dynaudnorm.c if (channel == -1) { channel 429 libavfilter/af_dynaudnorm.c const double *data_ptr = (double *)frame->extended_data[channel]; channel 441 libavfilter/af_dynaudnorm.c int channel) channel 443 libavfilter/af_dynaudnorm.c const double peak_magnitude = find_peak_magnitude(frame, channel); channel 445 libavfilter/af_dynaudnorm.c const double rms_gain = s->target_rms > DBL_EPSILON ? (s->target_rms / compute_frame_rms(frame, channel)) : DBL_MAX; channel 482 libavfilter/af_dynaudnorm.c static void update_gain_history(DynamicAudioNormalizerContext *s, int channel, channel 485 libavfilter/af_dynaudnorm.c if (cqueue_empty(s->gain_history_original[channel])) { channel 489 libavfilter/af_dynaudnorm.c s->prev_amplification_factor[channel] = initial_value; channel 491 libavfilter/af_dynaudnorm.c while (cqueue_size(s->gain_history_original[channel]) < pre_fill_size) { channel 492 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->gain_history_original[channel], initial_value); channel 493 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->threshold_history[channel], gain.threshold); channel 497 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->gain_history_original[channel], gain.max_gain); channel 499 libavfilter/af_dynaudnorm.c while (cqueue_size(s->gain_history_original[channel]) >= s->filter_size) { channel 502 libavfilter/af_dynaudnorm.c if (cqueue_empty(s->gain_history_minimum[channel])) { channel 504 libavfilter/af_dynaudnorm.c double initial_value = s->alt_boundary_mode ? cqueue_peek(s->gain_history_original[channel], 0) : 1.0; channel 507 libavfilter/af_dynaudnorm.c while (cqueue_size(s->gain_history_minimum[channel]) < pre_fill_size) { channel 509 libavfilter/af_dynaudnorm.c initial_value = FFMIN(initial_value, cqueue_peek(s->gain_history_original[channel], input)); channel 510 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->gain_history_minimum[channel], initial_value); channel 514 libavfilter/af_dynaudnorm.c minimum = minimum_filter(s->gain_history_original[channel]); channel 516 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->gain_history_minimum[channel], minimum); channel 518 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->threshold_history[channel], gain.threshold); channel 520 libavfilter/af_dynaudnorm.c cqueue_pop(s->gain_history_original[channel]); channel 523 libavfilter/af_dynaudnorm.c while (cqueue_size(s->gain_history_minimum[channel]) >= s->filter_size) { channel 526 libavfilter/af_dynaudnorm.c smoothed = gaussian_filter(s, s->gain_history_minimum[channel], s->threshold_history[channel]); channel 527 libavfilter/af_dynaudnorm.c limit = cqueue_peek(s->gain_history_original[channel], 0); channel 530 libavfilter/af_dynaudnorm.c cqueue_enqueue(s->gain_history_smoothed[channel], smoothed); channel 532 libavfilter/af_dynaudnorm.c cqueue_pop(s->gain_history_minimum[channel]); channel 533 libavfilter/af_dynaudnorm.c cqueue_pop(s->threshold_history[channel]); channel 589 libavfilter/af_dynaudnorm.c AVFrame *frame, int channel) channel 594 libavfilter/af_dynaudnorm.c if (channel == -1) { channel 604 libavfilter/af_dynaudnorm.c const double *data_ptr = (double *)frame->extended_data[channel]; channel 68 libavfilter/af_silencedetect.c static void set_meta(AVFrame *insamples, int channel, const char *key, char *value) channel 72 libavfilter/af_silencedetect.c if (channel) channel 73 libavfilter/af_silencedetect.c snprintf(key2, sizeof(key2), "lavfi.%s.%d", key, channel); channel 82 libavfilter/af_silencedetect.c int channel = current_sample % s->independent_channels; channel 84 libavfilter/af_silencedetect.c if (s->start[channel] == INT64_MIN) { channel 85 libavfilter/af_silencedetect.c s->nb_null_samples[channel]++; channel 86 libavfilter/af_silencedetect.c if (s->nb_null_samples[channel] >= nb_samples_notify) { channel 87 libavfilter/af_silencedetect.c s->start[channel] = insamples->pts + av_rescale_q(current_sample / s->channels + 1 - nb_samples_notify * s->independent_channels / s->channels, channel 89 libavfilter/af_silencedetect.c set_meta(insamples, s->mono ? channel + 1 : 0, "silence_start", channel 90 libavfilter/af_silencedetect.c av_ts2timestr(s->start[channel], &time_base)); channel 92 libavfilter/af_silencedetect.c av_log(s, AV_LOG_INFO, "channel: %d | ", channel); channel 94 libavfilter/af_silencedetect.c av_ts2timestr(s->start[channel], &time_base)); channel 98 libavfilter/af_silencedetect.c if (s->start[channel] > INT64_MIN) { channel 102 libavfilter/af_silencedetect.c int64_t duration_ts = end_pts - s->start[channel]; channel 104 libavfilter/af_silencedetect.c set_meta(insamples, s->mono ? channel + 1 : 0, "silence_end", channel 106 libavfilter/af_silencedetect.c set_meta(insamples, s->mono ? channel + 1 : 0, "silence_duration", channel 110 libavfilter/af_silencedetect.c av_log(s, AV_LOG_INFO, "channel: %d | ", channel); channel 115 libavfilter/af_silencedetect.c s->nb_null_samples[channel] = 0; channel 116 libavfilter/af_silencedetect.c s->start[channel] = INT64_MIN; channel 849 libavfilter/avf_showspectrum.c int channel = (multi) ? s->nb_display_channels - ch - 1 : chn; channel 852 libavfilter/avf_showspectrum.c color_range(s, channel, &yf, &uf, &vf); channel 291 libavfilter/avf_showvolume.c static inline void calc_persistent_max(ShowVolumeContext *s, float max, int channel) channel 294 libavfilter/avf_showvolume.c if ((max >= s->max_persistent[channel]) || (s->nb_frames_max_display[channel] >= s->persistent_max_frames)) { /* update max value for display */ channel 295 libavfilter/avf_showvolume.c s->max_persistent[channel] = max; channel 296 libavfilter/avf_showvolume.c s->nb_frames_max_display[channel] = 0; channel 298 libavfilter/avf_showvolume.c s->nb_frames_max_display[channel] += 1; /* incremente display frame count */ channel 302 libavfilter/avf_showvolume.c static inline void draw_max_line(ShowVolumeContext *s, int max_draw, int channel) channel 306 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + max_draw * s->out->linesize[0] + channel * (s->b + s->h) * 4; channel 312 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + (channel * s->h + channel * s->b + k) * s->out->linesize[0]; channel 99 libavfilter/dnn/dnn_backend_native_layer_conv2d.c int channel = operands[input_operand_index].dims[3]; channel 123 libavfilter/dnn/dnn_backend_native_layer_conv2d.c av_assert0(channel == conv_params->input_num); channel 91 libavfilter/dnn/dnn_backend_native_layer_pad.c int channel = operands[input_operand_index].dims[3]; channel 97 libavfilter/dnn/dnn_backend_native_layer_pad.c int new_channel = channel + params->paddings[3][0] + params->paddings[3][1]; channel 99 libavfilter/dnn/dnn_backend_native_layer_pad.c int c_stride = channel; channel 130 libavfilter/dnn/dnn_backend_native_layer_pad.c memcpy(dst, src, channel * sizeof(float)); channel 249 libavfilter/dnn/dnn_backend_native_layer_pad.c int given = channel + before_paddings + c; channel 254 libavfilter/dnn/dnn_backend_native_layer_pad.c int buddy = after_get_buddy(given, channel + before_paddings, params->mode); channel 31 libavformat/dhav.c unsigned channel; channel 194 libavformat/dhav.c dhav->channel = avio_r8(s->pb); channel 89 libavformat/dvenc.c static int dv_write_pack(enum dv_pack_type pack_id, DVMuxContext *c, uint8_t* buf, int channel, int seq) channel 104 libavformat/dvenc.c if (c->ast[channel]->codecpar->sample_rate == 44100) { channel 106 libavformat/dvenc.c } else if (c->ast[channel]->codecpar->sample_rate == 32000) channel 110 libavformat/dvenc.c (dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codecpar->sample_rate) - channel 181 libavformat/dvenc.c static void dv_inject_audio(DVMuxContext *c, int channel, uint8_t* frame_ptr) channel 184 libavformat/dvenc.c size = 4 * dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codecpar->sample_rate); channel 185 libavformat/dvenc.c frame_ptr += channel * c->sys->difseg_size * 150 * 80; channel 189 libavformat/dvenc.c dv_write_pack(dv_aaux_packs_dist[i][j], c, &frame_ptr[3], channel, i); channel 195 libavformat/dvenc.c frame_ptr[d] = *av_fifo_peek2(c->audio_data[channel], of*2+1); // FIXME: maybe we have to admit channel 196 libavformat/dvenc.c frame_ptr[d+1] = *av_fifo_peek2(c->audio_data[channel], of*2); // that DV is a big-endian PCM channel 163 libavformat/psxstr.c int channel, ret; channel 172 libavformat/psxstr.c channel = sector[0x11]; channel 173 libavformat/psxstr.c if (channel >= 32) channel 193 libavformat/psxstr.c if(str->channels[channel].video_stream_index < 0){ channel 200 libavformat/psxstr.c str->channels[channel].video_stream_index = st->index; channel 210 libavformat/psxstr.c pkt = &str->channels[channel].tmp_pkt; channel 223 libavformat/psxstr.c str->channels[channel].video_stream_index; channel 243 libavformat/psxstr.c if(str->channels[channel].audio_stream_index < 0){ channel 250 libavformat/psxstr.c str->channels[channel].audio_stream_index = st->index; channel 276 libavformat/psxstr.c str->channels[channel].audio_stream_index; channel 139 libavformat/rtmppkt.c int channel) channel 143 libavformat/rtmppkt.c if (channel < *nb_prev_pkt) channel 146 libavformat/rtmppkt.c nb_alloc = channel + 16; channel 170 libavformat/rtmppkt.h int channel); channel 2974 libavformat/rtmpproto.c int channel = RTMP_AUDIO_CHANNEL; channel 2991 libavformat/rtmpproto.c channel = RTMP_VIDEO_CHANNEL; channel 2997 libavformat/rtmpproto.c channel)) < 0) channel 3002 libavformat/rtmpproto.c rt->prev_pkt[1][channel].channel_id = 0; channel 3006 libavformat/rtmpproto.c if ((ret = ff_rtmp_packet_create(&rt->out_pkt, channel, channel 234 libavutil/channel_layout.c uint64_t channel) channel 236 libavutil/channel_layout.c if (!(channel_layout & channel) || channel 237 libavutil/channel_layout.c av_get_channel_layout_nb_channels(channel) != 1) channel 239 libavutil/channel_layout.c channel_layout &= channel - 1; channel 243 libavutil/channel_layout.c const char *av_get_channel_name(uint64_t channel) channel 246 libavutil/channel_layout.c if (av_get_channel_layout_nb_channels(channel) != 1) channel 249 libavutil/channel_layout.c if ((1ULL<<i) & channel) channel 254 libavutil/channel_layout.c const char *av_get_channel_description(uint64_t channel) channel 257 libavutil/channel_layout.c if (av_get_channel_layout_nb_channels(channel) != 1) channel 260 libavutil/channel_layout.c if ((1ULL<<i) & channel) channel 193 libavutil/channel_layout.h uint64_t channel); channel 205 libavutil/channel_layout.h const char *av_get_channel_name(uint64_t channel); channel 213 libavutil/channel_layout.h const char *av_get_channel_description(uint64_t channel);