goavcodec

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePcmChan added in v0.0.4

func ParsePcmChan(ctx context.Context, dataInCh <-chan []byte) (context.Context, <-chan *AVPacket)

Types

type AVCodec

type AVCodec struct {
	CAVCodec *avcodec.CAVCodec
}

func FindDecoder

func FindDecoder(id avcodec.CAVCodecID) *AVCodec

func FindDecoderByName

func FindDecoderByName(name string) *AVCodec

func FindEncoder

func FindEncoder(id avcodec.CAVCodecID) *AVCodec

func FindEncoderByName

func FindEncoderByName(name string) *AVCodec

func GetAvailableCodecs

func GetAvailableCodecs() []*AVCodec

func (*AVCodec) CreateContext

func (codec *AVCodec) CreateContext() *AVCodecContext

func (*AVCodec) CreateParserContext

func (codec *AVCodec) CreateParserContext() *AVCodecParserContext

func (*AVCodec) GetChLayouts added in v0.0.5

func (codec *AVCodec) GetChLayouts() []goavutil.AVChannelLayout

func (*AVCodec) GetSupportedSampleFmts added in v0.0.4

func (codec *AVCodec) GetSupportedSampleFmts() []avutil.CAVSampleFormat

func (*AVCodec) GetSupportedSamplerates

func (codec *AVCodec) GetSupportedSamplerates() []int

type AVCodecContext

type AVCodecContext struct {
	CAVCodecContext *avcodec.CAVCodecContext
}

func NewContext added in v0.0.5

func NewContext(codec *AVCodec) *AVCodecContext

func (*AVCodecContext) ChunkingFrameChan added in v0.0.5

func (avctx *AVCodecContext) ChunkingFrameChan(ctx context.Context, frameInChan <-chan *goavutil.AVFrame) (context.Context, <-chan *goavutil.AVFrame)

ChunkingFrameChan chunking read frame by AVAudioFifo.

Example:

if avctx.CAVCodecContext.GetCodec().GetCapabilities()&avcodec.AV_CODEC_CAP_VARIABLE_FRAME_SIZE == 0 {
	ctx, frameChan = avctx.chunkingFrameChan(ctx, frameChan)
}
avctx.EncodeChan(ctx, frameChan)

func (*AVCodecContext) Close added in v0.0.4

func (avctx *AVCodecContext) Close() int

func (*AVCodecContext) Decode

func (avctx *AVCodecContext) Decode(pkt *AVPacket) ([]*goavutil.AVFrame, int)

Decode AVPacket. Return a slice of decoded AVFrame, May be nil or empty.

func (*AVCodecContext) DecodeChan added in v0.0.4

func (avctx *AVCodecContext) DecodeChan(ctx context.Context, pktChan <-chan *AVPacket) (context.Context, <-chan *goavutil.AVFrame)

Decode AVPacket from channel.

@param ctx The context.Context to cancel this goroutine. @param pktChan The AVPacket channel.

@return context.Context The context.Context to get the cause of this gorouine. @return <-chan *goavutil.AVFrame The channel to read decoded AVFrame.

func (*AVCodecContext) Encode

func (avctx *AVCodecContext) Encode(frame *goavutil.AVFrame) ([]*AVPacket, int)

Encode AVFrame. Return a slice of encoded AVPacket, May be nil or empty.

func (*AVCodecContext) EncodeChan added in v0.0.4

func (avctx *AVCodecContext) EncodeChan(ctx context.Context, frameChan <-chan *goavutil.AVFrame) (context.Context, <-chan *AVPacket)

Encode AVPacket from channel.

@param ctx The context.Context to cancel this goroutine. @param frameChan The AVFrame channel.

@return context.Context The context.Context to get the cause of this gorouine. @return <-chan *AVPacket The channel to read encoded AVPacket.

func (*AVCodecContext) Free

func (avctx *AVCodecContext) Free()

func (*AVCodecContext) GetActiveThreadType added in v0.0.5

func (avctx *AVCodecContext) GetActiveThreadType() int

func (*AVCodecContext) GetApplyCropping added in v0.0.5

func (avctx *AVCodecContext) GetApplyCropping() int

func (*AVCodecContext) GetAudioServiceType added in v0.0.5

func (avctx *AVCodecContext) GetAudioServiceType() avcodec.CAVAudioServiceType

func (*AVCodecContext) GetAvClass added in v0.0.5

func (avctx *AVCodecContext) GetAvClass() *avutil.CAVClass

func (*AVCodecContext) GetBQuantFactor added in v0.0.5

func (avctx *AVCodecContext) GetBQuantFactor() float32

func (*AVCodecContext) GetBQuantOffset added in v0.0.5

func (avctx *AVCodecContext) GetBQuantOffset() float32

func (*AVCodecContext) GetBidirRefine added in v0.0.5

func (avctx *AVCodecContext) GetBidirRefine() int

func (*AVCodecContext) GetBitRate added in v0.0.5

func (avctx *AVCodecContext) GetBitRate() int64

func (*AVCodecContext) GetBitRateTolerance added in v0.0.5

func (avctx *AVCodecContext) GetBitRateTolerance() int

func (*AVCodecContext) GetBitsPerCodedSample added in v0.0.5

func (avctx *AVCodecContext) GetBitsPerCodedSample() int

func (*AVCodecContext) GetBitsPerRawSample added in v0.0.5

func (avctx *AVCodecContext) GetBitsPerRawSample() int

func (*AVCodecContext) GetBlockAlign added in v0.0.5

func (avctx *AVCodecContext) GetBlockAlign() int

func (*AVCodecContext) GetChLayout

func (avctx *AVCodecContext) GetChLayout() *goavutil.AVChannelLayout

func (*AVCodecContext) GetChromaIntraMatrix added in v0.0.5

func (avctx *AVCodecContext) GetChromaIntraMatrix() *ctypes.UInt16

func (*AVCodecContext) GetCodec added in v0.0.5

func (avctx *AVCodecContext) GetCodec() *AVCodec

func (*AVCodecContext) GetCodecDescriptor added in v0.0.5

func (avctx *AVCodecContext) GetCodecDescriptor() *avcodec.CAVCodecDescriptor

func (*AVCodecContext) GetCodecId added in v0.0.5

func (avctx *AVCodecContext) GetCodecId() avcodec.CAVCodecID

func (*AVCodecContext) GetCodecTag added in v0.0.5

func (avctx *AVCodecContext) GetCodecTag() uint

func (*AVCodecContext) GetCodecType added in v0.0.5

func (avctx *AVCodecContext) GetCodecType() avutil.CAVMediaType

func (*AVCodecContext) GetCodecWhitelist added in v0.0.5

func (avctx *AVCodecContext) GetCodecWhitelist() string

func (*AVCodecContext) GetCodedHeight added in v0.0.5

func (avctx *AVCodecContext) GetCodedHeight() int

func (*AVCodecContext) GetCodedSideData added in v0.0.5

func (avctx *AVCodecContext) GetCodedSideData() *avcodec.CAVPacketSideData

func (*AVCodecContext) GetCodedWidth added in v0.0.5

func (avctx *AVCodecContext) GetCodedWidth() int

