mirror of
https://github.com/asticode/go-astiav.git
synced 2025-11-02 12:24:16 +08:00
feat: add setter and getter for extra_hw_frames (#52)
This commit is contained in:
@@ -314,6 +314,14 @@ func (cc *CodecContext) SetHardwareDeviceContext(hdc *HardwareDeviceContext) {
|
||||
}
|
||||
}
|
||||
|
||||
func (cc *CodecContext) ExtraHardwareFrames() int {
|
||||
return int(cc.c.extra_hw_frames)
|
||||
}
|
||||
|
||||
func (cc *CodecContext) SetExtraHardwareFrames(n int) {
|
||||
cc.c.extra_hw_frames = C.int(n)
|
||||
}
|
||||
|
||||
type CodecContextPixelFormatCallback func(pfs []PixelFormat) PixelFormat
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user