2023-11-04 17:30:05 CST W44D6

This commit is contained in:
aggresss
2023-11-04 17:30:05 +08:00
parent 35ead29659
commit d9fd8e43ad
9 changed files with 20 additions and 20 deletions

View File

@@ -5218,7 +5218,7 @@ func AvCodecDefaultGetFormat(avctx *AVCodecContext, fmt *AVPixelFormat) AVPixelF
(*C.enum_AVPixelFormat)(fmt)))
}
// Deprecated: Use AvFourccMakeString() or AvFourcc2str() instead.
// Deprecated: Use AvFourccMakeString() or AvFourcc2str() instead.
//
// AvGetCodecTagString
func AvGetCodecTagString(buf *int8, bufSize uintptr, codecTag uint32) int32 {

View File

@@ -154,12 +154,12 @@ func AvCodecFindEncoderByName(name string) *AVCodec {
return (*AVCodec)(C.avcodec_find_encoder_by_name((*C.char)(namePtr)))
}
// AvCodecIsEncoder returns a non-zero number if codec is an encoder, zero otherwise
// AvCodecIsEncoder returns a non-zero number if codec is an encoder, zero otherwise.
func AvCodecIsEncoder(codec *AVCodec) int32 {
return (int32)(C.av_codec_is_encoder((*C.struct_AVCodec)(codec)))
}
// AvCodecIsDecoder returns a non-zero number if codec is an decoder, zero otherwise
// AvCodecIsDecoder returns a non-zero number if codec is an decoder, zero otherwise.
func AvCodecIsDecoder(codec *AVCodec) int32 {
return (int32)(C.av_codec_is_decoder((*C.struct_AVCodec)(codec)))
}

View File

@@ -325,7 +325,7 @@ const (
AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = AVSideDataParamChangeFlags(C.AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS)
)
// AvPacketAlloc allocates an AVPacket and set its fields to default values. The resulting
// AvPacketAlloc allocates an AVPacket and set its fields to default values. The resulting
// struct must be freed using AVPacketFree().
func AvPacketAlloc() *AVPacket {
return (*AVPacket)(C.av_packet_alloc())
@@ -353,12 +353,12 @@ func AvNewPacket(pkt *AVPacket, size int32) int32 {
return (int32)(C.av_new_packet((*C.struct_AVPacket)(pkt), (C.int)(size)))
}
// AvShrinkPacket reduces packet size, correctly zeroing padding
// AvShrinkPacket reduces packet size, correctly zeroing padding.
func AvShrinkPacket(pkt *AVPacket, size int32) {
C.av_shrink_packet((*C.struct_AVPacket)(pkt), (C.int)(size))
}
// AvGrowPacket increases packet size, correctly zeroing padding
// AvGrowPacket increases packet size, correctly zeroing padding.
func AvGrowPacket(pkt *AVPacket, growBy int32) int32 {
return (int32)(C.av_grow_packet((*C.struct_AVPacket)(pkt), (C.int)(growBy)))
}
@@ -378,14 +378,14 @@ func AvDupPacket(pkt *AVPacket) {
// Deprecated: Use AVPacketRef instead.
//
// AvCopyPacket copies packet, including contents
// AvCopyPacket copies packet, including contents.
func AvCopyPacket(dst, src *AVPacket) int32 {
return (int32)(C.av_copy_packet((*C.struct_AVPacket)(dst), (*C.struct_AVPacket)(src)))
}
// Deprecated: Use AVPacketCopyProps instead.
//
// AvCopyPacketSideData copies packet side data
// AvCopyPacketSideData copies packet side data.
func AvCopyPacketSideData(dst, src *AVPacket) int32 {
return (int32)(C.av_copy_packet_side_data((*C.struct_AVPacket)(dst), (*C.struct_AVPacket)(src)))
}
@@ -452,7 +452,7 @@ func AvPacketFreeSideData(pkt *AVPacket) {
C.av_packet_free_side_data((*C.struct_AVPacket)(pkt))
}
// AvPacketRef setups a new reference to the data described by a given packet
// AvPacketRef setups a new reference to the data described by a given packet.
func AvPacketRef(dst, src *AVPacket) int32 {
return (int32)(C.av_packet_ref((*C.struct_AVPacket)(dst), (*C.struct_AVPacket)(src)))
}
@@ -478,7 +478,7 @@ func AvPacketMakeRefcounted(pkt *AVPacket) {
C.av_packet_make_refcounted((*C.struct_AVPacket)(pkt))
}
// AvPacketMakeWritable creates a writable reference for the data described by a given packet,
// AvPacketMakeWritable creates a writable reference for the data described by a given packet,
// avoiding data copy if possible.
func AvPacketMakeWritable(pkt *AVPacket) {
C.av_packet_make_writable((*C.struct_AVPacket)(pkt))

View File

@@ -690,7 +690,7 @@ const (
AVFILTER_CMD_FLAG_FAST = C.AVFILTER_CMD_FLAG_FAST
)
// AvFilterProcessCommand makes the filter instance process a command.
// AvFilterProcessCommand makes the filter instance process a command.
// It is recommended to use AVFilterGraphSendCommand().
func AvFilterProcessCommand(filter *AVFilterContext, cmd, arg string, resLen, flags int32) (res string, ret int32) {
cmdPtr, cmdFunc := StringCasting(cmd)

View File

@@ -2400,7 +2400,7 @@ func AvProbeInputBuffer2(pb *AVIOContext, fmt **AVInputFormat,
(*C.char)(urlPtr), VoidPointer(logctx), (C.uint)(offset), (C.uint)(maxProbeSize)))
}
// AvProbeInputBuffer likes AvProbeInputBuffer2() but returns 0 on success
// AvProbeInputBuffer likes AvProbeInputBuffer2() but returns 0 on success.
func AvProbeInputBuffer(pb *AVIOContext, fmt **AVInputFormat,
url string, logctx CVoidPointer, offset, maxProbeSize uint32) int32 {
urlPtr, urlFunc := StringCasting(url)

View File

@@ -51,7 +51,7 @@ const (
AV_BUFFER_FLAG_READONLY = C.AV_BUFFER_FLAG_READONLY
)
// typedef void (*av_buffer_free_func)(void *opaque, uint8_t *data)
// typedef void (*av_buffer_free_func)(void *opaque, uint8_t *data);
type AVBufferFreeFunc = C.av_buffer_free_func
// AvBufferCreate Create an AVBuffer from an existing array.
@@ -107,13 +107,13 @@ func AvBufferRealloc(buf **AVBufferRef, size int32) int32 {
// AVBufferPool
type AVBufferPool C.struct_AVBufferPool
// typedef AVBufferRef* (*av_buffer_pool_alloc_func)(int size)
// typedef AVBufferRef* (*av_buffer_pool_alloc_func)(int size);
type AVBufferPoolAllocFunc = C.av_buffer_pool_alloc_func
// typedef AVBufferRef* (*av_buffer_pool_alloc2_func)(void* opaque, int size)
// typedef AVBufferRef* (*av_buffer_pool_alloc2_func)(void* opaque, int size);
type AVBufferPoolAlloc2Func = C.av_buffer_pool_alloc2_func
// typedef void (*av_buffer_pool_free_func)(void* opaque)
// typedef void (*av_buffer_pool_free_func)(void* opaque);
type AVBufferPoolFreeFunc = C.av_buffer_pool_free_func
// AvBufferPoolInit allocates and initializes a buffer pool.

View File

@@ -247,12 +247,12 @@ func AvCeilLog2C(x int32) int32 {
return (int32)(C.av_ceil_log2_c((C.int)(x)))
}
// AvPopcountC counts number of bits set to one in x
// AvPopcountC counts number of bits set to one in x.
func AvPopcountC(x uint32) int32 {
return (int32)(C.av_popcount_c((C.uint)(x)))
}
// AvPopcount64C counts number of bits set to one in x
// AvPopcount64C counts number of bits set to one in x.
func AvPopcount64C(x uint64) int32 {
return (int32)(C.av_popcount64_c((C.uint64_t)(x)))
}

View File

@@ -65,7 +65,7 @@ func AvForceCpuFlags(flags int32) {
C.av_force_cpu_flags((C.int)(flags))
}
// Deprecated: Use AvForceCpuFlags() and AvGetCpuFlags() instead
// Deprecated: Use AvForceCpuFlags() and AvGetCpuFlags() instead.
//
// AvSetCpuFlagsMask set a mask on flags returned by AvGetCpuFlags().
func AvSetCpuFlagsMask(mask int32) {

View File

@@ -109,7 +109,7 @@ func SwrNextPts(s *SwrContext, pts int64) int64 {
return (int64)(C.swr_next_pts((*C.struct_SwrContext)(s), (C.int64_t)(pts)))
}
// SwrSetCompensation activates resampling compensation ("soft" compensation).
// SwrSetCompensation activates resampling compensation ("soft" compensation).
// This function is internally called when needed in SwrNextPts().
func SwrSetCompensation(s *SwrContext, sampleDelta, compensationDistance int32) int32 {
return (int32)(C.swr_set_compensation((*C.struct_SwrContext)(s),