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

This commit is contained in:
aggresss
2023-11-18 13:50:46 +08:00
parent 6702a75415
commit bbf62b975d
16 changed files with 158 additions and 62 deletions

View File

@@ -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)
}