mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 15:23:13 +08:00
531 lines
22 KiB
Go
531 lines
22 KiB
Go
// Copyright (c) 2023 QRTC. All rights reserved.
|
|
// Use of this source code is governed by a MIT
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package ffmpeg
|
|
|
|
/*
|
|
#include <libavutil/hdr_dynamic_vivid_metadata.h>
|
|
*/
|
|
import "C"
|
|
import "unsafe"
|
|
|
|
// AVHDRVividColorToneMappingParams
|
|
type AVHDRVividColorToneMappingParams C.struct_AVHDRVividColorToneMappingParams
|
|
|
|
// GetTargetedSystemDisplayMaximumLuminance gets `AVHDRVividColorToneMappingParams.targeted_system_display_maximum_luminance` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetTargetedSystemDisplayMaximumLuminance() AVRational {
|
|
return (AVRational)(ctmp.targeted_system_display_maximum_luminance)
|
|
}
|
|
|
|
// SetTargetedSystemDisplayMaximumLuminance sets `AVHDRVividColorToneMappingParams.targeted_system_display_maximum_luminance` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetTargetedSystemDisplayMaximumLuminance(v AVRational) {
|
|
ctmp.targeted_system_display_maximum_luminance = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetTargetedSystemDisplayMaximumLuminanceAddr gets `AVHDRVividColorToneMappingParams.targeted_system_display_maximum_luminance` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetTargetedSystemDisplayMaximumLuminanceAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.targeted_system_display_maximum_luminance)
|
|
}
|
|
|
|
// GetBaseEnableFlag gets `AVHDRVividColorToneMappingParams.base_enable_flag` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseEnableFlag() int32 {
|
|
return (int32)(ctmp.base_enable_flag)
|
|
}
|
|
|
|
// SetBaseEnableFlag sets `AVHDRVividColorToneMappingParams.base_enable_flag` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseEnableFlag(v int32) {
|
|
ctmp.base_enable_flag = (C.int)(v)
|
|
}
|
|
|
|
// GetBaseEnableFlagAddr gets `AVHDRVividColorToneMappingParams.base_enable_flag` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseEnableFlagAddr() *int32 {
|
|
return (*int32)(&ctmp.base_enable_flag)
|
|
}
|
|
|
|
// GetBaseParamMP gets `AVHDRVividColorToneMappingParams.base_param_m_p` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMP() AVRational {
|
|
return (AVRational)(ctmp.base_param_m_p)
|
|
}
|
|
|
|
// SetBaseParamMP sets `AVHDRVividColorToneMappingParams.base_param_m_p` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamMP(v AVRational) {
|
|
ctmp.base_param_m_p = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamMPAddr gets `AVHDRVividColorToneMappingParams.base_param_m_p` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMPAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_m_p)
|
|
}
|
|
|
|
// GetBaseParamMM gets `AVHDRVividColorToneMappingParams.base_param_m_m` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMM() AVRational {
|
|
return (AVRational)(ctmp.base_param_m_m)
|
|
}
|
|
|
|
// SetBaseParamMM sets `AVHDRVividColorToneMappingParams.base_param_m_m` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamMM(v AVRational) {
|
|
ctmp.base_param_m_m = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamMMAddr gets `AVHDRVividColorToneMappingParams.base_param_m_m` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMMAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_m_m)
|
|
}
|
|
|
|
// GetBaseParamMA gets `AVHDRVividColorToneMappingParams.base_param_m_a` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMA() AVRational {
|
|
return (AVRational)(ctmp.base_param_m_a)
|
|
}
|
|
|
|
// SetBaseParamMA sets `AVHDRVividColorToneMappingParams.base_param_m_a` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamMA(v AVRational) {
|
|
ctmp.base_param_m_a = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamMAAddr gets `AVHDRVividColorToneMappingParams.base_param_m_a` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMAAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_m_a)
|
|
}
|
|
|
|
// GetBaseParamMB gets `AVHDRVividColorToneMappingParams.base_param_m_b` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMB() AVRational {
|
|
return (AVRational)(ctmp.base_param_m_b)
|
|
}
|
|
|
|
// SetBaseParamMB sets `AVHDRVividColorToneMappingParams.base_param_m_b` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamMB(v AVRational) {
|
|
ctmp.base_param_m_b = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamMBAddr gets `AVHDRVividColorToneMappingParams.base_param_m_b` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMBAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_m_b)
|
|
}
|
|
|
|
// GetBaseParamMN gets `AVHDRVividColorToneMappingParams.base_param_m_n` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMN() AVRational {
|
|
return (AVRational)(ctmp.base_param_m_n)
|
|
}
|
|
|
|
// SetBaseParamMN sets `AVHDRVividColorToneMappingParams.base_param_m_n` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamMN(v AVRational) {
|
|
ctmp.base_param_m_n = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamMNAddr gets `AVHDRVividColorToneMappingParams.base_param_m_n` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamMNAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_m_n)
|
|
}
|
|
|
|
// GetBaseParamK1 gets `AVHDRVividColorToneMappingParams.base_param_k1` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK1() int32 {
|
|
return (int32)(ctmp.base_param_k1)
|
|
}
|
|
|
|
// SetBaseParamK1 sets `AVHDRVividColorToneMappingParams.base_param_k1` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamK1(v int32) {
|
|
ctmp.base_param_k1 = (C.int)(v)
|
|
}
|
|
|
|
// GetBaseParamK1Addr gets `AVHDRVividColorToneMappingParams.base_param_k1` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK1Addr() *int32 {
|
|
return (*int32)(&ctmp.base_param_k1)
|
|
}
|
|
|
|
// GetBaseParamK2 gets `AVHDRVividColorToneMappingParams.base_param_k2` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK2() int32 {
|
|
return (int32)(ctmp.base_param_k2)
|
|
}
|
|
|
|
// SetBaseParamK2 sets `AVHDRVividColorToneMappingParams.base_param_k2` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamK2(v int32) {
|
|
ctmp.base_param_k2 = (C.int)(v)
|
|
}
|
|
|
|
// GetBaseParamK2Addr gets `AVHDRVividColorToneMappingParams.base_param_k2` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK2Addr() *int32 {
|
|
return (*int32)(&ctmp.base_param_k2)
|
|
}
|
|
|
|
// GetBaseParamK3 gets `AVHDRVividColorToneMappingParams.base_param_k3` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK3() int32 {
|
|
return (int32)(ctmp.base_param_k3)
|
|
}
|
|
|
|
// SetBaseParamK3 sets `AVHDRVividColorToneMappingParams.base_param_k3` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamK3(v int32) {
|
|
ctmp.base_param_k3 = (C.int)(v)
|
|
}
|
|
|
|
// GetBaseParamK3Addr gets `AVHDRVividColorToneMappingParams.base_param_k3` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamK3Addr() *int32 {
|
|
return (*int32)(&ctmp.base_param_k3)
|
|
}
|
|
|
|
// GetBaseParamDeltaEnableMode gets `AVHDRVividColorToneMappingParams.base_param_Delta_enable_mode` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamDeltaEnableMode() int32 {
|
|
return (int32)(ctmp.base_param_Delta_enable_mode)
|
|
}
|
|
|
|
// SetBaseParamDeltaEnableMode sets `AVHDRVividColorToneMappingParams.base_param_Delta_enable_mode` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamDeltaEnableMode(v int32) {
|
|
ctmp.base_param_Delta_enable_mode = (C.int)(v)
|
|
}
|
|
|
|
// GetBaseParamDeltaEnableModeAddr gets `AVHDRVividColorToneMappingParams.base_param_Delta_enable_mode` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamDeltaEnableModeAddr() *int32 {
|
|
return (*int32)(&ctmp.base_param_Delta_enable_mode)
|
|
}
|
|
|
|
// GetBaseParamDelta gets `AVHDRVividColorToneMappingParams.base_param_Delta` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamDelta() AVRational {
|
|
return (AVRational)(ctmp.base_param_Delta)
|
|
}
|
|
|
|
// SetBaseParamDelta sets `AVHDRVividColorToneMappingParams.base_param_Delta` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetBaseParamDelta(v AVRational) {
|
|
ctmp.base_param_Delta = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetBaseParamDeltaAddr gets `AVHDRVividColorToneMappingParams.base_param_Delta` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetBaseParamDeltaAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.base_param_Delta)
|
|
}
|
|
|
|
// GetThreeSplineEnableFlag gets `AVHDRVividColorToneMappingParams.three_Spline_enable_flag` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineEnableFlag() int32 {
|
|
return (int32)(ctmp.three_Spline_enable_flag)
|
|
}
|
|
|
|
// SetThreeSplineEnableFlag sets `AVHDRVividColorToneMappingParams.three_Spline_enable_flag` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineEnableFlag(v int32) {
|
|
ctmp.three_Spline_enable_flag = (C.int)(v)
|
|
}
|
|
|
|
// GetThreeSplineEnableFlagAddr gets `AVHDRVividColorToneMappingParams.three_Spline_enable_flag` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineEnableFlagAddr() *int32 {
|
|
return (*int32)(&ctmp.three_Spline_enable_flag)
|
|
}
|
|
|
|
// GetThreeSplineNum gets `AVHDRVividColorToneMappingParams.three_Spline_num` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineNum() int32 {
|
|
return (int32)(ctmp.three_Spline_num)
|
|
}
|
|
|
|
// SetThreeSplineNum sets `AVHDRVividColorToneMappingParams.three_Spline_num` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineNum(v int32) {
|
|
ctmp.three_Spline_num = (C.int)(v)
|
|
}
|
|
|
|
// GetThreeSplineNumAddr gets `AVHDRVividColorToneMappingParams.three_Spline_num` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineNumAddr() *int32 {
|
|
return (*int32)(&ctmp.three_Spline_num)
|
|
}
|
|
|
|
// GetThreeSplineThMode gets `AVHDRVividColorToneMappingParams.three_Spline_TH_mode` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThMode() int32 {
|
|
return (int32)(ctmp.three_Spline_TH_mode)
|
|
}
|
|
|
|
// SetThreeSplineThMode sets `AVHDRVividColorToneMappingParams.three_Spline_TH_mode` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineThMode(v int32) {
|
|
ctmp.three_Spline_TH_mode = (C.int)(v)
|
|
}
|
|
|
|
// GetThreeSplineThModeAddr gets `AVHDRVividColorToneMappingParams.three_Spline_TH_mode` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThModeAddr() *int32 {
|
|
return (*int32)(&ctmp.three_Spline_TH_mode)
|
|
}
|
|
|
|
// GetThreeSplineThEnableMb gets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable_MB` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThEnableMb() AVRational {
|
|
return (AVRational)(ctmp.three_Spline_TH_enable_MB)
|
|
}
|
|
|
|
// SetThreeSplineThEnableMb sets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable_MB` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineThEnableMb(v AVRational) {
|
|
ctmp.three_Spline_TH_enable_MB = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetThreeSplineThEnableMbAddr gets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable_MB` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThEnableMbAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.three_Spline_TH_enable_MB)
|
|
}
|
|
|
|
// GetThreeSplineThEnable gets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThEnable() AVRational {
|
|
return (AVRational)(ctmp.three_Spline_TH_enable)
|
|
}
|
|
|
|
// SetThreeSplineThEnable sets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineThEnable(v AVRational) {
|
|
ctmp.three_Spline_TH_enable = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetThreeSplineThEnableAddr gets `AVHDRVividColorToneMappingParams.three_Spline_TH_enable` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThEnableAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.three_Spline_TH_enable)
|
|
}
|
|
|
|
// GetThreeSplineThDelta1 gets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta1` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThDelta1() AVRational {
|
|
return (AVRational)(ctmp.three_Spline_TH_Delta1)
|
|
}
|
|
|
|
// SetThreeSplineThDelta1 sets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta1` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineThDelta1(v AVRational) {
|
|
ctmp.three_Spline_TH_Delta1 = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetThreeSplineThDelta1Addr gets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta1` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThDelta1Addr() *AVRational {
|
|
return (*AVRational)(&ctmp.three_Spline_TH_Delta1)
|
|
}
|
|
|
|
// GetThreeSplineThDelta2 gets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta2` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThDelta2() AVRational {
|
|
return (AVRational)(ctmp.three_Spline_TH_Delta2)
|
|
}
|
|
|
|
// SetThreeSplineThDelta2 sets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta2` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineThDelta2(v AVRational) {
|
|
ctmp.three_Spline_TH_Delta2 = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetThreeSplineThDelta2Addr gets `AVHDRVividColorToneMappingParams.three_Spline_TH_Delta2` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineThDelta2Addr() *AVRational {
|
|
return (*AVRational)(&ctmp.three_Spline_TH_Delta2)
|
|
}
|
|
|
|
// GetThreeSplineEnableStrength gets `AVHDRVividColorToneMappingParams.three_Spline_enable_Strength` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineEnableStrength() AVRational {
|
|
return (AVRational)(ctmp.three_Spline_enable_Strength)
|
|
}
|
|
|
|
// SetThreeSplineEnableStrength sets `AVHDRVividColorToneMappingParams.three_Spline_enable_Strength` value.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) SetThreeSplineEnableStrength(v AVRational) {
|
|
ctmp.three_Spline_enable_Strength = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetThreeSplineEnableStrengthAddr gets `AVHDRVividColorToneMappingParams.three_Spline_enable_Strength` address.
|
|
func (ctmp *AVHDRVividColorToneMappingParams) GetThreeSplineEnableStrengthAddr() *AVRational {
|
|
return (*AVRational)(&ctmp.three_Spline_enable_Strength)
|
|
}
|
|
|
|
// AVHDRVividColorTransformParams
|
|
type AVHDRVividColorTransformParams C.struct_AVHDRVividColorTransformParams
|
|
|
|
// GetMinimumMaxrgb gets `AVHDRVividColorTransformParams.minimum_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetMinimumMaxrgb() AVRational {
|
|
return (AVRational)(ctfp.minimum_maxrgb)
|
|
}
|
|
|
|
// SetMinimumMaxrgb sets `AVHDRVividColorTransformParams.minimum_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetMinimumMaxrgb(v AVRational) {
|
|
ctfp.minimum_maxrgb = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetMinimumMaxrgbAddr gets `AVHDRVividColorTransformParams.minimum_maxrgb` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetMinimumMaxrgbAddr() *AVRational {
|
|
return (*AVRational)(&ctfp.minimum_maxrgb)
|
|
}
|
|
|
|
// GetAverageMaxrgb gets `AVHDRVividColorTransformParams.average_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetAverageMaxrgb() AVRational {
|
|
return (AVRational)(ctfp.average_maxrgb)
|
|
}
|
|
|
|
// SetAverageMaxrgb sets `AVHDRVividColorTransformParams.average_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetAverageMaxrgb(v AVRational) {
|
|
ctfp.average_maxrgb = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetAverageMaxrgbAddr gets `AVHDRVividColorTransformParams.average_maxrgb` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetAverageMaxrgbAddr() *AVRational {
|
|
return (*AVRational)(&ctfp.average_maxrgb)
|
|
}
|
|
|
|
// GetVarianceMaxrgb gets `AVHDRVividColorTransformParams.variance_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetVarianceMaxrgb() AVRational {
|
|
return (AVRational)(ctfp.variance_maxrgb)
|
|
}
|
|
|
|
// SetVarianceMaxrgb sets `AVHDRVividColorTransformParams.variance_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetVarianceMaxrgb(v AVRational) {
|
|
ctfp.variance_maxrgb = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetVarianceMaxrgbAddr gets `AVHDRVividColorTransformParams.variance_maxrgb` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetVarianceMaxrgbAddr() *AVRational {
|
|
return (*AVRational)(&ctfp.variance_maxrgb)
|
|
}
|
|
|
|
// GetMaximumMaxrgb gets `AVHDRVividColorTransformParams.maximum_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetMaximumMaxrgb() AVRational {
|
|
return (AVRational)(ctfp.maximum_maxrgb)
|
|
}
|
|
|
|
// SetMaximumMaxrgb sets `AVHDRVividColorTransformParams.maximum_maxrgb` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetMaximumMaxrgb(v AVRational) {
|
|
ctfp.maximum_maxrgb = (C.struct_AVRational)(v)
|
|
}
|
|
|
|
// GetMaximumMaxrgbAddr gets `AVHDRVividColorTransformParams.maximum_maxrgb` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetMaximumMaxrgbAddr() *AVRational {
|
|
return (*AVRational)(&ctfp.maximum_maxrgb)
|
|
}
|
|
|
|
// GetToneMappingModeFlag gets `AVHDRVividColorTransformParams.tone_mapping_mode_flag` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetToneMappingModeFlag() int32 {
|
|
return (int32)(ctfp.tone_mapping_mode_flag)
|
|
}
|
|
|
|
// SetToneMappingModeFlag sets `AVHDRVividColorTransformParams.tone_mapping_mode_flag` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetToneMappingModeFlag(v int32) {
|
|
ctfp.tone_mapping_mode_flag = (C.int)(v)
|
|
}
|
|
|
|
// GetToneMappingModeFlagAddr gets `AVHDRVividColorTransformParams.tone_mapping_mode_flag` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetToneMappingModeFlagAddr() *int32 {
|
|
return (*int32)(&ctfp.tone_mapping_mode_flag)
|
|
}
|
|
|
|
// GetToneMappingParamNum gets `AVHDRVividColorTransformParams.tone_mapping_param_num` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetToneMappingParamNum() int32 {
|
|
return (int32)(ctfp.tone_mapping_param_num)
|
|
}
|
|
|
|
// SetToneMappingParamNum sets `AVHDRVividColorTransformParams.tone_mapping_param_num` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetToneMappingParamNum(v int32) {
|
|
ctfp.tone_mapping_param_num = (C.int)(v)
|
|
}
|
|
|
|
// GetToneMappingParamNumAddr gets `AVHDRVividColorTransformParams.tone_mapping_param_num` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetToneMappingParamNumAddr() *int32 {
|
|
return (*int32)(&ctfp.tone_mapping_param_num)
|
|
}
|
|
|
|
// GetTmParams gets `AVHDRVividColorTransformParams.tm_params` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetTmParams() []AVHDRVividColorToneMappingParams {
|
|
return unsafe.Slice((*AVHDRVividColorToneMappingParams)(&ctfp.tm_params[0]), 2)
|
|
}
|
|
|
|
// SetTmParams sets `AVHDRVividColorTransformParams.tm_params` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetTmParams(v []AVHDRVividColorToneMappingParams) {
|
|
for i := 0; i < FFMIN(len(v), 2); i++ {
|
|
ctfp.tm_params[i] = (C.struct_AVHDRVividColorToneMappingParams)(v[i])
|
|
}
|
|
}
|
|
|
|
// GetTmParamsAddr gets `AVHDRVividColorTransformParams.tm_params` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetTmParamsAddr() **AVHDRVividColorToneMappingParams {
|
|
return (**AVHDRVividColorToneMappingParams)(unsafe.Pointer(&ctfp.tm_params))
|
|
}
|
|
|
|
// GetColorSaturationMappingFlag gets `AVHDRVividColorTransformParams.color_saturation_mapping_flag` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationMappingFlag() int32 {
|
|
return (int32)(ctfp.color_saturation_mapping_flag)
|
|
}
|
|
|
|
// SetColorSaturationMappingFlag sets `AVHDRVividColorTransformParams.color_saturation_mapping_flag` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetColorSaturationMappingFlag(v int32) {
|
|
ctfp.color_saturation_mapping_flag = (C.int)(v)
|
|
}
|
|
|
|
// GetColorSaturationMappingFlagAddr gets `AVHDRVividColorTransformParams.color_saturation_mapping_flag` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationMappingFlagAddr() *int32 {
|
|
return (*int32)(&ctfp.color_saturation_mapping_flag)
|
|
}
|
|
|
|
// GetColorSaturationNum gets `AVHDRVividColorTransformParams.color_saturation_num` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationNum() int32 {
|
|
return (int32)(ctfp.color_saturation_num)
|
|
}
|
|
|
|
// SetColorSaturationNum sets `AVHDRVividColorTransformParams.color_saturation_num` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetColorSaturationNum(v int32) {
|
|
ctfp.color_saturation_num = (C.int)(v)
|
|
}
|
|
|
|
// GetColorSaturationNumAddr gets `AVHDRVividColorTransformParams.color_saturation_num` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationNumAddr() *int32 {
|
|
return (*int32)(&ctfp.color_saturation_num)
|
|
}
|
|
|
|
// GetColorSaturationGain gets `AVHDRVividColorTransformParams.color_saturation_gain` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationGain() []AVRational {
|
|
return unsafe.Slice((*AVRational)(&ctfp.color_saturation_gain[0]), 8)
|
|
}
|
|
|
|
// SetColorSaturationGain sets `AVHDRVividColorTransformParams.color_saturation_gain` value.
|
|
func (ctfp *AVHDRVividColorTransformParams) SetColorSaturationGain(v []AVRational) {
|
|
for i := 0; i < FFMIN(len(v), 8); i++ {
|
|
ctfp.color_saturation_gain[i] = (C.struct_AVRational)(v[i])
|
|
}
|
|
}
|
|
|
|
// GetColorSaturationGainAddr gets `AVHDRVividColorTransformParams.color_saturation_gain` address.
|
|
func (ctfp *AVHDRVividColorTransformParams) GetColorSaturationGainAddr() **AVRational {
|
|
return (**AVRational)(unsafe.Pointer(&ctfp.color_saturation_gain))
|
|
}
|
|
|
|
// AVDynamicHDRVivid
|
|
type AVDynamicHDRVivid = C.struct_AVDynamicHDRVivid
|
|
|
|
// GetSystemStartCode gets `AVDynamicHDRVivid.system_start_code` value.
|
|
func (dhv *AVDynamicHDRVivid) GetSystemStartCode() uint8 {
|
|
return (uint8)(dhv.system_start_code)
|
|
}
|
|
|
|
// SetSystemStartCode sets `AVDynamicHDRVivid.system_start_code` value.
|
|
func (dhv *AVDynamicHDRVivid) SetSystemStartCode(v uint8) {
|
|
dhv.system_start_code = (C.uint8_t)(v)
|
|
}
|
|
|
|
// GetSystemStartCodeAddr gets `AVDynamicHDRVivid.system_start_code` address.
|
|
func (dhv *AVDynamicHDRVivid) GetSystemStartCodeAddr() *uint8 {
|
|
return (*uint8)(&dhv.system_start_code)
|
|
}
|
|
|
|
// GetNumWindows gets `AVDynamicHDRVivid.num_windows` value.
|
|
func (dhv *AVDynamicHDRVivid) GetNumWindows() uint8 {
|
|
return (uint8)(dhv.num_windows)
|
|
}
|
|
|
|
// SetNumWindows sets `AVDynamicHDRVivid.num_windows` value.
|
|
func (dhv *AVDynamicHDRVivid) SetNumWindows(v uint8) {
|
|
dhv.num_windows = (C.uint8_t)(v)
|
|
}
|
|
|
|
// GetNumWindowsAddr gets `AVDynamicHDRVivid.num_windows` address.
|
|
func (dhv *AVDynamicHDRVivid) GetNumWindowsAddr() *uint8 {
|
|
return (*uint8)(&dhv.num_windows)
|
|
}
|
|
|
|
// GetParams gets `AVDynamicHDRVivid.params` value.
|
|
func (dhv *AVDynamicHDRVivid) GetParams() []AVHDRVividColorTransformParams {
|
|
return unsafe.Slice((*AVHDRVividColorTransformParams)(&dhv.params[0]), 3)
|
|
}
|
|
|
|
// SetParams sets `AVDynamicHDRVivid.params` value.
|
|
func (dhv *AVDynamicHDRVivid) SetParams(v []AVHDRVividColorTransformParams) {
|
|
for i := 0; i < FFMIN(len(v), 3); i++ {
|
|
dhv.params[i] = (C.struct_AVHDRVividColorTransformParams)(v[i])
|
|
}
|
|
}
|
|
|
|
// GetParamsAddr gets `AVDynamicHDRVivid.params` address.
|
|
func (dhv *AVDynamicHDRVivid) GetParamsAddr() **AVHDRVividColorTransformParams {
|
|
return (**AVHDRVividColorTransformParams)(unsafe.Pointer(&dhv.params))
|
|
}
|
|
|
|
// AvDynamicHdrVividAlloc allocates an AVDynamicHDRVivid structure and set its fields to default values.
|
|
func AvDynamicHdrVividAlloc(size *uintptr) *AVDynamicHDRVivid {
|
|
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_alloc((*C.size_t)(unsafe.Pointer(size))))
|
|
}
|
|
|
|
func AvDynamicHdrVividCreateSideData(frame *AVFrame) *AVDynamicHDRVivid {
|
|
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_create_side_data((*C.struct_AVFrame)(frame)))
|
|
}
|