mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-07 16:41:07 +08:00
2023-11-04 09:31:38 CST W44D6
This commit is contained in:
@@ -11,6 +11,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVVideotoolboxContext
|
||||||
type AVVideotoolboxContext C.struct_AVVideotoolboxContext
|
type AVVideotoolboxContext C.struct_AVVideotoolboxContext
|
||||||
|
|
||||||
// AvVideotoolboxAllocContext allocates and initializes a Videotoolbox context.
|
// AvVideotoolboxAllocContext allocates and initializes a Videotoolbox context.
|
||||||
|
@@ -981,8 +981,13 @@ func (cpt *AVChapter) GetMetadataAddr() **AVDictionary {
|
|||||||
return (**AVDictionary)(unsafe.Pointer(&cpt.metadata))
|
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
|
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
|
type AVOpenCallbackFunc C.AVOpenCallback
|
||||||
|
|
||||||
// AVDurationEstimationMethod
|
// AVDurationEstimationMethod
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVAudioFifo
|
||||||
type AVAudioFifo C.struct_AVAudioFifo
|
type AVAudioFifo C.struct_AVAudioFifo
|
||||||
|
|
||||||
// AvAudioFifoFree frees an AVAudioFifo.
|
// AvAudioFifoFree frees an AVAudioFifo.
|
||||||
|
@@ -57,6 +57,7 @@ import "C"
|
|||||||
|
|
||||||
// NONEED: av_append_path_component
|
// NONEED: av_append_path_component
|
||||||
|
|
||||||
|
// AVEscapeMode
|
||||||
type AVEscapeMode = C.enum_AVEscapeMode
|
type AVEscapeMode = C.enum_AVEscapeMode
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -14,6 +14,7 @@ const (
|
|||||||
AV_BF_ROUNDS = C.AV_BF_ROUNDS
|
AV_BF_ROUNDS = C.AV_BF_ROUNDS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVBlowfish
|
||||||
type AVBlowfish C.struct_AVBlowfish
|
type AVBlowfish C.struct_AVBlowfish
|
||||||
|
|
||||||
// GetP gets `AVBlowfish.p` value.
|
// GetP gets `AVBlowfish.p` value.
|
||||||
|
@@ -17,6 +17,7 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVBPrint
|
||||||
type AVBPrint C.struct_AVBPrint
|
type AVBPrint C.struct_AVBPrint
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVCAMELLIA
|
||||||
type AVCAMELLIA C.struct_AVCAMELLIA
|
type AVCAMELLIA C.struct_AVCAMELLIA
|
||||||
|
|
||||||
// AvCamelliaAlloc allocates an AVCAMELLIA context.
|
// AvCamelliaAlloc allocates an AVCAMELLIA context.
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVCAST5
|
||||||
type AVCAST5 C.struct_AVCAST5
|
type AVCAST5 C.struct_AVCAST5
|
||||||
|
|
||||||
// AvCast5Alloc allocates an AVCAST5 context.
|
// AvCast5Alloc allocates an AVCAST5 context.
|
||||||
|
@@ -71,6 +71,7 @@ const (
|
|||||||
AV_CH_LAYOUT_STEREO_DOWNMIX = uint64(C.AV_CH_LAYOUT_STEREO_DOWNMIX)
|
AV_CH_LAYOUT_STEREO_DOWNMIX = uint64(C.AV_CH_LAYOUT_STEREO_DOWNMIX)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVMatrixEncoding
|
||||||
type AVMatrixEncoding = C.enum_AVMatrixEncoding
|
type AVMatrixEncoding = C.enum_AVMatrixEncoding
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -20,6 +20,7 @@ const (
|
|||||||
AV_DICT_MULTIKEY = C.AV_DICT_MULTIKEY
|
AV_DICT_MULTIKEY = C.AV_DICT_MULTIKEY
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVDictionaryEntry
|
||||||
type AVDictionaryEntry C.struct_AVDictionaryEntry
|
type AVDictionaryEntry C.struct_AVDictionaryEntry
|
||||||
|
|
||||||
// GetKey gets `AVDictionaryEntry.key` value.
|
// GetKey gets `AVDictionaryEntry.key` value.
|
||||||
|
@@ -31,10 +31,13 @@ const (
|
|||||||
AV_HWDEVICE_TYPE_VULKAN = AVHWDeviceType(C.AV_HWDEVICE_TYPE_VULKAN)
|
AV_HWDEVICE_TYPE_VULKAN = AVHWDeviceType(C.AV_HWDEVICE_TYPE_VULKAN)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVHWDeviceInternal
|
||||||
type AVHWDeviceInternal C.struct_AVHWDeviceInternal
|
type AVHWDeviceInternal C.struct_AVHWDeviceInternal
|
||||||
|
|
||||||
|
// AVHWDeviceContext
|
||||||
type AVHWDeviceContext C.struct_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
|
type AVHWDeviceContextFreeFunc = C.av_hw_device_context_free_func
|
||||||
|
|
||||||
// GetAvClass gets `AVHWDeviceContext.av_class` value.
|
// GetAvClass gets `AVHWDeviceContext.av_class` value.
|
||||||
@@ -117,10 +120,13 @@ func (dc *AVHWDeviceContext) GetUserOpaqueAddr() *unsafe.Pointer {
|
|||||||
return &dc.user_opaque
|
return &dc.user_opaque
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AVHWFramesInternal
|
||||||
type AVHWFramesInternal C.struct_AVHWFramesInternal
|
type AVHWFramesInternal C.struct_AVHWFramesInternal
|
||||||
|
|
||||||
|
// AVHWFramesContext
|
||||||
type AVHWFramesContext C.struct_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
|
type AVHWFramesContextFreeFunc = C.av_hw_frames_context_free_func
|
||||||
|
|
||||||
// GetAvClass gets `AVHWFramesContext.av_class` value.
|
// GetAvClass gets `AVHWFramesContext.av_class` value.
|
||||||
@@ -393,6 +399,7 @@ func AvHWFrameTransferData(dst, src *AVFrame, flags int32) int32 {
|
|||||||
(C.int)(flags)))
|
(C.int)(flags)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AVHWFrameTransferDirection
|
||||||
type AVHWFrameTransferDirection = C.enum_AVHWFrameTransferDirection
|
type AVHWFrameTransferDirection = C.enum_AVHWFrameTransferDirection
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -410,6 +417,7 @@ func AvHWFrameTransferGetFormats(hwframeCtx *AVBufferRef, dir AVHWFrameTransferD
|
|||||||
(C.int)(flags)))
|
(C.int)(flags)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AVHWFramesConstraints
|
||||||
type AVHWFramesConstraints C.struct_AVHWFramesConstraints
|
type AVHWFramesConstraints C.struct_AVHWFramesConstraints
|
||||||
|
|
||||||
// GetValidHwFormats gets `AVHWFramesConstraints.valid_hw_formats` value.
|
// GetValidHwFormats gets `AVHWFramesConstraints.valid_hw_formats` value.
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVRounding
|
||||||
type AVRounding = C.enum_AVRounding
|
type AVRounding = C.enum_AVRounding
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVMotionVector
|
||||||
type AVMotionVector C.struct_AVMotionVector
|
type AVMotionVector C.struct_AVMotionVector
|
||||||
|
|
||||||
// GetSource gets `AVMotionVector.source` value.
|
// GetSource gets `AVMotionVector.source` value.
|
||||||
|
@@ -9,6 +9,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVMurMur3
|
||||||
type AVMurMur3 C.struct_AVMurMur3
|
type AVMurMur3 C.struct_AVMurMur3
|
||||||
|
|
||||||
// AvMurmur3Alloc allocates an AVMurMur3 hash context.
|
// AvMurmur3Alloc allocates an AVMurMur3 hash context.
|
||||||
|
@@ -10,6 +10,7 @@ package ffmpeg
|
|||||||
import "C"
|
import "C"
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
|
// AVComponentDescriptor
|
||||||
type AVComponentDescriptor C.struct_AVComponentDescriptor
|
type AVComponentDescriptor C.struct_AVComponentDescriptor
|
||||||
|
|
||||||
// GetPlane gets `AVComponentDescriptor.plane` value.
|
// GetPlane gets `AVComponentDescriptor.plane` value.
|
||||||
|
@@ -10,6 +10,7 @@ package ffmpeg
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// AVPixelutilsSadFn
|
||||||
type AVPixelutilsSadFn C.av_pixelutils_sad_fn
|
type AVPixelutilsSadFn C.av_pixelutils_sad_fn
|
||||||
|
|
||||||
// AvPixelutilsGetSadFn gets a potentially optimized pointer to a Sum-of-absolute-differences
|
// AvPixelutilsGetSadFn gets a potentially optimized pointer to a Sum-of-absolute-differences
|
||||||
|
@@ -10,6 +10,7 @@ package ffmpeg
|
|||||||
import "C"
|
import "C"
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
|
// AVSphericalProjection
|
||||||
type AVSphericalProjection = C.enum_AVSphericalProjection
|
type AVSphericalProjection = C.enum_AVSphericalProjection
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -18,6 +19,7 @@ const (
|
|||||||
AV_SPHERICAL_EQUIRECTANGULAR_TILE = AVSphericalProjection(C.AV_SPHERICAL_EQUIRECTANGULAR_TILE)
|
AV_SPHERICAL_EQUIRECTANGULAR_TILE = AVSphericalProjection(C.AV_SPHERICAL_EQUIRECTANGULAR_TILE)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVSphericalMapping
|
||||||
type AVSphericalMapping C.struct_AVSphericalMapping
|
type AVSphericalMapping C.struct_AVSphericalMapping
|
||||||
|
|
||||||
// GetProjection gets `AVSphericalMapping.projection` value.
|
// GetProjection gets `AVSphericalMapping.projection` value.
|
||||||
|
@@ -36,6 +36,7 @@ const (
|
|||||||
AV_STEREO3D_FLAG_INVERT = C.AV_STEREO3D_FLAG_INVERT
|
AV_STEREO3D_FLAG_INVERT = C.AV_STEREO3D_FLAG_INVERT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVStereo3D
|
||||||
type AVStereo3D C.struct_AVStereo3D
|
type AVStereo3D C.struct_AVStereo3D
|
||||||
|
|
||||||
// GetType gets `AVStereo3D.type` value.
|
// GetType gets `AVStereo3D.type` value.
|
||||||
|
@@ -12,6 +12,7 @@ typedef void (*av_thread_message_free_func)(void *msg);
|
|||||||
import "C"
|
import "C"
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
|
// AVThreadMessageQueue
|
||||||
type AVThreadMessageQueue C.struct_AVThreadMessageQueue
|
type AVThreadMessageQueue C.struct_AVThreadMessageQueue
|
||||||
|
|
||||||
// AVThreadMessageFlags
|
// AVThreadMessageFlags
|
||||||
|
@@ -13,6 +13,7 @@ const (
|
|||||||
AV_TIMECODE_STR_SIZE = C.AV_TIMECODE_STR_SIZE
|
AV_TIMECODE_STR_SIZE = C.AV_TIMECODE_STR_SIZE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVTimecodeFlag
|
||||||
type AVTimecodeFlag = C.enum_AVTimecodeFlag
|
type AVTimecodeFlag = C.enum_AVTimecodeFlag
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -21,6 +22,7 @@ const (
|
|||||||
AV_TIMECODE_FLAG_ALLOWNEGATIVE = AVTimecodeFlag(C.AV_TIMECODE_FLAG_ALLOWNEGATIVE)
|
AV_TIMECODE_FLAG_ALLOWNEGATIVE = AVTimecodeFlag(C.AV_TIMECODE_FLAG_ALLOWNEGATIVE)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AVTimecode
|
||||||
type AVTimecode C.AVTimecode
|
type AVTimecode C.AVTimecode
|
||||||
|
|
||||||
// GetStart gets `AVTimecode.start` value.
|
// GetStart gets `AVTimecode.start` value.
|
||||||
|
@@ -14,6 +14,7 @@ typedef int (*av_tree_enu_func)(void *opaque, void *elem);
|
|||||||
import "C"
|
import "C"
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
|
// AVTreeNode
|
||||||
type AVTreeNode C.struct_AVTreeNode
|
type AVTreeNode C.struct_AVTreeNode
|
||||||
|
|
||||||
// typedef int (*av_tree_cmp_func)(void *opaque, void *elem);
|
// typedef int (*av_tree_cmp_func)(void *opaque, void *elem);
|
||||||
|
@@ -10,6 +10,7 @@ package ffmpeg
|
|||||||
import "C"
|
import "C"
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
|
||||||
|
// AVXTEA
|
||||||
type AVXTEA C.struct_AVXTEA
|
type AVXTEA C.struct_AVXTEA
|
||||||
|
|
||||||
// GetKey gets `AVXTEA.key` value.
|
// GetKey gets `AVXTEA.key` value.
|
||||||
|
Reference in New Issue
Block a user