FFmpeg
dolby_e_parser.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 foo86
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_DOLBY_E_PARSER_H
22 #define AVCODEC_DOLBY_E_PARSER_H
23 
24 #include "dolby_e.h"
25 
26 typedef struct DBEParseContext {
29 
32 
33 static const uint8_t nb_programs_tab[MAX_PROG_CONF + 1] = {
34  2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 8, 1, 2, 3, 3, 4, 5, 6, 1, 2, 3, 4, 1, 1
35 };
36 
37 static const uint8_t nb_channels_tab[MAX_PROG_CONF + 1] = {
38  8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 8, 8
39 };
40 
41 #endif
Dolby E reading context used by decoder and parser.
Definition: dolby_e.h:36
DolbyEHeaderInfo metadata
uint8_t
#define MAX_PROG_CONF
Definition: dolby_e.h:28
DBEContext dectx
static const uint8_t nb_programs_tab[MAX_PROG_CONF+1]
static const uint8_t nb_channels_tab[MAX_PROG_CONF+1]
ParseContext pc
Coded Dolby E header values up to end_gain element, plus derived values.
Definition: dolby_e.h:54