diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-01-04 02:01:18 -0600 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 14:23:04 +0000 |
commit | 14c6bb798d6bebc80f07e863236adbaf8d156a9c (patch) | |
tree | 551a4b641906c2626af844fa3239c1b2b1ff0ad3 /lib/rbcodec/codecs/libopus/opus_header.h | |
parent | 75d93937965ec4df70d37df6d4feea04577c996b (diff) | |
download | rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.tar.gz rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.zip |
Sync opus codec to upstream git
Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
Diffstat (limited to 'lib/rbcodec/codecs/libopus/opus_header.h')
-rw-r--r-- | lib/rbcodec/codecs/libopus/opus_header.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libopus/opus_header.h b/lib/rbcodec/codecs/libopus/opus_header.h index 7bfacfe48c..2d97d0739c 100644 --- a/lib/rbcodec/codecs/libopus/opus_header.h +++ b/lib/rbcodec/codecs/libopus/opus_header.h | |||
@@ -30,6 +30,8 @@ | |||
30 | 30 | ||
31 | #include "ogg/ogg.h" | 31 | #include "ogg/ogg.h" |
32 | 32 | ||
33 | #define OPUS_DEMIXING_MATRIX_SIZE_MAX (18 * 18 * 2) | ||
34 | |||
33 | typedef struct { | 35 | typedef struct { |
34 | int version; | 36 | int version; |
35 | int channels; /* Number of channels: 1..255 */ | 37 | int channels; /* Number of channels: 1..255 */ |
@@ -41,10 +43,10 @@ typedef struct { | |||
41 | int nb_streams; | 43 | int nb_streams; |
42 | int nb_coupled; | 44 | int nb_coupled; |
43 | unsigned char stream_map[255]; | 45 | unsigned char stream_map[255]; |
46 | unsigned char dmatrix[OPUS_DEMIXING_MATRIX_SIZE_MAX]; | ||
44 | } OpusHeader; | 47 | } OpusHeader; |
45 | 48 | ||
46 | int opus_header_parse(const unsigned char *header, int len, OpusHeader *h); | 49 | int opus_header_parse(const unsigned char *header, int len, OpusHeader *h); |
47 | int opus_header_to_packet(const OpusHeader *h, unsigned char *packet, int len); | ||
48 | 50 | ||
49 | extern const int wav_permute_matrix[8][8]; | 51 | extern const int wav_permute_matrix[8][8]; |
50 | 52 | ||