func (*AVCodecContext) GetColorPrimaries added in v0.0.5

func (avctx *AVCodecContext) GetColorPrimaries() avutil.CAVColorPrimaries

func (*AVCodecContext) GetColorRange added in v0.0.5

func (avctx *AVCodecContext) GetColorRange() avutil.CAVColorRange

func (*AVCodecContext) GetColorTrc added in v0.0.5

func (*AVCodecContext) GetColorspace added in v0.0.5

func (avctx *AVCodecContext) GetColorspace() avutil.CAVColorSpace

func (*AVCodecContext) GetCompressionLevel added in v0.0.5

func (avctx *AVCodecContext) GetCompressionLevel() int

func (*AVCodecContext) GetCutoff added in v0.0.5

func (avctx *AVCodecContext) GetCutoff() int

func (*AVCodecContext) GetDarkMasking added in v0.0.5

func (avctx *AVCodecContext) GetDarkMasking() float32

func (*AVCodecContext) GetDctAlgo added in v0.0.5

func (avctx *AVCodecContext) GetDctAlgo() int

func (*AVCodecContext) GetDebug added in v0.0.5

func (avctx *AVCodecContext) GetDebug() int

func (*AVCodecContext) GetDelay added in v0.0.5

func (avctx *AVCodecContext) GetDelay() int

func (*AVCodecContext) GetDiaSize added in v0.0.5

func (avctx *AVCodecContext) GetDiaSize() int

func (*AVCodecContext) GetDiscardDamagedPercentage added in v0.0.5

func (avctx *AVCodecContext) GetDiscardDamagedPercentage() int

func (*AVCodecContext) GetDrawHorizBand added in v0.0.5

func (avctx *AVCodecContext) GetDrawHorizBand() ctypes.CFunc

func (*AVCodecContext) GetDumpSeparator added in v0.0.5

func (avctx *AVCodecContext) GetDumpSeparator() string

func (*AVCodecContext) GetErrRecognition added in v0.0.5

func (avctx *AVCodecContext) GetErrRecognition() int

func (*AVCodecContext) GetError added in v0.0.5

func (*AVCodecContext) GetErrorConcealment added in v0.0.5

func (avctx *AVCodecContext) GetErrorConcealment() int

func (*AVCodecContext) GetExecute added in v0.0.5

func (avctx *AVCodecContext) GetExecute() ctypes.CFunc

func (*AVCodecContext) GetExecute2 added in v0.0.5

func (avctx *AVCodecContext) GetExecute2() ctypes.CFunc

func (*AVCodecContext) GetExportSideData added in v0.0.5

func (avctx *AVCodecContext) GetExportSideData() int

func (*AVCodecContext) GetExtraHwFrames added in v0.0.5

func (avctx *AVCodecContext) GetExtraHwFrames() int

func (*AVCodecContext) GetExtradata added in v0.0.5

func (avctx *AVCodecContext) GetExtradata() unsafe.Pointer

func (*AVCodecContext) GetExtradataSize added in v0.0.5

func (avctx *AVCodecContext) GetExtradataSize() int

func (*AVCodecContext) GetFieldOrder added in v0.0.5

func (avctx *AVCodecContext) GetFieldOrder() avcodec.CAVFieldOrder

func (*AVCodecContext) GetFlags added in v0.0.5

func (avctx *AVCodecContext) GetFlags() int

func (*AVCodecContext) GetFlags2 added in v0.0.5

func (avctx *AVCodecContext) GetFlags2() int

func (*AVCodecContext) GetFrameNum added in v0.0.5

func (avctx *AVCodecContext) GetFrameNum() int64

func (*AVCodecContext) GetFrameSize added in v0.0.5

func (avctx *AVCodecContext) GetFrameSize() int

func (*AVCodecContext) GetFramerate added in v0.0.5

func (avctx *AVCodecContext) GetFramerate() avutil.CAVRational

func (*AVCodecContext) GetGetBuffer2 added in v0.0.5

func (avctx *AVCodecContext) GetGetBuffer2() ctypes.CFunc

func (*AVCodecContext) GetGetEncodeBuffer added in v0.0.5

func (avctx *AVCodecContext) GetGetEncodeBuffer() ctypes.CFunc

func (*AVCodecContext) GetGetFormat added in v0.0.5

func (avctx *AVCodecContext) GetGetFormat() ctypes.CFunc

func (*AVCodecContext) GetGlobalQuality added in v0.0.5

func (avctx *AVCodecContext) GetGlobalQuality() int

func (*AVCodecContext) GetGopSize added in v0.0.5

func (avctx *AVCodecContext) GetGopSize() int

func (*AVCodecContext) GetHasBFrames added in v0.0.5

func (avctx *AVCodecContext) GetHasBFrames() int

func (*AVCodecContext) GetHeight

func (avctx *AVCodecContext) GetHeight() int

func (*AVCodecContext) GetHwDeviceCtx added in v0.0.5

func (avctx *AVCodecContext) GetHwDeviceCtx() *avutil.CAVBufferRef

func (*AVCodecContext) GetHwFramesCtx added in v0.0.5

func (avctx *AVCodecContext) GetHwFramesCtx() *avutil.CAVBufferRef

func (*AVCodecContext) GetHwaccel added in v0.0.5

func (avctx *AVCodecContext) GetHwaccel() *avcodec.CAVHWAccel

func (*AVCodecContext) GetHwaccelContext added in v0.0.5

func (avctx *AVCodecContext) GetHwaccelContext() unsafe.Pointer

func (*AVCodecContext) GetHwaccelFlags added in v0.0.5

func (avctx *AVCodecContext) GetHwaccelFlags() int

func (*AVCodecContext) GetIQuantFactor added in v0.0.5

func (avctx *AVCodecContext) GetIQuantFactor() float32

func (*AVCodecContext) GetIQuantOffset added in v0.0.5

func (avctx *AVCodecContext) GetIQuantOffset() float32

func (*AVCodecContext) GetIdctAlgo added in v0.0.5

func (avctx *AVCodecContext) GetIdctAlgo() int

func (*AVCodecContext) GetIldctCmp added in v0.0.5

func (avctx *AVCodecContext) GetIldctCmp() int

func (*AVCodecContext) GetInitialPadding added in v0.0.5

func (avctx *AVCodecContext) GetInitialPadding() int

func (*AVCodecContext) GetInterMatrix added in v0.0.5

func (avctx *AVCodecContext) GetInterMatrix() *ctypes.UInt16

func (*AVCodecContext) GetIntraDcPrecision added in v0.0.5

func (avctx *AVCodecContext) GetIntraDcPrecision() int

func (*AVCodecContext) GetIntraMatrix added in v0.0.5

func (avctx *AVCodecContext) GetIntraMatrix() *ctypes.UInt16

func (*AVCodecContext) GetKeyintMin added in v0.0.5

func (avctx *AVCodecContext) GetKeyintMin() int

func (*AVCodecContext) GetLastPredictorCount added in v0.0.5

func (avctx *AVCodecContext) GetLastPredictorCount() int

func (*AVCodecContext) GetLevel added in v0.0.5

