From 6702a7541506d49ea967d8c3a2b4ba5f9df47106 Mon Sep 17 00:00:00 2001 From: aggresss Date: Sun, 5 Nov 2023 09:24:57 +0800 Subject: [PATCH] 2023-11-05 09:24:57 CST W45D0 --- avcodec_mediacodec.go | 2 +- avutil.go | 2 +- avutil_error.go | 2 +- avutil_frame.go | 2 +- avutil_log.go | 8 ++++---- avutil_rational.go | 2 +- avutil_timecode.go | 2 +- avutil_twofish.go | 2 +- swresample.go | 6 +++--- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/avcodec_mediacodec.go b/avcodec_mediacodec.go index fbafde5..6d2a955 100644 --- a/avcodec_mediacodec.go +++ b/avcodec_mediacodec.go @@ -25,7 +25,7 @@ func AvMediacodecDefaultInit(avctx *AVCodecContext, ctx *AVMediaCodecContext, su (*C.struct_AVMediaCodecContext)(ctx), VoidPointer(surface))) } -// AvMediacodecDefaultFree frees the MediaCodec context +// AvMediacodecDefaultFree frees the MediaCodec context. func AvMediacodecDefaultFree(avctx *AVCodecContext) { C.av_mediacodec_default_free((*C.struct_AVCodecContext)(avctx)) } diff --git a/avutil.go b/avutil.go index 19b4d08..2d4407f 100644 --- a/avutil.go +++ b/avutil.go @@ -34,7 +34,7 @@ func AvutilLicense() string { return C.GoString(C.avutil_license()) } -// Media Type +// Media Type. type AVMediaType = C.enum_AVMediaType const ( diff --git a/avutil_error.go b/avutil_error.go index 6705943..42d48d2 100644 --- a/avutil_error.go +++ b/avutil_error.go @@ -27,7 +27,7 @@ func AVUNERROR(e int32) int32 { return e } -// Error handling +// Error handling. const ( AVERROR_BSF_NOT_FOUND = int32(C.AVERROR_BSF_NOT_FOUND) AVERROR_BUG = int32(C.AVERROR_BUG) diff --git a/avutil_frame.go b/avutil_frame.go index b8adbea..302032a 100644 --- a/avutil_frame.go +++ b/avutil_frame.go @@ -1361,7 +1361,7 @@ func AvFrameApplyCropping(frame *AVFrame, flags int32) int32 { return (int32)(C.av_frame_apply_cropping((*C.struct_AVFrame)(frame), (C.int)(flags))) } -// AvFrameSideDataName returns a string identifying the side data type +// AvFrameSideDataName returns a string identifying the side data type. func AvFrameSideDataName(_type AVFrameSideDataType) string { return C.GoString(C.av_frame_side_data_name((C.enum_AVFrameSideDataType)(_type))) } diff --git a/avutil_log.go b/avutil_log.go index 4c506ad..bb15b60 100644 --- a/avutil_log.go +++ b/avutil_log.go @@ -193,12 +193,12 @@ func AvLogOnce(avcl CVoidPointer, initialLevel, subsequentLevel int32, state *in // NONEED: av_vlog -// AvLogGetLevel gets the current log level +// AvLogGetLevel gets the current log level. func AvLogGetLevel() int32 { return (int32)(C.av_log_get_level()) } -// AvLogSetLevel sets the log level +// AvLogSetLevel sets the log level. func AvLogSetLevel(level int32) { C.av_log_set_level((C.int)(level)) } @@ -206,14 +206,14 @@ func AvLogSetLevel(level int32) { // typedef void (*av_log_callback_func)(void*, int, const char*, va_list); type AVLogCallbackFunc = C.av_log_callback_func -// AvLogSetCallback sets the logging callback +// AvLogSetCallback sets the logging callback. func AvLogSetCallback(f AVLogCallbackFunc) { C.av_log_set_callback(f) } // NONEED: av_log_default_callback -// AvDefaultItemName returns the context name +// AvDefaultItemName returns the context name. func AvDefaultItemName(ctx CVoidPointer) string { return C.GoString(C.av_default_item_name(VoidPointer(ctx))) } diff --git a/avutil_rational.go b/avutil_rational.go index df361ac..a06a252 100644 --- a/avutil_rational.go +++ b/avutil_rational.go @@ -87,7 +87,7 @@ func AvD2Q(d float64, max int32) AVRational { // return One of the following values: // 1 if `q1` is nearer to `q` than `q2` // -1 if `q2` is nearer to `q` than `q1` -// 0 if they have the same distance +// 0 if they have the same distance. func AvNearerQ(q, q1, q2 AVRational) int32 { return (int32)(C.av_nearer_q((C.struct_AVRational)(q), (C.struct_AVRational)(q1), (C.struct_AVRational)(q2))) diff --git a/avutil_timecode.go b/avutil_timecode.go index b5bc41a..90c0939 100644 --- a/avutil_timecode.go +++ b/avutil_timecode.go @@ -130,7 +130,7 @@ func AvTimecodeInitFromString(tc *AVTimecode, rate AVRational, str string, logCt (*C.char)(strPtr), VoidPointer(logCtx))) } -// AvTimecodeCheckFrameRate checks if the timecode feature is available for the given frame rate +// AvTimecodeCheckFrameRate checks if the timecode feature is available for the given frame rate. func AvTimecodeCheckFrameRate(rate AVRational) int32 { return (int32)(C.av_timecode_check_frame_rate((C.struct_AVRational)(rate))) } diff --git a/avutil_twofish.go b/avutil_twofish.go index 04b2be1..d98f687 100644 --- a/avutil_twofish.go +++ b/avutil_twofish.go @@ -23,7 +23,7 @@ func AvTwofishInit(d *AVTWOFISH, key *uint8, keyBits int32) int32 { (*C.uint8_t)(key), (C.int)(keyBits))) } -// AvTwofishCrypt encrypts or decrypts a buffer using a previously initialized context +// AvTwofishCrypt encrypts or decrypts a buffer using a previously initialized context. func AvTwofishCrypt(d *AVTWOFISH, dst, src *uint8, count int32, iv *uint8, decrypt int32) { C.av_twofish_crypt((*C.struct_AVTWOFISH)(d), (*C.uint8_t)(dst), (*C.uint8_t)(src), diff --git a/swresample.go b/swresample.go index 638ea01..bed418f 100644 --- a/swresample.go +++ b/swresample.go @@ -14,7 +14,7 @@ const ( SWR_FLAG_RESAMPLE = C.SWR_FLAG_RESAMPLE ) -// Dithering algorithms +// Dithering algorithms. type SwrDitherType = C.enum_SwrDitherType const ( @@ -33,7 +33,7 @@ const ( SWR_DITHER_NB = SwrDitherType(C.SWR_DITHER_NB) ) -// Resampling Engines +// Resampling Engines. type SwrEngine = C.enum_SwrEngine const ( @@ -42,7 +42,7 @@ const ( SWR_ENGINE_NB = SwrEngine(C.SWR_ENGINE_NB) ) -// Resampling Filter Types +// Resampling Filter Types. type SwrFilterType = C.enum_SwrFilterType const (