Home | History | Annotate | Download | only in celt

Lines Matching full:channels

61    int channels;
122 celt_sig in_mem[1]; /* Size = channels*mode->overlap */
123 /* celt_sig prefilter_mem[], Size = channels*COMBFILTER_MAXPERIOD */
124 /* opus_val16 oldBandE[], Size = channels*mode->nbEBands */
125 /* opus_val16 oldLogE[], Size = channels*mode->nbEBands */
126 /* opus_val16 oldLogE2[], Size = channels*mode->nbEBands */
129 int celt_encoder_get_size(int channels)
132 return opus_custom_encoder_get_size(mode, channels);
135 OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size(const CELTMode *mode, int channels)
138 + (channels*mode->overlap-1)*sizeof(celt_sig) /* celt_sig in_mem[channels*mode->overlap]; */
139 + channels*COMBFILTER_MAXPERIOD*sizeof(celt_sig) /* celt_sig prefilter_mem[channels*COMBFILTER_MAXPERIOD]; */
140 + 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; */
141 /* opus_val16 oldLogE[channels*mode->nbEBands]; */
142 /* opus_val16 oldLogE2[channels*mode->nbEBands]; */
147 CELTEncoder *opus_custom_encoder_create(const CELTMode *mode, int channels, int *error)
150 CELTEncoder *st = (CELTEncoder *)opus_alloc(opus_custom_encoder_get_size(mode, channels));
152 ret = opus_custom_encoder_init(st, mode, channels);
165 int channels, int arch)
167 if (channels < 0 || channels > 2)
173 OPUS_CLEAR((char*)st, opus_custom_encoder_get_size(mode, channels));
177 st->stream_channels = st->channels = channels;
201 int opus_custom_encoder_init(CELTEncoder *st, const CELTMode *mode, int channels)
203 return opus_custom_encoder_init_arch(st, mode, channels, opus_select_arch());
207 int celt_encoder_init(CELTEncoder *st, opus_int32 sampling_rate, int channels,
212 opus_custom_mode_create(48000, 960, NULL), channels, arch);
418 all channels in a frame */
1271 const int CC = st->channels;
1563 /* This computes how much masking takes place between surround channels */
2124 C = st->channels;
2151 C=st->channels;
2241 value = IMIN(value, 260000*st->channels);
2277 oldBandE = (opus_val16*)(st->in_mem+st->channels*(st->overlap+COMBFILTER_MAXPERIOD));
2278 oldLogE = oldBandE + st->channels*st->mode->nbEBands;
2279 oldLogE2 = oldLogE + st->channels*st->mode->nbEBands;
2281 opus_custom_encoder_get_size(st->mode, st->channels)-
2283 for (i=0;i<st->channels*st->mode->nbEBands;i++)