func (avctx *AVCodecContext) GetLevel() int

func (*AVCodecContext) GetLogLevelOffset added in v0.0.5

func (avctx *AVCodecContext) GetLogLevelOffset() int

func (*AVCodecContext) GetLowres added in v0.0.5

func (avctx *AVCodecContext) GetLowres() int

func (*AVCodecContext) GetLumiMasking added in v0.0.5

func (avctx *AVCodecContext) GetLumiMasking() float32

func (*AVCodecContext) GetMaxBFrames added in v0.0.5

func (avctx *AVCodecContext) GetMaxBFrames() int

func (*AVCodecContext) GetMaxPixels added in v0.0.5

func (avctx *AVCodecContext) GetMaxPixels() int64

func (*AVCodecContext) GetMaxQdiff added in v0.0.5

func (avctx *AVCodecContext) GetMaxQdiff() int

func (*AVCodecContext) GetMaxSamples added in v0.0.5

func (avctx *AVCodecContext) GetMaxSamples() int64

func (*AVCodecContext) GetMbCmp added in v0.0.5

func (avctx *AVCodecContext) GetMbCmp() int

func (*AVCodecContext) GetMbDecision added in v0.0.5

func (avctx *AVCodecContext) GetMbDecision() int

func (*AVCodecContext) GetMbLmax added in v0.0.5

func (avctx *AVCodecContext) GetMbLmax() int

func (*AVCodecContext) GetMbLmin added in v0.0.5

func (avctx *AVCodecContext) GetMbLmin() int

func (*AVCodecContext) GetMeCmp added in v0.0.5

func (avctx *AVCodecContext) GetMeCmp() int

func (*AVCodecContext) GetMePreCmp added in v0.0.5

func (avctx *AVCodecContext) GetMePreCmp() int

func (*AVCodecContext) GetMeRange added in v0.0.5

func (avctx *AVCodecContext) GetMeRange() int

func (*AVCodecContext) GetMeSubCmp added in v0.0.5

func (avctx *AVCodecContext) GetMeSubCmp() int

func (*AVCodecContext) GetMeSubpelQuality added in v0.0.5

func (avctx *AVCodecContext) GetMeSubpelQuality() int

func (*AVCodecContext) GetMv0Threshold added in v0.0.5

func (avctx *AVCodecContext) GetMv0Threshold() int

func (*AVCodecContext) GetNbCodedSideData added in v0.0.5

func (avctx *AVCodecContext) GetNbCodedSideData() int

func (*AVCodecContext) GetNsseWeight added in v0.0.5

func (avctx *AVCodecContext) GetNsseWeight() int

func (*AVCodecContext) GetOpaque added in v0.0.5

func (avctx *AVCodecContext) GetOpaque() unsafe.Pointer

func (*AVCodecContext) GetPMasking added in v0.0.5

func (avctx *AVCodecContext) GetPMasking() float32

func (*AVCodecContext) GetPixFmt

func (avctx *AVCodecContext) GetPixFmt() avutil.CAVPixelFormat

func (*AVCodecContext) GetPktTimebase added in v0.0.5

func (avctx *AVCodecContext) GetPktTimebase() avutil.CAVRational

func (*AVCodecContext) GetPreDiaSize added in v0.0.5

func (avctx *AVCodecContext) GetPreDiaSize() int

func (*AVCodecContext) GetPrivData added in v0.0.5

func (avctx *AVCodecContext) GetPrivData() unsafe.Pointer

func (*AVCodecContext) GetProfile added in v0.0.5

func (avctx *AVCodecContext) GetProfile() int

func (*AVCodecContext) GetProperties added in v0.0.5

func (avctx *AVCodecContext) GetProperties() uint

func (*AVCodecContext) GetPtsCorrectionLastDts added in v0.0.5

func (avctx *AVCodecContext) GetPtsCorrectionLastDts() int64

func (*AVCodecContext) GetPtsCorrectionLastPts added in v0.0.5

func (avctx *AVCodecContext) GetPtsCorrectionLastPts() int64

func (*AVCodecContext) GetPtsCorrectionNumFaultyDts added in v0.0.5

func (avctx *AVCodecContext) GetPtsCorrectionNumFaultyDts() int64

func (*AVCodecContext) GetPtsCorrectionNumFaultyPts added in v0.0.5

func (avctx *AVCodecContext) GetPtsCorrectionNumFaultyPts() int64

func (*AVCodecContext) GetQblur added in v0.0.5

func (avctx *AVCodecContext) GetQblur() float32

func (*AVCodecContext) GetQcompress added in v0.0.5

func (avctx *AVCodecContext) GetQcompress() float32

func (*AVCodecContext) GetQmax added in v0.0.5

func (avctx *AVCodecContext) GetQmax() int

func (*AVCodecContext) GetQmin added in v0.0.5

func (avctx *AVCodecContext) GetQmin() int

func (*AVCodecContext) GetRcBufferSize added in v0.0.5

func (avctx *AVCodecContext) GetRcBufferSize() int

func (*AVCodecContext) GetRcInitialBufferOccupancy added in v0.0.5

func (avctx *AVCodecContext) GetRcInitialBufferOccupancy() int

func (*AVCodecContext) GetRcMaxAvailableVbvUse added in v0.0.5

func (avctx *AVCodecContext) GetRcMaxAvailableVbvUse() float32

func (*AVCodecContext) GetRcMaxRate added in v0.0.5

func (avctx *AVCodecContext) GetRcMaxRate() int64

func (*AVCodecContext) GetRcMinRate added in v0.0.5

func (avctx *AVCodecContext) GetRcMinRate() int64

func (*AVCodecContext) GetRcMinVbvOverflowUse added in v0.0.5

func (avctx *AVCodecContext) GetRcMinVbvOverflowUse() float32

func (*AVCodecContext) GetRcOverride added in v0.0.5

func (avctx *AVCodecContext) GetRcOverride() *avcodec.CRcOverride

func (*AVCodecContext) GetRcOverrideCount added in v0.0.5

func (avctx *AVCodecContext) GetRcOverrideCount() int

func (*AVCodecContext) GetRefs added in v0.0.5

func (avctx *AVCodecContext) GetRefs() int

func (*AVCodecContext) GetRequestSampleFmt added in v0.0.5

func (avctx *AVCodecContext) GetRequestSampleFmt() avutil.CAVSampleFormat

func (*AVCodecContext) GetSampleAspectRatio

func (avctx *AVCodecContext) GetSampleAspectRatio() avutil.CAVRational

func (*AVCodecContext) GetSampleChromaLocation added in v0.0.5

func (avctx *AVCodecContext) GetSampleChromaLocation() avutil.CAVChromaLocation

func (*AVCodecContext) GetSampleFmt added in v0.0.5

func (avctx *AVCodecContext) GetSampleFmt() avutil.CAVSampleFormat

func (*AVCodecContext) GetSampleRate added in v0.0.5

func (avctx *AVCodecContext) GetSampleRate() int

func (*AVCodecContext) GetSeekPreroll added in v0.0.5

func (avctx *AVCodecContext) GetSeekPreroll() int

