Home | History | Annotate | Download | only in src

Lines Matching defs:st

64       OpusMSDecoder *st,
81 st->layout.nb_channels = channels;
82 st->layout.nb_streams = streams;
83 st->layout.nb_coupled_streams = coupled_streams;
85 for (i=0;i<st->layout.nb_channels;i++)
86 st->layout.mapping[i] = mapping[i];
87 if (!validate_layout(&st->layout))
90 ptr = (char*)st + align(sizeof(OpusMSDecoder));
94 for (i=0;i<st->layout.nb_coupled_streams;i++)
100 for (;i<st->layout.nb_streams;i++)
120 OpusMSDecoder *st;
128 st = (OpusMSDecoder *)opus_alloc(opus_multistream_decoder_get_size(streams, coupled_streams));
129 if (st==NULL)
135 ret = opus_multistream_decoder_init(st, Fs, channels, streams, coupled_streams, mapping);
140 opus_free(st);
141 st = NULL;
143 return st;
185 OpusMSDecoder *st,
205 opus_multistream_decoder_ctl(st, OPUS_GET_SAMPLE_RATE(&Fs));
208 ptr = (char*)st + align(sizeof(OpusMSDecoder));
219 if (!do_plc && len < 2*st->layout.nb_streams-1)
226 int ret = opus_multistream_packet_validate(data, len, st->layout.nb_streams, Fs);
237 for (s=0;s<st->layout.nb_streams;s++)
243 ptr += (s < st->layout.nb_coupled_streams) ? align(coupled_size) : align(mono_size);
251 ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, s!=st->layout.nb_streams-1, &packet_offset, soft_clip);
260 if (s < st->layout.nb_coupled_streams)
265 while ( (chan = get_left_channel(&st->layout, s, prev)) != -1)
267 (*copy_channel_out)(pcm, st->layout.nb_channels, chan,
273 while ( (chan = get_right_channel(&st->layout, s, prev)) != -1)
275 (*copy_channel_out)(pcm, st->layout.nb_channels, chan,
283 while ( (chan = get_mono_channel(&st->layout, s, prev)) != -1)
285 (*copy_channel_out)(pcm, st->layout.nb_channels, chan,
292 for (c=0;c<st->layout.nb_channels;c++)
294 if (st->layout.mapping[c] == 255)
296 (*copy_channel_out)(pcm, st->layout.nb_channels, c,
366 OpusMSDecoder *st,
374 return opus_multistream_decode_native(st, data, len,
379 int opus_multistream_decode_float(OpusMSDecoder *st, const unsigned char *data,
382 return opus_multistream_decode_native(st, data, len,
389 int opus_multistream_decode(OpusMSDecoder *st, const unsigned char *data,
392 return opus_multistream_decode_native(st, data, len,
397 OpusMSDecoder *st,
405 return opus_multistream_decode_native(st, data, len,
410 int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...)
421 ptr = (char*)st + align(sizeof(OpusMSDecoder));
446 for (s=0;s<st->layout.nb_streams;s++)
450 if (s < st->layout.nb_coupled_streams)
463 for (s=0;s<st->layout.nb_streams;s++)
468 if (s < st->layout.nb_coupled_streams)
484 if (stream_id<0 || stream_id >= st->layout.nb_streams)
493 if (s < st->layout.nb_coupled_streams)
506 for (s=0;s<st->layout.nb_streams;s++)
511 if (s < st->layout.nb_coupled_streams)
534 void opus_multistream_decoder_destroy(OpusMSDecoder *st)
536 opus_free(st);