mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-07 00:52:48 +08:00
Added some setters + missing display matrix methods
This commit is contained in:
@@ -81,6 +81,10 @@ func (cp *CodecParameters) ColorRange() ColorRange {
|
||||
return ColorRange(cp.c.color_range)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) SetColorRange(r ColorRange) {
|
||||
cp.c.color_range = C.enum_AVColorRange(r)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) ColorSpace() ColorSpace {
|
||||
return ColorSpace(cp.c.color_space)
|
||||
}
|
||||
@@ -93,6 +97,10 @@ func (cp *CodecParameters) FrameSize() int {
|
||||
return int(cp.c.frame_size)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) SetFrameSize(i int) {
|
||||
cp.c.frame_size = C.int(i)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) Height() int {
|
||||
return int(cp.c.height)
|
||||
}
|
||||
@@ -109,6 +117,10 @@ func (cp *CodecParameters) MediaType() MediaType {
|
||||
return MediaType(cp.c.codec_type)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) SetMediaType(t MediaType) {
|
||||
cp.c.codec_type = C.enum_AVMediaType(t)
|
||||
}
|
||||
|
||||
func (cp *CodecParameters) PixelFormat() PixelFormat {
|
||||
return PixelFormat(cp.c.format)
|
||||
}
|
||||
|
Reference in New Issue
Block a user