Documentation ¶
Index ¶
- Constants
- Variables
- func CopyFrameProps(p0 *Frame, p1 *Frame) int32
- func DupeString(p0 string) *common.CChar
- func Free(p0 unsafe.Pointer)
- func FreeDict(p0 **Dictionary)
- func FreeFrame(p0 **Frame)
- func GetHWFrameBuffer(p0 *BufferRef, p1 *Frame, p2 int32) int32
- func InitHWFramesContext(p0 *BufferRef) int32
- func InitLogging()
- func Malloc(p0 uint64) unsafe.Pointer
- func NewHWDeviceContext(p0 **BufferRef, p1 HWDeviceType, p2 string, p3 *Dictionary, p4 int32) int32
- func RefFrame(p0 *Frame, p1 *Frame) int32
- func RescaleQ(a int64, b, c Rational) int64
- func RescaleQRound(a int64, b, c Rational, flags Rounding) int64
- func RescaleRound(p0 int64, p1 int64, p2 int64, p3 Rounding) int64
- func SetDict(p0 **Dictionary, p1 string, p2 string, p3 int32) int32
- func SetOpt(p0 unsafe.Pointer, p1 string, p2 string, p3 int32) int32
- func SetOptBin(p0 unsafe.Pointer, p1 string, p2 *uint8, p3 int32, p4 int32) int32
- func SetOptDouble(p0 unsafe.Pointer, p1 string, p2 float64, p3 int32) int32
- func SetOptInt(p0 unsafe.Pointer, p1 string, p2 int64, p3 int32) int32
- func SetOptPixelFormat(p0 unsafe.Pointer, p1 string, p2 PixelFormat, p3 int32) int32
- func SetOptRational(p0 unsafe.Pointer, p1 string, p2 Rational, p3 int32) int32
- func TransferHWFrameData(p0 *Frame, p1 *Frame, p2 int32) int32
- func UnrefBuffer(p0 **BufferRef)
- func UnrefFrame(p0 *Frame)
- type Buffer
- type BufferRef
- type Class
- type Dictionary
- type Error
- type Frame
- type FrameSideData
- type HWDeviceContext
- type HWDeviceType
- type HWFramesContext
- type MediaType
- type Option
- type OptionType
- type PixelFormat
- type Rational
- func (q Rational) Eq(rhs Rational) bool
- func (q Rational) Float64() float64
- func (q Rational) Gt(rhs Rational) bool
- func (q Rational) Gte(rhs Rational) bool
- func (q Rational) Inverse() Rational
- func (q Rational) IsZero() bool
- func (q Rational) Lt(rhs Rational) bool
- func (q Rational) Lte(rhs Rational) bool
- func (q Rational) String() string
- type Rounding
- type SampleFormat
- type VerbosityLevel
Constants ¶
View Source
const ( Quiet = VerbosityLevel(C.AV_LOG_QUIET) Panic = VerbosityLevel(C.AV_LOG_PANIC) Fatal = VerbosityLevel(C.AV_LOG_FATAL) Errors = VerbosityLevel(C.AV_LOG_ERROR) Warning = VerbosityLevel(C.AV_LOG_WARNING) Info = VerbosityLevel(C.AV_LOG_INFO) Verbose = VerbosityLevel(C.AV_LOG_VERBOSE) Debug = VerbosityLevel(C.AV_LOG_DEBUG) Trace = VerbosityLevel(C.AV_LOG_TRACE) )
View Source
const ( Audio = MediaType(C.AVMEDIA_TYPE_AUDIO) Video = MediaType(C.AVMEDIA_TYPE_VIDEO) )
View Source
const ( OptionTypeBool = OptionType(C.AV_OPT_TYPE_BOOL) OptionTypeFlags = OptionType(C.AV_OPT_TYPE_FLAGS) OptionTypeInt = OptionType(C.AV_OPT_TYPE_INT) OptionTypeInt64 = OptionType(C.AV_OPT_TYPE_INT64) OptionTypeUint64 = OptionType(C.AV_OPT_TYPE_UINT64) OptionTypeFloat = OptionType(C.AV_OPT_TYPE_FLOAT) OptionTypeDouble = OptionType(C.AV_OPT_TYPE_DOUBLE) OptionTypeVideoRate = OptionType(C.AV_OPT_TYPE_VIDEO_RATE) OptionTypeRational = OptionType(C.AV_OPT_TYPE_RATIONAL) OptionTypeConst = OptionType(C.AV_OPT_TYPE_CONST) )
View Source
const ( PixelFormatCuda = PixelFormat(C.AV_PIX_FMT_CUDA) PixelFormatNV12 = PixelFormat(C.AV_PIX_FMT_NV12) )
View Source
const ( RoundingPassMinMax = Rounding(C.AV_ROUND_PASS_MINMAX) RoundingNearInfinity = Rounding(C.AV_ROUND_NEAR_INF) )
View Source
const ( SampleFormatNone = SampleFormat(C.AV_SAMPLE_FMT_NONE) SampleFormatU8 = SampleFormat(C.AV_SAMPLE_FMT_U8) SampleFormatS16 = SampleFormat(C.AV_SAMPLE_FMT_S16) SampleFormatS32 = SampleFormat(C.AV_SAMPLE_FMT_S32) SampleFormatFLT = SampleFormat(C.AV_SAMPLE_FMT_FLT) SampleFormatDBL = SampleFormat(C.AV_SAMPLE_FMT_DBL) SampleFormatU8P = SampleFormat(C.AV_SAMPLE_FMT_U8P) SampleFormatS16P = SampleFormat(C.AV_SAMPLE_FMT_S16P) SampleFormatS32P = SampleFormat(C.AV_SAMPLE_FMT_S32P) SampleFormatFLTP = SampleFormat(C.AV_SAMPLE_FMT_FLTP) SampleFormatDBLP = SampleFormat(C.AV_SAMPLE_FMT_DBLP) SampleFormatS64 = SampleFormat(C.AV_SAMPLE_FMT_S64) SampleFormatS64P = SampleFormat(C.AV_SAMPLE_FMT_S64P) )
View Source
const (
Cuda = HWDeviceType(C.AV_HWDEVICE_TYPE_CUDA)
)
View Source
const (
TimeBase = C.AV_TIME_BASE
)
Variables ¶
View Source
var Logger *log.Logger
View Source
var Verbosity = Info
Functions ¶
func CopyFrameProps ¶
func DupeString ¶
func FreeDict ¶
func FreeDict(p0 **Dictionary)
func InitHWFramesContext ¶
func InitLogging ¶
func InitLogging()
func NewHWDeviceContext ¶
func NewHWDeviceContext(p0 **BufferRef, p1 HWDeviceType, p2 string, p3 *Dictionary, p4 int32) int32
func SetOptPixelFormat ¶
func SetOptRational ¶
func UnrefBuffer ¶
func UnrefBuffer(p0 **BufferRef)
func UnrefFrame ¶
func UnrefFrame(p0 *Frame)
Types ¶
type BufferRef ¶
type BufferRef struct { Buffer *Buffer Data *uint8 Size int32 // contains filtered or unexported fields }
func NewHWFramesContext ¶
type Dictionary ¶
type Dictionary struct{}
type Frame ¶
type Frame struct { Data [8]*uint8 Linesize [8]int32 ExtendedData **uint8 Width int32 Height int32 NbSamples int32 Format int32 KeyFrame int32 PictType uint32 SampleAspectRatio Rational Pts int64 PktPts int64 PktDts int64 CodedPictureNumber int32 DisplayPictureNumber int32 Quality int32 Opaque unsafe.Pointer Error [8]uint64 RepeatPict int32 InterlacedFrame int32 TopFieldFirst int32 PaletteHasChanged int32 ReorderedOpaque int64 SampleRate int32 ChannelLayout uint64 Buf [8]*BufferRef ExtendedBuf **BufferRef NbExtendedBuf int32 SideData **FrameSideData NbSideData int32 Flags int32 ColorRange uint32 ColorPrimaries uint32 ColorTrc uint32 Colorspace uint32 ChromaLocation uint32 BestEffortTimestamp int64 PktPos int64 PktDuration int64 Metadata *Dictionary DecodeErrorFlags int32 Channels int32 PktSize int32 QscaleTable *int8 Qstride int32 QscaleType int32 QpTableBuf *BufferRef HwFramesCtx *BufferRef OpaqueRef *BufferRef CropTop uint64 CropBottom uint64 CropLeft uint64 CropRight uint64 PrivateRef *BufferRef }
type FrameSideData ¶
type FrameSideData struct { Type uint32 Data *uint8 Size int32 Metadata *Dictionary Buf *BufferRef }
type HWDeviceContext ¶
type HWDeviceType ¶
type HWDeviceType C.enum_AVHWDeviceType
func (HWDeviceType) String ¶
func (f HWDeviceType) String() string
type HWFramesContext ¶
type HWFramesContext struct { AvClass *Class Internal *C.struct_AVHWFramesInternal DeviceRef *BufferRef DeviceCtx *HWDeviceContext Hwctx unsafe.Pointer Free unsafe.Pointer UserOpaque unsafe.Pointer Pool *C.struct_AVBufferPool InitialPoolSize int32 Format PixelFormat SwFormat PixelFormat Width int32 Height int32 // contains filtered or unexported fields }
type MediaType ¶
type MediaType C.enum_AVMediaType
type Option ¶
type OptionType ¶
type OptionType C.enum_AVOptionType
type PixelFormat ¶
type PixelFormat C.enum_AVPixelFormat
func (PixelFormat) String ¶
func (f PixelFormat) String() string
type Rational ¶
func MultiplyRational ¶
type Rounding ¶
type Rounding C.enum_AVRounding
type SampleFormat ¶
type SampleFormat C.enum_AVSampleFormat
func (SampleFormat) String ¶
func (f SampleFormat) String() string
type VerbosityLevel ¶
type VerbosityLevel int
Click to show internal directories.
Click to hide internal directories.