From b8ad4f6a3dee791185786f13f0777ffd54b193d7 Mon Sep 17 00:00:00 2001 From: aggresss Date: Sat, 4 Nov 2023 09:31:38 +0800 Subject: [PATCH] 2023-11-04 09:31:38 CST W44D6 --- avcodec_videotoolbox.go | 1 + avformat.go | 5 +++++ avutil_audio_fifo.go | 1 + avutil_avstring.go | 1 + avutil_blowfish.go | 1 + avutil_bprint.go | 1 + avutil_camellia.go | 1 + avutil_cast5.go | 1 + avutil_channel_layout.go | 1 + avutil_dict.go | 1 + avutil_hwcontext.go | 8 ++++++++ avutil_mathematics.go | 1 + avutil_motion_vector.go | 1 + avutil_murmur3.go | 1 + avutil_pixdesc.go | 1 + avutil_pixelutils.go | 1 + avutil_spherical.go | 2 ++ avutil_stereo3d.go | 1 + avutil_threadmessage.go | 1 + avutil_timecode.go | 2 ++ avutil_tree.go | 1 + avutil_xtea.go | 1 + 22 files changed, 35 insertions(+) diff --git a/avcodec_videotoolbox.go b/avcodec_videotoolbox.go index 302638c..e219cf9 100644 --- a/avcodec_videotoolbox.go +++ b/avcodec_videotoolbox.go @@ -11,6 +11,7 @@ package ffmpeg */ import "C" +// AVVideotoolboxContext type AVVideotoolboxContext C.struct_AVVideotoolboxContext // AvVideotoolboxAllocContext allocates and initializes a Videotoolbox context. diff --git a/avformat.go b/avformat.go index 354f959..d768022 100644 --- a/avformat.go +++ b/avformat.go @@ -981,8 +981,13 @@ func (cpt *AVChapter) GetMetadataAddr() **AVDictionary { return (**AVDictionary)(unsafe.Pointer(&cpt.metadata)) } +// typedef int (*av_format_control_message)(struct AVFormatContext *s, int type, +// void *data, size_t data_size); type AVFormatControlMessageFunc C.av_format_control_message +// typedef int (*AVOpenCallback)(struct AVFormatContext *s, +// AVIOContext **pb, const char *url, int flags, +// const AVIOInterruptCB *int_cb, AVDictionary **options); type AVOpenCallbackFunc C.AVOpenCallback // AVDurationEstimationMethod diff --git a/avutil_audio_fifo.go b/avutil_audio_fifo.go index 275df69..5390f09 100644 --- a/avutil_audio_fifo.go +++ b/avutil_audio_fifo.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVAudioFifo type AVAudioFifo C.struct_AVAudioFifo // AvAudioFifoFree frees an AVAudioFifo. diff --git a/avutil_avstring.go b/avutil_avstring.go index 2c40691..07e040d 100644 --- a/avutil_avstring.go +++ b/avutil_avstring.go @@ -57,6 +57,7 @@ import "C" // NONEED: av_append_path_component +// AVEscapeMode type AVEscapeMode = C.enum_AVEscapeMode const ( diff --git a/avutil_blowfish.go b/avutil_blowfish.go index c041763..32eb8ae 100644 --- a/avutil_blowfish.go +++ b/avutil_blowfish.go @@ -14,6 +14,7 @@ const ( AV_BF_ROUNDS = C.AV_BF_ROUNDS ) +// AVBlowfish type AVBlowfish C.struct_AVBlowfish // GetP gets `AVBlowfish.p` value. diff --git a/avutil_bprint.go b/avutil_bprint.go index 0f0c41a..d9fb967 100644 --- a/avutil_bprint.go +++ b/avutil_bprint.go @@ -17,6 +17,7 @@ import ( "unsafe" ) +// AVBPrint type AVBPrint C.struct_AVBPrint const ( diff --git a/avutil_camellia.go b/avutil_camellia.go index 84d69e0..f9dd21f 100644 --- a/avutil_camellia.go +++ b/avutil_camellia.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVCAMELLIA type AVCAMELLIA C.struct_AVCAMELLIA // AvCamelliaAlloc allocates an AVCAMELLIA context. diff --git a/avutil_cast5.go b/avutil_cast5.go index 72768a9..65fdfc2 100644 --- a/avutil_cast5.go +++ b/avutil_cast5.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVCAST5 type AVCAST5 C.struct_AVCAST5 // AvCast5Alloc allocates an AVCAST5 context. diff --git a/avutil_channel_layout.go b/avutil_channel_layout.go index 8604e08..ee6bb7b 100644 --- a/avutil_channel_layout.go +++ b/avutil_channel_layout.go @@ -71,6 +71,7 @@ const ( AV_CH_LAYOUT_STEREO_DOWNMIX = uint64(C.AV_CH_LAYOUT_STEREO_DOWNMIX) ) +// AVMatrixEncoding type AVMatrixEncoding = C.enum_AVMatrixEncoding const ( diff --git a/avutil_dict.go b/avutil_dict.go index 7cc1799..8f83505 100644 --- a/avutil_dict.go +++ b/avutil_dict.go @@ -20,6 +20,7 @@ const ( AV_DICT_MULTIKEY = C.AV_DICT_MULTIKEY ) +// AVDictionaryEntry type AVDictionaryEntry C.struct_AVDictionaryEntry // GetKey gets `AVDictionaryEntry.key` value. diff --git a/avutil_hwcontext.go b/avutil_hwcontext.go index fece950..372593e 100644 --- a/avutil_hwcontext.go +++ b/avutil_hwcontext.go @@ -31,10 +31,13 @@ const ( AV_HWDEVICE_TYPE_VULKAN = AVHWDeviceType(C.AV_HWDEVICE_TYPE_VULKAN) ) +// AVHWDeviceInternal type AVHWDeviceInternal C.struct_AVHWDeviceInternal +// AVHWDeviceContext type AVHWDeviceContext C.struct_AVHWDeviceContext +// typedef void (*av_hw_device_context_free_func)(struct AVHWDeviceContext *ctx); type AVHWDeviceContextFreeFunc = C.av_hw_device_context_free_func // GetAvClass gets `AVHWDeviceContext.av_class` value. @@ -117,10 +120,13 @@ func (dc *AVHWDeviceContext) GetUserOpaqueAddr() *unsafe.Pointer { return &dc.user_opaque } +// AVHWFramesInternal type AVHWFramesInternal C.struct_AVHWFramesInternal +// AVHWFramesContext type AVHWFramesContext C.struct_AVHWFramesContext +// typedef void (*av_hw_frames_context_free_func)(struct AVHWFramesContext *ctx); type AVHWFramesContextFreeFunc = C.av_hw_frames_context_free_func // GetAvClass gets `AVHWFramesContext.av_class` value. @@ -393,6 +399,7 @@ func AvHWFrameTransferData(dst, src *AVFrame, flags int32) int32 { (C.int)(flags))) } +// AVHWFrameTransferDirection type AVHWFrameTransferDirection = C.enum_AVHWFrameTransferDirection const ( @@ -410,6 +417,7 @@ func AvHWFrameTransferGetFormats(hwframeCtx *AVBufferRef, dir AVHWFrameTransferD (C.int)(flags))) } +// AVHWFramesConstraints type AVHWFramesConstraints C.struct_AVHWFramesConstraints // GetValidHwFormats gets `AVHWFramesConstraints.valid_hw_formats` value. diff --git a/avutil_mathematics.go b/avutil_mathematics.go index 91acb07..04dfa3f 100644 --- a/avutil_mathematics.go +++ b/avutil_mathematics.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVRounding type AVRounding = C.enum_AVRounding const ( diff --git a/avutil_motion_vector.go b/avutil_motion_vector.go index 5afb4ee..d7b224a 100644 --- a/avutil_motion_vector.go +++ b/avutil_motion_vector.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVMotionVector type AVMotionVector C.struct_AVMotionVector // GetSource gets `AVMotionVector.source` value. diff --git a/avutil_murmur3.go b/avutil_murmur3.go index e923b00..1b15e3a 100644 --- a/avutil_murmur3.go +++ b/avutil_murmur3.go @@ -9,6 +9,7 @@ package ffmpeg */ import "C" +// AVMurMur3 type AVMurMur3 C.struct_AVMurMur3 // AvMurmur3Alloc allocates an AVMurMur3 hash context. diff --git a/avutil_pixdesc.go b/avutil_pixdesc.go index 18ba3ed..fa851a7 100644 --- a/avutil_pixdesc.go +++ b/avutil_pixdesc.go @@ -10,6 +10,7 @@ package ffmpeg import "C" import "unsafe" +// AVComponentDescriptor type AVComponentDescriptor C.struct_AVComponentDescriptor // GetPlane gets `AVComponentDescriptor.plane` value. diff --git a/avutil_pixelutils.go b/avutil_pixelutils.go index 44bb8b7..709c55d 100644 --- a/avutil_pixelutils.go +++ b/avutil_pixelutils.go @@ -10,6 +10,7 @@ package ffmpeg */ import "C" +// AVPixelutilsSadFn type AVPixelutilsSadFn C.av_pixelutils_sad_fn // AvPixelutilsGetSadFn gets a potentially optimized pointer to a Sum-of-absolute-differences diff --git a/avutil_spherical.go b/avutil_spherical.go index 36b8601..be76dbd 100644 --- a/avutil_spherical.go +++ b/avutil_spherical.go @@ -10,6 +10,7 @@ package ffmpeg import "C" import "unsafe" +// AVSphericalProjection type AVSphericalProjection = C.enum_AVSphericalProjection const ( @@ -18,6 +19,7 @@ const ( AV_SPHERICAL_EQUIRECTANGULAR_TILE = AVSphericalProjection(C.AV_SPHERICAL_EQUIRECTANGULAR_TILE) ) +// AVSphericalMapping type AVSphericalMapping C.struct_AVSphericalMapping // GetProjection gets `AVSphericalMapping.projection` value. diff --git a/avutil_stereo3d.go b/avutil_stereo3d.go index 762e364..e00bf63 100644 --- a/avutil_stereo3d.go +++ b/avutil_stereo3d.go @@ -36,6 +36,7 @@ const ( AV_STEREO3D_FLAG_INVERT = C.AV_STEREO3D_FLAG_INVERT ) +// AVStereo3D type AVStereo3D C.struct_AVStereo3D // GetType gets `AVStereo3D.type` value. diff --git a/avutil_threadmessage.go b/avutil_threadmessage.go index 5b75b46..e411d2f 100644 --- a/avutil_threadmessage.go +++ b/avutil_threadmessage.go @@ -12,6 +12,7 @@ typedef void (*av_thread_message_free_func)(void *msg); import "C" import "unsafe" +// AVThreadMessageQueue type AVThreadMessageQueue C.struct_AVThreadMessageQueue // AVThreadMessageFlags diff --git a/avutil_timecode.go b/avutil_timecode.go index c4e4e2b..b5bc41a 100644 --- a/avutil_timecode.go +++ b/avutil_timecode.go @@ -13,6 +13,7 @@ const ( AV_TIMECODE_STR_SIZE = C.AV_TIMECODE_STR_SIZE ) +// AVTimecodeFlag type AVTimecodeFlag = C.enum_AVTimecodeFlag const ( @@ -21,6 +22,7 @@ const ( AV_TIMECODE_FLAG_ALLOWNEGATIVE = AVTimecodeFlag(C.AV_TIMECODE_FLAG_ALLOWNEGATIVE) ) +// AVTimecode type AVTimecode C.AVTimecode // GetStart gets `AVTimecode.start` value. diff --git a/avutil_tree.go b/avutil_tree.go index dacb5a9..e48a2b3 100644 --- a/avutil_tree.go +++ b/avutil_tree.go @@ -14,6 +14,7 @@ typedef int (*av_tree_enu_func)(void *opaque, void *elem); import "C" import "unsafe" +// AVTreeNode type AVTreeNode C.struct_AVTreeNode // typedef int (*av_tree_cmp_func)(void *opaque, void *elem); diff --git a/avutil_xtea.go b/avutil_xtea.go index dc51dd2..2d6916f 100644 --- a/avutil_xtea.go +++ b/avutil_xtea.go @@ -10,6 +10,7 @@ package ffmpeg import "C" import "unsafe" +// AVXTEA type AVXTEA C.struct_AVXTEA // GetKey gets `AVXTEA.key` value.