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 module ffmpeg.libavutil.dovi_meta; 26 extern (C) @nogc nothrow: 27 28 /* 29 * DOVI configuration 30 * ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2 31 dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2 32 * @code 33 * uint8_t dv_version_major, the major version number that the stream complies with 34 * uint8_t dv_version_minor, the minor version number that the stream complies with 35 * uint8_t dv_profile, the Dolby Vision profile 36 * uint8_t dv_level, the Dolby Vision level 37 * uint8_t rpu_present_flag 38 * uint8_t el_present_flag 39 * uint8_t bl_present_flag 40 * uint8_t dv_bl_signal_compatibility_id 41 * @endcode 42 * 43 * @note The struct must be allocated with av_dovi_alloc() and 44 * its size is not a part of the public ABI. 45 */ 46 struct AVDOVIDecoderConfigurationRecord 47 { 48 ubyte dv_version_major; 49 ubyte dv_version_minor; 50 ubyte dv_profile; 51 ubyte dv_level; 52 ubyte rpu_present_flag; 53 ubyte el_present_flag; 54 ubyte bl_present_flag; 55 ubyte dv_bl_signal_compatibility_id; 56 } 57 58 /** 59 * Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its 60 * fields to default values. 61 * 62 * @return the newly allocated struct or NULL on failure 63 */ 64 AVDOVIDecoderConfigurationRecord* av_dovi_alloc (size_t* size); 65 66 /* AVUTIL_DOVI_META_H */