FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
libavcodec
dolby_e_parser_internal.h
Go to the documentation of this file.
1
/*
2
* Dolby E parser internal code
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_INTERNAL_H
22
#define AVCODEC_DOLBY_E_PARSER_INTERNAL_H
23
24
#include "
dolby_e.h
"
25
26
/**
27
* Initialize DBEContext.
28
* Set word_bits/word_bytes, input, input_size, key_present.
29
* @param[out] s DBEContext.
30
* @param[in] buf raw input buffer.
31
* @param[in] buf_size must be 3 bytes at least.
32
* @return Returns 0 on success, AVERROR_INVALIDDATA on error
33
*/
34
int
ff_dolby_e_parse_init
(
DBEContext
*
s
,
const
uint8_t
*buf,
int
buf_size);
35
36
/**
37
* Parse Dolby E metadata.
38
* Parse the header up to the end_gain element.
39
* @param[in] s DBEContext .
40
* @param[out] hdr Pointer to struct where header info is written.
41
* @return Returns 0 on success, AVERROR_INVALIDDATA on error
42
*/
43
int
ff_dolby_e_parse_header
(
DBEContext
*
s
,
DolbyEHeaderInfo
*hdr);
44
45
46
#endif
/* AVCODEC_DOLBY_E_PARSER_INTERNAL_H */
DBEContext
Dolby E reading context used by decoder and parser.
Definition:
dolby_e.h:36
dolby_e.h
uint8_t
uint8_t
Definition:
audio_convert.c:194
s
#define s(width, name)
Definition:
cbs_vp9.c:257
ff_dolby_e_parse_header
int ff_dolby_e_parse_header(DBEContext *s, DolbyEHeaderInfo *hdr)
Parse Dolby E metadata.
ff_dolby_e_parse_init
int ff_dolby_e_parse_init(DBEContext *s, const uint8_t *buf, int buf_size)
Initialize DBEContext.
DolbyEHeaderInfo
Coded Dolby E header values up to end_gain element, plus derived values.
Definition:
dolby_e.h:54
Generated on Mon Jan 25 2021 19:21:43 for FFmpeg by
1.8.11