Documentation ¶
Overview ¶
Package libavcodec contains the codecs (decoders and encoders) provided by the libavcodec library Provides some generic global options, which can be set on all the encoders and decoders.
Package libavcodec contains the codecs (decoders and encoders) provided by the libavcodec library Provides some generic global options, which can be set on all the encoders and decoders.
Package libavcodec contains the codecs (decoders and encoders) provided by the libavcodec library Provides some generic global options, which can be set on all the encoders and decoders.
Index ¶
- Constants
- func AVRescaleQRnd(a int64, bq, cq AvRational, rnd AvRounding) int64
- func AvFastPaddedMalloc(ptr unsafe.Pointer, size *uint, minSize uintptr)
- func AvFastPaddedMallocz(ptr unsafe.Pointer, size *uint, minSize uintptr)
- func AvGetBitsPerSample(id AvCodecID) int
- func AvGetExactBitsPerSample(id AvCodecID) int
- func AvPacketPackDictionary(dict *AvDictionary, size *int) *uint8
- func AvPacketUnpackDictionary(data *uint8, size int, dict **AvDictionary) int
- func AvParserClose(cpctx *AvCodecParserContext)
- func AvXiphlacing(s *string, v uint) uint
- func AvcodecConfiguration() string
- func AvcodecEnumToChromaPos(xpos, ypos *int, pos AvChromaLocation) int
- func AvcodecFillAudioFrame(frame *AvFrame, nbChannels int, sampleFmt AvSampleFormat, buf *uint8, ...) int
- func AvcodecGetName(id AvCodecID) string
- func AvcodecLicense() string
- func AvcodecString(buf string, bufSize int, enc *AvCodecContext, encode int)
- func AvcodecVersion() uint
- func AvsubtitleFree(sub *AvSubtitle)
- type AvAudioServiceType
- type AvBufferRef
- type AvChromaLocation
- type AvClass
- type AvCodec
- func (codec *AvCodec) AvCodecIsDecoder() int
- func (codec *AvCodec) AvCodecIsEncoder() int
- func (codec *AvCodec) AvGetProfileName(profile int) string
- func (codec *AvCodec) AvcodecAllocContext3() *AvCodecContext
- func (codec *AvCodec) Capabilities() int
- func (codec *AvCodec) Name() string
- func (codec *AvCodec) PixFmts() []AvPixelFormat
- func (codec *AvCodec) SampleFmts() []AvSampleFormat
- type AvCodecContext
- func (cctx *AvCodecContext) ActiveThreadType() int
- func (cctx *AvCodecContext) AudioServiceType() AvAudioServiceType
- func (cctx *AvCodecContext) AvGetAudioFrameDuration(frameBytes int) int
- func (cctx *AvCodecContext) AvParserChange(cpctx *AvCodecParserContext, poutbuf **uint8, poutbufSize *int, buf *uint8, ...) int
- func (cctx *AvCodecContext) AvParserParse2(cpctx *AvCodecParserContext, poutbuf **uint8, poutbufSize *int, buf *uint8, ...) int
- func (cctx *AvCodecContext) AvcodecAlignDimensions(width, height *int)
- func (cctx *AvCodecContext) AvcodecAlignDimensions2(width, height *int, linesizeAlign int)
- func (cctx *AvCodecContext) AvcodecClose() int
- func (cctx *AvCodecContext) AvcodecDecodeSubtitle2(sub *AvSubtitle, gotSubPtr *int, pkt *AvPacket) int
- func (cctx *AvCodecContext) AvcodecDefaultGetBuffer2(frame *AvFrame, flags int) int
- func (cctx *AvCodecContext) AvcodecDefaultGetFormat(pixFmt *AvPixelFormat) AvPixelFormat
- func (cctx *AvCodecContext) AvcodecEncodeSubtitle(buf *uint8, bufSize int, sub *AvSubtitle) int
- func (cctx *AvCodecContext) AvcodecFlushBuffers()
- func (cctx *AvCodecContext) AvcodecFreeContext()
- func (cctx *AvCodecContext) AvcodecGetContextDefaults3(codec *AvCodec) int
- func (cctx *AvCodecContext) AvcodecIsOpen() int
- func (cctx *AvCodecContext) AvcodecOpen2(codec *AvCodec, options **AvDictionary) int
- func (cctx *AvCodecContext) AvcodecParametersFromContext(par *AvCodecParameters) int
- func (cctx *AvCodecContext) AvcodecParametersToContext(par *AvCodecParameters) int
- func (cctx *AvCodecContext) AvcodecReceiveFrame(frame *AvFrame) int
- func (cctx *AvCodecContext) AvcodecReceivePacket(pkt *AvPacket) int
- func (cctx *AvCodecContext) AvcodecSendFrame(frame *AvFrame) int
- func (cctx *AvCodecContext) AvcodecSendPacket(pkt *AvPacket) int
- func (cctx *AvCodecContext) BFrameStrategy() int
- func (cctx *AvCodecContext) BQuantFactor() float64
- func (cctx *AvCodecContext) BQuantOffset() float64
- func (cctx *AvCodecContext) BSensitivity() int
- func (cctx *AvCodecContext) BidirRefine() int
- func (cctx *AvCodecContext) BitRate() int
- func (cctx *AvCodecContext) BitRateTolerance() int
- func (cctx *AvCodecContext) BitsPerCodedSample() int
- func (cctx *AvCodecContext) BitsPerRawSample() int
- func (cctx *AvCodecContext) BlockAlign() int
- func (cctx *AvCodecContext) BrdScale() int
- func (cctx *AvCodecContext) ChannelLayout() uint64
- func (cctx *AvCodecContext) Channels() int
- func (cctx *AvCodecContext) ChromaSampleLocation() AvChromaLocation
- func (cctx *AvCodecContext) Chromaoffset() int
- func (cctx *AvCodecContext) Codec() *AvCodec
- func (cctx *AvCodecContext) CodecDescriptor() *AvCodecDescriptor
- func (cctx *AvCodecContext) CodecID() AvCodecID
- func (cctx *AvCodecContext) CodecType() AvMediaType
- func (cctx *AvCodecContext) CodedHeight() int
- func (cctx *AvCodecContext) CodedWidth() int
- func (cctx *AvCodecContext) CoderType() int
- func (cctx *AvCodecContext) ColorPrimaries() AvColorPrimaries
- func (cctx *AvCodecContext) ColorRange() AvColorRange
- func (cctx *AvCodecContext) ColorTrc() AvColorTransferCharacteristic
- func (cctx *AvCodecContext) Colorspace() AvColorSpace
- func (cctx *AvCodecContext) CompressionLevel() int
- func (cctx *AvCodecContext) Cutoff() int
- func (cctx *AvCodecContext) DarkMasking() float64
- func (cctx *AvCodecContext) DctAlgo() int
- func (cctx *AvCodecContext) Debug() int
- func (cctx *AvCodecContext) DebugMv() int
- func (cctx *AvCodecContext) Delay() int
- func (cctx *AvCodecContext) DiaSize() int
- func (cctx *AvCodecContext) ErrRecognition() int
- func (cctx *AvCodecContext) ErrorConcealment() int
- func (cctx *AvCodecContext) ExtraData() []byte
- func (cctx *AvCodecContext) ExtradataSize() int
- func (cctx *AvCodecContext) FieldOrder() AvFieldOrder
- func (cctx *AvCodecContext) Flags() int
- func (cctx *AvCodecContext) Flags2() int
- func (cctx *AvCodecContext) FrameBits() int
- func (cctx *AvCodecContext) FrameNumber() int
- func (cctx *AvCodecContext) FrameSize() int
- func (cctx *AvCodecContext) FrameSkipCmp() int
- func (cctx *AvCodecContext) FrameSkipExp() int
- func (cctx *AvCodecContext) FrameSkipFactor() int
- func (cctx *AvCodecContext) FrameSkipThreshold() int
- func (cctx *AvCodecContext) Framerate() AvRational
- func (cctx *AvCodecContext) GlobalQuality() int
- func (cctx *AvCodecContext) GopSize() int
- func (cctx *AvCodecContext) HasBFrames() int
- func (cctx *AvCodecContext) HeaderBits() int
- func (cctx *AvCodecContext) Height() int
- func (cctx *AvCodecContext) ICount() int
- func (cctx *AvCodecContext) IQuantFactor() float64
- func (cctx *AvCodecContext) IQuantOffset() float64
- func (cctx *AvCodecContext) ITexBits() int
- func (cctx *AvCodecContext) IdctAlgo() int
- func (cctx *AvCodecContext) IldctCmp() int
- func (cctx *AvCodecContext) IntraDcPrecision() int
- func (cctx *AvCodecContext) KeyintMin() int
- func (cctx *AvCodecContext) LastPredictorCount() int
- func (cctx *AvCodecContext) Level() int
- func (cctx *AvCodecContext) LogLevelOffset() int
- func (cctx *AvCodecContext) Lowres() int
- func (cctx *AvCodecContext) LumiMasking() float64
- func (cctx *AvCodecContext) MaxBFrames() int
- func (cctx *AvCodecContext) MaxPredictionOrder() int
- func (cctx *AvCodecContext) MaxQdiff() int
- func (cctx *AvCodecContext) MbCmp() int
- func (cctx *AvCodecContext) MbDecision() int
- func (cctx *AvCodecContext) MbLmax() int
- func (cctx *AvCodecContext) MbLmin() int
- func (cctx *AvCodecContext) MeCmp() int
- func (cctx *AvCodecContext) MePenaltyCompensation() int
- func (cctx *AvCodecContext) MePreCmp() int
- func (cctx *AvCodecContext) MeRange() int
- func (cctx *AvCodecContext) MeSubCmp() int
- func (cctx *AvCodecContext) MeSubpelQuality() int
- func (cctx *AvCodecContext) MinPredictionOrder() int
- func (cctx *AvCodecContext) MiscBits() int
- func (cctx *AvCodecContext) MpegQuant() int
- func (cctx *AvCodecContext) Mv0Threshold() int
- func (cctx *AvCodecContext) MvBits() int
- func (cctx *AvCodecContext) NoiseReduction() int
- func (cctx *AvCodecContext) NsseWeight() int
- func (cctx *AvCodecContext) PCount() int
- func (cctx *AvCodecContext) PMasking() float64
- func (cctx *AvCodecContext) PTexBits() int
- func (cctx *AvCodecContext) PixFmt() AvPixelFormat
- func (cctx *AvCodecContext) PreDiaSize() int
- func (cctx *AvCodecContext) PreMe() int
- func (cctx *AvCodecContext) PredictionMethod() int
- func (cctx *AvCodecContext) Profile() int
- func (cctx *AvCodecContext) Qblur() float64
- func (cctx *AvCodecContext) Qcompress() float64
- func (cctx *AvCodecContext) Qmax() int
- func (cctx *AvCodecContext) Qmin() int
- func (cctx *AvCodecContext) RcBufferSize() int
- func (cctx *AvCodecContext) RcInitialBufferOccupancy() int
- func (cctx *AvCodecContext) RcMaxAvailableVbvUse() float64
- func (cctx *AvCodecContext) RcMaxRate() int
- func (cctx *AvCodecContext) RcMinRate() int
- func (cctx *AvCodecContext) RcMinVbvOverflowUse() float64
- func (cctx *AvCodecContext) RcOverrideCount() int
- func (cctx *AvCodecContext) RefcountedFrames() int
- func (cctx *AvCodecContext) Refs() int
- func (cctx *AvCodecContext) Release()
- func (cctx *AvCodecContext) RequestChannelLayout() uint64
- func (cctx *AvCodecContext) RequestSampleFmt() AvSampleFormat
- func (cctx *AvCodecContext) RtpPayloadSize() int
- func (cctx *AvCodecContext) SampleAspectRatio() AvRational
- func (cctx *AvCodecContext) SampleFmt() AvSampleFormat
- func (cctx *AvCodecContext) SampleRate() int
- func (cctx *AvCodecContext) ScenechangeThreshold() int
- func (cctx *AvCodecContext) SeekPreroll() int
- func (cctx *AvCodecContext) SetBitRate(br int64)
- func (cctx *AvCodecContext) SetChannelLayout(cl uint64)
- func (cctx *AvCodecContext) SetChannels(nc int)
- func (cctx *AvCodecContext) SetCodecID(codecID AvCodecID)
- func (cctx *AvCodecContext) SetCodecType(ctype AvMediaType)
- func (cctx *AvCodecContext) SetEncodeParams(width int, height int, pixFmt AvPixelFormat)
- func (cctx *AvCodecContext) SetEncodeParams2(width int, height int, pxlFmt AvPixelFormat, hasBframes bool, gopSize int)
- func (cctx *AvCodecContext) SetExtraData(data []byte)
- func (cctx *AvCodecContext) SetFlags(flags int)
- func (cctx *AvCodecContext) SetFramerate(framerate AvRational)
- func (cctx *AvCodecContext) SetHeight(h int)
- func (cctx *AvCodecContext) SetMaxQDiff(v int)
- func (cctx *AvCodecContext) SetMeRange(r int)
- func (cctx *AvCodecContext) SetPixelFormat(fmt AvPixelFormat)
- func (cctx *AvCodecContext) SetQCompress(v float32)
- func (cctx *AvCodecContext) SetQMax(v int)
- func (cctx *AvCodecContext) SetQMin(v int)
- func (cctx *AvCodecContext) SetSampleAspectRatio(sampleAspectRatio AvRational)
- func (cctx *AvCodecContext) SetSampleFmt(sf AvSampleFormat)
- func (cctx *AvCodecContext) SetSampleRate(sampleRate int)
- func (cctx *AvCodecContext) SetTimebase(timeBase AvRational)
- func (cctx *AvCodecContext) SetWidth(w int)
- func (cctx *AvCodecContext) SideDataOnlyPackets() int
- func (cctx *AvCodecContext) SkipAlpha() int
- func (cctx *AvCodecContext) SkipBottom() int
- func (cctx *AvCodecContext) SkipCount() int
- func (cctx *AvCodecContext) SkipFrame() AvDiscard
- func (cctx *AvCodecContext) SkipIdct() AvDiscard
- func (cctx *AvCodecContext) SkipLoopFilter() AvDiscard
- func (cctx *AvCodecContext) SkipTop() int
- func (cctx *AvCodecContext) SliceCount() int
- func (cctx *AvCodecContext) SliceFlags() int
- func (cctx *AvCodecContext) Slices() int
- func (cctx *AvCodecContext) SpatialCplxMasking() float64
- func (cctx *AvCodecContext) StrictStdCompliance() int
- func (cctx *AvCodecContext) SubCharencMode() int
- func (cctx *AvCodecContext) SubtitleHeaderSize() int
- func (cctx *AvCodecContext) TemporalCplxMasking() float64
- func (cctx *AvCodecContext) ThreadCount() int
- func (cctx *AvCodecContext) ThreadSafeCallbacks() int
- func (cctx *AvCodecContext) ThreadType() int
- func (cctx *AvCodecContext) TicksPerFrame() int
- func (cctx *AvCodecContext) TimeBase() AvRational
- func (cctx *AvCodecContext) Trellis() int
- func (cctx *AvCodecContext) Width() int
- func (cctx *AvCodecContext) WorkaroundBugs() int
- type AvCodecDescriptor
- type AvCodecID
- type AvCodecParameters
- func (cp *AvCodecParameters) AvcodecParametersCopy(src *AvCodecParameters) int
- func (cp *AvCodecParameters) ChannelLayout() uint64
- func (cp *AvCodecParameters) Channels() int
- func (cp *AvCodecParameters) CodecID() AvCodecID
- func (cp *AvCodecParameters) CodecType() AvMediaType
- func (cp *AvCodecParameters) Format() int
- func (cp *AvCodecParameters) Height() int
- func (cp *AvCodecParameters) SampleAspectRatio() AvRational
- func (cp *AvCodecParameters) SampleRate() int
- func (cp *AvCodecParameters) SetChannelLayout(cl uint64)
- func (cp *AvCodecParameters) SetChannels(nc int)
- func (cp *AvCodecParameters) SetFormat(f int)
- func (cp *AvCodecParameters) SetHeight(h int)
- func (cp *AvCodecParameters) SetSampleAspectRatio(sampleAspectRatio AvRational)
- func (cp *AvCodecParameters) SetSampleRate(sr int)
- func (cp *AvCodecParameters) SetWidth(w int)
- func (cp *AvCodecParameters) Width() int
- type AvCodecParser
- type AvCodecParserContext
- type AvColorPrimaries
- type AvColorRange
- type AvColorSpace
- type AvColorTransferCharacteristic
- type AvDictionary
- type AvDiscard
- type AvFieldOrder
- type AvFrame
- type AvHWAccel
- type AvMediaType
- type AvPacket
- func (p *AvPacket) AvGrowPacket(size int) int
- func (p *AvPacket) AvInitPacket()
- func (p *AvPacket) AvNewPacket(size int) int
- func (p *AvPacket) AvPacketCopyProps(src *AvPacket) int
- func (p *AvPacket) AvPacketFreeSideData()
- func (p *AvPacket) AvPacketFromData(data *uint8, size int) int
- func (p *AvPacket) AvPacketGetSideData(typ AvPacketSideDataType, size *int) *uint8
- func (p *AvPacket) AvPacketMoveRef(s *AvPacket)
- func (p *AvPacket) AvPacketNewSideData(typ AvPacketSideDataType, size int) *uint8
- func (p *AvPacket) AvPacketRef(src *AvPacket) int
- func (p *AvPacket) AvPacketRescaleTs(tbSrc, tbDst AvRational)
- func (p *AvPacket) AvPacketShrinkSideData(typ AvPacketSideDataType, size int) int
- func (p *AvPacket) AvPacketUnref()
- func (p *AvPacket) AvShrinkPacket(size int)
- func (p *AvPacket) Buf() *AvBufferRef
- func (p *AvPacket) ConvergenceDuration() int64
- func (p *AvPacket) Data() *uint8
- func (p *AvPacket) Dts() int64
- func (p *AvPacket) Duration() int
- func (p *AvPacket) Flags() int
- func (p *AvPacket) Pos() int64
- func (p *AvPacket) Pts() int64
- func (p *AvPacket) SetData(data *uint8)
- func (p *AvPacket) SetDts(dts int64)
- func (p *AvPacket) SetDuration(dur int64)
- func (p *AvPacket) SetFlags(flags int)
- func (p *AvPacket) SetPos(pos int64)
- func (p *AvPacket) SetPts(pts int64)
- func (p *AvPacket) SetSize(size int)
- func (p *AvPacket) SetStreamIndex(idx int)
- func (p *AvPacket) SideDataElems() int
- func (p *AvPacket) Size() int
- func (p *AvPacket) StreamIndex() int
- type AvPacketSideData
- type AvPacketSideDataType
- type AvPanScan
- type AvPicture
- type AvPixelFormat
- func (p AvPixelFormat) AvcodecFindBestPixFmtOf2(dstPixFmt2, srcPixFmt AvPixelFormat, hasAlpha int, lossPtr *int) AvPixelFormat
- func (p *AvPixelFormat) AvcodecFindBestPixFmtOfList(srcPixFmt AvPixelFormat, hasAlpha int, lossPtr *int) AvPixelFormat
- func (p AvPixelFormat) AvcodecGetPixFmtLoss(srcPixFmt AvPixelFormat, hasAlpha int) int
- func (p AvPixelFormat) AvcodecPixFmtToCodecTag() uint
- func (pf AvPixelFormat) String() string
- type AvProfile
- type AvRational
- type AvRounding
- type AvSampleFormat
- type AvSubtitle
- type AvSubtitleRect
- type RcOverride
Constants ¶
const ( /** * Decoder can use draw_horiz_band callback. */ AvCodecCapDrawHorizBand = int(C.AV_CODEC_CAP_DRAW_HORIZ_BAND) /** * Codec uses get_buffer() for allocating buffers and supports custom allocators. * If not set, it might not use get_buffer() at all or use operations that * assume the buffer was allocated by avcodec_default_get_buffer. */ AvCodecCapDr1 = int(C.AV_CODEC_CAP_DR1) AvCodecCapTruncated = int(C.AV_CODEC_CAP_TRUNCATED) /** * Encoder or decoder requires flushing with NULL input at the end in order to * give the complete and correct output. * * NOTE: If this flag is not set, the codec is guaranteed to never be fed with * with NULL data. The user can still send NULL data to the public encode * or decode function, but libavcodec will not pass it along to the codec * unless this flag is set. * * Decoders: * The decoder has a non-zero delay and needs to be fed with avpkt->data=NULL, * avpkt->size=0 at the end to get the delayed data until the decoder no longer * returns frames. * * Encoders: * The encoder needs to be fed with NULL data at the end of encoding until the * encoder no longer returns data. * * NOTE: For encoders implementing the AVCodec.encode2() function, setting this * flag also means that the encoder must set the pts and duration for * each output packet. If this flag is not set, the pts and duration will * be determined by libavcodec from the input frame. */ AvCodecCapDelay = int(C.AV_CODEC_CAP_DELAY) /** * Codec can be fed a final frame with a smaller size. * This can be used to prevent truncation of the last audio samples. */ AvCodecCapSmallLastFrame = int(C.AV_CODEC_CAP_SMALL_LAST_FRAME) /** * Codec can output multiple frames per AVPacket * Normally demuxers return one frame at a time, demuxers which do not do * are connected to a parser to split what they return into proper frames. * This flag is reserved to the very rare category of codecs which have a * bitstream that cannot be split into frames without timeconsuming * operations like full decoding. Demuxers carrying such bitstreams thus * may return multiple frames in a packet. This has many disadvantages like * prohibiting stream copy in many cases thus it should only be considered * as a last resort. */ AvCodecCapSubframes = int(C.AV_CODEC_CAP_SUBFRAMES) /** * Codec is experimental and is thus avoided in favor of non experimental * encoders */ AvCodecCapExperimental = int(C.AV_CODEC_CAP_EXPERIMENTAL) /** * Codec should fill in channel configuration and samplerate instead of container */ AvCodecCapChannelConf = int(C.AV_CODEC_CAP_CHANNEL_CONF) /** * Codec supports frame-level multithreading. */ AvCodecCapFrameThreads = int(C.AV_CODEC_CAP_FRAME_THREADS) /** * Codec supports slice-based (or partition-based) multithreading. */ AvCodecCapSliceThreads = int(C.AV_CODEC_CAP_SLICE_THREADS) /** * Codec supports changed parameters at any point. */ AvCodecCapParamChange = int(C.AV_CODEC_CAP_PARAM_CHANGE) /** * Codec supports avctx->thread_count == 0 (auto). */ AvCodecCapAutoThreads = int(C.AV_CODEC_CAP_AUTO_THREADS) /** * Audio encoder supports receiving a different number of samples in each call. */ AvCodecCapVariableFrameSize = int(C.AV_CODEC_CAP_VARIABLE_FRAME_SIZE) /** * Decoder is not a preferred choice for probing. * This indicates that the decoder is not a good choice for probing. * It could for example be an expensive to spin up hardware decoder, * or it could simply not provide a lot of useful information about * the stream. * A decoder marked with this flag should only be used as last resort * choice for probing. */ AvCodecCapAvoidProbing = int(C.AV_CODEC_CAP_AVOID_PROBING) /** * Codec is intra only. */ AvCodecCapIntraOnly = int(C.AV_CODEC_CAP_INTRA_ONLY) /** * Codec is lossless. */ AvCodecCapLossless = int(C.AV_CODEC_CAP_LOSSLESS) /** * Codec is backed by a hardware implementation. Typically used to * identify a non-hwaccel hardware decoder. For information about hwaccels, use * avcodec_get_hw_config() instead. */ AvCodecCapHardware = int(C.AV_CODEC_CAP_HARDWARE) /** * Codec is potentially backed by a hardware implementation, but not * necessarily. This is used instead of AV_CODEC_CAP_HARDWARE, if the * implementation provides some sort of internal fallback. */ AvCodecCapHybrid = int(C.AV_CODEC_CAP_HYBRID) )
codec capabilities AV_CODEC_CAP_xxx
const ( AvCodecFlagUnaligned = int(C.AV_CODEC_FLAG_UNALIGNED) AvCodecFlagQscale = int(C.AV_CODEC_FLAG_QSCALE) AvCodecFlag4mv = int(C.AV_CODEC_FLAG_4MV) AvCodecFlagOutputCorrupt = int(C.AV_CODEC_FLAG_OUTPUT_CORRUPT) AvCodecFlagQpel = int(C.AV_CODEC_FLAG_QPEL) AvCodecFlagPass1 = int(C.AV_CODEC_FLAG_PASS1) AvCodecFlagPass2 = int(C.AV_CODEC_FLAG_PASS2) AvCodecFlagLoopFilter = int(C.AV_CODEC_FLAG_LOOP_FILTER) AvCodecFlagGray = int(C.AV_CODEC_FLAG_GRAY) AvCodecFlagPsnr = int(C.AV_CODEC_FLAG_PSNR) AvCodecFlagTruncated = int(C.AV_CODEC_FLAG_TRUNCATED) AvCodecFlagInterlacedDct = int(C.AV_CODEC_FLAG_INTERLACED_DCT) AvCodecFlagLowDelay = int(C.AV_CODEC_FLAG_LOW_DELAY) AvCodecFlagGlobalHeader = int(C.AV_CODEC_FLAG_GLOBAL_HEADER) AvCodecFlagBitexact = int(C.AV_CODEC_FLAG_BITEXACT) AvCodecFlagAcPred = int(C.AV_CODEC_FLAG_AC_PRED) AvCodecFlagInterlacedMe = int(C.AV_CODEC_FLAG_INTERLACED_ME) AvCodecFlagClosedGop = int(C.AV_CODEC_FLAG_CLOSED_GOP) AvCodecFlag2Fast = int(C.AV_CODEC_FLAG2_FAST) AvCodecFlag2NoOutput = int(C.AV_CODEC_FLAG2_NO_OUTPUT) AvCodecFlag2LocalHeader = int(C.AV_CODEC_FLAG2_LOCAL_HEADER) AvCodecFlag2DropFrameTimecode = int(C.AV_CODEC_FLAG2_DROP_FRAME_TIMECODE) AvCodecFlag2Chunks = int(C.AV_CODEC_FLAG2_CHUNKS) AvCodecFlag2IgnoreCrop = int(C.AV_CODEC_FLAG2_IGNORE_CROP) AvCodecFlag2ShowAll = int(C.AV_CODEC_FLAG2_SHOW_ALL) AvCodecFlag2ExportMvs = int(C.AV_CODEC_FLAG2_EXPORT_MVS) AvCodecFlag2SkipManual = int(C.AV_CODEC_FLAG2_SKIP_MANUAL) AvCodecFlag2RoFlushNoop = int(C.AV_CODEC_FLAG2_RO_FLUSH_NOOP) )
AV_CODEC_FLAG_xxx
const ( AvCodecID012v = int(C.AV_CODEC_ID_012V) AvCodecID4xm = int(C.AV_CODEC_ID_4XM) AvCodecID8bps = int(C.AV_CODEC_ID_8BPS) AvCodecID8svxExp = int(C.AV_CODEC_ID_8SVX_EXP) AvCodecID8svxFib = int(C.AV_CODEC_ID_8SVX_FIB) AvCodecIDA64Multi = int(C.AV_CODEC_ID_A64_MULTI) AvCodecIDA64Multi5 = int(C.AV_CODEC_ID_A64_MULTI5) AvCodecIDAac = int(C.AV_CODEC_ID_AAC) AvCodecIDAacLatm = int(C.AV_CODEC_ID_AAC_LATM) AvCodecIDAasc = int(C.AV_CODEC_ID_AASC) AvCodecIDAc3 = int(C.AV_CODEC_ID_AC3) AvCodecIDAdpcm4xm = int(C.AV_CODEC_ID_ADPCM_4XM) AvCodecIDAdpcmAdx = int(C.AV_CODEC_ID_ADPCM_ADX) AvCodecIDAdpcmAfc = int(C.AV_CODEC_ID_ADPCM_AFC) AvCodecIDAdpcmCt = int(C.AV_CODEC_ID_ADPCM_CT) AvCodecIDAdpcmDtk = int(C.AV_CODEC_ID_ADPCM_DTK) AvCodecIDAdpcmEa = int(C.AV_CODEC_ID_ADPCM_EA) AvCodecIDAdpcmEaMaxisXa = int(C.AV_CODEC_ID_ADPCM_EA_MAXIS_XA) AvCodecIDAdpcmEaR1 = int(C.AV_CODEC_ID_ADPCM_EA_R1) AvCodecIDAdpcmEaR2 = int(C.AV_CODEC_ID_ADPCM_EA_R2) AvCodecIDAdpcmEaR3 = int(C.AV_CODEC_ID_ADPCM_EA_R3) AvCodecIDAdpcmEaXas = int(C.AV_CODEC_ID_ADPCM_EA_XAS) AvCodecIDAdpcmG722 = int(C.AV_CODEC_ID_ADPCM_G722) AvCodecIDAdpcmG726 = int(C.AV_CODEC_ID_ADPCM_G726) AvCodecIDAdpcmG726le = int(C.AV_CODEC_ID_ADPCM_G726LE) AvCodecIDAdpcmImaAmv = int(C.AV_CODEC_ID_ADPCM_IMA_AMV) AvCodecIDAdpcmImaApc = int(C.AV_CODEC_ID_ADPCM_IMA_APC) AvCodecIDAdpcmImaDk3 = int(C.AV_CODEC_ID_ADPCM_IMA_DK3) AvCodecIDAdpcmImaDk4 = int(C.AV_CODEC_ID_ADPCM_IMA_DK4) AvCodecIDAdpcmImaEaEacs = int(C.AV_CODEC_ID_ADPCM_IMA_EA_EACS) AvCodecIDAdpcmImaEaSead = int(C.AV_CODEC_ID_ADPCM_IMA_EA_SEAD) AvCodecIDAdpcmImaIss = int(C.AV_CODEC_ID_ADPCM_IMA_ISS) AvCodecIDAdpcmImaOki = int(C.AV_CODEC_ID_ADPCM_IMA_OKI) AvCodecIDAdpcmImaQt = int(C.AV_CODEC_ID_ADPCM_IMA_QT) AvCodecIDAdpcmImaRad = int(C.AV_CODEC_ID_ADPCM_IMA_RAD) AvCodecIDAdpcmImaSmjpeg = int(C.AV_CODEC_ID_ADPCM_IMA_SMJPEG) AvCodecIDAdpcmImaWav = int(C.AV_CODEC_ID_ADPCM_IMA_WAV) AvCodecIDAdpcmImaWs = int(C.AV_CODEC_ID_ADPCM_IMA_WS) AvCodecIDAdpcmMs = int(C.AV_CODEC_ID_ADPCM_MS) AvCodecIDAdpcmSbpro2 = int(C.AV_CODEC_ID_ADPCM_SBPRO_2) AvCodecIDAdpcmSbpro3 = int(C.AV_CODEC_ID_ADPCM_SBPRO_3) AvCodecIDAdpcmSbpro4 = int(C.AV_CODEC_ID_ADPCM_SBPRO_4) AvCodecIDAdpcmSwf = int(C.AV_CODEC_ID_ADPCM_SWF) AvCodecIDAdpcmThp = int(C.AV_CODEC_ID_ADPCM_THP) AvCodecIDAdpcmVima = int(C.AV_CODEC_ID_ADPCM_VIMA) AvCodecIDAdpcmXa = int(C.AV_CODEC_ID_ADPCM_XA) AvCodecIDAdpcmYamaha = int(C.AV_CODEC_ID_ADPCM_YAMAHA) AvCodecIDAic = int(C.AV_CODEC_ID_AIC) AvCodecIDAlac = int(C.AV_CODEC_ID_ALAC) AvCodecIDAliasPix = int(C.AV_CODEC_ID_ALIAS_PIX) AvCodecIDAmrNb = int(C.AV_CODEC_ID_AMR_NB) AvCodecIDAmrWb = int(C.AV_CODEC_ID_AMR_WB) AvCodecIDAmv = int(C.AV_CODEC_ID_AMV) AvCodecIDAnm = int(C.AV_CODEC_ID_ANM) AvCodecIDAnsi = int(C.AV_CODEC_ID_ANSI) AvCodecIDApe = int(C.AV_CODEC_ID_APE) AvCodecIDAss = int(C.AV_CODEC_ID_ASS) AvCodecIDAsv1 = int(C.AV_CODEC_ID_ASV1) AvCodecIDAsv2 = int(C.AV_CODEC_ID_ASV2) AvCodecIDAtrac1 = int(C.AV_CODEC_ID_ATRAC1) AvCodecIDAtrac3 = int(C.AV_CODEC_ID_ATRAC3) AvCodecIDAtrac3p = int(C.AV_CODEC_ID_ATRAC3P) AvCodecIDAura = int(C.AV_CODEC_ID_AURA) AvCodecIDAura2 = int(C.AV_CODEC_ID_AURA2) AvCodecIDAvrn = int(C.AV_CODEC_ID_AVRN) AvCodecIDAvrp = int(C.AV_CODEC_ID_AVRP) AvCodecIDAvs = int(C.AV_CODEC_ID_AVS) AvCodecIDAvui = int(C.AV_CODEC_ID_AVUI) AvCodecIDAyuv = int(C.AV_CODEC_ID_AYUV) AvCodecIDBethsoftvid = int(C.AV_CODEC_ID_BETHSOFTVID) AvCodecIDBfi = int(C.AV_CODEC_ID_BFI) AvCodecIDBinkaudioDct = int(C.AV_CODEC_ID_BINKAUDIO_DCT) AvCodecIDBinkaudioRdft = int(C.AV_CODEC_ID_BINKAUDIO_RDFT) AvCodecIDBinkvideo = int(C.AV_CODEC_ID_BINKVIDEO) AvCodecIDBintext = int(C.AV_CODEC_ID_BINTEXT) AvCodecIDBinData = int(C.AV_CODEC_ID_BIN_DATA) AvCodecIDBmp = int(C.AV_CODEC_ID_BMP) AvCodecIDBmvAudio = int(C.AV_CODEC_ID_BMV_AUDIO) AvCodecIDBmvVideo = int(C.AV_CODEC_ID_BMV_VIDEO) AvCodecIDBrenderPix = int(C.AV_CODEC_ID_BRENDER_PIX) AvCodecIDC93 = int(C.AV_CODEC_ID_C93) AvCodecIDCavs = int(C.AV_CODEC_ID_CAVS) AvCodecIDCdgraphics = int(C.AV_CODEC_ID_CDGRAPHICS) AvCodecIDCdxl = int(C.AV_CODEC_ID_CDXL) AvCodecIDCelt = int(C.AV_CODEC_ID_CELT) AvCodecIDCinepak = int(C.AV_CODEC_ID_CINEPAK) AvCodecIDCljr = int(C.AV_CODEC_ID_CLJR) AvCodecIDCllc = int(C.AV_CODEC_ID_CLLC) AvCodecIDCmv = int(C.AV_CODEC_ID_CMV) AvCodecIDComfortNoise = int(C.AV_CODEC_ID_COMFORT_NOISE) AvCodecIDCook = int(C.AV_CODEC_ID_COOK) AvCodecIDCpia = int(C.AV_CODEC_ID_CPIA) AvCodecIDCscd = int(C.AV_CODEC_ID_CSCD) AvCodecIDCyuv = int(C.AV_CODEC_ID_CYUV) AvCodecIDDfa = int(C.AV_CODEC_ID_DFA) AvCodecIDDirac = int(C.AV_CODEC_ID_DIRAC) AvCodecIDDnxhd = int(C.AV_CODEC_ID_DNXHD) AvCodecIDDpx = int(C.AV_CODEC_ID_DPX) AvCodecIDDsdLsbf = int(C.AV_CODEC_ID_DSD_LSBF) AvCodecIDDsdLsbfPlanar = int(C.AV_CODEC_ID_DSD_LSBF_PLANAR) AvCodecIDDsdMsbf = int(C.AV_CODEC_ID_DSD_MSBF) AvCodecIDDsdMsbfPlanar = int(C.AV_CODEC_ID_DSD_MSBF_PLANAR) AvCodecIDDsicinaudio = int(C.AV_CODEC_ID_DSICINAUDIO) AvCodecIDDsicinvideo = int(C.AV_CODEC_ID_DSICINVIDEO) AvCodecIDDts = int(C.AV_CODEC_ID_DTS) AvCodecIDDvaudio = int(C.AV_CODEC_ID_DVAUDIO) AvCodecIDDvbSubtitle = int(C.AV_CODEC_ID_DVB_SUBTITLE) AvCodecIDDvbTeletext = int(C.AV_CODEC_ID_DVB_TELETEXT) AvCodecIDDvdSubtitle = int(C.AV_CODEC_ID_DVD_SUBTITLE) AvCodecIDDvvideo = int(C.AV_CODEC_ID_DVVIDEO) AvCodecIDDxa = int(C.AV_CODEC_ID_DXA) AvCodecIDDxtory = int(C.AV_CODEC_ID_DXTORY) AvCodecIDEac3 = int(C.AV_CODEC_ID_EAC3) AvCodecIDEia608 = int(C.AV_CODEC_ID_EIA_608) AvCodecIDEscape124 = int(C.AV_CODEC_ID_ESCAPE124) AvCodecIDEscape130 = int(C.AV_CODEC_ID_ESCAPE130) AvCodecIDEvrc = int(C.AV_CODEC_ID_EVRC) AvCodecIDExr = int(C.AV_CODEC_ID_EXR) AvCodecIDFfmetadata = int(C.AV_CODEC_ID_FFMETADATA) AvCodecIDFfv1 = int(C.AV_CODEC_ID_FFV1) AvCodecIDFfvhuff = int(C.AV_CODEC_ID_FFVHUFF) AvCodecIDFfwavesynth = int(C.AV_CODEC_ID_FFWAVESYNTH) AvCodecIDFic = int(C.AV_CODEC_ID_FIC) AvCodecIDFirstAudio = int(C.AV_CODEC_ID_FIRST_AUDIO) AvCodecIDFirstSubtitle = int(C.AV_CODEC_ID_FIRST_SUBTITLE) AvCodecIDFirstUnknown = int(C.AV_CODEC_ID_FIRST_UNKNOWN) AvCodecIDFlac = int(C.AV_CODEC_ID_FLAC) AvCodecIDFlashsv = int(C.AV_CODEC_ID_FLASHSV) AvCodecIDFlashsv2 = int(C.AV_CODEC_ID_FLASHSV2) AvCodecIDFlic = int(C.AV_CODEC_ID_FLIC) AvCodecIDFlv1 = int(C.AV_CODEC_ID_FLV1) AvCodecIDFraps = int(C.AV_CODEC_ID_FRAPS) AvCodecIDFrwu = int(C.AV_CODEC_ID_FRWU) AvCodecIDG2m = int(C.AV_CODEC_ID_G2M) AvCodecIDG723_1 = int(C.AV_CODEC_ID_G723_1) AvCodecIDG729 = int(C.AV_CODEC_ID_G729) AvCodecIDGif = int(C.AV_CODEC_ID_GIF) AvCodecIDGsm = int(C.AV_CODEC_ID_GSM) AvCodecIDGsmMs = int(C.AV_CODEC_ID_GSM_MS) AvCodecIDH261 = int(C.AV_CODEC_ID_H261) AvCodecIDH263 = int(C.AV_CODEC_ID_H263) AvCodecIDH263i = int(C.AV_CODEC_ID_H263I) AvCodecIDH263p = int(C.AV_CODEC_ID_H263P) AvCodecIDH264 = int(C.AV_CODEC_ID_H264) AvCodecIDH265 = int(C.AV_CODEC_ID_H265) AvCodecIDHdmvPgsSubtitle = int(C.AV_CODEC_ID_HDMV_PGS_SUBTITLE) AvCodecIDHevc = int(C.AV_CODEC_ID_HEVC) AvCodecIDHnm4Video = int(C.AV_CODEC_ID_HNM4_VIDEO) AvCodecIDHuffyuv = int(C.AV_CODEC_ID_HUFFYUV) AvCodecIDIac = int(C.AV_CODEC_ID_IAC) AvCodecIDIdcin = int(C.AV_CODEC_ID_IDCIN) AvCodecIDIdf = int(C.AV_CODEC_ID_IDF) AvCodecIDIffByterun1 = int(C.AV_CODEC_ID_IFF_BYTERUN1) AvCodecIDIffIlbm = int(C.AV_CODEC_ID_IFF_ILBM) AvCodecIDIlbc = int(C.AV_CODEC_ID_ILBC) AvCodecIDImc = int(C.AV_CODEC_ID_IMC) AvCodecIDIndeo2 = int(C.AV_CODEC_ID_INDEO2) AvCodecIDIndeo3 = int(C.AV_CODEC_ID_INDEO3) AvCodecIDIndeo4 = int(C.AV_CODEC_ID_INDEO4) AvCodecIDIndeo5 = int(C.AV_CODEC_ID_INDEO5) AvCodecIDInterplayDpcm = int(C.AV_CODEC_ID_INTERPLAY_DPCM) AvCodecIDInterplayVideo = int(C.AV_CODEC_ID_INTERPLAY_VIDEO) AvCodecIDJacosub = int(C.AV_CODEC_ID_JACOSUB) AvCodecIDJpeg2000 = int(C.AV_CODEC_ID_JPEG2000) AvCodecIDJpegls = int(C.AV_CODEC_ID_JPEGLS) AvCodecIDJv = int(C.AV_CODEC_ID_JV) AvCodecIDKgv1 = int(C.AV_CODEC_ID_KGV1) AvCodecIDKmvc = int(C.AV_CODEC_ID_KMVC) AvCodecIDLagarith = int(C.AV_CODEC_ID_LAGARITH) AvCodecIDLjpeg = int(C.AV_CODEC_ID_LJPEG) AvCodecIDLoco = int(C.AV_CODEC_ID_LOCO) AvCodecIDMace3 = int(C.AV_CODEC_ID_MACE3) AvCodecIDMace6 = int(C.AV_CODEC_ID_MACE6) AvCodecIDMad = int(C.AV_CODEC_ID_MAD) AvCodecIDMdec = int(C.AV_CODEC_ID_MDEC) AvCodecIDMetasound = int(C.AV_CODEC_ID_METASOUND) AvCodecIDMicrodvd = int(C.AV_CODEC_ID_MICRODVD) AvCodecIDMimic = int(C.AV_CODEC_ID_MIMIC) AvCodecIDMjpeg = int(C.AV_CODEC_ID_MJPEG) AvCodecIDMjpegb = int(C.AV_CODEC_ID_MJPEGB) AvCodecIDMlp = int(C.AV_CODEC_ID_MLP) AvCodecIDMmvideo = int(C.AV_CODEC_ID_MMVIDEO) AvCodecIDMotionpixels = int(C.AV_CODEC_ID_MOTIONPIXELS) AvCodecIDMovText = int(C.AV_CODEC_ID_MOV_TEXT) AvCodecIDMp1 = int(C.AV_CODEC_ID_MP1) AvCodecIDMp2 = int(C.AV_CODEC_ID_MP2) AvCodecIDMp3 = int(C.AV_CODEC_ID_MP3) AvCodecIDMp3adu = int(C.AV_CODEC_ID_MP3ADU) AvCodecIDMp3on4 = int(C.AV_CODEC_ID_MP3ON4) AvCodecIDMp4als = int(C.AV_CODEC_ID_MP4ALS) AvCodecIDMpeg1video = int(C.AV_CODEC_ID_MPEG1VIDEO) AvCodecIDMpeg2ts = int(C.AV_CODEC_ID_MPEG2TS) AvCodecIDMpeg2video = int(C.AV_CODEC_ID_MPEG2VIDEO) // AV_CODEC_ID_MPEG2VIDEO_XVMC = int(C.AV_CODEC_ID_MPEG2VIDEO_XVMC) AvCodecIDMpeg4 = int(C.AV_CODEC_ID_MPEG4) AvCodecIDMpeg4systems = int(C.AV_CODEC_ID_MPEG4SYSTEMS) AvCodecIDMpl2 = int(C.AV_CODEC_ID_MPL2) AvCodecIDMsa1 = int(C.AV_CODEC_ID_MSA1) AvCodecIDMsmpeg4v1 = int(C.AV_CODEC_ID_MSMPEG4V1) AvCodecIDMsmpeg4v2 = int(C.AV_CODEC_ID_MSMPEG4V2) AvCodecIDMsmpeg4v3 = int(C.AV_CODEC_ID_MSMPEG4V3) AvCodecIDMsrle = int(C.AV_CODEC_ID_MSRLE) AvCodecIDMss1 = int(C.AV_CODEC_ID_MSS1) AvCodecIDMss2 = int(C.AV_CODEC_ID_MSS2) AvCodecIDMsvideo1 = int(C.AV_CODEC_ID_MSVIDEO1) AvCodecIDMszh = int(C.AV_CODEC_ID_MSZH) AvCodecIDMts2 = int(C.AV_CODEC_ID_MTS2) AvCodecIDMusepack7 = int(C.AV_CODEC_ID_MUSEPACK7) AvCodecIDMusepack8 = int(C.AV_CODEC_ID_MUSEPACK8) AvCodecIDMvc1 = int(C.AV_CODEC_ID_MVC1) AvCodecIDMvc2 = int(C.AV_CODEC_ID_MVC2) AvCodecIDMxpeg = int(C.AV_CODEC_ID_MXPEG) AvCodecIDNellymoser = int(C.AV_CODEC_ID_NELLYMOSER) AvCodecIDNone = int(C.AV_CODEC_ID_NONE) AvCodecIDNuv = int(C.AV_CODEC_ID_NUV) AvCodecIDOn2avc = int(C.AV_CODEC_ID_ON2AVC) AvCodecIDOpus = int(C.AV_CODEC_ID_OPUS) AvCodecIDOtf = int(C.AV_CODEC_ID_OTF) AvCodecIDPafAudio = int(C.AV_CODEC_ID_PAF_AUDIO) AvCodecIDPafVideo = int(C.AV_CODEC_ID_PAF_VIDEO) AvCodecIDPam = int(C.AV_CODEC_ID_PAM) AvCodecIDPbm = int(C.AV_CODEC_ID_PBM) AvCodecIDPcmAlaw = int(C.AV_CODEC_ID_PCM_ALAW) AvCodecIDPcmBluray = int(C.AV_CODEC_ID_PCM_BLURAY) AvCodecIDPcmDvd = int(C.AV_CODEC_ID_PCM_DVD) AvCodecIDPcmF32be = int(C.AV_CODEC_ID_PCM_F32BE) AvCodecIDPcmF32le = int(C.AV_CODEC_ID_PCM_F32LE) AvCodecIDPcmF64be = int(C.AV_CODEC_ID_PCM_F64BE) AvCodecIDPcmF64le = int(C.AV_CODEC_ID_PCM_F64LE) AvCodecIDPcmLxf = int(C.AV_CODEC_ID_PCM_LXF) AvCodecIDPcmMulaw = int(C.AV_CODEC_ID_PCM_MULAW) AvCodecIDPcmS16be = int(C.AV_CODEC_ID_PCM_S16BE) AvCodecIDPcmS16bePlanar = int(C.AV_CODEC_ID_PCM_S16BE_PLANAR) AvCodecIDPcmS16le = int(C.AV_CODEC_ID_PCM_S16LE) AvCodecIDPcmS16lePlanar = int(C.AV_CODEC_ID_PCM_S16LE_PLANAR) AvCodecIDPcmS24be = int(C.AV_CODEC_ID_PCM_S24BE) AvCodecIDPcmS24daud = int(C.AV_CODEC_ID_PCM_S24DAUD) AvCodecIDPcmS24le = int(C.AV_CODEC_ID_PCM_S24LE) AvCodecIDPcmS24lePlanaR = int(C.AV_CODEC_ID_PCM_S24LE_PLANAR) AvCodecIDPcmS32be = int(C.AV_CODEC_ID_PCM_S32BE) AvCodecIDPcmS32le = int(C.AV_CODEC_ID_PCM_S32LE) AvCodecIDPcmS32lePlanaR = int(C.AV_CODEC_ID_PCM_S32LE_PLANAR) AvCodecIDPcmS8 = int(C.AV_CODEC_ID_PCM_S8) AvCodecIDPcmS8Planar = int(C.AV_CODEC_ID_PCM_S8_PLANAR) AvCodecIDPcmU16be = int(C.AV_CODEC_ID_PCM_U16BE) AvCodecIDPcmU16le = int(C.AV_CODEC_ID_PCM_U16LE) AvCodecIDPcmU24be = int(C.AV_CODEC_ID_PCM_U24BE) AvCodecIDPcmU24le = int(C.AV_CODEC_ID_PCM_U24LE) AvCodecIDPcmU32be = int(C.AV_CODEC_ID_PCM_U32BE) AvCodecIDPcmU32le = int(C.AV_CODEC_ID_PCM_U32LE) AvCodecIDPcmU8 = int(C.AV_CODEC_ID_PCM_U8) AvCodecIDPcmZork = int(C.AV_CODEC_ID_PCM_ZORK) AvCodecIDPcx = int(C.AV_CODEC_ID_PCX) AvCodecIDPgm = int(C.AV_CODEC_ID_PGM) AvCodecIDPgmyuv = int(C.AV_CODEC_ID_PGMYUV) AvCodecIDPictor = int(C.AV_CODEC_ID_PICTOR) AvCodecIDPjs = int(C.AV_CODEC_ID_PJS) AvCodecIDPng = int(C.AV_CODEC_ID_PNG) AvCodecIDPpm = int(C.AV_CODEC_ID_PPM) AvCodecIDProbe = int(C.AV_CODEC_ID_PROBE) AvCodecIDProres = int(C.AV_CODEC_ID_PRORES) AvCodecIDPtx = int(C.AV_CODEC_ID_PTX) AvCodecIDQcelp = int(C.AV_CODEC_ID_QCELP) AvCodecIDQdm2 = int(C.AV_CODEC_ID_QDM2) AvCodecIDQdmc = int(C.AV_CODEC_ID_QDMC) AvCodecIDQdraw = int(C.AV_CODEC_ID_QDRAW) AvCodecIDQpeg = int(C.AV_CODEC_ID_QPEG) AvCodecIDQtrle = int(C.AV_CODEC_ID_QTRLE) AvCodecIDR10k = int(C.AV_CODEC_ID_R10K) AvCodecIDR210 = int(C.AV_CODEC_ID_R210) AvCodecIDRalf = int(C.AV_CODEC_ID_RALF) AvCodecIDRawvideo = int(C.AV_CODEC_ID_RAWVIDEO) AvCodecIDRa144 = int(C.AV_CODEC_ID_RA_144) AvCodecIDRa288 = int(C.AV_CODEC_ID_RA_288) AvCodecIDRealtext = int(C.AV_CODEC_ID_REALTEXT) AvCodecIDRl2 = int(C.AV_CODEC_ID_RL2) AvCodecIDRoq = int(C.AV_CODEC_ID_ROQ) AvCodecIDRoqDpcm = int(C.AV_CODEC_ID_ROQ_DPCM) AvCodecIDRpza = int(C.AV_CODEC_ID_RPZA) AvCodecIDRv10 = int(C.AV_CODEC_ID_RV10) AvCodecIDRv20 = int(C.AV_CODEC_ID_RV20) AvCodecIDRv30 = int(C.AV_CODEC_ID_RV30) AvCodecIDRv40 = int(C.AV_CODEC_ID_RV40) AvCodecIDS302m = int(C.AV_CODEC_ID_S302M) AvCodecIDSami = int(C.AV_CODEC_ID_SAMI) AvCodecIDSanm = int(C.AV_CODEC_ID_SANM) AvCodecIDSgi = int(C.AV_CODEC_ID_SGI) AvCodecIDSgirle = int(C.AV_CODEC_ID_SGIRLE) AvCodecIDShorten = int(C.AV_CODEC_ID_SHORTEN) AvCodecIDSipr = int(C.AV_CODEC_ID_SIPR) AvCodecIDSmackaudio = int(C.AV_CODEC_ID_SMACKAUDIO) AvCodecIDSmackvideo = int(C.AV_CODEC_ID_SMACKVIDEO) AvCodecIDSmc = int(C.AV_CODEC_ID_SMC) AvCodecIDSmpteKlv = int(C.AV_CODEC_ID_SMPTE_KLV) AvCodecIDSmv = int(C.AV_CODEC_ID_SMV) AvCodecIDSmvjpeg = int(C.AV_CODEC_ID_SMVJPEG) AvCodecIDSnow = int(C.AV_CODEC_ID_SNOW) AvCodecIDSolDpcm = int(C.AV_CODEC_ID_SOL_DPCM) AvCodecIDSonic = int(C.AV_CODEC_ID_SONIC) AvCodecIDSonicLs = int(C.AV_CODEC_ID_SONIC_LS) AvCodecIDSp5x = int(C.AV_CODEC_ID_SP5X) AvCodecIDSpeex = int(C.AV_CODEC_ID_SPEEX) AvCodecIDSrt = int(C.AV_CODEC_ID_SRT) AvCodecIDSsa = int(C.AV_CODEC_ID_SSA) AvCodecIDSubrip = int(C.AV_CODEC_ID_SUBRIP) AvCodecIDSubviewer = int(C.AV_CODEC_ID_SUBVIEWER) AvCodecIDSubviewer1 = int(C.AV_CODEC_ID_SUBVIEWER1) AvCodecIDSunrast = int(C.AV_CODEC_ID_SUNRAST) AvCodecIDSvq1 = int(C.AV_CODEC_ID_SVQ1) AvCodecIDSvq3 = int(C.AV_CODEC_ID_SVQ3) AvCodecIDTak = int(C.AV_CODEC_ID_TAK) AvCodecIDTarga = int(C.AV_CODEC_ID_TARGA) AvCodecIDTargaY216 = int(C.AV_CODEC_ID_TARGA_Y216) AvCodecIDText = int(C.AV_CODEC_ID_TEXT) AvCodecIDTgq = int(C.AV_CODEC_ID_TGQ) AvCodecIDTgv = int(C.AV_CODEC_ID_TGV) AvCodecIDTheora = int(C.AV_CODEC_ID_THEORA) AvCodecIDThp = int(C.AV_CODEC_ID_THP) AvCodecIDTiertexseqvideo = int(C.AV_CODEC_ID_TIERTEXSEQVIDEO) AvCodecIDTiff = int(C.AV_CODEC_ID_TIFF) AvCodecIDTimedID3 = int(C.AV_CODEC_ID_TIMED_ID3) AvCodecIDTmv = int(C.AV_CODEC_ID_TMV) AvCodecIDTqi = int(C.AV_CODEC_ID_TQI) AvCodecIDTruehd = int(C.AV_CODEC_ID_TRUEHD) AvCodecIDTruemotion1 = int(C.AV_CODEC_ID_TRUEMOTION1) AvCodecIDTruemotion2 = int(C.AV_CODEC_ID_TRUEMOTION2) AvCodecIDTruespeech = int(C.AV_CODEC_ID_TRUESPEECH) AvCodecIDTscc = int(C.AV_CODEC_ID_TSCC) AvCodecIDTscc2 = int(C.AV_CODEC_ID_TSCC2) AvCodecIDTta = int(C.AV_CODEC_ID_TTA) AvCodecIDTtf = int(C.AV_CODEC_ID_TTF) AvCodecIDTwinvq = int(C.AV_CODEC_ID_TWINVQ) AvCodecIDTxd = int(C.AV_CODEC_ID_TXD) AvCodecIDUlti = int(C.AV_CODEC_ID_ULTI) AvCodecIDUtvideo = int(C.AV_CODEC_ID_UTVIDEO) AvCodecIDV210 = int(C.AV_CODEC_ID_V210) AvCodecIDV210x = int(C.AV_CODEC_ID_V210X) AvCodecIDV308 = int(C.AV_CODEC_ID_V308) AvCodecIDV408 = int(C.AV_CODEC_ID_V408) AvCodecIDV410 = int(C.AV_CODEC_ID_V410) AvCodecIDVb = int(C.AV_CODEC_ID_VB) AvCodecIDVble = int(C.AV_CODEC_ID_VBLE) AvCodecIDVc1 = int(C.AV_CODEC_ID_VC1) AvCodecIDVc1image = int(C.AV_CODEC_ID_VC1IMAGE) AvCodecIDVcr1 = int(C.AV_CODEC_ID_VCR1) // AV_CODEC_ID_VIMA = int(C.AV_CODEC_ID_VIMA) AvCodecIDVixl = int(C.AV_CODEC_ID_VIXL) AvCodecIDVmdaudio = int(C.AV_CODEC_ID_VMDAUDIO) AvCodecIDVmdvideo = int(C.AV_CODEC_ID_VMDVIDEO) AvCodecIDVmnc = int(C.AV_CODEC_ID_VMNC) AvCodecIDVorbis = int(C.AV_CODEC_ID_VORBIS) // AV_CODEC_ID_VOXWARE = int(C.AV_CODEC_ID_VOXWARE) AvCodecIDVp3 = int(C.AV_CODEC_ID_VP3) AvCodecIDVp5 = int(C.AV_CODEC_ID_VP5) AvCodecIDVp6 = int(C.AV_CODEC_ID_VP6) AvCodecIDVp6a = int(C.AV_CODEC_ID_VP6A) AvCodecIDVp6f = int(C.AV_CODEC_ID_VP6F) AvCodecIDVp7 = int(C.AV_CODEC_ID_VP7) AvCodecIDVp8 = int(C.AV_CODEC_ID_VP8) AvCodecIDVp9 = int(C.AV_CODEC_ID_VP9) AvCodecIDVplayer = int(C.AV_CODEC_ID_VPLAYER) AvCodecIDWavpack = int(C.AV_CODEC_ID_WAVPACK) AvCodecIDWebp = int(C.AV_CODEC_ID_WEBP) AvCodecIDWebvtt = int(C.AV_CODEC_ID_WEBVTT) AvCodecIDWestwoodSnd1 = int(C.AV_CODEC_ID_WESTWOOD_SND1) AvCodecIDWmalossless = int(C.AV_CODEC_ID_WMALOSSLESS) AvCodecIDWmapro = int(C.AV_CODEC_ID_WMAPRO) AvCodecIDWmav1 = int(C.AV_CODEC_ID_WMAV1) AvCodecIDWmav2 = int(C.AV_CODEC_ID_WMAV2) AvCodecIDWmavoice = int(C.AV_CODEC_ID_WMAVOICE) AvCodecIDWmv1 = int(C.AV_CODEC_ID_WMV1) AvCodecIDWmv2 = int(C.AV_CODEC_ID_WMV2) AvCodecIDWmv3 = int(C.AV_CODEC_ID_WMV3) AvCodecIDWmv3image = int(C.AV_CODEC_ID_WMV3IMAGE) AvCodecIDWnv1 = int(C.AV_CODEC_ID_WNV1) AvCodecIDWsVqa = int(C.AV_CODEC_ID_WS_VQA) AvCodecIDXanDpcm = int(C.AV_CODEC_ID_XAN_DPCM) AvCodecIDXanWc3 = int(C.AV_CODEC_ID_XAN_WC3) AvCodecIDXanWc4 = int(C.AV_CODEC_ID_XAN_WC4) AvCodecIDXbin = int(C.AV_CODEC_ID_XBIN) AvCodecIDXbm = int(C.AV_CODEC_ID_XBM) AvCodecIDXface = int(C.AV_CODEC_ID_XFACE) AvCodecIDXsub = int(C.AV_CODEC_ID_XSUB) AvCodecIDXwd = int(C.AV_CODEC_ID_XWD) AvCodecIDY41p = int(C.AV_CODEC_ID_Y41P) AvCodecIDYop = int(C.AV_CODEC_ID_YOP) AvCodecIDYuv4 = int(C.AV_CODEC_ID_YUV4) AvCodecIDZerocodec = int(C.AV_CODEC_ID_ZEROCODEC) AvCodecIDZlib = int(C.AV_CODEC_ID_ZLIB) AvCodecIDZmbv = int(C.AV_CODEC_ID_ZMBV) )
AV_CODEC_IDxxx Multiple encoders have the same ID and are able to encode compatible streams.
const ( AvPktFlagKey = int(C.AV_PKT_FLAG_KEY) AvPktFlagCorrupt = int(C.AV_PKT_FLAG_CORRUPT) AvPktFlagDiscard = int(C.AV_PKT_FLAG_DISCARD) )
AV_PKT_xxx
const ( AvPixFmtYuv = 0 AvPixFmtYuv420P9 = C.AV_PIX_FMT_YUV420P9 AvPixFmtYuv422P9 = C.AV_PIX_FMT_YUV422P9 AvPixFmtYuv444P9 = C.AV_PIX_FMT_YUV444P9 AvPixFmtYuv420P10 = C.AV_PIX_FMT_YUV420P10 AvPixFmtYuv422P10 = C.AV_PIX_FMT_YUV422P10 AvPixFmtYuv440P10 = C.AV_PIX_FMT_YUV440P10 AvPixFmtYuv444P10 = C.AV_PIX_FMT_YUV444P10 AvPixFmtYuv420P12 = C.AV_PIX_FMT_YUV420P12 AvPixFmtYuv422P12 = C.AV_PIX_FMT_YUV422P12 AvPixFmtYuv440P12 = C.AV_PIX_FMT_YUV440P12 AvPixFmtYuv444P12 = C.AV_PIX_FMT_YUV444P12 AvPixFmtYuv420P14 = C.AV_PIX_FMT_YUV420P14 AvPixFmtYuv422P14 = C.AV_PIX_FMT_YUV422P14 AvPixFmtYuv444P14 = C.AV_PIX_FMT_YUV444P14 AvPixFmtYuv420P16 = C.AV_PIX_FMT_YUV420P16 AvPixFmtYuv422P16 = C.AV_PIX_FMT_YUV422P16 AvPixFmtYuv444P16 = C.AV_PIX_FMT_YUV444P16 AvPixFmtYuvA420P9 = C.AV_PIX_FMT_YUVA420P9 AvPixFmtYuvA422P9 = C.AV_PIX_FMT_YUVA422P9 AvPixFmtYuvA444P9 = C.AV_PIX_FMT_YUVA444P9 AvPixFmtYuvA420P10 = C.AV_PIX_FMT_YUVA420P10 AvPixFmtYuvA422P10 = C.AV_PIX_FMT_YUVA422P10 AvPixFmtYuvA444P10 = C.AV_PIX_FMT_YUVA444P10 AvPixFmtYuvA420P16 = C.AV_PIX_FMT_YUVA420P16 AvPixFmtYuvA422P16 = C.AV_PIX_FMT_YUVA422P16 AvPixFmtYuvA444P16 = C.AV_PIX_FMT_YUVA444P16 AvPixFmtRgb24 = C.AV_PIX_FMT_RGB24 AvPixFmtRgba = C.AV_PIX_FMT_RGBA )
AV_PIX_FMT_xxx
const ( SwsFastBilinear = C.SWS_FAST_BILINEAR SwsBilinear = C.SWS_BILINEAR SwsBicubic = C.SWS_BICUBIC SwsX = C.SWS_X SwsPoint = C.SWS_POINT SwsArea = C.SWS_AREA SwsBicublin = C.SWS_BICUBLIN SwsGauss = C.SWS_GAUSS SwsSinc = C.SWS_SINC SwsLanczos = C.SWS_LANCZOS SwsSpline = C.SWS_SPLINE SwsSrcVChrDropMask = C.SWS_SRC_V_CHR_DROP_MASK SwsSrcVChrDropShift = C.SWS_SRC_V_CHR_DROP_SHIFT SwsParamDefault = C.SWS_PARAM_DEFAULT SwsPrintInfo = C.SWS_PRINT_INFO SwsFullChrHInt = C.SWS_FULL_CHR_H_INT SwsFullChrHInp = C.SWS_FULL_CHR_H_INP SwsDirectBgr = C.SWS_DIRECT_BGR SwsAccurateRnd = C.SWS_ACCURATE_RND SwsBitexact = C.SWS_BITEXACT SwsErrorDiffusion = C.SWS_ERROR_DIFFUSION SwsMaxReduceCutoff = C.SWS_MAX_REDUCE_CUTOFF SwsCsItu709 = C.SWS_CS_ITU709 SwsCsFcc = C.SWS_CS_FCC SwsCsItu601 = C.SWS_CS_ITU601 SwsCsItu624 = C.SWS_CS_ITU624 SwsCsSmpte170m = C.SWS_CS_SMPTE170M SwsCsSmpte240m = C.SWS_CS_SMPTE240M SwsCsDefault = C.SWS_CS_DEFAULT SwsCsBt2020 = C.SWS_CS_BT2020 )
SWS_xxx
const ( AvRoundZero = C.AV_ROUND_ZERO ///< Round toward zero. AvRoundInf = C.AV_ROUND_INF ///< Round away from zero. AvRoundDown = C.AV_ROUND_DOWN ///< Round toward -infinity. AvRoundUp = C.AV_ROUND_UP ///< Round toward +infinity. AvRoundNearInf = C.AV_ROUND_NEAR_INF ///< Round to nearest and halfway cases away from zero. /** * Flag telling rescaling functions to pass `INT64_MIN`/`MAX` through * unchanged, avoiding special cases for #AV_NOPTS_VALUE. * * Unlike other values of the enumeration AvRounding, this value is a * bitmask that must be used in conjunction with another value of the * enumeration through a bitwise OR, in order to set behavior for normal * cases. * * @code{.c} * av_rescale_rnd(3, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX); * // Rescaling 3: * // Calculating 3 * 1 / 2 * // 3 / 2 is rounded up to 2 * // => 2 * * av_rescale_rnd(AV_NOPTS_VALUE, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX); * // Rescaling AV_NOPTS_VALUE: * // AV_NOPTS_VALUE == INT64_MIN * // AV_NOPTS_VALUE is passed through * // => AV_NOPTS_VALUE * @endcode */ AvRoundPassMinmax = C.AV_ROUND_PASS_MINMAX )
AV_ROUND_xxx
Variables ¶
This section is empty.
Functions ¶
func AVRescaleQRnd ¶ added in v1.1.1
func AVRescaleQRnd(a int64, bq, cq AvRational, rnd AvRounding) int64
AVRescaleQRnd The operation is mathematically equivalent to `a * bq / cq`.
func AvFastPaddedMalloc ¶
AvFastPaddedMalloc Same behaviour av_fast_malloc but the buffer has additional FF_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.
func AvFastPaddedMallocz ¶
AvFastPaddedMallocz Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call.
func AvGetBitsPerSample ¶
AvGetBitsPerSample Return codec bits per sample.
func AvGetExactBitsPerSample ¶
AvGetExactBitsPerSample Return codec bits per sample.
func AvPacketPackDictionary ¶
func AvPacketPackDictionary(dict *AvDictionary, size *int) *uint8
AvPacketPackDictionary Pack a dictionary for use in side_data.
func AvPacketUnpackDictionary ¶
func AvPacketUnpackDictionary(data *uint8, size int, dict **AvDictionary) int
AvPacketUnpackDictionary Unpack a dictionary from side_data.
func AvXiphlacing ¶
AvXiphlacing Encode extradata length to a buffer.
func AvcodecConfiguration ¶
func AvcodecConfiguration() string
AvcodecConfiguration Return the libavcodec build-time configuration.
func AvcodecEnumToChromaPos ¶
func AvcodecEnumToChromaPos(xpos, ypos *int, pos AvChromaLocation) int
AvcodecEnumToChromaPos Converts AvChromaLocation to swscale x/y chroma position.
func AvcodecFillAudioFrame ¶
func AvcodecFillAudioFrame(frame *AvFrame, nbChannels int, sampleFmt AvSampleFormat, buf *uint8, bufSize, align int) int
AvcodecFillAudioFrame Fill Frame audio data and linesize pointers.
func AvcodecGetName ¶
AvcodecGetName Get the name of a codec.
func AvcodecString ¶
func AvcodecString(buf string, bufSize int, enc *AvCodecContext, encode int)
AvcodecString Put a string representing the codec tag codec_tag in buf.
func AvcodecVersion ¶
func AvcodecVersion() uint
AvcodecVersion Return the LIBAvCODEC_VERSION_INT constant.
func AvsubtitleFree ¶
func AvsubtitleFree(sub *AvSubtitle)
AvsubtitleFree Free all allocated data in the given subtitle struct.
Types ¶
type AvAudioServiceType ¶
type AvAudioServiceType C.enum_AVAudioServiceType
type AvBufferRef ¶
type AvBufferRef C.struct_AVBufferRef
type AvChromaLocation ¶
type AvChromaLocation C.enum_AVChromaLocation
func AvcodecChromaPosToEnum ¶
func AvcodecChromaPosToEnum(xpos, ypos int) AvChromaLocation
AvcodecChromaPosToEnum Converts swscale x/y chroma position to AvChromaLocation.
type AvClass ¶ added in v1.1.2
type AvClass C.struct_AVClass
func AvcodecGetFrameClass ¶
func AvcodecGetFrameClass() *AvClass
AvcodecGetFrameClass Get the Class for Frame.
func AvcodecGetSubtitleRectClass ¶
func AvcodecGetSubtitleRectClass() *AvClass
AvcodecGetSubtitleRectClass Get the Class for AvSubtitleRect.
type AvCodec ¶ added in v1.1.2
type AvCodec C.struct_AVCodec
func AvCodecIterate ¶
AvCodecIterate Iterate over all registered codecs.
func AvcodecFindDecoder ¶
AvcodecFindDecoder Find a registered decoder with a matching codec ID.
func AvcodecFindDecoderByName ¶
AvcodecFindDecoderByName Find a registered decoder with the specified name.
func AvcodecFindEncoder ¶
AvcodecFindEncoder Find a registered encoder with a matching codec ID.
func AvcodecFindEncoderByName ¶
AvcodecFindEncoderByName Find a registered encoder with the specified name.
func (*AvCodec) AvCodecIsDecoder ¶ added in v1.1.2
AvCodecIsDecoder Return a non-zero number if codec is a decoder, zero otherwise
func (*AvCodec) AvCodecIsEncoder ¶ added in v1.1.2
AvCodecIsEncoder Return a non-zero number if codec is an encoder, zero otherwise
func (*AvCodec) AvGetProfileName ¶ added in v1.1.2
AvGetProfileName Return a name for the specified profile, if available.
func (*AvCodec) AvcodecAllocContext3 ¶ added in v1.1.2
func (codec *AvCodec) AvcodecAllocContext3() *AvCodecContext
AvcodecAllocContext3 Allocate an Context and set its fields to default values.
func (*AvCodec) Capabilities ¶ added in v1.1.2
Capabilities Return capabilities
func (*AvCodec) PixFmts ¶ added in v1.1.2
func (codec *AvCodec) PixFmts() []AvPixelFormat
PixFmts Return pix_fmts
func (*AvCodec) SampleFmts ¶ added in v1.1.2
func (codec *AvCodec) SampleFmts() []AvSampleFormat
SampleFmts Return sample_fmts
type AvCodecContext ¶ added in v1.1.2
type AvCodecContext C.struct_AVCodecContext
func (*AvCodecContext) ActiveThreadType ¶ added in v1.1.2
func (cctx *AvCodecContext) ActiveThreadType() int
ActiveThreadType Return active_thread_type
func (*AvCodecContext) AudioServiceType ¶ added in v1.1.2
func (cctx *AvCodecContext) AudioServiceType() AvAudioServiceType
AudioServiceType Return audio_service_type
func (*AvCodecContext) AvGetAudioFrameDuration ¶ added in v1.1.2
func (cctx *AvCodecContext) AvGetAudioFrameDuration(frameBytes int) int
AvGetAudioFrameDuration Return audio frame duration.
func (*AvCodecContext) AvParserChange ¶ added in v1.1.2
func (cctx *AvCodecContext) AvParserChange(cpctx *AvCodecParserContext, poutbuf **uint8, poutbufSize *int, buf *uint8, bufSize, keyFrame int) int
AvParserChange Return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
func (*AvCodecContext) AvParserParse2 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvParserParse2(cpctx *AvCodecParserContext, poutbuf **uint8, poutbufSize *int, buf *uint8, bufSize int, pts, dts, pos int64) int
AvParserParse2 Parse a packet.
func (*AvCodecContext) AvcodecAlignDimensions ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecAlignDimensions(width, height *int)
AvcodecAlignDimensions Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding.
func (*AvCodecContext) AvcodecAlignDimensions2 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecAlignDimensions2(width, height *int, linesizeAlign int)
AvcodecAlignDimensions2 Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i].
func (*AvCodecContext) AvcodecClose ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecClose() int
AvcodecClose Close a given Context and free all the data associated with it (but not the Context itself).
func (*AvCodecContext) AvcodecDecodeSubtitle2 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecDecodeSubtitle2(sub *AvSubtitle, gotSubPtr *int, pkt *AvPacket) int
AvcodecDecodeSubtitle2 Decode a subtitle message.
func (*AvCodecContext) AvcodecDefaultGetBuffer2 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecDefaultGetBuffer2(frame *AvFrame, flags int) int
AvcodecDefaultGetBuffer2 The default callback for Context.get_buffer2().
func (*AvCodecContext) AvcodecDefaultGetFormat ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecDefaultGetFormat(pixFmt *AvPixelFormat) AvPixelFormat
AvcodecDefaultGetFormat ...
func (*AvCodecContext) AvcodecEncodeSubtitle ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecEncodeSubtitle(buf *uint8, bufSize int, sub *AvSubtitle) int
AvcodecEncodeSubtitle ...
func (*AvCodecContext) AvcodecFlushBuffers ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecFlushBuffers()
AvcodecFlushBuffers Reset the internal decoder state / flush internal buffers.
func (*AvCodecContext) AvcodecFreeContext ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecFreeContext()
AvcodecFreeContext Free the codec context and everything associated with it and write NULL to the provided pointer.
func (*AvCodecContext) AvcodecGetContextDefaults3 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecGetContextDefaults3(codec *AvCodec) int
AvcodecGetContextDefaults3 Set the fields of the given Context to default values corresponding to the given codec (defaults may be codec-dependent).
func (*AvCodecContext) AvcodecIsOpen ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecIsOpen() int
AvcodecIsOpen Return a positive value if s is open (i.e. avcodec_open2() was called on it with no corresponding avcodec_close()), 0 otherwise.
func (*AvCodecContext) AvcodecOpen2 ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecOpen2(codec *AvCodec, options **AvDictionary) int
AvcodecOpen2 Initialize the Context to use the given Codec
func (*AvCodecContext) AvcodecParametersFromContext ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecParametersFromContext(par *AvCodecParameters) int
AvcodecParametersFromContext Fill the parameters struct based on the values from the supplied codec context.
func (*AvCodecContext) AvcodecParametersToContext ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecParametersToContext(par *AvCodecParameters) int
AvcodecParametersToContext Fill the codec context based on the values from the supplied codec parameters.
func (*AvCodecContext) AvcodecReceiveFrame ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecReceiveFrame(frame *AvFrame) int
AvcodecReceiveFrame Return decoded output data from a decoder.
func (*AvCodecContext) AvcodecReceivePacket ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecReceivePacket(pkt *AvPacket) int
AvcodecReceivePacket Return decoded output data from a decoder.
func (*AvCodecContext) AvcodecSendFrame ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecSendFrame(frame *AvFrame) int
AvcodecSendFrame Supply a raw video or audio frame to the encoder.
func (*AvCodecContext) AvcodecSendPacket ¶ added in v1.1.2
func (cctx *AvCodecContext) AvcodecSendPacket(pkt *AvPacket) int
AvcodecSendPacket Supply raw packet data as input to a decoder.
func (*AvCodecContext) BFrameStrategy ¶ added in v1.1.2
func (cctx *AvCodecContext) BFrameStrategy() int
BFrameStrategy Return b_frame_strategy
func (*AvCodecContext) BQuantFactor ¶ added in v1.1.2
func (cctx *AvCodecContext) BQuantFactor() float64
BQuantFactor Return b_quant_factor
func (*AvCodecContext) BQuantOffset ¶ added in v1.1.2
func (cctx *AvCodecContext) BQuantOffset() float64
BQuantOffset Return b_quant_offset
func (*AvCodecContext) BSensitivity ¶ added in v1.1.2
func (cctx *AvCodecContext) BSensitivity() int
BSensitivity Return b_sensitivity
func (*AvCodecContext) BidirRefine ¶ added in v1.1.2
func (cctx *AvCodecContext) BidirRefine() int
BidirRefine Return bidir_refine
func (*AvCodecContext) BitRate ¶ added in v1.1.2
func (cctx *AvCodecContext) BitRate() int
BitRate Return bit_rate
func (*AvCodecContext) BitRateTolerance ¶ added in v1.1.2
func (cctx *AvCodecContext) BitRateTolerance() int
BitRateTolerance Return bit_rate_tolerance
func (*AvCodecContext) BitsPerCodedSample ¶ added in v1.1.2
func (cctx *AvCodecContext) BitsPerCodedSample() int
BitsPerCodedSample Return bits_per_coded_sample
func (*AvCodecContext) BitsPerRawSample ¶ added in v1.1.2
func (cctx *AvCodecContext) BitsPerRawSample() int
BitsPerRawSample Return bits_per_raw_sample
func (*AvCodecContext) BlockAlign ¶ added in v1.1.2
func (cctx *AvCodecContext) BlockAlign() int
BlockAlign Return block_align
func (*AvCodecContext) BrdScale ¶ added in v1.1.2
func (cctx *AvCodecContext) BrdScale() int
BrdScale Return brd_scale
func (*AvCodecContext) ChannelLayout ¶ added in v1.1.2
func (cctx *AvCodecContext) ChannelLayout() uint64
ChannelLayout Return channel_layout
func (*AvCodecContext) Channels ¶ added in v1.1.2
func (cctx *AvCodecContext) Channels() int
Channels Return channels
func (*AvCodecContext) ChromaSampleLocation ¶ added in v1.1.2
func (cctx *AvCodecContext) ChromaSampleLocation() AvChromaLocation
ChromaSampleLocation Return chroma_sample_location
func (*AvCodecContext) Chromaoffset ¶ added in v1.1.2
func (cctx *AvCodecContext) Chromaoffset() int
Chromaoffset Return chromaoffset
func (*AvCodecContext) Codec ¶ added in v1.1.2
func (cctx *AvCodecContext) Codec() *AvCodec
Codec Return codec
func (*AvCodecContext) CodecDescriptor ¶ added in v1.1.2
func (cctx *AvCodecContext) CodecDescriptor() *AvCodecDescriptor
CodecDescriptor Return codec_descriptor
func (*AvCodecContext) CodecID ¶ added in v1.1.2
func (cctx *AvCodecContext) CodecID() AvCodecID
CodecID Return codec_id
func (*AvCodecContext) CodecType ¶ added in v1.1.2
func (cctx *AvCodecContext) CodecType() AvMediaType
CodecType Return codec_type
func (*AvCodecContext) CodedHeight ¶ added in v1.1.2
func (cctx *AvCodecContext) CodedHeight() int
CodedHeight Return coded_height
func (*AvCodecContext) CodedWidth ¶ added in v1.1.2
func (cctx *AvCodecContext) CodedWidth() int
CodedWidth Return coded_width
func (*AvCodecContext) CoderType ¶ added in v1.1.2
func (cctx *AvCodecContext) CoderType() int
CoderType Return coder_type
func (*AvCodecContext) ColorPrimaries ¶ added in v1.1.2
func (cctx *AvCodecContext) ColorPrimaries() AvColorPrimaries
ColorPrimaries Return color_primaries
func (*AvCodecContext) ColorRange ¶ added in v1.1.2
func (cctx *AvCodecContext) ColorRange() AvColorRange
ColorRange Return color_range
func (*AvCodecContext) ColorTrc ¶ added in v1.1.2
func (cctx *AvCodecContext) ColorTrc() AvColorTransferCharacteristic
ColorTrc Return color_trc
func (*AvCodecContext) Colorspace ¶ added in v1.1.2
func (cctx *AvCodecContext) Colorspace() AvColorSpace
Colorspace Return colorspace
func (*AvCodecContext) CompressionLevel ¶ added in v1.1.2
func (cctx *AvCodecContext) CompressionLevel() int
CompressionLevel Return compression_level
func (*AvCodecContext) Cutoff ¶ added in v1.1.2
func (cctx *AvCodecContext) Cutoff() int
Cutoff Return cutoff
func (*AvCodecContext) DarkMasking ¶ added in v1.1.2
func (cctx *AvCodecContext) DarkMasking() float64
DarkMasking Return dark_masking
func (*AvCodecContext) DctAlgo ¶ added in v1.1.2
func (cctx *AvCodecContext) DctAlgo() int
DctAlgo Return dct_algo
func (*AvCodecContext) Debug ¶ added in v1.1.2
func (cctx *AvCodecContext) Debug() int
Debug Return debug
func (*AvCodecContext) DebugMv ¶ added in v1.1.2
func (cctx *AvCodecContext) DebugMv() int
DebugMv Return debug_mv
func (*AvCodecContext) Delay ¶ added in v1.1.2
func (cctx *AvCodecContext) Delay() int
Delay Return delay
func (*AvCodecContext) DiaSize ¶ added in v1.1.2
func (cctx *AvCodecContext) DiaSize() int
DiaSize Return dia_size
func (*AvCodecContext) ErrRecognition ¶ added in v1.1.2
func (cctx *AvCodecContext) ErrRecognition() int
ErrRecognition Return err_recognition
func (*AvCodecContext) ErrorConcealment ¶ added in v1.1.2
func (cctx *AvCodecContext) ErrorConcealment() int
ErrorConcealment Return error_concealment
func (*AvCodecContext) ExtraData ¶ added in v1.1.2
func (cctx *AvCodecContext) ExtraData() []byte
ExtraData Return extradata
func (*AvCodecContext) ExtradataSize ¶ added in v1.1.2
func (cctx *AvCodecContext) ExtradataSize() int
ExtradataSize Return extradata_size
func (*AvCodecContext) FieldOrder ¶ added in v1.1.2
func (cctx *AvCodecContext) FieldOrder() AvFieldOrder
FieldOrder Return field_order
func (*AvCodecContext) Flags ¶ added in v1.1.2
func (cctx *AvCodecContext) Flags() int
Flags Return flags
func (*AvCodecContext) Flags2 ¶ added in v1.1.2
func (cctx *AvCodecContext) Flags2() int
Flags2 Return flags2
func (*AvCodecContext) FrameBits ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameBits() int
FrameBits Return frame_bits
func (*AvCodecContext) FrameNumber ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameNumber() int
FrameNumber Return frame_number
func (*AvCodecContext) FrameSize ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameSize() int
FrameSize Return frame_size
func (*AvCodecContext) FrameSkipCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameSkipCmp() int
FrameSkipCmp Return frame_skip_cmp
func (*AvCodecContext) FrameSkipExp ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameSkipExp() int
FrameSkipExp Return frame_skip_exp
func (*AvCodecContext) FrameSkipFactor ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameSkipFactor() int
FrameSkipFactor Return frame_skip_factor
func (*AvCodecContext) FrameSkipThreshold ¶ added in v1.1.2
func (cctx *AvCodecContext) FrameSkipThreshold() int
FrameSkipThreshold Return frame_skip_threshold
func (*AvCodecContext) Framerate ¶ added in v1.1.2
func (cctx *AvCodecContext) Framerate() AvRational
Framerate Return framerate
func (*AvCodecContext) GlobalQuality ¶ added in v1.1.2
func (cctx *AvCodecContext) GlobalQuality() int
GlobalQuality Return global_quality
func (*AvCodecContext) GopSize ¶ added in v1.1.2
func (cctx *AvCodecContext) GopSize() int
GopSize Return gop_size
func (*AvCodecContext) HasBFrames ¶ added in v1.1.2
func (cctx *AvCodecContext) HasBFrames() int
HasBFrames Return has_b_frames
func (*AvCodecContext) HeaderBits ¶ added in v1.1.2
func (cctx *AvCodecContext) HeaderBits() int
HeaderBits Return header_bits
func (*AvCodecContext) Height ¶ added in v1.1.2
func (cctx *AvCodecContext) Height() int
Height Return height
func (*AvCodecContext) ICount ¶ added in v1.1.2
func (cctx *AvCodecContext) ICount() int
ICount Return i_count
func (*AvCodecContext) IQuantFactor ¶ added in v1.1.2
func (cctx *AvCodecContext) IQuantFactor() float64
IQuantFactor Return i_quant_factor
func (*AvCodecContext) IQuantOffset ¶ added in v1.1.2
func (cctx *AvCodecContext) IQuantOffset() float64
IQuantOffset Return i_quant_offset
func (*AvCodecContext) ITexBits ¶ added in v1.1.2
func (cctx *AvCodecContext) ITexBits() int
ITexBits Return i_tex_bits
func (*AvCodecContext) IdctAlgo ¶ added in v1.1.2
func (cctx *AvCodecContext) IdctAlgo() int
IdctAlgo Return idct_algo
func (*AvCodecContext) IldctCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) IldctCmp() int
IldctCmp Return ildct_cmp
func (*AvCodecContext) IntraDcPrecision ¶ added in v1.1.2
func (cctx *AvCodecContext) IntraDcPrecision() int
IntraDcPrecision Return intra_dc_precision
func (*AvCodecContext) KeyintMin ¶ added in v1.1.2
func (cctx *AvCodecContext) KeyintMin() int
KeyintMin Return keyint_min
func (*AvCodecContext) LastPredictorCount ¶ added in v1.1.2
func (cctx *AvCodecContext) LastPredictorCount() int
LastPredictorCount Return last_predictor_count
func (*AvCodecContext) Level ¶ added in v1.1.2
func (cctx *AvCodecContext) Level() int
Level Return level
func (*AvCodecContext) LogLevelOffset ¶ added in v1.1.2
func (cctx *AvCodecContext) LogLevelOffset() int
LogLevelOffset Return log_level_offset
func (*AvCodecContext) Lowres ¶ added in v1.1.2
func (cctx *AvCodecContext) Lowres() int
Lowres Return lowres
func (*AvCodecContext) LumiMasking ¶ added in v1.1.2
func (cctx *AvCodecContext) LumiMasking() float64
LumiMasking Return lumi_masking
func (*AvCodecContext) MaxBFrames ¶ added in v1.1.2
func (cctx *AvCodecContext) MaxBFrames() int
MaxBFrames Return max_b_frames
func (*AvCodecContext) MaxPredictionOrder ¶ added in v1.1.2
func (cctx *AvCodecContext) MaxPredictionOrder() int
MaxPredictionOrder Return max_prediction_order
func (*AvCodecContext) MaxQdiff ¶ added in v1.1.2
func (cctx *AvCodecContext) MaxQdiff() int
MaxQdiff Return max_qdiff
func (*AvCodecContext) MbCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) MbCmp() int
MbCmp Return mb_cmp
func (*AvCodecContext) MbDecision ¶ added in v1.1.2
func (cctx *AvCodecContext) MbDecision() int
MbDecision Return mb_decision
func (*AvCodecContext) MbLmax ¶ added in v1.1.2
func (cctx *AvCodecContext) MbLmax() int
MbLmax Return mb_lmax
func (*AvCodecContext) MbLmin ¶ added in v1.1.2
func (cctx *AvCodecContext) MbLmin() int
MbLmin Return mb_lmin
func (*AvCodecContext) MeCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) MeCmp() int
MeCmp Return me_cmp
func (*AvCodecContext) MePenaltyCompensation ¶ added in v1.1.2
func (cctx *AvCodecContext) MePenaltyCompensation() int
MePenaltyCompensation Return me_penalty_compensation
func (*AvCodecContext) MePreCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) MePreCmp() int
MePreCmp Return me_pre_cmp
func (*AvCodecContext) MeRange ¶ added in v1.1.2
func (cctx *AvCodecContext) MeRange() int
MeRange Return me_range
func (*AvCodecContext) MeSubCmp ¶ added in v1.1.2
func (cctx *AvCodecContext) MeSubCmp() int
MeSubCmp Return me_sub_cmp
func (*AvCodecContext) MeSubpelQuality ¶ added in v1.1.2
func (cctx *AvCodecContext) MeSubpelQuality() int
MeSubpelQuality Return me_subpel_quality
func (*AvCodecContext) MinPredictionOrder ¶ added in v1.1.2
func (cctx *AvCodecContext) MinPredictionOrder() int
MinPredictionOrder Return min_prediction_order
func (*AvCodecContext) MiscBits ¶ added in v1.1.2
func (cctx *AvCodecContext) MiscBits() int
MiscBits Return misc_bits
func (*AvCodecContext) MpegQuant ¶ added in v1.1.2
func (cctx *AvCodecContext) MpegQuant() int
MpegQuant Return mpeg_quant
func (*AvCodecContext) Mv0Threshold ¶ added in v1.1.2
func (cctx *AvCodecContext) Mv0Threshold() int
Mv0Threshold Return mv0_threshold
func (*AvCodecContext) MvBits ¶ added in v1.1.2
func (cctx *AvCodecContext) MvBits() int
MvBits Return mv_bits
func (*AvCodecContext) NoiseReduction ¶ added in v1.1.2
func (cctx *AvCodecContext) NoiseReduction() int
NoiseReduction Return noise_reduction
func (*AvCodecContext) NsseWeight ¶ added in v1.1.2
func (cctx *AvCodecContext) NsseWeight() int
NsseWeight Return nsse_weight
func (*AvCodecContext) PCount ¶ added in v1.1.2
func (cctx *AvCodecContext) PCount() int
PCount Return p_count
func (*AvCodecContext) PMasking ¶ added in v1.1.2
func (cctx *AvCodecContext) PMasking() float64
PMasking Return p_masking
func (*AvCodecContext) PTexBits ¶ added in v1.1.2
func (cctx *AvCodecContext) PTexBits() int
PTexBits Return p_tex_bits
func (*AvCodecContext) PixFmt ¶ added in v1.1.2
func (cctx *AvCodecContext) PixFmt() AvPixelFormat
PixFmt Return pix_fmt
func (*AvCodecContext) PreDiaSize ¶ added in v1.1.2
func (cctx *AvCodecContext) PreDiaSize() int
PreDiaSize Return pre_dia_size
func (*AvCodecContext) PreMe ¶ added in v1.1.2
func (cctx *AvCodecContext) PreMe() int
PreMe Return pre_me
func (*AvCodecContext) PredictionMethod ¶ added in v1.1.2
func (cctx *AvCodecContext) PredictionMethod() int
PredictionMethod Return prediction_method
func (*AvCodecContext) Profile ¶ added in v1.1.2
func (cctx *AvCodecContext) Profile() int
Profile Return profile
func (*AvCodecContext) Qblur ¶ added in v1.1.2
func (cctx *AvCodecContext) Qblur() float64
Qblur Return qblur
func (*AvCodecContext) Qcompress ¶ added in v1.1.2
func (cctx *AvCodecContext) Qcompress() float64
Qcompress Return qcompress
func (*AvCodecContext) Qmax ¶ added in v1.1.2
func (cctx *AvCodecContext) Qmax() int
Qmax Return qmax
func (*AvCodecContext) Qmin ¶ added in v1.1.2
func (cctx *AvCodecContext) Qmin() int
Qmin Return qmin
func (*AvCodecContext) RcBufferSize ¶ added in v1.1.2
func (cctx *AvCodecContext) RcBufferSize() int
RcBufferSize Return rc_buffer_size
func (*AvCodecContext) RcInitialBufferOccupancy ¶ added in v1.1.2
func (cctx *AvCodecContext) RcInitialBufferOccupancy() int
RcInitialBufferOccupancy Return rc_initial_buffer_occupancy
func (*AvCodecContext) RcMaxAvailableVbvUse ¶ added in v1.1.2
func (cctx *AvCodecContext) RcMaxAvailableVbvUse() float64
RcMaxAvailableVbvUse Return rc_max_available_vbv_use
func (*AvCodecContext) RcMaxRate ¶ added in v1.1.2
func (cctx *AvCodecContext) RcMaxRate() int
RcMaxRate Return rc_max_rate
func (*AvCodecContext) RcMinRate ¶ added in v1.1.2
func (cctx *AvCodecContext) RcMinRate() int
RcMinRate Return rc_min_rate
func (*AvCodecContext) RcMinVbvOverflowUse ¶ added in v1.1.2
func (cctx *AvCodecContext) RcMinVbvOverflowUse() float64
RcMinVbvOverflowUse Return rc_min_vbv_overflow_use
func (*AvCodecContext) RcOverrideCount ¶ added in v1.1.2
func (cctx *AvCodecContext) RcOverrideCount() int
RcOverrideCount Return rc_override_count
func (*AvCodecContext) RefcountedFrames ¶ added in v1.1.2
func (cctx *AvCodecContext) RefcountedFrames() int
RefcountedFrames Return refcounted_frames
func (*AvCodecContext) Refs ¶ added in v1.1.2
func (cctx *AvCodecContext) Refs() int
Refs Return refs
func (*AvCodecContext) RequestChannelLayout ¶ added in v1.1.2
func (cctx *AvCodecContext) RequestChannelLayout() uint64
RequestChannelLayout Return request_channel_layout
func (*AvCodecContext) RequestSampleFmt ¶ added in v1.1.2
func (cctx *AvCodecContext) RequestSampleFmt() AvSampleFormat
RequestSampleFmt Return request_sample_fmt
func (*AvCodecContext) RtpPayloadSize ¶ added in v1.1.2
func (cctx *AvCodecContext) RtpPayloadSize() int
RtpPayloadSize Return rtp_payload_size
func (*AvCodecContext) SampleAspectRatio ¶ added in v1.1.2
func (cctx *AvCodecContext) SampleAspectRatio() AvRational
SampleAspectRatio Return sample_aspect_ratio
func (*AvCodecContext) SampleFmt ¶ added in v1.1.2
func (cctx *AvCodecContext) SampleFmt() AvSampleFormat
SampleFmt Return sample_fmt
func (*AvCodecContext) SampleRate ¶ added in v1.1.2
func (cctx *AvCodecContext) SampleRate() int
SampleRate Return sample_rate
func (*AvCodecContext) ScenechangeThreshold ¶ added in v1.1.2
func (cctx *AvCodecContext) ScenechangeThreshold() int
ScenechangeThreshold Return scenechange_threshold
func (*AvCodecContext) SeekPreroll ¶ added in v1.1.2
func (cctx *AvCodecContext) SeekPreroll() int
SeekPreroll Return seek_preroll
func (*AvCodecContext) SetBitRate ¶ added in v1.1.2
func (cctx *AvCodecContext) SetBitRate(br int64)
SetBitRate Set bit_rate
func (*AvCodecContext) SetChannelLayout ¶ added in v1.1.2
func (cctx *AvCodecContext) SetChannelLayout(cl uint64)
SetChannelLayout Set channel_layout
func (*AvCodecContext) SetChannels ¶ added in v1.1.2
func (cctx *AvCodecContext) SetChannels(nc int)
SetChannels Set channels
func (*AvCodecContext) SetCodecID ¶ added in v1.1.2
func (cctx *AvCodecContext) SetCodecID(codecID AvCodecID)
SetCodecID Set codec_id
func (*AvCodecContext) SetCodecType ¶ added in v1.1.2
func (cctx *AvCodecContext) SetCodecType(ctype AvMediaType)
SetCodecType Set codec_type
func (*AvCodecContext) SetEncodeParams ¶ added in v1.1.2
func (cctx *AvCodecContext) SetEncodeParams(width int, height int, pixFmt AvPixelFormat)
SetEncodeParams ...
func (*AvCodecContext) SetEncodeParams2 ¶ added in v1.1.2
func (cctx *AvCodecContext) SetEncodeParams2(width int, height int, pxlFmt AvPixelFormat, hasBframes bool, gopSize int)
SetEncodeParams2 ...
func (*AvCodecContext) SetExtraData ¶ added in v1.1.2
func (cctx *AvCodecContext) SetExtraData(data []byte)
SetExtraData Return data
func (*AvCodecContext) SetFlags ¶ added in v1.1.2
func (cctx *AvCodecContext) SetFlags(flags int)
SetFlags Set flags
func (*AvCodecContext) SetFramerate ¶ added in v1.1.2
func (cctx *AvCodecContext) SetFramerate(framerate AvRational)
SetFramerate Set framerate
func (*AvCodecContext) SetHeight ¶ added in v1.1.2
func (cctx *AvCodecContext) SetHeight(h int)
SetHeight Set height
func (*AvCodecContext) SetMaxQDiff ¶ added in v1.1.2
func (cctx *AvCodecContext) SetMaxQDiff(v int)
SetMaxQDiff Set max_qdiff
func (*AvCodecContext) SetMeRange ¶ added in v1.1.2
func (cctx *AvCodecContext) SetMeRange(r int)
SetMeRange Set me_range
func (*AvCodecContext) SetPixelFormat ¶ added in v1.1.2
func (cctx *AvCodecContext) SetPixelFormat(fmt AvPixelFormat)
SetPixelFormat Set pix_fmt
func (*AvCodecContext) SetQCompress ¶ added in v1.1.2
func (cctx *AvCodecContext) SetQCompress(v float32)
SetQCompress Set qcompress
func (*AvCodecContext) SetQMax ¶ added in v1.1.2
func (cctx *AvCodecContext) SetQMax(v int)
SetQMax Set qmax
func (*AvCodecContext) SetQMin ¶ added in v1.1.2
func (cctx *AvCodecContext) SetQMin(v int)
SetQMin Set qmin
func (*AvCodecContext) SetSampleAspectRatio ¶ added in v1.1.2
func (cctx *AvCodecContext) SetSampleAspectRatio(sampleAspectRatio AvRational)
SetSampleAspectRatio Set sample_aspect_ratio
func (*AvCodecContext) SetSampleFmt ¶ added in v1.1.2
func (cctx *AvCodecContext) SetSampleFmt(sf AvSampleFormat)
SetSampleFmt Set sample_fmt
func (*AvCodecContext) SetSampleRate ¶ added in v1.1.2
func (cctx *AvCodecContext) SetSampleRate(sampleRate int)
SetSampleRate Set sample_rate
func (*AvCodecContext) SetTimebase ¶ added in v1.1.2
func (cctx *AvCodecContext) SetTimebase(timeBase AvRational)
SetTimebase Set time_base
func (*AvCodecContext) SetWidth ¶ added in v1.1.2
func (cctx *AvCodecContext) SetWidth(w int)
SetWidth Set width
func (*AvCodecContext) SideDataOnlyPackets ¶ added in v1.1.2
func (cctx *AvCodecContext) SideDataOnlyPackets() int
SideDataOnlyPackets Return side_data_only_packets
func (*AvCodecContext) SkipAlpha ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipAlpha() int
SkipAlpha Return skip_alpha
func (*AvCodecContext) SkipBottom ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipBottom() int
SkipBottom Return skip_bottom
func (*AvCodecContext) SkipCount ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipCount() int
SkipCount Return skip_count
func (*AvCodecContext) SkipFrame ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipFrame() AvDiscard
SkipFrame Return skip_frame
func (*AvCodecContext) SkipIdct ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipIdct() AvDiscard
SkipIdct Return skip_idct
func (*AvCodecContext) SkipLoopFilter ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipLoopFilter() AvDiscard
SkipLoopFilter Return skip_loop_filter
func (*AvCodecContext) SkipTop ¶ added in v1.1.2
func (cctx *AvCodecContext) SkipTop() int
SkipTop Return skip_top
func (*AvCodecContext) SliceCount ¶ added in v1.1.2
func (cctx *AvCodecContext) SliceCount() int
SliceCount Return slice_count
func (*AvCodecContext) SliceFlags ¶ added in v1.1.2
func (cctx *AvCodecContext) SliceFlags() int
SliceFlags Return slice_flags
func (*AvCodecContext) Slices ¶ added in v1.1.2
func (cctx *AvCodecContext) Slices() int
Slices Return slices
func (*AvCodecContext) SpatialCplxMasking ¶ added in v1.1.2
func (cctx *AvCodecContext) SpatialCplxMasking() float64
SpatialCplxMasking Return spatial_cplx_masking
func (*AvCodecContext) StrictStdCompliance ¶ added in v1.1.2
func (cctx *AvCodecContext) StrictStdCompliance() int
StrictStdCompliance Return strict_std_compliance
func (*AvCodecContext) SubCharencMode ¶ added in v1.1.2
func (cctx *AvCodecContext) SubCharencMode() int
SubCharencMode Return sub_charenc_mode
func (*AvCodecContext) SubtitleHeaderSize ¶ added in v1.1.2
func (cctx *AvCodecContext) SubtitleHeaderSize() int
SubtitleHeaderSize Return subtitle_header_size
func (*AvCodecContext) TemporalCplxMasking ¶ added in v1.1.2
func (cctx *AvCodecContext) TemporalCplxMasking() float64
TemporalCplxMasking Return temporal_cplx_masking
func (*AvCodecContext) ThreadCount ¶ added in v1.1.2
func (cctx *AvCodecContext) ThreadCount() int
ThreadCount Return thread_count
func (*AvCodecContext) ThreadSafeCallbacks ¶ added in v1.1.2
func (cctx *AvCodecContext) ThreadSafeCallbacks() int
ThreadSafeCallbacks Return thread_safe_callbacks
func (*AvCodecContext) ThreadType ¶ added in v1.1.2
func (cctx *AvCodecContext) ThreadType() int
ThreadType Return active_thread_type
func (*AvCodecContext) TicksPerFrame ¶ added in v1.1.2
func (cctx *AvCodecContext) TicksPerFrame() int
TicksPerFrame Return ticks_per_frame
func (*AvCodecContext) TimeBase ¶ added in v1.1.2
func (cctx *AvCodecContext) TimeBase() AvRational
TimeBase Return time_base
func (*AvCodecContext) Trellis ¶ added in v1.1.2
func (cctx *AvCodecContext) Trellis() int
Trellis Return trellis
func (*AvCodecContext) Width ¶ added in v1.1.2
func (cctx *AvCodecContext) Width() int
Width Return width
func (*AvCodecContext) WorkaroundBugs ¶ added in v1.1.2
func (cctx *AvCodecContext) WorkaroundBugs() int
WorkaroundBugs Return workaround_bugs
type AvCodecDescriptor ¶ added in v1.1.2
type AvCodecDescriptor C.struct_AVCodecDescriptor
func AvcodecDescriptorGet ¶
func AvcodecDescriptorGet(id AvCodecID) *AvCodecDescriptor
AvcodecDescriptorGet Return descriptor for given codec ID or NULL if no descriptor exists.
func AvcodecDescriptorGetByName ¶
func AvcodecDescriptorGetByName(name string) *AvCodecDescriptor
AvcodecDescriptorGetByName Return codec descriptor with the given name or NULL if no such descriptor exists.
func (*AvCodecDescriptor) AvcodecDescriptorNext ¶ added in v1.1.2
func (desc *AvCodecDescriptor) AvcodecDescriptorNext() *AvCodecDescriptor
AvcodecDescriptorNext Iterate over all codec descriptors known to libavcodec.
type AvCodecID ¶ added in v1.1.2
type AvCodecID C.enum_AVCodecID
func AvGetPcmCodec ¶
func AvGetPcmCodec(fmt AvSampleFormat, be int) AvCodecID
AvGetPcmCodec Return the PCM codec associated with a sample format.
type AvCodecParameters ¶
type AvCodecParameters C.struct_AVCodecParameters
func (*AvCodecParameters) AvcodecParametersCopy ¶ added in v1.1.1
func (cp *AvCodecParameters) AvcodecParametersCopy(src *AvCodecParameters) int
AvcodecParametersCopy Copy the contents of src to dst. Any allocated fields in dst are freed and replaced with newly allocated duplicates of the corresponding fields in src.
func (*AvCodecParameters) ChannelLayout ¶ added in v1.1.2
func (cp *AvCodecParameters) ChannelLayout() uint64
ChannelLayout Return channel_layout
func (*AvCodecParameters) Channels ¶ added in v1.1.2
func (cp *AvCodecParameters) Channels() int
Channels Return channels
func (*AvCodecParameters) CodecID ¶ added in v1.1.2
func (cp *AvCodecParameters) CodecID() AvCodecID
CodecID Return codec_id
func (*AvCodecParameters) CodecType ¶ added in v1.1.2
func (cp *AvCodecParameters) CodecType() AvMediaType
CodecType Return codec_type
func (*AvCodecParameters) Format ¶ added in v1.1.2
func (cp *AvCodecParameters) Format() int
Format Return format
func (*AvCodecParameters) Height ¶ added in v1.1.2
func (cp *AvCodecParameters) Height() int
Height Return height
func (*AvCodecParameters) SampleAspectRatio ¶ added in v1.1.2
func (cp *AvCodecParameters) SampleAspectRatio() AvRational
SampleAspectRatio Return sample_aspect_ratio
func (*AvCodecParameters) SampleRate ¶ added in v1.1.2
func (cp *AvCodecParameters) SampleRate() int
SampleRate Return sample_rate
func (*AvCodecParameters) SetChannelLayout ¶ added in v1.1.2
func (cp *AvCodecParameters) SetChannelLayout(cl uint64)
SetChannelLayout Set channel_layout
func (*AvCodecParameters) SetChannels ¶ added in v1.1.2
func (cp *AvCodecParameters) SetChannels(nc int)
SetChannels Set channels
func (*AvCodecParameters) SetFormat ¶ added in v1.1.2
func (cp *AvCodecParameters) SetFormat(f int)
SetFormat Set format
func (*AvCodecParameters) SetHeight ¶ added in v1.1.2
func (cp *AvCodecParameters) SetHeight(h int)
SetHeight Set height
func (*AvCodecParameters) SetSampleAspectRatio ¶ added in v1.1.2
func (cp *AvCodecParameters) SetSampleAspectRatio(sampleAspectRatio AvRational)
SetSampleAspectRatio Set sample_aspect_ratio
func (*AvCodecParameters) SetSampleRate ¶ added in v1.1.2
func (cp *AvCodecParameters) SetSampleRate(sr int)
SetSampleRate Set sample_rate
func (*AvCodecParameters) SetWidth ¶ added in v1.1.2
func (cp *AvCodecParameters) SetWidth(w int)
SetWidth Set width
func (*AvCodecParameters) Width ¶ added in v1.1.2
func (cp *AvCodecParameters) Width() int
Width Return width
type AvCodecParser ¶ added in v1.1.2
type AvCodecParser C.struct_AVCodecParser
type AvCodecParserContext ¶ added in v1.1.2
type AvCodecParserContext C.struct_AVCodecParserContext
type AvColorPrimaries ¶
type AvColorPrimaries C.enum_AVColorPrimaries
type AvColorRange ¶
type AvColorRange C.enum_AVColorRange
type AvColorSpace ¶
type AvColorSpace C.enum_AVColorSpace
type AvColorTransferCharacteristic ¶
type AvColorTransferCharacteristic C.enum_AVColorTransferCharacteristic
type AvDictionary ¶ added in v1.1.2
type AvDictionary C.struct_AVDictionary
type AvDiscard ¶
type AvDiscard C.enum_AVDiscard
type AvFieldOrder ¶
type AvFieldOrder C.enum_AVFieldOrder
type AvFrame ¶ added in v1.1.2
type AvFrame C.struct_AVFrame
type AvHWAccel ¶
type AvHWAccel C.struct_AVHWAccel
type AvMediaType ¶ added in v1.1.2
type AvMediaType C.enum_AVMediaType
func AvcodecGetType ¶
func AvcodecGetType(id AvCodecID) AvMediaType
AvcodecGetType Get the type of the given codec.
type AvPacket ¶ added in v1.1.2
type AvPacket C.struct_AVPacket
func AvPacketAlloc ¶
func AvPacketAlloc() *AvPacket
AvPacketAlloc Allocate an AvPacket and set its fields to default values. The resulting struct must be freed using av_packet_free().
func (*AvPacket) AvGrowPacket ¶ added in v1.1.2
AvGrowPacket Increase packet size, correctly zeroing padding.
func (*AvPacket) AvInitPacket ¶ added in v1.1.2
func (p *AvPacket) AvInitPacket()
AvInitPacket Initialize optional fields of a packet with default values.
func (*AvPacket) AvNewPacket ¶ added in v1.1.2
AvNewPacket Allocate the payload of a packet and initialize its fields with default values.
func (*AvPacket) AvPacketCopyProps ¶ added in v1.1.2
AvPacketCopyProps Copy only "properties" fields from src to dst.
func (*AvPacket) AvPacketFreeSideData ¶ added in v1.1.2
func (p *AvPacket) AvPacketFreeSideData()
AvPacketFreeSideData Convenience function to free all the side data stored.
func (*AvPacket) AvPacketFromData ¶ added in v1.1.2
AvPacketFromData Initialize a reference-counted packet from av_malloc()ed data.
func (*AvPacket) AvPacketGetSideData ¶ added in v1.1.2
func (p *AvPacket) AvPacketGetSideData(typ AvPacketSideDataType, size *int) *uint8
AvPacketGetSideData Get side information from packet.
func (*AvPacket) AvPacketMoveRef ¶ added in v1.1.2
AvPacketMoveRef Move every field in src to dst and reset src.
func (*AvPacket) AvPacketNewSideData ¶ added in v1.1.2
func (p *AvPacket) AvPacketNewSideData(typ AvPacketSideDataType, size int) *uint8
AvPacketNewSideData Allocate new information of a packet.
func (*AvPacket) AvPacketRef ¶ added in v1.1.2
AvPacketRef Setup a new reference to the data described by a given packet.
func (*AvPacket) AvPacketRescaleTs ¶ added in v1.1.2
func (p *AvPacket) AvPacketRescaleTs(tbSrc, tbDst AvRational)
AvPacketRescaleTs Convert valid timing fields (timestamps / durations) in a packet from one timebase to another.
func (*AvPacket) AvPacketShrinkSideData ¶ added in v1.1.2
func (p *AvPacket) AvPacketShrinkSideData(typ AvPacketSideDataType, size int) int
AvPacketShrinkSideData Shrink the already allocated side data buffer.
func (*AvPacket) AvPacketUnref ¶ added in v1.1.2
func (p *AvPacket) AvPacketUnref()
AvPacketUnref Wipe the packet.
func (*AvPacket) AvShrinkPacket ¶ added in v1.1.2
AvShrinkPacket Reduce packet size, correctly zeroing padding.
func (*AvPacket) ConvergenceDuration ¶ added in v1.1.2
ConvergenceDuration Return convergence_duration
func (*AvPacket) SetDuration ¶ added in v1.1.2
SetDuration Set duration
func (*AvPacket) SetStreamIndex ¶ added in v1.1.2
SetStreamIndex Set idx
func (*AvPacket) SideDataElems ¶ added in v1.1.2
SideDataElems Return side_data_elems
func (*AvPacket) StreamIndex ¶ added in v1.1.2
StreamIndex Return stream_index
type AvPacketSideData ¶
type AvPacketSideData C.struct_AVPacketSideData
type AvPacketSideDataType ¶
type AvPacketSideDataType C.enum_AVPacketSideDataType
type AvPanScan ¶
type AvPanScan C.struct_AVPanScan
type AvPicture ¶ added in v1.1.2
type AvPicture C.struct_AVPicture
type AvPixelFormat ¶ added in v1.1.2
type AvPixelFormat C.enum_AVPixelFormat
func (AvPixelFormat) AvcodecFindBestPixFmtOf2 ¶ added in v1.1.2
func (p AvPixelFormat) AvcodecFindBestPixFmtOf2(dstPixFmt2, srcPixFmt AvPixelFormat, hasAlpha int, lossPtr *int) AvPixelFormat
AvcodecFindBestPixFmtOf2 see av_find_best_pix_fmt_of_2()
func (*AvPixelFormat) AvcodecFindBestPixFmtOfList ¶ added in v1.1.2
func (p *AvPixelFormat) AvcodecFindBestPixFmtOfList(srcPixFmt AvPixelFormat, hasAlpha int, lossPtr *int) AvPixelFormat
AvcodecFindBestPixFmtOfList Find the best pixel format to convert to given a certain source pixel format.
func (AvPixelFormat) AvcodecGetPixFmtLoss ¶ added in v1.1.2
func (p AvPixelFormat) AvcodecGetPixFmtLoss(srcPixFmt AvPixelFormat, hasAlpha int) int
AvcodecGetPixFmtLoss see av_get_pix_fmt_loss()
func (AvPixelFormat) AvcodecPixFmtToCodecTag ¶ added in v1.1.2
func (p AvPixelFormat) AvcodecPixFmtToCodecTag() uint
AvcodecPixFmtToCodecTag Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
type AvProfile ¶
type AvProfile C.struct_AVProfile
type AvRational ¶ added in v1.1.2
type AvRational C.struct_AVRational
type AvRounding ¶ added in v1.1.2
type AvRounding C.enum_AVRounding
type AvSampleFormat ¶
type AvSampleFormat C.enum_AVSampleFormat
type AvSubtitle ¶
type AvSubtitle C.struct_AVSubtitle
type AvSubtitleRect ¶
type AvSubtitleRect C.struct_AVSubtitleRect
type RcOverride ¶
type RcOverride C.struct_RcOverride