mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-08 00:51:20 +08:00
2023-11-18 13:50:46 CST W46D6
This commit is contained in:
11
avcodec.go
11
avcodec.go
@@ -3072,6 +3072,10 @@ func (avctx *AVCodecContext) GetLevelAddr() *int32 {
|
||||
return (*int32)(&avctx.level)
|
||||
}
|
||||
|
||||
const (
|
||||
FF_LEVEL_UNKNOWN = int32(C.FF_LEVEL_UNKNOWN)
|
||||
)
|
||||
|
||||
// GetSkipLoopFilter gets `AVCodecContext.skip_loop_filter` value.
|
||||
func (avctx *AVCodecContext) GetSkipLoopFilter() AVDiscard {
|
||||
return (AVDiscard)(avctx.skip_loop_filter)
|
||||
@@ -3458,8 +3462,8 @@ const (
|
||||
)
|
||||
|
||||
// GetCodedSideData gets `AVCodecContext.coded_side_data` value.
|
||||
func (avctx *AVCodecContext) GetCodedSideData() *AVPacketSideData {
|
||||
return (*AVPacketSideData)(avctx.coded_side_data)
|
||||
func (avctx *AVCodecContext) GetCodedSideData() []AVPacketSideData {
|
||||
return unsafe.Slice((*AVPacketSideData)(avctx.coded_side_data), avctx.nb_coded_side_data)
|
||||
}
|
||||
|
||||
// SetCodedSideData sets `AVCodecContext.coded_side_data` value.
|
||||
@@ -4113,9 +4117,6 @@ func (sbt *AVSubtitle) GetNumRectsAddr() *uint32 {
|
||||
|
||||
// GetRects gets `AVSubtitle.rects` value.
|
||||
func (sbt *AVSubtitle) GetRects() []*AVSubtitleRect {
|
||||
if sbt.rects == nil {
|
||||
return nil
|
||||
}
|
||||
return unsafe.Slice((**AVSubtitleRect)(unsafe.Pointer(sbt.rects)), sbt.num_rects)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user