1 /*
2 * Opus decoder/parser common functions and structures
3 * Copyright (c) 2012 Andrew D'Addesio
4 * Copyright (c) 2013-2014 Mozilla Corporation
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #ifndef AVCODEC_OPUS_PARSE_H
24 #define AVCODEC_OPUS_PARSE_H
25
26 #include <stdint.h>
27
30
33 int data_size;
/**< size of the useful data -- packet size - padding */
34 int code;
/**< packet code: specifies the frame layout */
35 int stereo;
/**< whether this packet is mono or stereo */
36 int vbr;
/**< vbr flag */
37 int config;
/**< configuration: tells the audio mode,
38 ** bandwidth, and frame duration */
46
47 // a mapping between an opus stream and an output channel
51
52 // when a single decoded channel is mapped to multiple output channels, we
53 // write to the first output directly and copy from it to the others
54 // this field is set to 1 for those copied output channels
56 // this is the index of the output channel to copy from
58
59 // this channel is silent
62
66
68
71
73 int self_delimited);
74
76
77 #endif /* AVCODEC_OPUS_PARSE_H */