func (*AVCodecContext) GetSkipAlpha added in v0.0.5

func (avctx *AVCodecContext) GetSkipAlpha() int

func (*AVCodecContext) GetSkipBottom added in v0.0.5

func (avctx *AVCodecContext) GetSkipBottom() int

func (*AVCodecContext) GetSkipFrame added in v0.0.5

func (avctx *AVCodecContext) GetSkipFrame() avcodec.CAVDiscard

func (*AVCodecContext) GetSkipIdct added in v0.0.5

func (avctx *AVCodecContext) GetSkipIdct() avcodec.CAVDiscard

func (*AVCodecContext) GetSkipLoopFilter added in v0.0.5

func (avctx *AVCodecContext) GetSkipLoopFilter() avcodec.CAVDiscard

func (*AVCodecContext) GetSkipTop added in v0.0.5

func (avctx *AVCodecContext) GetSkipTop() int

func (*AVCodecContext) GetSliceFlags added in v0.0.5

func (avctx *AVCodecContext) GetSliceFlags() int

func (*AVCodecContext) GetSlices added in v0.0.5

func (avctx *AVCodecContext) GetSlices() int

func (*AVCodecContext) GetSpatialCplxMasking added in v0.0.5

func (avctx *AVCodecContext) GetSpatialCplxMasking() float32

func (*AVCodecContext) GetStatsIn added in v0.0.5

func (avctx *AVCodecContext) GetStatsIn() string

func (*AVCodecContext) GetStatsOut added in v0.0.5

func (avctx *AVCodecContext) GetStatsOut() string

func (*AVCodecContext) GetStrictStdCompliance added in v0.0.5

func (avctx *AVCodecContext) GetStrictStdCompliance() int

func (*AVCodecContext) GetSubCharenc added in v0.0.5

func (avctx *AVCodecContext) GetSubCharenc() string

func (*AVCodecContext) GetSubCharencMode added in v0.0.5

func (avctx *AVCodecContext) GetSubCharencMode() int

func (*AVCodecContext) GetSubtitleHeader added in v0.0.5

func (avctx *AVCodecContext) GetSubtitleHeader() unsafe.Pointer

func (*AVCodecContext) GetSubtitleHeaderSize added in v0.0.5

func (avctx *AVCodecContext) GetSubtitleHeaderSize() int

func (*AVCodecContext) GetSwPixFmt added in v0.0.5

func (avctx *AVCodecContext) GetSwPixFmt() avutil.CAVPixelFormat

func (*AVCodecContext) GetTemporalCplxMasking added in v0.0.5

func (avctx *AVCodecContext) GetTemporalCplxMasking() float32

func (*AVCodecContext) GetThreadCount added in v0.0.5

func (avctx *AVCodecContext) GetThreadCount() int

func (*AVCodecContext) GetThreadType added in v0.0.5

func (avctx *AVCodecContext) GetThreadType() int

func (*AVCodecContext) GetTimeBase added in v0.0.5

func (avctx *AVCodecContext) GetTimeBase() avutil.CAVRational

func (*AVCodecContext) GetTrailingPadding added in v0.0.5

func (avctx *AVCodecContext) GetTrailingPadding() int

func (*AVCodecContext) GetTrellis added in v0.0.5

func (avctx *AVCodecContext) GetTrellis() int

func (*AVCodecContext) GetWidth

func (avctx *AVCodecContext) GetWidth() int

func (*AVCodecContext) GetWorkaroundBugs added in v0.0.5

func (avctx *AVCodecContext) GetWorkaroundBugs() int

func (*AVCodecContext) IsOpen added in v0.0.4

func (avctx *AVCodecContext) IsOpen() bool

func (*AVCodecContext) Open

func (avctx *AVCodecContext) Open(options **avutil.CAVDictionary) int

func (*AVCodecContext) ParametersFrom

func (avctx *AVCodecContext) ParametersFrom(par *avcodec.CAVCodecParameters) int

func (*AVCodecContext) ParametersTo

func (avctx *AVCodecContext) ParametersTo(par *avcodec.CAVCodecParameters) int

func (*AVCodecContext) ReceiveFrame

func (avctx *AVCodecContext) ReceiveFrame(frame *goavutil.AVFrame) int

func (*AVCodecContext) ReceivePacket

func (avctx *AVCodecContext) ReceivePacket(pkt *AVPacket) int

func (*AVCodecContext) SendFrame

func (avctx *AVCodecContext) SendFrame(frame *goavutil.AVFrame) int

func (*AVCodecContext) SendPacket

func (avctx *AVCodecContext) SendPacket(pkt *AVPacket) int

func (*AVCodecContext) SetActiveThreadType added in v0.0.5

func (avctx *AVCodecContext) SetActiveThreadType(activeThreadType int)

func (*AVCodecContext) SetApplyCropping added in v0.0.5

func (avctx *AVCodecContext) SetApplyCropping(applyCropping int)

func (*AVCodecContext) SetAudioServiceType added in v0.0.5

func (avctx *AVCodecContext) SetAudioServiceType(audioServiceType avcodec.CAVAudioServiceType)

func (*AVCodecContext) SetBQuantFactor added in v0.0.5

func (avctx *AVCodecContext) SetBQuantFactor(bQuantFactor float32)

func (*AVCodecContext) SetBQuantOffset added in v0.0.5

func (avctx *AVCodecContext) SetBQuantOffset(bQuantOffset float32)

func (*AVCodecContext) SetBidirRefine added in v0.0.5

func (avctx *AVCodecContext) SetBidirRefine(bidirRefine int)

func (*AVCodecContext) SetBitRate added in v0.0.5

func (avctx *AVCodecContext) SetBitRate(bitRate int64)

func (*AVCodecContext) SetBitRateTolerance added in v0.0.5

func (avctx *AVCodecContext) SetBitRateTolerance(bitRateTolerance int)

func (*AVCodecContext) SetBitsPerCodedSample added in v0.0.5

func (avctx *AVCodecContext) SetBitsPerCodedSample(bitsPerCodedSample int)

func (*AVCodecContext) SetBitsPerRawSample added in v0.0.5

func (avctx *AVCodecContext) SetBitsPerRawSample(bitsPerRawSample int)

func (*AVCodecContext) SetBlockAlign added in v0.0.5

func (avctx *AVCodecContext) SetBlockAlign(blockAlign int)

func (*AVCodecContext) SetChLayout added in v0.0.5

func (avctx *AVCodecContext) SetChLayout(chLayout *goavutil.AVChannelLayout)

func (*AVCodecContext) SetChromaIntraMatrix added in v0.0.5

func (avctx *AVCodecContext) SetChromaIntraMatrix(chromaIntraMatrix *ctypes.UInt16)

func (*AVCodecContext) SetCodecId added in v0.0.5

func (avctx *AVCodecContext) SetCodecId(codecId avcodec.CAVCodecID)

func (*AVCodecContext) SetCodecTag added in v0.0.5

func (avctx *AVCodecContext) SetCodecTag(codecTag uint)

func (*AVCodecContext) SetCodecType added in v0.0.5

func (avctx *AVCodecContext) SetCodecType(codecType avutil.CAVMediaType)

