2023-11-18 13:50:46 CST W46D6

This commit is contained in:
aggresss
2023-11-18 13:50:46 +08:00
parent 9487bef7f9
commit 07fbca8093
16 changed files with 158 additions and 62 deletions

View File

@@ -3887,6 +3887,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)
@@ -4273,8 +4277,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.
@@ -5130,9 +5134,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)
}