2 * Copyright (c) 2020 Vacing Fang <vacingfang@tencent.com>
4 * This file is part of FFmpeg.
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.
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.
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
27 #ifndef AVUTIL_DOVI_META_H
28 #define AVUTIL_DOVI_META_H
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
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
48 * @note The struct must be allocated with av_dovi_alloc() and
49 * its size is not a part of the public ABI.
51 typedef struct AVDOVIDecoderConfigurationRecord {
52 uint8_t dv_version_major;
53 uint8_t dv_version_minor;
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;
63 * Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its
64 * fields to default values.
66 * @return the newly allocated struct or NULL on failure
68 AVDOVIDecoderConfigurationRecord *av_dovi_alloc(size_t *size);
70 #endif /* AVUTIL_DOVI_META_H */