func (*AVCodecContext) SetCodecWhitelist added in v0.0.5

func (avctx *AVCodecContext) SetCodecWhitelist(codecWhitelist string)

func (*AVCodecContext) SetCodedHeight added in v0.0.5

func (avctx *AVCodecContext) SetCodedHeight(codedHeight int)

func (*AVCodecContext) SetCodedSideData added in v0.0.5

func (avctx *AVCodecContext) SetCodedSideData(codedSideData *avcodec.CAVPacketSideData)

func (*AVCodecContext) SetCodedWidth added in v0.0.5

func (avctx *AVCodecContext) SetCodedWidth(codedWidth int)

func (*AVCodecContext) SetColorPrimaries added in v0.0.5

func (avctx *AVCodecContext) SetColorPrimaries(colorPrimaries avutil.CAVColorPrimaries)

func (*AVCodecContext) SetColorRange added in v0.0.5

func (avctx *AVCodecContext) SetColorRange(colorRange avutil.CAVColorRange)

func (*AVCodecContext) SetColorTrc added in v0.0.5

func (avctx *AVCodecContext) SetColorTrc(colorTrc avutil.CAVColorTransferCharacteristic)

func (*AVCodecContext) SetColorspace added in v0.0.5

func (avctx *AVCodecContext) SetColorspace(colorspace avutil.CAVColorSpace)

func (*AVCodecContext) SetCompressionLevel added in v0.0.5

func (avctx *AVCodecContext) SetCompressionLevel(compressionLevel int)

func (*AVCodecContext) SetCutoff added in v0.0.5

func (avctx *AVCodecContext) SetCutoff(cutoff int)

func (*AVCodecContext) SetDarkMasking added in v0.0.5

func (avctx *AVCodecContext) SetDarkMasking(darkMasking float32)

func (*AVCodecContext) SetDctAlgo added in v0.0.5

func (avctx *AVCodecContext) SetDctAlgo(dctAlgo int)

func (*AVCodecContext) SetDebug added in v0.0.5

func (avctx *AVCodecContext) SetDebug(debug int)

func (*AVCodecContext) SetDelay added in v0.0.5

func (avctx *AVCodecContext) SetDelay(delay int)

func (*AVCodecContext) SetDiaSize added in v0.0.5

func (avctx *AVCodecContext) SetDiaSize(diaSize int)

func (*AVCodecContext) SetDiscardDamagedPercentage added in v0.0.5

func (avctx *AVCodecContext) SetDiscardDamagedPercentage(discardDamagedPercentage int)

func (*AVCodecContext) SetDrawHorizBand added in v0.0.5

func (avctx *AVCodecContext) SetDrawHorizBand(drawHorizBand ctypes.CFunc)

func (*AVCodecContext) SetDumpSeparator added in v0.0.5

func (avctx *AVCodecContext) SetDumpSeparator(dumpSeparator string)

func (*AVCodecContext) SetErrRecognition added in v0.0.5

func (avctx *AVCodecContext) SetErrRecognition(errRecognition int)

func (*AVCodecContext) SetError added in v0.0.5

func (avctx *AVCodecContext) SetError(_error [avutil.AV_NUM_DATA_POINTERS]ctypes.UInt64)

func (*AVCodecContext) SetErrorConcealment added in v0.0.5

func (avctx *AVCodecContext) SetErrorConcealment(errorConcealment int)

func (*AVCodecContext) SetExecute added in v0.0.5

func (avctx *AVCodecContext) SetExecute(execute ctypes.CFunc)

func (*AVCodecContext) SetExecute2 added in v0.0.5

func (avctx *AVCodecContext) SetExecute2(execute2 ctypes.CFunc)

func (*AVCodecContext) SetExportSideData added in v0.0.5

func (avctx *AVCodecContext) SetExportSideData(exportSideData int)

func (*AVCodecContext) SetExtraHwFrames added in v0.0.5

func (avctx *AVCodecContext) SetExtraHwFrames(extraHwFrames int)

func (*AVCodecContext) SetExtradata added in v0.0.5

func (avctx *AVCodecContext) SetExtradata(extradata unsafe.Pointer)

func (*AVCodecContext) SetExtradataSize added in v0.0.5

func (avctx *AVCodecContext) SetExtradataSize(extradataSize int)

func (*AVCodecContext) SetFieldOrder added in v0.0.5

func (avctx *AVCodecContext) SetFieldOrder(fieldOrder avcodec.CAVFieldOrder)

func (*AVCodecContext) SetFlags added in v0.0.5

func (avctx *AVCodecContext) SetFlags(flags int)

func (*AVCodecContext) SetFlags2 added in v0.0.5

func (avctx *AVCodecContext) SetFlags2(flags2 int)

func (*AVCodecContext) SetFrameNum added in v0.0.5

func (avctx *AVCodecContext) SetFrameNum(frameNum int64)

func (*AVCodecContext) SetFrameSize added in v0.0.5

func (avctx *AVCodecContext) SetFrameSize(frameSize int)

func (*AVCodecContext) SetFramerate added in v0.0.5

func (avctx *AVCodecContext) SetFramerate(framerate avutil.CAVRational)

func (*AVCodecContext) SetGetBuffer2 added in v0.0.5

func (avctx *AVCodecContext) SetGetBuffer2(getBuffer2 ctypes.CFunc)

func (*AVCodecContext) SetGetEncodeBuffer added in v0.0.5

func (avctx *AVCodecContext) SetGetEncodeBuffer(getEncodeBuffer ctypes.CFunc)

func (*AVCodecContext) SetGetFormat added in v0.0.5

func (avctx *AVCodecContext) SetGetFormat(getFormat ctypes.CFunc)

func (*AVCodecContext) SetGlobalQuality added in v0.0.5

func (avctx *AVCodecContext) SetGlobalQuality(globalQuality int)

func (*AVCodecContext) SetGopSize added in v0.0.5

func (avctx *AVCodecContext) SetGopSize(gopSize int)

func (*AVCodecContext) SetHasBFrames added in v0.0.5

func (avctx *AVCodecContext) SetHasBFrames(hasBFrames int)

func (*AVCodecContext) SetHeight

func (avctx *AVCodecContext) SetHeight(height int)

func (*AVCodecContext) SetHwDeviceCtx added in v0.0.5

func (avctx *AVCodecContext) SetHwDeviceCtx(hwDeviceCtx *avutil.CAVBufferRef)

func (*AVCodecContext) SetHwFramesCtx added in v0.0.5

func (avctx *AVCodecContext) SetHwFramesCtx(hwFramesCtx *avutil.CAVBufferRef)

func (*AVCodecContext) SetHwaccelContext added in v0.0.5

func (avctx *AVCodecContext) SetHwaccelContext(hwaccelContext unsafe.Pointer)

func (*AVCodecContext) SetHwaccelFlags added in v0.0.5

func (avctx *AVCodecContext) SetHwaccelFlags(hwaccelFlags int)

func (*AVCodecContext) SetIQuantFactor added in v0.0.5

func (avctx *AVCodecContext) SetIQuantFactor(iQuantFactor float32)

