summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libopus/opus_header.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-01-04 02:01:18 -0600
committerSolomon Peachy <pizza@shaftnet.org>2021-04-23 14:23:04 +0000
commit14c6bb798d6bebc80f07e863236adbaf8d156a9c (patch)
tree551a4b641906c2626af844fa3239c1b2b1ff0ad3 /lib/rbcodec/codecs/libopus/opus_header.h
parent75d93937965ec4df70d37df6d4feea04577c996b (diff)
downloadrockbox-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.h4
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
33typedef struct { 35typedef 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
46int opus_header_parse(const unsigned char *header, int len, OpusHeader *h); 49int opus_header_parse(const unsigned char *header, int len, OpusHeader *h);
47int opus_header_to_packet(const OpusHeader *h, unsigned char *packet, int len);
48 50
49extern const int wav_permute_matrix[8][8]; 51extern const int wav_permute_matrix[8][8];
50 52