1
0
Fork 0
forked from len0rd/rockbox

Sync opus codec to upstream git

Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
This commit is contained in:
William Wilgus 2019-01-04 02:01:18 -06:00 committed by Solomon Peachy
parent 75d9393796
commit 14c6bb798d
286 changed files with 48931 additions and 1278 deletions

View file

@ -30,6 +30,8 @@
#include "ogg/ogg.h"
#define OPUS_DEMIXING_MATRIX_SIZE_MAX (18 * 18 * 2)
typedef struct {
int version;
int channels; /* Number of channels: 1..255 */
@ -41,10 +43,10 @@ typedef struct {
int nb_streams;
int nb_coupled;
unsigned char stream_map[255];
unsigned char dmatrix[OPUS_DEMIXING_MATRIX_SIZE_MAX];
} OpusHeader;
int opus_header_parse(const unsigned char *header, int len, OpusHeader *h);
int opus_header_to_packet(const OpusHeader *h, unsigned char *packet, int len);
extern const int wav_permute_matrix[8][8];