func (*AVCodecContext) SetIQuantOffset added in v0.0.5

func (avctx *AVCodecContext) SetIQuantOffset(iQuantOffset float32)

func (*AVCodecContext) SetIdctAlgo added in v0.0.5

func (avctx *AVCodecContext) SetIdctAlgo(idctAlgo int)

func (*AVCodecContext) SetIldctCmp added in v0.0.5

func (avctx *AVCodecContext) SetIldctCmp(ildctCmp int)

func (*AVCodecContext) SetInitialPadding added in v0.0.5

func (avctx *AVCodecContext) SetInitialPadding(initialPadding int)

func (*AVCodecContext) SetInterMatrix added in v0.0.5

func (avctx *AVCodecContext) SetInterMatrix(interMatrix *ctypes.UInt16)

func (*AVCodecContext) SetIntraDcPrecision added in v0.0.5

func (avctx *AVCodecContext) SetIntraDcPrecision(intraDcPrecision int)

func (*AVCodecContext) SetIntraMatrix added in v0.0.5

func (avctx *AVCodecContext) SetIntraMatrix(intraMatrix *ctypes.UInt16)

func (*AVCodecContext) SetKeyintMin added in v0.0.5

func (avctx *AVCodecContext) SetKeyintMin(keyintMin int)

func (*AVCodecContext) SetLastPredictorCount added in v0.0.5

func (avctx *AVCodecContext) SetLastPredictorCount(lastPredictorCount int)

func (*AVCodecContext) SetLevel added in v0.0.5

func (avctx *AVCodecContext) SetLevel(level int)

func (*AVCodecContext) SetLogLevelOffset added in v0.0.5

func (avctx *AVCodecContext) SetLogLevelOffset(logLevelOffset int)

func (*AVCodecContext) SetLowres added in v0.0.5

func (avctx *AVCodecContext) SetLowres(lowres int)

func (*AVCodecContext) SetLumiMasking added in v0.0.5

func (avctx *AVCodecContext) SetLumiMasking(lumiMasking float32)

func (*AVCodecContext) SetMaxBFrames added in v0.0.5

func (avctx *AVCodecContext) SetMaxBFrames(maxBFrames int)

func (*AVCodecContext) SetMaxPixels added in v0.0.5

func (avctx *AVCodecContext) SetMaxPixels(maxPixels int64)

func (*AVCodecContext) SetMaxQdiff added in v0.0.5

func (avctx *AVCodecContext) SetMaxQdiff(maxQdiff int)

func (*AVCodecContext) SetMaxSamples added in v0.0.5

func (avctx *AVCodecContext) SetMaxSamples(maxSamples int64)

func (*AVCodecContext) SetMbCmp added in v0.0.5

func (avctx *AVCodecContext) SetMbCmp(mbCmp int)

func (*AVCodecContext) SetMbDecision added in v0.0.5

func (avctx *AVCodecContext) SetMbDecision(mbDecision int)

func (*AVCodecContext) SetMbLmax added in v0.0.5

func (avctx *AVCodecContext) SetMbLmax(mbLmax int)

func (*AVCodecContext) SetMbLmin added in v0.0.5

func (avctx *AVCodecContext) SetMbLmin(mbLmin int)

func (*AVCodecContext) SetMeCmp added in v0.0.5

func (avctx *AVCodecContext) SetMeCmp(meCmp int)

func (*AVCodecContext) SetMePreCmp added in v0.0.5

func (avctx *AVCodecContext) SetMePreCmp(mePreCmp int)

func (*AVCodecContext) SetMeRange added in v0.0.5

func (avctx *AVCodecContext) SetMeRange(meRange int)

func (*AVCodecContext) SetMeSubCmp added in v0.0.5

func (avctx *AVCodecContext) SetMeSubCmp(meSubCmp int)

func (*AVCodecContext) SetMeSubpelQuality added in v0.0.5

func (avctx *AVCodecContext) SetMeSubpelQuality(meSubpelQuality int)

func (*AVCodecContext) SetMv0Threshold added in v0.0.5

func (avctx *AVCodecContext) SetMv0Threshold(mv0Threshold int)

func (*AVCodecContext) SetNbCodedSideData added in v0.0.5

func (avctx *AVCodecContext) SetNbCodedSideData(nbCodedSideData int)

func (*AVCodecContext) SetNsseWeight added in v0.0.5

func (avctx *AVCodecContext) SetNsseWeight(nsseWeight int)

func (*AVCodecContext) SetOpaque added in v0.0.5

func (avctx *AVCodecContext) SetOpaque(opaque unsafe.Pointer)

func (*AVCodecContext) SetPMasking added in v0.0.5

func (avctx *AVCodecContext) SetPMasking(pMasking float32)

func (*AVCodecContext) SetPixFmt

func (avctx *AVCodecContext) SetPixFmt(pixFmt avutil.CAVPixelFormat)

func (*AVCodecContext) SetPktTimebase added in v0.0.5

func (avctx *AVCodecContext) SetPktTimebase(pktTimebase avutil.CAVRational)

func (*AVCodecContext) SetPreDiaSize added in v0.0.5

func (avctx *AVCodecContext) SetPreDiaSize(preDiaSize int)

func (*AVCodecContext) SetPrivData added in v0.0.5

func (avctx *AVCodecContext) SetPrivData(privData unsafe.Pointer)

func (*AVCodecContext) SetProfile added in v0.0.5

func (avctx *AVCodecContext) SetProfile(profile int)

func (*AVCodecContext) SetProperties added in v0.0.5

func (avctx *AVCodecContext) SetProperties(properties uint)

func (*AVCodecContext) SetPtsCorrectionLastDts added in v0.0.5

func (avctx *AVCodecContext) SetPtsCorrectionLastDts(ptsCorrectionLastDts int64)

func (*AVCodecContext) SetPtsCorrectionLastPts added in v0.0.5

func (avctx *AVCodecContext) SetPtsCorrectionLastPts(ptsCorrectionLastPts int64)

func (*AVCodecContext) SetPtsCorrectionNumFaultyDts added in v0.0.5

func (avctx *AVCodecContext) SetPtsCorrectionNumFaultyDts(ptsCorrectionNumFaultyDts int64)

func (*AVCodecContext) SetPtsCorrectionNumFaultyPts added in v0.0.5

func (avctx *AVCodecContext) SetPtsCorrectionNumFaultyPts(ptsCorrectionNumFaultyPts int64)

func (*AVCodecContext) SetQblur added in v0.0.5

func (avctx *AVCodecContext) SetQblur(qblur float32)

func (*AVCodecContext) SetQcompress added in v0.0.5

func (avctx *AVCodecContext) SetQcompress(qcompress float32)

func (*AVCodecContext) SetQmax added in v0.0.5

func (avctx *AVCodecContext) SetQmax(qmax int)

func (*AVCodecContext) SetQmin added in v0.0.5

func (avctx *AVCodecContext) SetQmin(qmin int)

func (*AVCodecContext) SetRcBufferSize added in v0.0.5

func (avctx *AVCodecContext) SetRcBufferSize(rcBufferSize int)

func (*AVCodecContext) SetRcInitialBufferOccupancy added in v0.0.5

