mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
2023-10-24 21:24:55 CST W43D2
This commit is contained in:
@@ -410,7 +410,7 @@ type AVHWFramesConstraints C.struct_AVHWFramesConstraints
|
||||
|
||||
// Custom: GetValidHwFormats gets `AVHWFramesConstraints.valid_hw_formats` value.
|
||||
func (fcs *AVHWFramesConstraints) GetValidHwFormats() []AVPixelFormat {
|
||||
return TruncSlice((*AVPixelFormat)(fcs.valid_hw_formats), func(pf AVPixelFormat) bool {
|
||||
return SliceTrunc((*AVPixelFormat)(fcs.valid_hw_formats), func(pf AVPixelFormat) bool {
|
||||
return pf == AV_PIX_FMT_NONE
|
||||
})
|
||||
}
|
||||
@@ -427,7 +427,7 @@ func (fcs *AVHWFramesConstraints) GetValidHwFormatsAddr() **AVPixelFormat {
|
||||
|
||||
// Custom: GetValidSwFormats gets `AVHWFramesConstraints.valid_sw_formats` value.
|
||||
func (fcs *AVHWFramesConstraints) GetValidSwFormats() []AVPixelFormat {
|
||||
return TruncSlice((*AVPixelFormat)(fcs.valid_sw_formats), func(pf AVPixelFormat) bool {
|
||||
return SliceTrunc((*AVPixelFormat)(fcs.valid_sw_formats), func(pf AVPixelFormat) bool {
|
||||
return pf == AV_PIX_FMT_NONE
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user