]> git.sesse.net Git - ffmpeg/blob - libavutil/dovi_meta.h
hwcontext_vulkan: dlopen libvulkan
[ffmpeg] / libavutil / dovi_meta.h
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  */
51 typedef struct AVDOVIDecoderConfigurationRecord {
52     uint8_t dv_version_major;
53     uint8_t dv_version_minor;
54     uint8_t dv_profile;
55     uint8_t dv_level;
56     uint8_t rpu_present_flag;
57     uint8_t el_present_flag;
58     uint8_t bl_present_flag;
59     uint8_t dv_bl_signal_compatibility_id;
60 } AVDOVIDecoderConfigurationRecord;
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  */
68 AVDOVIDecoderConfigurationRecord *av_dovi_alloc(size_t *size);
69
70 #endif /* AVUTIL_DOVI_META_H */