func (avctx *AVCodecContext) SetRcInitialBufferOccupancy(rcInitialBufferOccupancy int)

func (*AVCodecContext) SetRcMaxAvailableVbvUse added in v0.0.5

func (avctx *AVCodecContext) SetRcMaxAvailableVbvUse(rcMaxAvailableVbvUse float32)

func (*AVCodecContext) SetRcMaxRate added in v0.0.5

func (avctx *AVCodecContext) SetRcMaxRate(rcMaxRate int64)

func (*AVCodecContext) SetRcMinRate added in v0.0.5

func (avctx *AVCodecContext) SetRcMinRate(rcMinRate int64)

func (*AVCodecContext) SetRcMinVbvOverflowUse added in v0.0.5

func (avctx *AVCodecContext) SetRcMinVbvOverflowUse(rcMinVbvOverflowUse float32)

func (*AVCodecContext) SetRcOverride added in v0.0.5

func (avctx *AVCodecContext) SetRcOverride(rcOverride *avcodec.CRcOverride)

func (*AVCodecContext) SetRcOverrideCount added in v0.0.5

func (avctx *AVCodecContext) SetRcOverrideCount(rcOverrideCount int)

func (*AVCodecContext) SetRefs added in v0.0.5

func (avctx *AVCodecContext) SetRefs(refs int)

func (*AVCodecContext) SetRequestSampleFmt added in v0.0.5

func (avctx *AVCodecContext) SetRequestSampleFmt(requestSampleFmt avutil.CAVSampleFormat)

func (*AVCodecContext) SetSampleAspectRatio

func (avctx *AVCodecContext) SetSampleAspectRatio(sampleAspectRatio avutil.CAVRational)

func (*AVCodecContext) SetSampleChromaLocation added in v0.0.5

func (avctx *AVCodecContext) SetSampleChromaLocation(chromaLocation avutil.CAVChromaLocation)

func (*AVCodecContext) SetSampleFmt added in v0.0.5

func (avctx *AVCodecContext) SetSampleFmt(sampleFmt avutil.CAVSampleFormat)

func (*AVCodecContext) SetSampleRate added in v0.0.5

func (avctx *AVCodecContext) SetSampleRate(sampleRate int)

func (*AVCodecContext) SetSeekPreroll added in v0.0.5

func (avctx *AVCodecContext) SetSeekPreroll(seekPreroll int)

func (*AVCodecContext) SetSkipAlpha added in v0.0.5

func (avctx *AVCodecContext) SetSkipAlpha(skipAlpha int)

func (*AVCodecContext) SetSkipBottom added in v0.0.5

func (avctx *AVCodecContext) SetSkipBottom(skipBottom int)

func (*AVCodecContext) SetSkipFrame added in v0.0.5

func (avctx *AVCodecContext) SetSkipFrame(skipFrame avcodec.CAVDiscard)

func (*AVCodecContext) SetSkipIdct added in v0.0.5

func (avctx *AVCodecContext) SetSkipIdct(skipIdct avcodec.CAVDiscard)

func (*AVCodecContext) SetSkipLoopFilter added in v0.0.5

func (avctx *AVCodecContext) SetSkipLoopFilter(skipLoopFilter avcodec.CAVDiscard)

func (*AVCodecContext) SetSkipTop added in v0.0.5

func (avctx *AVCodecContext) SetSkipTop(skipTop int)

func (*AVCodecContext) SetSliceFlags added in v0.0.5

func (avctx *AVCodecContext) SetSliceFlags(sliceFlags int)

func (*AVCodecContext) SetSlices added in v0.0.5

func (avctx *AVCodecContext) SetSlices(slices int)

func (*AVCodecContext) SetSpatialCplxMasking added in v0.0.5

func (avctx *AVCodecContext) SetSpatialCplxMasking(spatialCplxMasking float32)

func (*AVCodecContext) SetStatsIn added in v0.0.5

func (avctx *AVCodecContext) SetStatsIn(statsIn string)

func (*AVCodecContext) SetStatsOut added in v0.0.5

func (avctx *AVCodecContext) SetStatsOut(statsOut string)

func (*AVCodecContext) SetStrictStdCompliance added in v0.0.5

func (avctx *AVCodecContext) SetStrictStdCompliance(strictStdCompliance int)

func (*AVCodecContext) SetSubCharenc added in v0.0.5

func (avctx *AVCodecContext) SetSubCharenc(subCharenc string)

func (*AVCodecContext) SetSubCharencMode added in v0.0.5

func (avctx *AVCodecContext) SetSubCharencMode(subCharencMode int)

func (*AVCodecContext) SetSubtitleHeader added in v0.0.5

func (avctx *AVCodecContext) SetSubtitleHeader(subtitleHeader unsafe.Pointer)

func (*AVCodecContext) SetSubtitleHeaderSize added in v0.0.5

func (avctx *AVCodecContext) SetSubtitleHeaderSize(subtitleHeaderSize int)

func (*AVCodecContext) SetSwPixFmt added in v0.0.5

func (avctx *AVCodecContext) SetSwPixFmt(swPixFmt avutil.CAVPixelFormat)

func (*AVCodecContext) SetTemporalCplxMasking added in v0.0.5

func (avctx *AVCodecContext) SetTemporalCplxMasking(temporalCplxMasking float32)

func (*AVCodecContext) SetThreadCount added in v0.0.5

func (avctx *AVCodecContext) SetThreadCount(threadCount int)

func (*AVCodecContext) SetThreadType added in v0.0.5

func (avctx *AVCodecContext) SetThreadType(threadType int)

func (*AVCodecContext) SetTimeBase added in v0.0.5

func (avctx *AVCodecContext) SetTimeBase(timeBase avutil.CAVRational)

func (*AVCodecContext) SetTrailingPadding added in v0.0.5

func (avctx *AVCodecContext) SetTrailingPadding(trailingPadding int)

func (*AVCodecContext) SetTrellis added in v0.0.5

func (avctx *AVCodecContext) SetTrellis(trellis int)

func (*AVCodecContext) SetWidth

func (avctx *AVCodecContext) SetWidth(width int)

func (*AVCodecContext) SetWorkaroundBugs added in v0.0.5

func (avctx *AVCodecContext) SetWorkaroundBugs(workaroundBugs int)

type AVCodecParser added in v0.0.4

type AVCodecParser struct {
	CAVCodecParser *avcodec.CAVCodecParser
}

func GetAvailableParsers added in v0.0.4

func GetAvailableParsers() []*AVCodecParser

TODO

type AVCodecParserContext

type AVCodecParserContext struct {
	CAVCodecParserContext *avcodec.CAVCodecParserContext
}

func NewParserContext added in v0.0.5

func NewParserContext(codecId int) *AVCodecParserContext

func (*AVCodecParserContext) Close added in v0.0.4

func (parser *AVCodecParserContext) Close()

func (*AVCodecParserContext) Free

func (parser *AVCodecParserContext) Free()

Free() is alias Close()

func (*AVCodecParserContext) Parse

func (parser *AVCodecParserContext) Parse(avctx *AVCodecContext, buf []byte,
	pts int64, dts int64, pos int64) (*AVPacket, int)

