/* * Copyright (c) 2021 Limin Wang <lance.lmwang at gmail.com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H #define AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H #include "frame.h" #include "rational.h" /** * HDR Vivid three spline params. */ AVHDRVivid3SplineParams; /** * Color tone mapping parameters at a processing window in a dynamic metadata for * CUVA 005.1:2021. */ AVHDRVividColorToneMappingParams; /** * Color transform parameters at a processing window in a dynamic metadata for * CUVA 005.1:2021. */ AVHDRVividColorTransformParams; /** * This struct represents dynamic metadata for color volume transform - * CUVA 005.1:2021 standard * * To be used as payload of a AVFrameSideData or AVPacketSideData with the * appropriate type. * * @note The struct should be allocated with * av_dynamic_hdr_vivid_alloc() and its size is not a part of * the public ABI. */ AVDynamicHDRVivid; /** * Allocate an AVDynamicHDRVivid structure and set its fields to * default values. The resulting struct can be freed using av_freep(). * * @return An AVDynamicHDRVivid filled with default values or NULL * on failure. */ AVDynamicHDRVivid *av_dynamic_hdr_vivid_alloc(size_t *size); /** * Allocate a complete AVDynamicHDRVivid and add it to the frame. * @param frame The frame which side data is added to. * * @return The AVDynamicHDRVivid structure to be filled by caller or NULL * on failure. */ AVDynamicHDRVivid *av_dynamic_hdr_vivid_create_side_data(AVFrame *frame); #endif /* AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H */