FFmpeg
dovi_meta.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Vacing Fang <vacingfang@tencent.com>
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 /**
22  * @file
23  * DOVI configuration
24  */
25 
26 
27 #ifndef AVUTIL_DOVI_META_H
28 #define AVUTIL_DOVI_META_H
29 
30 #include <stdint.h>
31 #include <stddef.h>
32 
33 /*
34  * DOVI configuration
35  * ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2
36  dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2
37  * @code
38  * uint8_t dv_version_major, the major version number that the stream complies with
39  * uint8_t dv_version_minor, the minor version number that the stream complies with
40  * uint8_t dv_profile, the Dolby Vision profile
41  * uint8_t dv_level, the Dolby Vision level
42  * uint8_t rpu_present_flag
43  * uint8_t el_present_flag
44  * uint8_t bl_present_flag
45  * uint8_t dv_bl_signal_compatibility_id
46  * @endcode
47  *
48  * @note The struct must be allocated with av_dovi_alloc() and
49  * its size is not a part of the public ABI.
50  */
61 
62 /**
63  * Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its
64  * fields to default values.
65  *
66  * @return the newly allocated struct or NULL on failure
67  */
69 
70 #endif /* AVUTIL_DOVI_META_H */
AVDOVIDecoderConfigurationRecord::dv_profile
uint8_t dv_profile
Definition: dovi_meta.h:54
AVDOVIDecoderConfigurationRecord::dv_version_major
uint8_t dv_version_major
Definition: dovi_meta.h:52
AVDOVIDecoderConfigurationRecord::dv_level
uint8_t dv_level
Definition: dovi_meta.h:55
AVDOVIDecoderConfigurationRecord::dv_bl_signal_compatibility_id
uint8_t dv_bl_signal_compatibility_id
Definition: dovi_meta.h:59
size
int size
Definition: twinvq_data.h:10344
av_dovi_alloc
AVDOVIDecoderConfigurationRecord * av_dovi_alloc(size_t *size)
Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its fields to default values.
Definition: dovi_meta.c:24
uint8_t
uint8_t
Definition: audio_convert.c:194
AVDOVIDecoderConfigurationRecord::bl_present_flag
uint8_t bl_present_flag
Definition: dovi_meta.h:58
AVDOVIDecoderConfigurationRecord::rpu_present_flag
uint8_t rpu_present_flag
Definition: dovi_meta.h:56
AVDOVIDecoderConfigurationRecord::el_present_flag
uint8_t el_present_flag
Definition: dovi_meta.h:57
AVDOVIDecoderConfigurationRecord::dv_version_minor
uint8_t dv_version_minor
Definition: dovi_meta.h:53
AVDOVIDecoderConfigurationRecord
Definition: dovi_meta.h:51