mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-11-01 03:02:39 +08:00
2023-11-16 19:54:40 CST W46D4
This commit is contained in:
@@ -460,7 +460,7 @@ func (par *AVCodecParameters) GetSeekPrerollAddr() *int32 {
|
||||
return (*int32)(&par.seek_preroll)
|
||||
}
|
||||
|
||||
// GetChLayout gets `AVCodecContext.ch_layouts` value.
|
||||
// GetChLayout gets `AVCodecContext.ch_layout` value.
|
||||
func (par *AVCodecParameters) GetChLayout() AVChannelLayout {
|
||||
return (AVChannelLayout)(par.ch_layout)
|
||||
}
|
||||
@@ -470,7 +470,7 @@ func (par *AVCodecParameters) SetChLayout(v AVChannelLayout) {
|
||||
par.ch_layout = (C.struct_AVChannelLayout)(v)
|
||||
}
|
||||
|
||||
// GetChLayoutAddr gets `AVCodecContext.ch_layouts` address.
|
||||
// GetChLayoutAddr gets `AVCodecContext.ch_layout` address.
|
||||
func (par *AVCodecParameters) GetChLayoutAddr() *AVChannelLayout {
|
||||
return (*AVChannelLayout)(&par.ch_layout)
|
||||
}
|
||||
|
||||
@@ -525,6 +525,7 @@ func AvDynamicHdrVividAlloc(size *uintptr) *AVDynamicHDRVivid {
|
||||
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_alloc((*C.size_t)(unsafe.Pointer(size))))
|
||||
}
|
||||
|
||||
// AvDynamicHdrVividCreateSideData allocates a complete AVDynamicHDRVivid and add it to the frame.
|
||||
func AvDynamicHdrVividCreateSideData(frame *AVFrame) *AVDynamicHDRVivid {
|
||||
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_create_side_data((*C.struct_AVFrame)(frame)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user