mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-04 15:52:52 +08:00
Added missing ColorSpace + ColorRange methods
This commit is contained in:
@@ -80,6 +80,10 @@ func (cp *CodecParameters) ColorSpace() ColorSpace {
|
||||
return ColorSpace(cp.c.color_space)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) SetColorSpace(s ColorSpace) {
|
||||
cp.c.color_space = C.enum_AVColorSpace(s)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) ColorTransferCharacteristic() ColorTransferCharacteristic {
|
||||
return ColorTransferCharacteristic(cp.c.color_trc)
|
||||
}
|
||||
|
Reference in New Issue
Block a user