buf: do not need padding

func (*AVCodecParserContext) ParseChan added in v0.0.4

func (parser *AVCodecParserContext) ParseChan(ctx context.Context, avctx *AVCodecContext, bufCh <-chan []byte) (context.Context, <-chan *AVPacket)

buf: do not need padding

func (*AVCodecParserContext) ParseTo added in v0.0.4

func (parser *AVCodecParserContext) ParseTo(avctx *AVCodecContext,
	pkt *AVPacket, buf []byte,
	pts int64, dts int64, pos int64) int

buf: do not need padding

func (*AVCodecParserContext) ParseToUnsafe added in v0.0.4

func (parser *AVCodecParserContext) ParseToUnsafe(avctx *AVCodecContext,
	poutbuf *unsafe.Pointer, poutbufSize *ctypes.Int,
	buf []byte,
	pts int64, dts int64, pos int64) int

buf: do not need padding

func (*AVCodecParserContext) ParseUnsafeTo added in v0.0.4

func (parser *AVCodecParserContext) ParseUnsafeTo(avctx *AVCodecContext,
	pkt *AVPacket,
	buf unsafe.Pointer, bufSize int,
	pts int64, dts int64, pos int64) int

func (*AVCodecParserContext) ParseUnsafeToUnsafe added in v0.0.4

func (parser *AVCodecParserContext) ParseUnsafeToUnsafe(avctx *AVCodecContext,
	poutbuf *unsafe.Pointer, poutbufSize *ctypes.Int,
	buf unsafe.Pointer, bufSize int,
	pts int64, dts int64, pos int64) int

type AVPacket

type AVPacket struct {
	CAVPacket *avcodec.CAVPacket
}

func AllocAvPacket

func AllocAvPacket() *AVPacket

func NewAvPacket

func NewAvPacket(size int) (*AVPacket, int)

func NewAvPacketFromData added in v0.0.4

func NewAvPacketFromData(data []byte) (*AVPacket, int)

func NewAvPacketFromDataWithoutPadding added in v0.0.4

func NewAvPacketFromDataWithoutPadding(data []byte) (*AVPacket, int)

func NewAvPacketFromUnsafeData added in v0.0.4

func NewAvPacketFromUnsafeData(data unsafe.Pointer, size int) (*AVPacket, int)

func (*AVPacket) Clone added in v0.0.4

func (pkt *AVPacket) Clone() *AVPacket

func (*AVPacket) CopyPropsTo added in v0.0.4

func (pkt *AVPacket) CopyPropsTo(dst *AVPacket) int

func (*AVPacket) Free

func (pkt *AVPacket) Free()

func (*AVPacket) GetBuf added in v0.0.4

func (pkt *AVPacket) GetBuf() *avutil.CAVBufferRef

func (*AVPacket) GetData added in v0.0.4

func (pkt *AVPacket) GetData() []byte

func (*AVPacket) GetDts added in v0.0.4

func (pkt *AVPacket) GetDts() int64

func (*AVPacket) GetDuration added in v0.0.4

func (pkt *AVPacket) GetDuration() int64

func (*AVPacket) GetFlags added in v0.0.4

func (pkt *AVPacket) GetFlags() int

func (*AVPacket) GetOpaque added in v0.0.4

func (pkt *AVPacket) GetOpaque() unsafe.Pointer

func (*AVPacket) GetOpaqueRef added in v0.0.4

func (pkt *AVPacket) GetOpaqueRef() *avutil.CAVBufferRef

func (*AVPacket) GetPos added in v0.0.4

func (pkt *AVPacket) GetPos() int64

func (*AVPacket) GetPts added in v0.0.4

func (pkt *AVPacket) GetPts() int64

func (*AVPacket) GetSideData added in v0.0.4

func (pkt *AVPacket) GetSideData() *avcodec.CAVPacketSideData

func (*AVPacket) GetSideDataElems added in v0.0.4

func (pkt *AVPacket) GetSideDataElems() int

func (*AVPacket) GetSize added in v0.0.4

func (pkt *AVPacket) GetSize() int

func (*AVPacket) GetStreamIndex added in v0.0.4

func (pkt *AVPacket) GetStreamIndex() int

func (*AVPacket) GetTimeBase added in v0.0.4

func (pkt *AVPacket) GetTimeBase() avutil.CAVRational

func (*AVPacket) Grow added in v0.0.4

func (pkt *AVPacket) Grow(growBy int) int

func (*AVPacket) MakeRefcounted added in v0.0.4

func (pkt *AVPacket) MakeRefcounted() int

func (*AVPacket) MakeWritable added in v0.0.4

func (pkt *AVPacket) MakeWritable() int

func (*AVPacket) MoveRefTo added in v0.0.4

func (pkt *AVPacket) MoveRefTo(dst *AVPacket)

func (*AVPacket) RefTo added in v0.0.4

func (pkt *AVPacket) RefTo(dst *AVPacket) int

func (*AVPacket) RescaleTs added in v0.0.4

func (pkt *AVPacket) RescaleTs(tbSrc avutil.CAVRational, tbDst avutil.CAVRational)

func (*AVPacket) SetBuf added in v0.0.4

func (pkt *AVPacket) SetBuf(buf *avutil.CAVBufferRef)

func (*AVPacket) SetData added in v0.0.4

func (pkt *AVPacket) SetData(data []byte)

func (*AVPacket) SetDts added in v0.0.4

func (pkt *AVPacket) SetDts(dts int64)

func (*AVPacket) SetDuration added in v0.0.4

func (pkt *AVPacket) SetDuration(duration int64)

func (*AVPacket) SetFlags added in v0.0.4

func (pkt *AVPacket) SetFlags(flags int)

func (*AVPacket) SetOpaque added in v0.0.4

func (pkt *AVPacket) SetOpaque(opaque unsafe.Pointer)

func (*AVPacket) SetOpaqueRef added in v0.0.4

func (pkt *AVPacket) SetOpaqueRef(opaqueRef *avutil.CAVBufferRef)

func (*AVPacket) SetPos added in v0.0.4

func (pkt *AVPacket) SetPos(pos int64)

func (*AVPacket) SetPts added in v0.0.4

func (pkt *AVPacket) SetPts(pts int64)

func (*AVPacket) SetSideData added in v0.0.4

func (pkt *AVPacket) SetSideData(sideData *avcodec.CAVPacketSideData)

func (*AVPacket) SetSideDataElems added in v0.0.4

func (pkt *AVPacket) SetSideDataElems(sideDataElems int)

func (*AVPacket) SetSize added in v0.0.4

func (pkt *AVPacket) SetSize(size int)

func (*AVPacket) SetStreamIndex added in v0.0.4

func (pkt *AVPacket) SetStreamIndex(streamIndex int)

func (*AVPacket) SetTimeBase added in v0.0.4

func (pkt *AVPacket) SetTimeBase(timeBase avutil.CAVRational)

func (*AVPacket) Shrink added in v0.0.4

func (pkt *AVPacket) Shrink(size int)

func (*AVPacket) Unref

func (pkt *AVPacket) Unref()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL