Documentation
¶
Overview ¶
The low-level ffmpeg bindings for ffmpeg version 6.1. It's more likely you would use the higher-level package github.com/mutablelogic/go-media/pkg/ffmpeg which provides a more idiomatic interface to ffmpeg.
Index ¶
- Constants
- Variables
- func AVCodec_configuration() string
- func AVCodec_free_context(ctx *AVCodecContext)
- func AVCodec_grow_packet(pkt *AVPacket, size int) error
- func AVCodec_is_decoder(codec *AVCodec) bool
- func AVCodec_is_encoder(codec *AVCodec) bool
- func AVCodec_license() string
- func AVCodec_new_packet(pkt *AVPacket, size int) error
- func AVCodec_open(ctx *AVCodecContext, codec *AVCodec, options *AVDictionary) error
- func AVCodec_packet_free(pkt *AVPacket)
- func AVCodec_packet_rescale_ts(pkt *AVPacket, tb_src, tb_dst AVRational)
- func AVCodec_packet_unref(pkt *AVPacket)
- func AVCodec_parameters_copy(ctx *AVCodecParameters, codecpar *AVCodecParameters) error
- func AVCodec_parameters_from_context(codecpar *AVCodecParameters, ctx *AVCodecContext) error
- func AVCodec_parameters_to_context(ctx *AVCodecContext, codecpar *AVCodecParameters) error
- func AVCodec_parser_close(parser *AVCodecParserContext)
- func AVCodec_parser_parse(parser *AVCodecParserContext, ctx *AVCodecContext, packet *AVPacket, ...) int
- func AVCodec_receive_frame(ctx *AVCodecContext, frame *AVFrame) error
- func AVCodec_receive_packet(ctx *AVCodecContext, pkt *AVPacket) error
- func AVCodec_send_frame(ctx *AVCodecContext, frame *AVFrame) error
- func AVCodec_send_packet(ctx *AVCodecContext, pkt *AVPacket) error
- func AVCodec_shrink_packet(pkt *AVPacket, size int)
- func AVCodec_version() uint
- func AVDevice_configuration() string
- func AVDevice_free_list_devices(device_list *AVDeviceInfoList)
- func AVDevice_license() string
- func AVDevice_version() uint
- func AVFormat_alloc_output_context2(ctx **AVFormatContext, format *AVOutputFormat, filename string) error
- func AVFormat_avio_close(ctx *AVIOContextEx) error
- func AVFormat_avio_context_free(ctx *AVIOContextEx)
- func AVFormat_avio_flush(ctx *AVIOContextEx)
- func AVFormat_avio_put_str(ctx *AVIOContextEx, str string) int
- func AVFormat_avio_read(ctx *AVIOContextEx, buf []byte) int
- func AVFormat_avio_seek(ctx *AVIOContextEx, offset int64, whence int) int64
- func AVFormat_avio_w8(ctx *AVIOContextEx, b int)
- func AVFormat_avio_wl64(ctx *AVIOContextEx, b uint64)
- func AVFormat_avio_write(ctx *AVIOContextEx, buf []byte)
- func AVFormat_close_input(ctx *AVFormatContext)
- func AVFormat_close_writer(ctx *AVFormatContext) error
- func AVFormat_configuration() string
- func AVFormat_dump_format(ctx *AVFormatContext, stream_index int, filename string)
- func AVFormat_find_stream_info(ctx *AVFormatContext, options *AVDictionary) error
- func AVFormat_flush(ctx *AVFormatContext) error
- func AVFormat_free_context(ctx *AVFormatContext)
- func AVFormat_init_output(ctx *AVFormatContext, options *AVDictionary) error
- func AVFormat_interleaved_write_frame(ctx *AVFormatContext, pkt *AVPacket) error
- func AVFormat_license() string
- func AVFormat_read_frame(ctx *AVFormatContext, packet *AVPacket) error
- func AVFormat_read_pause(ctx *AVFormatContext) error
- func AVFormat_read_play(ctx *AVFormatContext) error
- func AVFormat_seek_frame(ctx *AVFormatContext, stream_index int, timestamp int64, flags int) error
- func AVFormat_version() uint
- func AVFormat_write_frame(ctx *AVFormatContext, pkt *AVPacket) (bool, error)
- func AVFormat_write_header(ctx *AVFormatContext, options *AVDictionary) error
- func AVFormat_write_trailer(ctx *AVFormatContext) error
- func AVUtil_channel_description(channel AVChannel) (string, error)
- func AVUtil_channel_layout_check(ch_layout *AVChannelLayout) bool
- func AVUtil_channel_layout_default(ch_layout *AVChannelLayout, nb_channels int)
- func AVUtil_channel_layout_describe(channel_layout *AVChannelLayout) (string, error)
- func AVUtil_channel_layout_from_string(ch_layout *AVChannelLayout, str string) error
- func AVUtil_channel_layout_index_from_channel(ch_layout *AVChannelLayout, channel AVChannel) int
- func AVUtil_channel_layout_uninit(ch_layout *AVChannelLayout)
- func AVUtil_channel_name(channel AVChannel) (string, error)
- func AVUtil_compare_ts(a int64, a_tb AVRational, b int64, b_tb AVRational) int
- func AVUtil_configuration() string
- func AVUtil_dict_count(dict *AVDictionary) int
- func AVUtil_dict_free(dict *AVDictionary)
- func AVUtil_dict_keys(dict *AVDictionary) []string
- func AVUtil_dict_parse_string(dict *AVDictionary, opts, key_value_sep, pairs_sep string, ...) error
- func AVUtil_dict_set(dict *AVDictionary, key, value string, flags AVDictionaryFlag) error
- func AVUtil_frame_copy_props(dst, src *AVFrame) error
- func AVUtil_frame_free(frame *AVFrame)
- func AVUtil_frame_get_buffer(frame *AVFrame, align bool) error
- func AVUtil_frame_get_num_planes(frame *AVFrame) int
- func AVUtil_frame_make_writable(frame *AVFrame) error
- func AVUtil_frame_unref(frame *AVFrame)
- func AVUtil_get_bytes_per_sample(sample_fmt AVSampleFormat) int
- func AVUtil_get_channel_layout_nb_channels(ch_layout *AVChannelLayout) int
- func AVUtil_get_pix_fmt_name(pixfmt AVPixelFormat) string
- func AVUtil_get_sample_fmt_name(sample_fmt AVSampleFormat) string
- func AVUtil_image_alloc(width, height int, pixfmt AVPixelFormat, align int) ([][]byte, []int, int, error)
- func AVUtil_image_bytes(data [][]byte, size int) []byte
- func AVUtil_image_copy(dst [][]byte, dst_stride []int, src [][]byte, src_stride []int, ...)
- func AVUtil_image_free(data [][]byte)
- func AVUtil_image_linesizes(pixfmt AVPixelFormat, width int) [4]C.int
- func AVUtil_image_plane_sizes(pixfmt AVPixelFormat, height int, strides [4]C.int) ([4]C.size_t, error)
- func AVUtil_image_plane_sizes_ex(width, height int, pixfmt AVPixelFormat) ([4]C.size_t, error)
- func AVUtil_license() string
- func AVUtil_parse_video_size(size string) (int, int, error)
- func AVUtil_rescale_rnd(a, b, c int64, rnd AVRounding) int64
- func AVUtil_sample_fmt_is_planar(sample_fmt AVSampleFormat) bool
- func AVUtil_samples_copy(dst, src *AVSamples, dst_offset, src_offset, nb_samples int) error
- func AVUtil_samples_free(samples *AVSamples)
- func AVUtil_samples_get_buffer_size(nb_samples, nb_channels int, sample_fmt AVSampleFormat, align bool) (int, int, error)
- func AVUtil_samples_set_silence(data *AVSamples, offset int, nb_samples int)
- func AVUtil_ts2str(ts int64) string
- func AVUtil_ts2timestr(ts int64, tb *AVRational) string
- func AVUtil_ts_make_string(ts int64) string
- func AVUtil_ts_make_time_string(ts int64, tb *AVRational) string
- func AVUtil_version() uint
- func SWResample_close(ctx *SWRContext)
- func SWResample_config_frame(ctx *SWRContext, src, dest *AVFrame) error
- func SWResample_configuration() string
- func SWResample_convert(ctx *SWRContext, dst *AVSamples, dst_nb_samples int, src *AVSamples, ...) (int, error)
- func SWResample_convert_frame(ctx *SWRContext, src, dest *AVFrame) error
- func SWResample_drop_output(ctx *SWRContext, count int) error
- func SWResample_free(ctx *SWRContext)
- func SWResample_get_delay(ctx *SWRContext, base int64) int64
- func SWResample_get_out_samples(ctx *SWRContext, in_samples int) (int, error)
- func SWResample_init(ctx *SWRContext) error
- func SWResample_inject_silence(ctx *SWRContext, count int) error
- func SWResample_is_initialized(ctx *SWRContext) bool
- func SWResample_license() string
- func SWResample_next_pts(ctx *SWRContext, pts int64) int64
- func SWResample_set_opts(ctx *SWRContext, out_ch_layout AVChannelLayout, out_sample_fmt AVSampleFormat, ...) error
- func SWResample_version() uint
- func SWScale_configuration() string
- func SWScale_frame_end(ctx *SWSContext)
- func SWScale_frame_start(ctx *SWSContext, dest, src *AVFrame) error
- func SWScale_free_context(ctx *SWSContext)
- func SWScale_init_context(ctx *SWSContext, src, dst *SWSFilter)
- func SWScale_license() string
- func SWScale_receive_slice(ctx *SWSContext, slice_start, slice_height uint) error
- func SWScale_scale(ctx *SWSContext, src [][]byte, src_stride []int, ...) int
- func SWScale_scale_frame(ctx *SWSContext, dest, src *AVFrame, native bool) error
- func SWScale_send_slice(ctx *SWSContext, slice_start, slice_height uint) error
- func SWScale_version() uint
- type AVAppToDevMessageType
- type AVBufferRef
- type AVChannel
- type AVChannelLayout
- type AVClass
- type AVCodec
- func AVCodec_find_decoder(id AVCodecID) *AVCodec
- func AVCodec_find_decoder_by_name(name string) *AVCodec
- func AVCodec_find_encoder(id AVCodecID) *AVCodec
- func AVCodec_find_encoder_by_name(name string) *AVCodec
- func AVCodec_iterate(opaque *uintptr) *AVCodec
- func AVFormat_find_best_stream(ctx *AVFormatContext, t AVMediaType, wanted int, related int) (int, *AVCodec, error)
- func (c *AVCodec) Capabilities() AVCodecCap
- func (c *AVCodec) ChannelLayouts() []AVChannelLayout
- func (c *AVCodec) ID() AVCodecID
- func (c *AVCodec) LongName() string
- func (ctx *AVCodec) MarshalJSON() ([]byte, error)
- func (c *AVCodec) Name() string
- func (c *AVCodec) PixelFormats() []AVPixelFormat
- func (c *AVCodec) Profiles() []AVProfile
- func (c *AVCodec) SampleFormats() []AVSampleFormat
- func (ctx *AVCodec) String() string
- func (c *AVCodec) SupportedFramerates() []AVRational
- func (c *AVCodec) SupportedSamplerates() []int
- func (c *AVCodec) Type() AVMediaType
- type AVCodecCap
- type AVCodecContext
- func (ctx *AVCodecContext) BitRate() int64
- func (ctx *AVCodecContext) ChannelLayout() AVChannelLayout
- func (ctx *AVCodecContext) Codec() *AVCodec
- func (ctx *AVCodecContext) Flags() AVCodecFlag
- func (ctx *AVCodecContext) Flags2() AVCodecFlag2
- func (ctx *AVCodecContext) FrameNum() int
- func (ctx *AVCodecContext) FrameSize() int
- func (ctx *AVCodecContext) Framerate() AVRational
- func (ctx *AVCodecContext) GopSize() int
- func (ctx *AVCodecContext) Height() int
- func (ctx *AVCodecContext) MarshalJSON() ([]byte, error)
- func (ctx *AVCodecContext) MaxBFrames() int
- func (ctx *AVCodecContext) MbDecision() AVCodecMacroblockDecisionMode
- func (ctx *AVCodecContext) PixFmt() AVPixelFormat
- func (ctx *AVCodecContext) SampleFormat() AVSampleFormat
- func (ctx *AVCodecContext) SampleRate() int
- func (ctx *AVCodecContext) SetBitRate(bit_rate int64)
- func (ctx *AVCodecContext) SetChannelLayout(src AVChannelLayout) error
- func (ctx *AVCodecContext) SetFlags(flags AVCodecFlag)
- func (ctx *AVCodecContext) SetFlags2(flags2 AVCodecFlag2)
- func (ctx *AVCodecContext) SetFramerate(framerate AVRational)
- func (ctx *AVCodecContext) SetGopSize(gop_size int)
- func (ctx *AVCodecContext) SetHeight(height int)
- func (ctx *AVCodecContext) SetMaxBFrames(max_b_frames int)
- func (ctx *AVCodecContext) SetMbDecision(mode AVCodecMacroblockDecisionMode)
- func (ctx *AVCodecContext) SetPixFmt(pix_fmt AVPixelFormat)
- func (ctx *AVCodecContext) SetPrivDataKV(name, value string) error
- func (ctx *AVCodecContext) SetSampleFormat(sample_fmt AVSampleFormat)
- func (ctx *AVCodecContext) SetSampleRate(sample_rate int)
- func (ctx *AVCodecContext) SetTimeBase(time_base AVRational)
- func (ctx *AVCodecContext) SetWidth(width int)
- func (ctx *AVCodecContext) String() string
- func (ctx *AVCodecContext) TimeBase() AVRational
- func (ctx *AVCodecContext) Width() int
- type AVCodecFlag
- type AVCodecFlag2
- type AVCodecID
- type AVCodecMacroblockDecisionMode
- type AVCodecParameters
- func (ctx *AVCodecParameters) CodecID() AVCodecID
- func (ctx *AVCodecParameters) CodecTag() uint32
- func (ctx *AVCodecParameters) CodecType() AVMediaType
- func (ctx *AVCodecParameters) Format() int
- func (ctx *AVCodecParameters) MarshalJSON() ([]byte, error)
- func (ctx *AVCodecParameters) SetCodecTag(tag uint32)
- func (ctx *AVCodecParameters) String() string
- type AVCodecParser
- type AVCodecParserContext
- type AVDevToAppMessageType
- type AVDeviceInfo
- type AVDeviceInfoList
- func AVDevice_list_devices(ctx *AVFormatContext) (*AVDeviceInfoList, error)
- func AVDevice_list_input_sources(device *AVInputFormat, device_name string, device_options *AVDictionary) (*AVDeviceInfoList, error)
- func AVDevice_list_output_sinks(device *AVOutputFormat, device_name string, device_options *AVDictionary) (*AVDeviceInfoList, error)
- type AVDictionary
- type AVDictionaryEntry
- type AVDictionaryFlag
- type AVError
- type AVFormat
- type AVFormatContext
- func AVFormat_alloc_context() *AVFormatContext
- func AVFormat_create_file(filename string, format *AVOutputFormat) (*AVFormatContext, error)
- func AVFormat_open_device(format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
- func AVFormat_open_reader(reader *AVIOContextEx, format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
- func AVFormat_open_url(url string, format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
- func AVFormat_open_writer(writer *AVIOContextEx, format *AVOutputFormat, filename string) (*AVFormatContext, error)
- func (ctx *AVFormatContext) Flags() AVFormat
- func (ctx *AVFormatContext) Input() *AVInputFormat
- func (ctx *AVFormatContext) MarshalJSON() ([]byte, error)
- func (ctx *AVFormatContext) Metadata() *AVDictionary
- func (ctx *AVFormatContext) NumStreams() uint
- func (ctx *AVFormatContext) Output() *AVOutputFormat
- func (ctx *AVFormatContext) SetPb(pb *AVIOContextEx)
- func (ctx *AVFormatContext) Stream(stream int) *AVStream
- func (ctx *AVFormatContext) Streams() []*AVStream
- func (ctx *AVFormatContext) String() string
- type AVFormatFlag
- type AVFrame
- func (ctx *AVFrame) BestEffortTs() int64
- func (ctx *AVFrame) ChannelLayout() AVChannelLayout
- func (ctx *AVFrame) Data() ([][]byte, []int)
- func (ctx *AVFrame) Height() int
- func (ctx *AVFrame) Int16(plane int) []int16
- func (ctx *AVFrame) Linesize(plane int) int
- func (ctx *AVFrame) MarshalJSON() ([]byte, error)
- func (ctx *AVFrame) NumSamples() int
- func (ctx *AVFrame) PixFmt() AVPixelFormat
- func (ctx *AVFrame) Pts() int64
- func (ctx *AVFrame) SampleFormat() AVSampleFormat
- func (ctx *AVFrame) SampleRate() int
- func (ctx *AVFrame) SetChannelLayout(src AVChannelLayout) error
- func (ctx *AVFrame) SetHeight(height int)
- func (ctx *AVFrame) SetNumSamples(nb_samples int)
- func (ctx *AVFrame) SetPixFmt(format AVPixelFormat)
- func (ctx *AVFrame) SetPts(pts int64)
- func (ctx *AVFrame) SetSampleFormat(format AVSampleFormat)
- func (ctx *AVFrame) SetSampleRate(sample_rate int)
- func (ctx *AVFrame) SetWidth(width int)
- func (ctx *AVFrame) String() string
- func (ctx *AVFrame) TimeBase() AVRational
- func (ctx *AVFrame) Uint8(plane int) []uint8
- func (ctx *AVFrame) Width() int
- type AVIOContext
- type AVIOContextCallback
- type AVIOContextEx
- type AVIOFlag
- type AVInputFormat
- func AVDevice_input_audio_device_first() *AVInputFormat
- func AVDevice_input_audio_device_next(d *AVInputFormat) *AVInputFormat
- func AVDevice_input_video_device_first() *AVInputFormat
- func AVDevice_input_video_device_next(d *AVInputFormat) *AVInputFormat
- func AVFormat_demuxer_iterate(opaque *uintptr) *AVInputFormat
- func AVFormat_find_input_format(name string) *AVInputFormat
- func (ctx *AVInputFormat) Extensions() string
- func (ctx *AVInputFormat) Flags() AVFormat
- func (ctx *AVInputFormat) LongName() string
- func (ctx *AVInputFormat) MarshalJSON() ([]byte, error)
- func (ctx *AVInputFormat) MimeTypes() string
- func (ctx *AVInputFormat) Name() string
- func (ctx *AVInputFormat) String() string
- type AVMediaType
- type AVOutputFormat
- func AVDevice_output_audio_device_first() *AVOutputFormat
- func AVDevice_output_audio_device_next(d *AVOutputFormat) *AVOutputFormat
- func AVDevice_output_video_device_first() *AVOutputFormat
- func AVDevice_output_video_device_next(d *AVOutputFormat) *AVOutputFormat
- func AVFormat_guess_format(format, filename, mimetype string) *AVOutputFormat
- func AVFormat_muxer_iterate(opaque *uintptr) *AVOutputFormat
- func (ctx *AVOutputFormat) AudioCodec() AVCodecID
- func (ctx *AVOutputFormat) Extensions() string
- func (ctx *AVOutputFormat) Flags() AVFormat
- func (ctx *AVOutputFormat) LongName() string
- func (ctx *AVOutputFormat) MarshalJSON() ([]byte, error)
- func (ctx *AVOutputFormat) MimeTypes() string
- func (ctx *AVOutputFormat) Name() string
- func (ctx *AVOutputFormat) String() string
- func (ctx *AVOutputFormat) SubtitleCodec() AVCodecID
- func (ctx *AVOutputFormat) VideoCodec() AVCodecID
- type AVPacket
- func (ctx *AVPacket) Bytes() []byte
- func (ctx *AVPacket) Dts() int64
- func (ctx *AVPacket) Duration() int64
- func (ctx *AVPacket) MarshalJSON() ([]byte, error)
- func (ctx *AVPacket) Pos() int64
- func (ctx *AVPacket) Pts() int64
- func (ctx *AVPacket) SetPos(pos int64)
- func (ctx *AVPacket) Size() int
- func (ctx *AVPacket) StreamIndex() int
- func (ctx *AVPacket) String() string
- type AVPictureType
- type AVPixFmtDescriptor
- type AVPixelFormat
- type AVProfile
- type AVRational
- type AVRounding
- type AVSampleFormat
- type AVSamples
- type AVStream
- func (ctx *AVStream) CodecPar() *AVCodecParameters
- func (ctx *AVStream) Id() int
- func (ctx *AVStream) Index() int
- func (ctx *AVStream) MarshalJSON() ([]byte, error)
- func (ctx *AVStream) SetId(id int)
- func (ctx *AVStream) SetTimeBase(time_base AVRational)
- func (ctx *AVStream) String() string
- func (ctx *AVStream) TimeBase() AVRational
- type AVTimestamp
- type SWRContext
- type SWSContext
- type SWSFilter
- type SWSFlag
Constants ¶
const ( AV_CODEC_FLAG_UNALIGNED AVCodecFlag = C.AV_CODEC_FLAG_UNALIGNED // Allow decoders to produce frames with data planes that are not aligned to CPU requirements AV_CODEC_FLAG_QSCALE AVCodecFlag = C.AV_CODEC_FLAG_QSCALE // Use fixed qscale AV_CODEC_FLAG_4MV AVCodecFlag = C.AV_CODEC_FLAG_4MV // 4 MV per MB allowed / advanced prediction for H.263. AV_CODEC_FLAG_OUTPUT_CORRUPT AVCodecFlag = C.AV_CODEC_FLAG_OUTPUT_CORRUPT // Output even those frames that might be corrupted. AV_CODEC_FLAG_QPEL AVCodecFlag = C.AV_CODEC_FLAG_QPEL // Use qpel MC. AV_CODEC_FLAG_RECON_FRAME AVCodecFlag = C.AV_CODEC_FLAG_RECON_FRAME // Request the encoder to output reconstructed frames AV_CODEC_FLAG_COPY_OPAQUE AVCodecFlag = C.AV_CODEC_FLAG_COPY_OPAQUE // Request the decoder to propagate each packet's AVPacket.opaque and AVPacket.opaque_ref to its corresponding output AVFrame. AV_CODEC_FLAG_FRAME_DURATION AVCodecFlag = C.AV_CODEC_FLAG_FRAME_DURATION // Signal to the encoder that the values of AVFrame.duration are valid and should be used AV_CODEC_FLAG_PASS1 AVCodecFlag = C.AV_CODEC_FLAG_PASS1 // Use internal 2pass ratecontrol in first pass mode. AV_CODEC_FLAG_PASS2 AVCodecFlag = C.AV_CODEC_FLAG_PASS2 // Use internal 2pass ratecontrol in second pass mode. AV_CODEC_FLAG_LOOP_FILTER AVCodecFlag = C.AV_CODEC_FLAG_LOOP_FILTER // loop filter. AV_CODEC_FLAG_GRAY AVCodecFlag = C.AV_CODEC_FLAG_GRAY // Only decode/encode grayscale. AV_CODEC_FLAG_PSNR AVCodecFlag = C.AV_CODEC_FLAG_PSNR // error[?] variables will be set during encoding. AV_CODEC_FLAG_INTERLACED_DCT AVCodecFlag = C.AV_CODEC_FLAG_INTERLACED_DCT // Use interlaced DCT. AV_CODEC_FLAG_LOW_DELAY AVCodecFlag = C.AV_CODEC_FLAG_LOW_DELAY // Force low delay. AV_CODEC_FLAG_GLOBAL_HEADER AVCodecFlag = C.AV_CODEC_FLAG_GLOBAL_HEADER // Place global headers in extradata instead of every keyframe. AV_CODEC_FLAG_BITEXACT AVCodecFlag = C.AV_CODEC_FLAG_BITEXACT // Use only bitexact stuff (except (I)DCT). AV_CODEC_FLAG_AC_PRED AVCodecFlag = C.AV_CODEC_FLAG_AC_PRED // H.263 advanced intra coding / MPEG-4 AC prediction AV_CODEC_FLAG_INTERLACED_ME AVCodecFlag = C.AV_CODEC_FLAG_INTERLACED_ME // interlaced motion estimation AV_CODEC_FLAG_CLOSED_GOP AVCodecFlag = C.AV_CODEC_FLAG_CLOSED_GOP AV_CODEC_FLAG2_FAST AVCodecFlag2 = C.AV_CODEC_FLAG2_FAST // Allow non spec compliant speedup tricks. AV_CODEC_FLAG2_NO_OUTPUT AVCodecFlag2 = C.AV_CODEC_FLAG2_NO_OUTPUT // Skip bitstream encoding. AV_CODEC_FLAG2_LOCAL_HEADER AVCodecFlag2 = C.AV_CODEC_FLAG2_LOCAL_HEADER // Place global headers at every keyframe instead of in extradata. AV_CODEC_FLAG2_CHUNKS AVCodecFlag2 = C.AV_CODEC_FLAG2_CHUNKS // Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. AV_CODEC_FLAG2_IGNORE_CROP AVCodecFlag2 = C.AV_CODEC_FLAG2_IGNORE_CROP // Discard cropping information from SPS. AV_CODEC_FLAG2_SHOW_ALL AVCodecFlag2 = C.AV_CODEC_FLAG2_SHOW_ALL // Show all frames before the first keyframe AV_CODEC_FLAG2_EXPORT_MVS AVCodecFlag2 = C.AV_CODEC_FLAG2_EXPORT_MVS // Export motion vectors through frame side data AV_CODEC_FLAG2_SKIP_MANUAL AVCodecFlag2 = C.AV_CODEC_FLAG2_SKIP_MANUAL // Do not skip samples and export skip information as frame side data AV_CODEC_FLAG2_RO_FLUSH_NOOP AVCodecFlag2 = C.AV_CODEC_FLAG2_RO_FLUSH_NOOP // Do not reset ASS ReadOrder field on flush (subtitles decoding) AV_CODEC_FLAG2_ICC_PROFILES AVCodecFlag2 = C.AV_CODEC_FLAG2_ICC_PROFILES // Generate/parse ICC profiles on encode/decode, as appropriate for the type of file )
const ( /** * ORing this as the "whence" parameter to a seek function causes it to * return the filesize without seeking anywhere. Supporting this is optional. * If it is not supported then the seek function will return <0. */ AVSEEK_SIZE = C.AVSEEK_SIZE /** * Passing this flag as the "whence" parameter to a seek function causes it to * seek by any means (like reopening and linear reading) or other normally unreasonable * means that can be extremely slow. * This may be ignored by the seek code. */ AVSEEK_FORCE = C.AVSEEK_FORCE )
const ( AVERROR_BSF_NOT_FOUND = C.AVERROR_BSF_NOT_FOUND ///< Bitstream filter not found AVERROR_BUG = C.AVERROR_BUG ///< Internal bug, also see AVERROR_BUG2 AVERROR_BUFFER_TOO_SMALL = C.AVERROR_BUFFER_TOO_SMALL ///< Buffer too small AVERROR_DECODER_NOT_FOUND = C.AVERROR_DECODER_NOT_FOUND ///< Decoder not found AVERROR_DEMUXER_NOT_FOUND = C.AVERROR_DEMUXER_NOT_FOUND ///< Demuxer not found AVERROR_ENCODER_NOT_FOUND = C.AVERROR_ENCODER_NOT_FOUND ///< Encoder not found AVERROR_EOF = C.AVERROR_EOF ///< End of file AVERROR_EXIT = C.AVERROR_EXIT ///< Immediate exit was requested; the called function should not be restarted AVERROR_EXTERNAL = C.AVERROR_EXTERNAL ///< Generic error in an external library AVERROR_FILTER_NOT_FOUND = C.AVERROR_FILTER_NOT_FOUND ///< Filter not found AVERROR_INVALIDDATA = C.AVERROR_INVALIDDATA ///< Invalid data found when processing input AVERROR_MUXER_NOT_FOUND = C.AVERROR_MUXER_NOT_FOUND ///< Muxer not found AVERROR_OPTION_NOT_FOUND = C.AVERROR_OPTION_NOT_FOUND ///< Option not found AVERROR_PATCHWELCOME = C.AVERROR_PATCHWELCOME ///< Not yet implemented in FFmpeg, patches welcome AVERROR_PROTOCOL_NOT_FOUND = C.AVERROR_PROTOCOL_NOT_FOUND ///< Protocol not found AVERROR_STREAM_NOT_FOUND = C.AVERROR_STREAM_NOT_FOUND ///< Stream not found AVERROR_BUG2 = C.AVERROR_BUG2 // This is semantically identical to AVERROR_BUG, it has been introduced in Libav after our AVERROR_BUG and with a modified value AVERROR_UNKNOWN = C.AVERROR_UNKNOWN ///< Unknown error, typically from an external library AVERROR_EXPERIMENTAL = C.AVERROR_EXPERIMENTAL ///< Requested feature is flagged experimental. Set strict_std_compliance if you really want to use it. AVERROR_INPUT_CHANGED = C.AVERROR_INPUT_CHANGED ///< Input changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_OUTPUT_CHANGED) AVERROR_OUTPUT_CHANGED = C.AVERROR_OUTPUT_CHANGED ///< Output changed between calls. Reconfiguration is required. (can be OR-ed with AVERROR_INPUT_CHANGED) AVERROR_HTTP_BAD_REQUEST = C.AVERROR_HTTP_BAD_REQUEST // HTTP & RTSP errors AVERROR_HTTP_UNAUTHORIZED = C.AVERROR_HTTP_UNAUTHORIZED // HTTP & RTSP errors AVERROR_HTTP_FORBIDDEN = C.AVERROR_HTTP_FORBIDDEN // HTTP & RTSP errors AVERROR_HTTP_NOT_FOUND = C.AVERROR_HTTP_NOT_FOUND // HTTP & RTSP errors AVERROR_HTTP_OTHER_4XX = C.AVERROR_HTTP_OTHER_4XX // HTTP & RTSP errors AVERROR_HTTP_SERVER_ERROR = C.AVERROR_HTTP_SERVER_ERROR // HTTP & RTSP errors )
const (
AV_INPUT_BUFFER_PADDING_SIZE int = C.AV_INPUT_BUFFER_PADDING_SIZE
)
*
- Required number of additionally allocated bytes at the end of the input bitstream for decoding.
- This is mainly needed because some optimized bitstream readers read
- 32 or 64 bit at once and could read over the end.
- Note: If the first 23 bits of the additional bytes are not 0, then damaged
- MPEG bitstreams could cause overread and segfault.
const (
AV_NOPTS_VALUE = C.AV_NOPTS_VALUE ///< Undefined timestamp value
)
const (
AV_NUM_PLANES = 48
)
Variables ¶
var ( AV_CHANNEL_LAYOUT_MONO = AVChannelLayout(C._AV_CHANNEL_LAYOUT_MONO) AV_CHANNEL_LAYOUT_STEREO = AVChannelLayout(C._AV_CHANNEL_LAYOUT_STEREO) AV_CHANNEL_LAYOUT_2POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_2POINT1) AV_CHANNEL_LAYOUT_2_1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_2_1) AV_CHANNEL_LAYOUT_SURROUND = AVChannelLayout(C._AV_CHANNEL_LAYOUT_SURROUND) AV_CHANNEL_LAYOUT_3POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_3POINT1) AV_CHANNEL_LAYOUT_4POINT0 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_4POINT0) AV_CHANNEL_LAYOUT_4POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_4POINT1) AV_CHANNEL_LAYOUT_2_2 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_2_2) AV_CHANNEL_LAYOUT_QUAD = AVChannelLayout(C._AV_CHANNEL_LAYOUT_QUAD) AV_CHANNEL_LAYOUT_5POINT0 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_5POINT0) AV_CHANNEL_LAYOUT_5POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_5POINT1) AV_CHANNEL_LAYOUT_5POINT0_BACK = AVChannelLayout(C._AV_CHANNEL_LAYOUT_5POINT0_BACK) AV_CHANNEL_LAYOUT_5POINT1_BACK = AVChannelLayout(C._AV_CHANNEL_LAYOUT_5POINT1_BACK) AV_CHANNEL_LAYOUT_6POINT0 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_6POINT0) AV_CHANNEL_LAYOUT_6POINT0_FRONT = AVChannelLayout(C._AV_CHANNEL_LAYOUT_6POINT0_FRONT) AV_CHANNEL_LAYOUT_HEXAGONAL = AVChannelLayout(C._AV_CHANNEL_LAYOUT_HEXAGONAL) AV_CHANNEL_LAYOUT_6POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_6POINT1) AV_CHANNEL_LAYOUT_6POINT1_BACK = AVChannelLayout(C._AV_CHANNEL_LAYOUT_6POINT1_BACK) AV_CHANNEL_LAYOUT_6POINT1_FRONT = AVChannelLayout(C._AV_CHANNEL_LAYOUT_6POINT1_FRONT) AV_CHANNEL_LAYOUT_7POINT0 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_7POINT0) AV_CHANNEL_LAYOUT_7POINT0_FRONT = AVChannelLayout(C._AV_CHANNEL_LAYOUT_7POINT0_FRONT) AV_CHANNEL_LAYOUT_7POINT1 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_7POINT1) AV_CHANNEL_LAYOUT_7POINT1_WIDE = AVChannelLayout(C._AV_CHANNEL_LAYOUT_7POINT1_WIDE) AV_CHANNEL_LAYOUT_7POINT1_WIDE_BACK = AVChannelLayout(C._AV_CHANNEL_LAYOUT_7POINT1_WIDE_BACK) AV_CHANNEL_LAYOUT_OCTAGONAL = AVChannelLayout(C._AV_CHANNEL_LAYOUT_OCTAGONAL) AV_CHANNEL_LAYOUT_HEXADECAGONAL = AVChannelLayout(C._AV_CHANNEL_LAYOUT_HEXADECAGONAL) AV_CHANNEL_LAYOUT_STEREO_DOWNMIX = AVChannelLayout(C._AV_CHANNEL_LAYOUT_STEREO_DOWNMIX) AV_CHANNEL_LAYOUT_22POINT2 = AVChannelLayout(C._AV_CHANNEL_LAYOUT_22POINT2) AV_CHANNEL_LAYOUT_AMBISONIC_FIRST_ORDER = AVChannelLayout(C._AV_CHANNEL_LAYOUT_AMBISONIC_FIRST_ORDER) )
Functions ¶
func AVCodec_configuration ¶
func AVCodec_configuration() string
Return the libavcodec build-time configuration.
func AVCodec_free_context ¶
func AVCodec_free_context(ctx *AVCodecContext)
Free the codec context and everything associated with it.
func AVCodec_grow_packet ¶
Increase packet size, correctly zeroing padding.
func AVCodec_is_decoder ¶
Return true if codec is a decoder, false otherwise.
func AVCodec_is_encoder ¶
Return true if codec is an encoder, false otherwise.
func AVCodec_new_packet ¶
Allocate the payload of a packet and initialize its fields with default values.
func AVCodec_open ¶
func AVCodec_open(ctx *AVCodecContext, codec *AVCodec, options *AVDictionary) error
Initialize the AVCodecContext to use the given AVCodec.
func AVCodec_packet_free ¶
func AVCodec_packet_free(pkt *AVPacket)
Free the packet, if the packet is reference counted, it will be unreferenced first.
func AVCodec_packet_rescale_ts ¶
func AVCodec_packet_rescale_ts(pkt *AVPacket, tb_src, tb_dst AVRational)
Convert valid timing fields (timestamps / durations) in a packet from one timebase to another.
func AVCodec_packet_unref ¶
func AVCodec_packet_unref(pkt *AVPacket)
Unreference the packet to release the data
func AVCodec_parameters_copy ¶
func AVCodec_parameters_copy(ctx *AVCodecParameters, codecpar *AVCodecParameters) error
From fill the parameters based on the values from the supplied codec parameters
func AVCodec_parameters_from_context ¶
func AVCodec_parameters_from_context(codecpar *AVCodecParameters, ctx *AVCodecContext) error
Fill the parameters struct based on the values from the supplied codec context (encoding)
func AVCodec_parameters_to_context ¶
func AVCodec_parameters_to_context(ctx *AVCodecContext, codecpar *AVCodecParameters) error
Fill the codec context based on the values from the supplied codec parameters (decoding)
func AVCodec_parser_close ¶
func AVCodec_parser_close(parser *AVCodecParserContext)
func AVCodec_parser_parse ¶
func AVCodec_parser_parse(parser *AVCodecParserContext, ctx *AVCodecContext, packet *AVPacket, buf []byte, pts int64, dts int64, pos int64) int
func AVCodec_receive_frame ¶
func AVCodec_receive_frame(ctx *AVCodecContext, frame *AVFrame) error
Return decoded output data from a decoder or encoder. Error return of EAGAIN means that more input is needed to produce output, while EINVAL means that the decoder has been flushed and no more output is available.
func AVCodec_receive_packet ¶
func AVCodec_receive_packet(ctx *AVCodecContext, pkt *AVPacket) error
Read encoded data from the encoder.
func AVCodec_send_frame ¶
func AVCodec_send_frame(ctx *AVCodecContext, frame *AVFrame) error
Copy codec parameters from input stream to output codec context. Supply a raw video or audio frame to the encoder.
func AVCodec_send_packet ¶
func AVCodec_send_packet(ctx *AVCodecContext, pkt *AVPacket) error
Send a packet with a compressed frame to a decoder. Error return of EAGAIN means that more input is needed to produce output, while EINVAL means that the decoder has been flushed and no more output is available.
func AVCodec_shrink_packet ¶
Reduce packet size, correctly zeroing padding.
func AVDevice_configuration ¶ added in v1.6.3
func AVDevice_configuration() string
Return the libavdevice build-time configuration.
func AVDevice_free_list_devices ¶ added in v1.6.3
func AVDevice_free_list_devices(device_list *AVDeviceInfoList)
func AVDevice_license ¶ added in v1.6.3
func AVDevice_license() string
Return the libavdevice license.
func AVDevice_version ¶ added in v1.6.3
func AVDevice_version() uint
Return the LIBAVDEVICE_VERSION_INT constant.
func AVFormat_alloc_output_context2 ¶
func AVFormat_alloc_output_context2(ctx **AVFormatContext, format *AVOutputFormat, filename string) error
Allocate an AVFormatContext for an output format.
func AVFormat_avio_close ¶
func AVFormat_avio_close(ctx *AVIOContextEx) error
Close the resource and free it. This function can only be used if it was opened by avio_open().
func AVFormat_avio_context_free ¶
func AVFormat_avio_context_free(ctx *AVIOContextEx)
avio_context_free
func AVFormat_avio_put_str ¶
func AVFormat_avio_put_str(ctx *AVIOContextEx, str string) int
avio_put_str
func AVFormat_avio_seek ¶
func AVFormat_avio_seek(ctx *AVIOContextEx, offset int64, whence int) int64
avio_seek whence: SEEK_SET, SEEK_CUR, SEEK_END (like fseek) and AVSEEK_SIZE
func AVFormat_close_input ¶
func AVFormat_close_input(ctx *AVFormatContext)
Close an opened input AVFormatContext, free it and all its contents.
func AVFormat_close_writer ¶
func AVFormat_close_writer(ctx *AVFormatContext) error
func AVFormat_configuration ¶
func AVFormat_configuration() string
Return the libavformat build-time configuration.
func AVFormat_dump_format ¶
func AVFormat_dump_format(ctx *AVFormatContext, stream_index int, filename string)
func AVFormat_find_stream_info ¶
func AVFormat_find_stream_info(ctx *AVFormatContext, options *AVDictionary) error
Read packets of a media file to get stream information.
func AVFormat_flush ¶
func AVFormat_flush(ctx *AVFormatContext) error
Discard all internally buffered data.
func AVFormat_free_context ¶
func AVFormat_free_context(ctx *AVFormatContext)
func AVFormat_init_output ¶
func AVFormat_init_output(ctx *AVFormatContext, options *AVDictionary) error
Allocate the stream private data and initialize the codec, but do not write the header. May optionally be used before avformat_write_header() to initialize stream parameters before actually writing the header.
func AVFormat_interleaved_write_frame ¶
func AVFormat_interleaved_write_frame(ctx *AVFormatContext, pkt *AVPacket) error
Write a packet to an output media file ensuring correct interleaving.
func AVFormat_read_frame ¶
func AVFormat_read_frame(ctx *AVFormatContext, packet *AVPacket) error
Read a frame from the input stream. Return io.EOF if the end of the stream is reached.
func AVFormat_read_pause ¶
func AVFormat_read_pause(ctx *AVFormatContext) error
Pause a network-based stream (e.g. RTSP stream).
func AVFormat_read_play ¶
func AVFormat_read_play(ctx *AVFormatContext) error
Start playing a network-based stream (e.g. RTSP stream) at the current position.
func AVFormat_seek_frame ¶
func AVFormat_seek_frame(ctx *AVFormatContext, stream_index int, timestamp int64, flags int) error
Return the next frame of a stream.
func AVFormat_write_frame ¶
func AVFormat_write_frame(ctx *AVFormatContext, pkt *AVPacket) (bool, error)
Write a packet to an output media file. Returns true if flushed and there is no more data to flush.
func AVFormat_write_header ¶
func AVFormat_write_header(ctx *AVFormatContext, options *AVDictionary) error
Allocate the stream private data and write the stream header to an output media file.
func AVFormat_write_trailer ¶
func AVFormat_write_trailer(ctx *AVFormatContext) error
Write the stream trailer to an output media file and free the file private data.
func AVUtil_channel_description ¶
Get a human readable string describing a given channel.
func AVUtil_channel_layout_check ¶
func AVUtil_channel_layout_check(ch_layout *AVChannelLayout) bool
Check whether a channel layout is valid
func AVUtil_channel_layout_default ¶
func AVUtil_channel_layout_default(ch_layout *AVChannelLayout, nb_channels int)
Get the default channel layout for a given number of channels.
func AVUtil_channel_layout_describe ¶
func AVUtil_channel_layout_describe(channel_layout *AVChannelLayout) (string, error)
Iterate over all standard channel layouts.
func AVUtil_channel_layout_from_string ¶
func AVUtil_channel_layout_from_string(ch_layout *AVChannelLayout, str string) error
Return channel layout from a description
func AVUtil_channel_layout_index_from_channel ¶
func AVUtil_channel_layout_index_from_channel(ch_layout *AVChannelLayout, channel AVChannel) int
Get the index of a given channel in a channel layout.
func AVUtil_channel_layout_uninit ¶
func AVUtil_channel_layout_uninit(ch_layout *AVChannelLayout)
Free any allocated data in the channel layout and reset the channel count to 0.
func AVUtil_channel_name ¶
Get the name of a given channel.
func AVUtil_compare_ts ¶
func AVUtil_compare_ts(a int64, a_tb AVRational, b int64, b_tb AVRational) int
Compare two timestamps each in its own time base. Returns -1 if a is before b, 1 if a is after b, or 0 if they are equal.
func AVUtil_configuration ¶
func AVUtil_configuration() string
Return the libavformat build-time configuration.
func AVUtil_dict_count ¶
func AVUtil_dict_count(dict *AVDictionary) int
Get the number of entries in the dictionary.
func AVUtil_dict_free ¶
func AVUtil_dict_free(dict *AVDictionary)
Free a dictionary and all entries in the dictionary.
func AVUtil_dict_keys ¶
func AVUtil_dict_keys(dict *AVDictionary) []string
Get the keys for the dictionary.
func AVUtil_dict_parse_string ¶ added in v1.6.3
func AVUtil_dict_parse_string(dict *AVDictionary, opts, key_value_sep, pairs_sep string, flags AVDictionaryFlag) error
Parse the key/value pairs list and add the parsed entries to a dictionary.
func AVUtil_dict_set ¶
func AVUtil_dict_set(dict *AVDictionary, key, value string, flags AVDictionaryFlag) error
Set the given entry, overwriting an existing entry.
func AVUtil_frame_copy_props ¶
Copy only "metadata" fields from src to dst, those fields that do not affect the data layout in the buffers. E.g. pts, sample rate (for audio) or sample aspect ratio (for video), but not width/height or channel layout. Side data is also copied.
func AVUtil_frame_free ¶
func AVUtil_frame_free(frame *AVFrame)
Free the frame and any dynamically allocated objects in it
func AVUtil_frame_get_buffer ¶
Allocate new buffer(s) for audio or video data. The following fields must be set on frame before calling this function: format, width and height for video, format, nb_samples and ch_layout for audio
func AVUtil_frame_get_num_planes ¶
Return the number of planes in the frame data.
func AVUtil_frame_make_writable ¶
Ensure that the frame data is writable, avoiding data copy if possible. Do nothing if the frame is writable, allocate new buffers and copy the data if it is not. Non-refcounted frames behave as non-writable, i.e. a copy is always made.
func AVUtil_frame_unref ¶
func AVUtil_frame_unref(frame *AVFrame)
Unreference all the buffers referenced by frame and reset the frame fields.
func AVUtil_get_bytes_per_sample ¶
func AVUtil_get_bytes_per_sample(sample_fmt AVSampleFormat) int
Return number of bytes per sample.
func AVUtil_get_channel_layout_nb_channels ¶
func AVUtil_get_channel_layout_nb_channels(ch_layout *AVChannelLayout) int
Return number of channels
func AVUtil_get_pix_fmt_name ¶
func AVUtil_get_pix_fmt_name(pixfmt AVPixelFormat) string
func AVUtil_get_sample_fmt_name ¶
func AVUtil_get_sample_fmt_name(sample_fmt AVSampleFormat) string
Return the name of sample_fmt, or empty string if sample_fmt is not recognized
func AVUtil_image_alloc ¶
func AVUtil_image_alloc(width, height int, pixfmt AVPixelFormat, align int) ([][]byte, []int, int, error)
Allocate an image buffer with size, pixel format and alignment suitable for the image The allocated image buffer has to be freed by using AVUtil_image_free The return values are the allocated data pointers, the strides and the size of the allocated data
func AVUtil_image_bytes ¶
Return the image as a byte buffer
func AVUtil_image_copy ¶
func AVUtil_image_copy(dst [][]byte, dst_stride []int, src [][]byte, src_stride []int, pixfmt AVPixelFormat, width, height int)
Copy image in src into dst
func AVUtil_image_free ¶
func AVUtil_image_free(data [][]byte)
Free an image buffer allocated by AVUtil_image_alloc
func AVUtil_image_linesizes ¶
func AVUtil_image_linesizes(pixfmt AVPixelFormat, width int) [4]C.int
func AVUtil_image_plane_sizes ¶
func AVUtil_image_plane_sizes(pixfmt AVPixelFormat, height int, strides [4]C.int) ([4]C.size_t, error)
Fill plane sizes for an image with pixel format pix_fmt and height height.
func AVUtil_image_plane_sizes_ex ¶
func AVUtil_image_plane_sizes_ex(width, height int, pixfmt AVPixelFormat) ([4]C.size_t, error)
Fill plane sizes for an image with pixel format pix_fmt and height height.
func AVUtil_parse_video_size ¶
Parse size and return the width and height of the detected values.
func AVUtil_rescale_rnd ¶
func AVUtil_rescale_rnd(a, b, c int64, rnd AVRounding) int64
Rescale a value from one range to another.
func AVUtil_sample_fmt_is_planar ¶
func AVUtil_sample_fmt_is_planar(sample_fmt AVSampleFormat) bool
Check if the sample format is planar.
func AVUtil_samples_copy ¶
Copy samples - dst and src channels and formats need to match
func AVUtil_samples_get_buffer_size ¶
func AVUtil_samples_get_buffer_size(nb_samples, nb_channels int, sample_fmt AVSampleFormat, align bool) (int, int, error)
Get the required buffer size for the given audio parameters. Returns the calculated buffer size and plane size.
func AVUtil_samples_set_silence ¶
Fill an audio buffer with silence
func AVUtil_ts2str ¶
func AVUtil_ts2timestr ¶
func AVUtil_ts2timestr(ts int64, tb *AVRational) string
func AVUtil_ts_make_string ¶
func AVUtil_ts_make_time_string ¶
func AVUtil_ts_make_time_string(ts int64, tb *AVRational) string
func SWResample_close ¶
func SWResample_close(ctx *SWRContext)
Closes the context so that swr_is_initialized() returns 0
func SWResample_config_frame ¶
func SWResample_config_frame(ctx *SWRContext, src, dest *AVFrame) error
Configure or reconfigure the SwrContext using the information provided by the AVFrames.
func SWResample_configuration ¶
func SWResample_configuration() string
Return the swr build-time configuration.
func SWResample_convert ¶
func SWResample_convert(ctx *SWRContext, dst *AVSamples, dst_nb_samples int, src *AVSamples, src_nb_samples int) (int, error)
Core conversion function. Returns number of samples output per channel. in and in_count can be set to 0 to flush the last few samples out at the end.
func SWResample_convert_frame ¶
func SWResample_convert_frame(ctx *SWRContext, src, dest *AVFrame) error
Convert the samples in the input AVFrame and write them to the output AVFrame.
func SWResample_drop_output ¶
func SWResample_drop_output(ctx *SWRContext, count int) error
Drops the specified number of output samples.
func SWResample_get_delay ¶
func SWResample_get_delay(ctx *SWRContext, base int64) int64
Gets the delay the next input sample will experience relative to the next output sample.
func SWResample_get_out_samples ¶
func SWResample_get_out_samples(ctx *SWRContext, in_samples int) (int, error)
Find an upper bound on the number of samples that the next swr_convert call will output, if called with in_samples of input samples.
func SWResample_init ¶
func SWResample_init(ctx *SWRContext) error
Initialize context after user parameters have been set.
func SWResample_inject_silence ¶
func SWResample_inject_silence(ctx *SWRContext, count int) error
Inject the specified number of silence samples.
func SWResample_is_initialized ¶
func SWResample_is_initialized(ctx *SWRContext) bool
Check whether an swr context has been initialized or not.
func SWResample_next_pts ¶
func SWResample_next_pts(ctx *SWRContext, pts int64) int64
Convert the next timestamp from input to output timestamps are in 1/(in_sample_rate * out_sample_rate) units.
func SWResample_set_opts ¶
func SWResample_set_opts(ctx *SWRContext, out_ch_layout AVChannelLayout, out_sample_fmt AVSampleFormat, out_sample_rate int, in_ch_layout AVChannelLayout, in_sample_fmt AVSampleFormat, in_sample_rate int) error
Set common parameters for resampling.
func SWResample_version ¶
func SWResample_version() uint
Return the LIBSWRESAMPLE_VERSION_INT constant.
func SWScale_configuration ¶
func SWScale_configuration() string
Return the swr build-time configuration.
func SWScale_frame_end ¶
func SWScale_frame_end(ctx *SWSContext)
Finish the scaling process for a pair of source/destination frames.
func SWScale_frame_start ¶
func SWScale_frame_start(ctx *SWSContext, dest, src *AVFrame) error
Initialize the scaling process for a given pair of source/destination frames.
func SWScale_free_context ¶
func SWScale_free_context(ctx *SWSContext)
Free the swscaler context swsContext.
func SWScale_init_context ¶
func SWScale_init_context(ctx *SWSContext, src, dst *SWSFilter)
Initialize the swscaler context sws_context.
func SWScale_receive_slice ¶
func SWScale_receive_slice(ctx *SWSContext, slice_start, slice_height uint) error
Request a horizontal slice of the output data to be written into the frame
func SWScale_scale ¶
func SWScale_scale(ctx *SWSContext, src [][]byte, src_stride []int, src_slice_y, src_slice_height int, dest [][]byte, dest_stride []int) int
Scale the image slice in src and put the resulting scaled slice in the image in dst. Returns the height of the output slice.
func SWScale_scale_frame ¶
func SWScale_scale_frame(ctx *SWSContext, dest, src *AVFrame, native bool) error
Scale source data from src and write the output to dst. Need to find out why the native version is returning -22 error TODO
func SWScale_send_slice ¶
func SWScale_send_slice(ctx *SWSContext, slice_start, slice_height uint) error
Indicate that a horizontal slice of input data is available in the source frame
Types ¶
type AVAppToDevMessageType ¶ added in v1.6.3
type AVAppToDevMessageType C.enum_AVAppToDevMessageType
type AVBufferRef ¶
type AVBufferRef C.struct_AVBufferRef
type AVChannel ¶
type AVChannel C.enum_AVChannel
func AVUtil_channel_from_string ¶
This is the inverse function of av_channel_name.
func AVUtil_channel_layout_channel_from_index ¶
func AVUtil_channel_layout_channel_from_index(ch_layout *AVChannelLayout, index int) AVChannel
Get the channel with the given index in a channel layout.
type AVChannelLayout ¶
type AVChannelLayout C.AVChannelLayout
func AVUtil_channel_layout_standard ¶
func AVUtil_channel_layout_standard(iterator *uintptr) *AVChannelLayout
Iterate over all standard channel layouts.
func (AVChannelLayout) MarshalJSON ¶
func (ch AVChannelLayout) MarshalJSON() ([]byte, error)
func (AVChannelLayout) NumChannels ¶
func (ctx AVChannelLayout) NumChannels() int
type AVClass ¶
func (*AVClass) MarshalJSON ¶
type AVCodec ¶
func AVCodec_find_decoder ¶
Find a registered decoder with a matching codec ID.
func AVCodec_find_decoder_by_name ¶
Find a registered decoder with the specified name.
func AVCodec_find_encoder ¶
Find a registered encoder with a matching codec ID.
func AVCodec_find_encoder_by_name ¶
Find a registered encoder with the specified name.
func AVCodec_iterate ¶
Iterate over all registered codecs.
func AVFormat_find_best_stream ¶
func AVFormat_find_best_stream(ctx *AVFormatContext, t AVMediaType, wanted int, related int) (int, *AVCodec, error)
Find the best stream given the media type, wanted stream number, and related stream number.
func (*AVCodec) Capabilities ¶
func (c *AVCodec) Capabilities() AVCodecCap
func (*AVCodec) ChannelLayouts ¶
func (c *AVCodec) ChannelLayouts() []AVChannelLayout
func (*AVCodec) MarshalJSON ¶
func (*AVCodec) PixelFormats ¶
func (c *AVCodec) PixelFormats() []AVPixelFormat
func (*AVCodec) SampleFormats ¶
func (c *AVCodec) SampleFormats() []AVSampleFormat
func (*AVCodec) SupportedFramerates ¶
func (c *AVCodec) SupportedFramerates() []AVRational
func (*AVCodec) SupportedSamplerates ¶
func (*AVCodec) Type ¶
func (c *AVCodec) Type() AVMediaType
type AVCodecCap ¶
const ( AV_CODEC_CAP_NONE AVCodecCap = 0 AV_CODEC_CAP_DRAW_HORIZ_BAND AVCodecCap = C.AV_CODEC_CAP_DRAW_HORIZ_BAND // Decoder can use draw_horiz_band callback AV_CODEC_CAP_DR1 AVCodecCap = C.AV_CODEC_CAP_DR1 // Codec uses get_buffer() for allocating buffers and supports custom allocators AV_CODEC_CAP_DELAY AVCodecCap = C.AV_CODEC_CAP_DELAY // Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output AV_CODEC_CAP_SMALL_LAST_FRAME AVCodecCap = C.AV_CODEC_CAP_SMALL_LAST_FRAME // Codec can be fed a final frame with a smaller size AV_CODEC_CAP_SUBFRAMES AVCodecCap = C.AV_CODEC_CAP_SUBFRAMES // 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 AV_CODEC_CAP_EXPERIMENTAL AVCodecCap = C.AV_CODEC_CAP_EXPERIMENTAL // Codec is experimental and is thus avoided in favor of non experimental encoders AV_CODEC_CAP_CHANNEL_CONF AVCodecCap = C.AV_CODEC_CAP_CHANNEL_CONF // Codec should fill in channel configuration and samplerate instead of container AV_CODEC_CAP_FRAME_THREADS AVCodecCap = C.AV_CODEC_CAP_FRAME_THREADS // Codec supports frame-level multithreading AV_CODEC_CAP_SLICE_THREADS AVCodecCap = C.AV_CODEC_CAP_SLICE_THREADS // Codec supports slice-based (or partition-based) multithreading AV_CODEC_CAP_PARAM_CHANGE AVCodecCap = C.AV_CODEC_CAP_PARAM_CHANGE // Codec supports changed parameters at any point AV_CODEC_CAP_OTHER_THREADS AVCodecCap = C.AV_CODEC_CAP_OTHER_THREADS // Codec supports multithreading through a method other than slice AV_CODEC_CAP_VARIABLE_FRAME_SIZE AVCodecCap = C.AV_CODEC_CAP_VARIABLE_FRAME_SIZE // Audio encoder supports receiving a different number of samples in each call AV_CODEC_CAP_AVOID_PROBING AVCodecCap = C.AV_CODEC_CAP_AVOID_PROBING // Decoder is not a preferred choice for probing AV_CODEC_CAP_HARDWARE AVCodecCap = C.AV_CODEC_CAP_HARDWARE // Codec is backed by a hardware implementation AV_CODEC_CAP_HYBRID AVCodecCap = C.AV_CODEC_CAP_HYBRID // Codec is potentially backed by a hardware implementation, but not necessarily AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE AVCodecCap = C.AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE // This encoder can reorder user opaque values from input AVFrames and return them with corresponding output packets. AV_CODEC_CAP_ENCODER_FLUSH AVCodecCap = C.AV_CODEC_CAP_ENCODER_FLUSH // This encoder can be flushed using avcodec_flush_buffers() AV_CODEC_CAP_ENCODER_RECON_FRAME AVCodecCap = C.AV_CODEC_CAP_ENCODER_RECON_FRAME // The encoder is able to output reconstructed frame data AV_CODEC_CAP_MAX = AV_CODEC_CAP_ENCODER_RECON_FRAME )
func (AVCodecCap) FlagString ¶
func (v AVCodecCap) FlagString() string
func (AVCodecCap) Is ¶
func (v AVCodecCap) Is(cap AVCodecCap) bool
func (AVCodecCap) MarshalJSON ¶
func (v AVCodecCap) MarshalJSON() ([]byte, error)
func (AVCodecCap) String ¶
func (v AVCodecCap) String() string
type AVCodecContext ¶
type AVCodecContext C.AVCodecContext
func AVCodec_alloc_context ¶
func AVCodec_alloc_context(codec *AVCodec) *AVCodecContext
Allocate an AVCodecContext and set its fields to default values.
func (*AVCodecContext) BitRate ¶
func (ctx *AVCodecContext) BitRate() int64
func (*AVCodecContext) ChannelLayout ¶
func (ctx *AVCodecContext) ChannelLayout() AVChannelLayout
Audio channel layout.
func (*AVCodecContext) Codec ¶
func (ctx *AVCodecContext) Codec() *AVCodec
func (*AVCodecContext) FrameSize ¶
func (ctx *AVCodecContext) FrameSize() int
Number of samples per channel in an audio frame.
func (*AVCodecContext) Framerate ¶
func (ctx *AVCodecContext) Framerate() AVRational
func (*AVCodecContext) GopSize ¶
func (ctx *AVCodecContext) GopSize() int
Group-of-pictures (GOP) size.
func (*AVCodecContext) Height ¶
func (ctx *AVCodecContext) Height() int
func (*AVCodecContext) MarshalJSON ¶
func (ctx *AVCodecContext) MarshalJSON() ([]byte, error)
func (*AVCodecContext) MaxBFrames ¶
func (ctx *AVCodecContext) MaxBFrames() int
Maximum number of B-frames between non-B-frames.
func (*AVCodecContext) MbDecision ¶
func (ctx *AVCodecContext) MbDecision() AVCodecMacroblockDecisionMode
Get Macroblock decision mode.
func (*AVCodecContext) SampleFormat ¶
func (ctx *AVCodecContext) SampleFormat() AVSampleFormat
Audio sample format.
func (*AVCodecContext) SetBitRate ¶
func (ctx *AVCodecContext) SetBitRate(bit_rate int64)
func (*AVCodecContext) SetChannelLayout ¶
func (ctx *AVCodecContext) SetChannelLayout(src AVChannelLayout) error
Audio channel layout.
func (*AVCodecContext) SetFlags2 ¶
func (ctx *AVCodecContext) SetFlags2(flags2 AVCodecFlag2)
Set flags2
func (*AVCodecContext) SetFramerate ¶
func (ctx *AVCodecContext) SetFramerate(framerate AVRational)
func (*AVCodecContext) SetGopSize ¶
func (ctx *AVCodecContext) SetGopSize(gop_size int)
Group-of-pictures (GOP) size.
func (*AVCodecContext) SetHeight ¶
func (ctx *AVCodecContext) SetHeight(height int)
func (*AVCodecContext) SetMaxBFrames ¶
func (ctx *AVCodecContext) SetMaxBFrames(max_b_frames int)
Maximum number of B-frames between non-B-frames.
func (*AVCodecContext) SetMbDecision ¶
func (ctx *AVCodecContext) SetMbDecision(mode AVCodecMacroblockDecisionMode)
Set Macroblock decision mode.
func (*AVCodecContext) SetPixFmt ¶
func (ctx *AVCodecContext) SetPixFmt(pix_fmt AVPixelFormat)
Pixel format.
func (*AVCodecContext) SetPrivDataKV ¶
func (ctx *AVCodecContext) SetPrivDataKV(name, value string) error
Private data, set key/value pair
func (*AVCodecContext) SetSampleFormat ¶
func (ctx *AVCodecContext) SetSampleFormat(sample_fmt AVSampleFormat)
Audio sample format.
func (*AVCodecContext) SetSampleRate ¶
func (ctx *AVCodecContext) SetSampleRate(sample_rate int)
Audio sample rate.
func (*AVCodecContext) SetTimeBase ¶
func (ctx *AVCodecContext) SetTimeBase(time_base AVRational)
func (*AVCodecContext) SetWidth ¶
func (ctx *AVCodecContext) SetWidth(width int)
func (*AVCodecContext) String ¶
func (ctx *AVCodecContext) String() string
func (*AVCodecContext) TimeBase ¶
func (ctx *AVCodecContext) TimeBase() AVRational
func (*AVCodecContext) Width ¶
func (ctx *AVCodecContext) Width() int
type AVCodecFlag ¶
type AVCodecFlag2 ¶
type AVCodecID ¶
type AVCodecID C.enum_AVCodecID
const ( AV_CODEC_ID_NONE AVCodecID = C.AV_CODEC_ID_NONE AV_CODEC_ID_MP2 AVCodecID = C.AV_CODEC_ID_MP2 AV_CODEC_ID_H264 AVCodecID = C.AV_CODEC_ID_H264 AV_CODEC_ID_MPEG1VIDEO AVCodecID = C.AV_CODEC_ID_MPEG1VIDEO AV_CODEC_ID_MPEG2VIDEO AVCodecID = C.AV_CODEC_ID_MPEG2VIDEO )
func (AVCodecID) MarshalJSON ¶ added in v1.6.3
func (AVCodecID) Type ¶ added in v1.6.3
func (v AVCodecID) Type() AVMediaType
type AVCodecMacroblockDecisionMode ¶
const ( FF_MB_DECISION_SIMPLE AVCodecMacroblockDecisionMode = C.FF_MB_DECISION_SIMPLE ///< uses mb_cmp FF_MB_DECISION_BITS AVCodecMacroblockDecisionMode = C.FF_MB_DECISION_BITS ///< chooses the one which needs the fewest bits FF_MB_DECISION_RD AVCodecMacroblockDecisionMode = C.FF_MB_DECISION_RD ///< rate distortion )
*
- macroblock decision mode
- - encoding: Set by user.
- - decoding: unused
type AVCodecParameters ¶
type AVCodecParameters C.AVCodecParameters
func (*AVCodecParameters) CodecID ¶
func (ctx *AVCodecParameters) CodecID() AVCodecID
func (*AVCodecParameters) CodecTag ¶
func (ctx *AVCodecParameters) CodecTag() uint32
func (*AVCodecParameters) CodecType ¶
func (ctx *AVCodecParameters) CodecType() AVMediaType
func (*AVCodecParameters) Format ¶
func (ctx *AVCodecParameters) Format() int
func (*AVCodecParameters) MarshalJSON ¶
func (ctx *AVCodecParameters) MarshalJSON() ([]byte, error)
func (*AVCodecParameters) SetCodecTag ¶
func (ctx *AVCodecParameters) SetCodecTag(tag uint32)
func (*AVCodecParameters) String ¶
func (ctx *AVCodecParameters) String() string
type AVCodecParser ¶
type AVCodecParser C.AVCodecParser
func AVCodec_parser_iterate ¶
func AVCodec_parser_iterate(opaque *uintptr) *AVCodecParser
Iterate over all registered codec parsers.
type AVCodecParserContext ¶
type AVCodecParserContext C.AVCodecParserContext
func AVCodec_parser_init ¶
func AVCodec_parser_init(codec_id AVCodecID) *AVCodecParserContext
type AVDevToAppMessageType ¶ added in v1.6.3
type AVDevToAppMessageType C.enum_AVDevToAppMessageType
type AVDeviceInfo ¶ added in v1.6.3
type AVDeviceInfo C.struct_AVDeviceInfo
func (*AVDeviceInfo) Description ¶ added in v1.6.3
func (ctx *AVDeviceInfo) Description() string
func (*AVDeviceInfo) MarshalJSON ¶ added in v1.6.3
func (ctx *AVDeviceInfo) MarshalJSON() ([]byte, error)
func (*AVDeviceInfo) MediaTypes ¶ added in v1.6.3
func (ctx *AVDeviceInfo) MediaTypes() []AVMediaType
func (*AVDeviceInfo) Name ¶ added in v1.6.3
func (ctx *AVDeviceInfo) Name() string
func (*AVDeviceInfo) String ¶ added in v1.6.3
func (ctx *AVDeviceInfo) String() string
type AVDeviceInfoList ¶ added in v1.6.3
type AVDeviceInfoList C.struct_AVDeviceInfoList
func AVDevice_list_devices ¶ added in v1.6.3
func AVDevice_list_devices(ctx *AVFormatContext) (*AVDeviceInfoList, error)
func AVDevice_list_input_sources ¶ added in v1.6.3
func AVDevice_list_input_sources(device *AVInputFormat, device_name string, device_options *AVDictionary) (*AVDeviceInfoList, error)
List devices. Returns available device names and their parameters, or nil if the enumeration of devices is not supported. Device format may be nil if device name is set. Call AVDevice_free_list_devices to free resources afterwards.
func AVDevice_list_output_sinks ¶ added in v1.6.3
func AVDevice_list_output_sinks(device *AVOutputFormat, device_name string, device_options *AVDictionary) (*AVDeviceInfoList, error)
List devices. Returns available device names and their parameters, or nil if the enumeration of devices is not supported. Device format may be nil if device name is set. Call AVDevice_free_list_devices to free resources afterwards.
func (*AVDeviceInfoList) Devices ¶ added in v1.6.3
func (ctx *AVDeviceInfoList) Devices() []*AVDeviceInfo
func (*AVDeviceInfoList) MarshalJSON ¶ added in v1.6.3
func (ctx *AVDeviceInfoList) MarshalJSON() ([]byte, error)
func (*AVDeviceInfoList) NumDevices ¶ added in v1.6.3
func (ctx *AVDeviceInfoList) NumDevices() int
func (*AVDeviceInfoList) String ¶ added in v1.6.3
func (ctx *AVDeviceInfoList) String() string
type AVDictionary ¶
type AVDictionary struct { // contains filtered or unexported fields } // Wrapper
func AVUtil_dict_copy ¶
func AVUtil_dict_copy(dict *AVDictionary, flags AVDictionaryFlag) (*AVDictionary, error)
Copy entries from one dictionary into another.
func AVUtil_dict_delete ¶
func AVUtil_dict_delete(dict *AVDictionary, key string) (*AVDictionary, error)
Delete the given entry. If dictionary becomes empty, the return value is nil
func (*AVDictionary) MarshalJSON ¶
func (ctx *AVDictionary) MarshalJSON() ([]byte, error)
func (*AVDictionary) String ¶
func (ctx *AVDictionary) String() string
type AVDictionaryEntry ¶
type AVDictionaryEntry C.struct_AVDictionaryEntry
func AVUtil_dict_entries ¶
func AVUtil_dict_entries(dict *AVDictionary) []*AVDictionaryEntry
Get the entries for the dictionary.
func AVUtil_dict_get ¶
func AVUtil_dict_get(dict *AVDictionary, key string, prev *AVDictionaryEntry, flags AVDictionaryFlag) *AVDictionaryEntry
Get a dictionary entry with matching key.
func (*AVDictionaryEntry) Key ¶
func (e *AVDictionaryEntry) Key() string
Return dictionary entry key
func (*AVDictionaryEntry) MarshalJSON ¶
func (ctx *AVDictionaryEntry) MarshalJSON() ([]byte, error)
func (*AVDictionaryEntry) Value ¶
func (e *AVDictionaryEntry) Value() string
Return dictionary entry value
type AVDictionaryFlag ¶
const ( // Only get an entry with exact-case key match. AV_DICT_MATCH_CASE AVDictionaryFlag = C.AV_DICT_MATCH_CASE // Return first entry in a dictionary whose first part corresponds to the search key, ignoring the suffix of the found key string. AV_DICT_IGNORE_SUFFIX AVDictionaryFlag = C.AV_DICT_IGNORE_SUFFIX // Take ownership of key that has been allocated with av_malloc() AV_DICT_DONT_STRDUP_KEY AVDictionaryFlag = C.AV_DICT_DONT_STRDUP_KEY // Take ownership of value that has been allocated with av_malloc() AV_DICT_DONT_STRDUP_VAL AVDictionaryFlag = C.AV_DICT_DONT_STRDUP_VAL // Don't overwrite existing entries. AV_DICT_DONT_OVERWRITE AVDictionaryFlag = C.AV_DICT_DONT_OVERWRITE // Append to existing key. AV_DICT_APPEND AVDictionaryFlag = C.AV_DICT_APPEND // Allow to store several equal keys in the dictionary. AV_DICT_MULTIKEY AVDictionaryFlag = C.AV_DICT_MULTIKEY )
type AVFormat ¶
const ( AVFMT_NONE AVFormat = 0 AVFMT_NOFILE AVFormat = C.AVFMT_NOFILE // Demuxer will use avio_open, no opened file should be provided by the caller. AVFMT_NEEDNUMBER AVFormat = C.AVFMT_NEEDNUMBER // Needs '%d' in filename. AVFMT_EXPERIMENTAL AVFormat = C.AVFMT_EXPERIMENTAL // The muxer/demuxer is experimental and should be used with caution AVFMT_SHOWIDS AVFormat = C.AVFMT_SHOW_IDS // Show format stream IDs numbers. AVFMT_GLOBALHEADER AVFormat = C.AVFMT_GLOBALHEADER // Format wants global header. AVFMT_NOTIMESTAMPS AVFormat = C.AVFMT_NOTIMESTAMPS // Format does not need / have any timestamps. AVFMT_GENERICINDEX AVFormat = C.AVFMT_GENERIC_INDEX // Use generic index building code. AVFMT_TSDISCONT AVFormat = C.AVFMT_TS_DISCONT // Format allows timestamp discontinuities. Note, muxers always require valid (monotone) timestamps AVFMT_VARIABLEFPS AVFormat = C.AVFMT_VARIABLE_FPS // Format allows variable fps. AVFMT_NODIMENSIONS AVFormat = C.AVFMT_NODIMENSIONS // Format does not need width/height AVFMT_NOSTREAMS AVFormat = C.AVFMT_NOSTREAMS // Format does not require any streams AVFMT_NOBINSEARCH AVFormat = C.AVFMT_NOBINSEARCH // Format does not allow to fall back on binary search via read_timestamp AVFMT_NOGENSEARCH AVFormat = C.AVFMT_NOGENSEARCH // Format does not allow to fall back on generic search AVFMT_NOBYTESEEK AVFormat = C.AVFMT_NO_BYTE_SEEK // Format does not allow seeking by bytes AVFMT_ALLOWFLUSH AVFormat = C.AVFMT_ALLOW_FLUSH // Format allows flushing. If not set, the muxer will not receive a NULL packet in the write_packet function. AVFMT_TS_NONSTRICT AVFormat = C.AVFMT_TS_NONSTRICT // Format does not require strictly increasing timestamps, but they must still be monotonic AVFMT_TS_NEGATIVE AVFormat = C.AVFMT_TS_NEGATIVE // Format allows muxing negative timestamps AVFMT_SEEK_TO_PTS AVFormat = C.AVFMT_SEEK_TO_PTS // Seeking is based on PTS AVFMT_MIN AVFormat = AVFMT_NOFILE AVFMT_MAX AVFormat = AVFMT_SEEK_TO_PTS )
func (AVFormat) FlagString ¶ added in v1.6.2
func (AVFormat) MarshalJSON ¶ added in v1.6.2
type AVFormatContext ¶
type AVFormatContext C.struct_AVFormatContext
func AVFormat_alloc_context ¶
func AVFormat_alloc_context() *AVFormatContext
Allocate an AVFormatContext.
func AVFormat_create_file ¶
func AVFormat_create_file(filename string, format *AVOutputFormat) (*AVFormatContext, error)
Open an output file.
func AVFormat_open_device ¶
func AVFormat_open_device(format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
Open an input stream from a device.
func AVFormat_open_reader ¶
func AVFormat_open_reader(reader *AVIOContextEx, format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
Open an input stream and read the header.
func AVFormat_open_url ¶
func AVFormat_open_url(url string, format *AVInputFormat, options *AVDictionary) (*AVFormatContext, error)
Open an input stream from a URL and read the header.
func AVFormat_open_writer ¶
func AVFormat_open_writer(writer *AVIOContextEx, format *AVOutputFormat, filename string) (*AVFormatContext, error)
Open an output stream.
func (*AVFormatContext) Flags ¶
func (ctx *AVFormatContext) Flags() AVFormat
func (*AVFormatContext) Input ¶
func (ctx *AVFormatContext) Input() *AVInputFormat
func (*AVFormatContext) MarshalJSON ¶
func (ctx *AVFormatContext) MarshalJSON() ([]byte, error)
func (*AVFormatContext) Metadata ¶
func (ctx *AVFormatContext) Metadata() *AVDictionary
func (*AVFormatContext) NumStreams ¶
func (ctx *AVFormatContext) NumStreams() uint
func (*AVFormatContext) Output ¶
func (ctx *AVFormatContext) Output() *AVOutputFormat
func (*AVFormatContext) SetPb ¶
func (ctx *AVFormatContext) SetPb(pb *AVIOContextEx)
func (*AVFormatContext) Stream ¶
func (ctx *AVFormatContext) Stream(stream int) *AVStream
func (*AVFormatContext) Streams ¶
func (ctx *AVFormatContext) Streams() []*AVStream
func (*AVFormatContext) String ¶
func (ctx *AVFormatContext) String() string
type AVFormatFlag ¶
func (AVFormatFlag) Is ¶
func (f AVFormatFlag) Is(flag AVFormatFlag) bool
type AVFrame ¶
type AVFrame C.struct_AVFrame
func AVUtil_frame_alloc ¶
func AVUtil_frame_alloc() *AVFrame
Allocate an AVFrame and set its fields to default values.
func (*AVFrame) BestEffortTs ¶
func (*AVFrame) ChannelLayout ¶
func (ctx *AVFrame) ChannelLayout() AVChannelLayout
func (*AVFrame) MarshalJSON ¶
func (*AVFrame) NumSamples ¶
func (*AVFrame) PixFmt ¶
func (ctx *AVFrame) PixFmt() AVPixelFormat
func (*AVFrame) SampleFormat ¶
func (ctx *AVFrame) SampleFormat() AVSampleFormat
func (*AVFrame) SampleRate ¶
func (*AVFrame) SetChannelLayout ¶
func (ctx *AVFrame) SetChannelLayout(src AVChannelLayout) error
func (*AVFrame) SetNumSamples ¶
func (*AVFrame) SetPixFmt ¶
func (ctx *AVFrame) SetPixFmt(format AVPixelFormat)
func (*AVFrame) SetSampleFormat ¶
func (ctx *AVFrame) SetSampleFormat(format AVSampleFormat)
func (*AVFrame) SetSampleRate ¶
func (*AVFrame) TimeBase ¶
func (ctx *AVFrame) TimeBase() AVRational
type AVIOContext ¶
type AVIOContext C.struct_AVIOContext
func (*AVIOContext) MarshalJSON ¶
func (ctx *AVIOContext) MarshalJSON() ([]byte, error)
func (*AVIOContext) String ¶
func (ctx *AVIOContext) String() string
type AVIOContextCallback ¶
type AVIOContextCallback interface { Reader(buf []byte) int Writer(buf []byte) int Seeker(offset int64, whence int) int64 }
Callbacks for AVIOContextEx
type AVIOContextEx ¶
type AVIOContextEx struct { *AVIOContext // contains filtered or unexported fields }
Wrapper around AVIOContext with callbacks
func AVFormat_avio_alloc_context ¶
func AVFormat_avio_alloc_context(sz int, writeable bool, callback AVIOContextCallback) *AVIOContextEx
avio_alloc_context
func AVFormat_avio_open ¶
func AVFormat_avio_open(url string, flags AVIOFlag) (*AVIOContextEx, error)
Create and initialize a AVIOContext for accessing the resource indicated by url.
type AVIOFlag ¶
const ( AVIO_FLAG_NONE AVIOFlag = 0 AVIO_FLAG_READ AVIOFlag = C.AVIO_FLAG_READ AVIO_FLAG_WRITE AVIOFlag = C.AVIO_FLAG_WRITE AVIO_FLAG_READ_WRITE AVIOFlag = C.AVIO_FLAG_READ_WRITE )
type AVInputFormat ¶
type AVInputFormat C.struct_AVInputFormat
func AVDevice_input_audio_device_first ¶ added in v1.6.3
func AVDevice_input_audio_device_first() *AVInputFormat
Return the first registered audio input format, or NULL if there are none.
func AVDevice_input_audio_device_next ¶ added in v1.6.3
func AVDevice_input_audio_device_next(d *AVInputFormat) *AVInputFormat
Return the next registered audio input device.
func AVDevice_input_video_device_first ¶ added in v1.6.3
func AVDevice_input_video_device_first() *AVInputFormat
Return the first registered video input format, or NULL if there are none.
func AVDevice_input_video_device_next ¶ added in v1.6.3
func AVDevice_input_video_device_next(d *AVInputFormat) *AVInputFormat
Return the next registered video input device.
func AVFormat_demuxer_iterate ¶
func AVFormat_demuxer_iterate(opaque *uintptr) *AVInputFormat
Iterate over all AVInputFormats
func AVFormat_find_input_format ¶ added in v1.6.2
func AVFormat_find_input_format(name string) *AVInputFormat
Find AVInputFormat based on the short name of the input format.
func (*AVInputFormat) Extensions ¶ added in v1.6.2
func (ctx *AVInputFormat) Extensions() string
func (*AVInputFormat) Flags ¶ added in v1.6.2
func (ctx *AVInputFormat) Flags() AVFormat
func (*AVInputFormat) LongName ¶ added in v1.6.2
func (ctx *AVInputFormat) LongName() string
func (*AVInputFormat) MarshalJSON ¶
func (ctx *AVInputFormat) MarshalJSON() ([]byte, error)
func (*AVInputFormat) MimeTypes ¶ added in v1.6.2
func (ctx *AVInputFormat) MimeTypes() string
func (*AVInputFormat) Name ¶ added in v1.6.2
func (ctx *AVInputFormat) Name() string
func (*AVInputFormat) String ¶
func (ctx *AVInputFormat) String() string
type AVMediaType ¶
type AVMediaType C.enum_AVMediaType
const ( AVMEDIA_TYPE_UNKNOWN AVMediaType = C.AVMEDIA_TYPE_UNKNOWN ///< Usually treated as AVMEDIA_TYPE_DATA AVMEDIA_TYPE_VIDEO AVMediaType = C.AVMEDIA_TYPE_VIDEO AVMEDIA_TYPE_AUDIO AVMediaType = C.AVMEDIA_TYPE_AUDIO AVMEDIA_TYPE_DATA AVMediaType = C.AVMEDIA_TYPE_DATA ///< Opaque data information usually continuous AVMEDIA_TYPE_SUBTITLE AVMediaType = C.AVMEDIA_TYPE_SUBTITLE AVMEDIA_TYPE_ATTACHMENT AVMediaType = C.AVMEDIA_TYPE_ATTACHMENT ///< Opaque data information usually sparse )
func (AVMediaType) Is ¶
func (m AVMediaType) Is(v AVMediaType) bool
func (AVMediaType) MarshalJSON ¶
func (ctx AVMediaType) MarshalJSON() ([]byte, error)
func (AVMediaType) String ¶
func (v AVMediaType) String() string
type AVOutputFormat ¶
type AVOutputFormat C.struct_AVOutputFormat
func AVDevice_output_audio_device_first ¶ added in v1.6.3
func AVDevice_output_audio_device_first() *AVOutputFormat
Return the first registered audio output format, or NULL if there are none.
func AVDevice_output_audio_device_next ¶ added in v1.6.3
func AVDevice_output_audio_device_next(d *AVOutputFormat) *AVOutputFormat
Return the next registered audio output device.
func AVDevice_output_video_device_first ¶ added in v1.6.3
func AVDevice_output_video_device_first() *AVOutputFormat
Return the first registered video output format, or NULL if there are none.
func AVDevice_output_video_device_next ¶ added in v1.6.3
func AVDevice_output_video_device_next(d *AVOutputFormat) *AVOutputFormat
Return the next registered video output device.
func AVFormat_guess_format ¶
func AVFormat_guess_format(format, filename, mimetype string) *AVOutputFormat
Return the output format in the list of registered output formats which best matches the provided parameters, or return NULL if there is no match.
func AVFormat_muxer_iterate ¶
func AVFormat_muxer_iterate(opaque *uintptr) *AVOutputFormat
Iterate over all AVOutputFormats
func (*AVOutputFormat) AudioCodec ¶
func (ctx *AVOutputFormat) AudioCodec() AVCodecID
func (*AVOutputFormat) Extensions ¶ added in v1.6.2
func (ctx *AVOutputFormat) Extensions() string
func (*AVOutputFormat) Flags ¶
func (ctx *AVOutputFormat) Flags() AVFormat
func (*AVOutputFormat) LongName ¶ added in v1.6.2
func (ctx *AVOutputFormat) LongName() string
func (*AVOutputFormat) MarshalJSON ¶
func (ctx *AVOutputFormat) MarshalJSON() ([]byte, error)
func (*AVOutputFormat) MimeTypes ¶ added in v1.6.2
func (ctx *AVOutputFormat) MimeTypes() string
func (*AVOutputFormat) Name ¶ added in v1.6.2
func (ctx *AVOutputFormat) Name() string
func (*AVOutputFormat) String ¶
func (ctx *AVOutputFormat) String() string
func (*AVOutputFormat) SubtitleCodec ¶
func (ctx *AVOutputFormat) SubtitleCodec() AVCodecID
func (*AVOutputFormat) VideoCodec ¶
func (ctx *AVOutputFormat) VideoCodec() AVCodecID
type AVPacket ¶
func AVCodec_packet_alloc ¶
func AVCodec_packet_alloc() *AVPacket
Allocate an AVPacket and set its fields to default values.
func AVCodec_packet_clone ¶
Create a new packet that references the same data as src.
func (*AVPacket) MarshalJSON ¶
func (*AVPacket) StreamIndex ¶
type AVPictureType ¶
type AVPictureType C.enum_AVPictureType
const ( AV_PICTURE_TYPE_NONE AVPictureType = C.AV_PICTURE_TYPE_NONE ///< Undefined AV_PICTURE_TYPE_I AVPictureType = C.AV_PICTURE_TYPE_I ///< Intra AV_PICTURE_TYPE_P AVPictureType = C.AV_PICTURE_TYPE_P ///< Predicted AV_PICTURE_TYPE_B AVPictureType = C.AV_PICTURE_TYPE_B ///< Bi-dir predicted AV_PICTURE_TYPE_S AVPictureType = C.AV_PICTURE_TYPE_S ///< S(GMC)-VOP MPEG-4 AV_PICTURE_TYPE_SI AVPictureType = C.AV_PICTURE_TYPE_SI ///< Switching Intra AV_PICTURE_TYPE_SP AVPictureType = C.AV_PICTURE_TYPE_SP ///< Switching Predicted AV_PICTURE_TYPE_BI AVPictureType = C.AV_PICTURE_TYPE_BI ///< BI type )
func (AVPictureType) String ¶
func (v AVPictureType) String() string
type AVPixFmtDescriptor ¶
type AVPixFmtDescriptor C.AVPixFmtDescriptor
func AVUtil_get_pix_fmt_desc ¶
func AVUtil_get_pix_fmt_desc(pixfmt AVPixelFormat) *AVPixFmtDescriptor
type AVPixelFormat ¶
type AVPixelFormat C.enum_AVPixelFormat
const ( AV_PIX_FMT_NONE AVPixelFormat = C.AV_PIX_FMT_NONE AV_PIX_FMT_YUV420P AVPixelFormat = C.AV_PIX_FMT_YUV420P ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) AV_PIX_FMT_YUYV422 AVPixelFormat = C.AV_PIX_FMT_YUYV422 ///< packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr AV_PIX_FMT_RGB24 AVPixelFormat = C.AV_PIX_FMT_RGB24 ///< packed RGB 8:8:8, 24bpp, RGBRGB... AV_PIX_FMT_BGR24 AVPixelFormat = C.AV_PIX_FMT_BGR24 ///< packed RGB 8:8:8, 24bpp, BGRBGR... AV_PIX_FMT_YUV422P AVPixelFormat = C.AV_PIX_FMT_YUV422P ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) AV_PIX_FMT_YUV444P AVPixelFormat = C.AV_PIX_FMT_YUV444P ///< planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples) AV_PIX_FMT_YUV410P AVPixelFormat = C.AV_PIX_FMT_YUV410P ///< planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples) AV_PIX_FMT_YUV411P AVPixelFormat = C.AV_PIX_FMT_YUV411P ///< planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) AV_PIX_FMT_GRAY8 AVPixelFormat = C.AV_PIX_FMT_GRAY8 ///< Y , 8bpp AV_PIX_FMT_MONOWHITE AVPixelFormat = C.AV_PIX_FMT_MONOWHITE ///< Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb AV_PIX_FMT_MONOBLACK AVPixelFormat = C.AV_PIX_FMT_MONOBLACK ///< Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb AV_PIX_FMT_PAL8 AVPixelFormat = C.AV_PIX_FMT_PAL8 ///< 8 bits with AV_PIX_FMT_RGB32 palette AV_PIX_FMT_YUVJ420P AVPixelFormat = C.AV_PIX_FMT_YUVJ420P ///< planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting color_range AV_PIX_FMT_YUVJ422P AVPixelFormat = C.AV_PIX_FMT_YUVJ422P ///< planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting color_range AV_PIX_FMT_YUVJ444P AVPixelFormat = C.AV_PIX_FMT_YUVJ444P ///< planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting color_range AV_PIX_FMT_UYVY422 AVPixelFormat = C.AV_PIX_FMT_UYVY422 ///< packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 AV_PIX_FMT_UYYVYY411 AVPixelFormat = C.AV_PIX_FMT_UYYVYY411 ///< packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3 AV_PIX_FMT_BGR8 AVPixelFormat = C.AV_PIX_FMT_BGR8 ///< packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb) AV_PIX_FMT_BGR4 AVPixelFormat = C.AV_PIX_FMT_BGR4 ///< packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits AV_PIX_FMT_BGR4_BYTE AVPixelFormat = C.AV_PIX_FMT_BGR4_BYTE ///< packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb) AV_PIX_FMT_RGB8 AVPixelFormat = C.AV_PIX_FMT_RGB8 ///< packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb) AV_PIX_FMT_RGB4 AVPixelFormat = C.AV_PIX_FMT_RGB4 ///< packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits AV_PIX_FMT_RGB4_BYTE AVPixelFormat = C.AV_PIX_FMT_RGB4_BYTE ///< packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb) AV_PIX_FMT_NV12 AVPixelFormat = C.AV_PIX_FMT_NV12 ///< planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V) AV_PIX_FMT_NV21 AVPixelFormat = C.AV_PIX_FMT_NV21 ///< as above, but U and V bytes are swapped AV_PIX_FMT_ARGB AVPixelFormat = C.AV_PIX_FMT_ARGB ///< packed ARGB 8:8:8:8, 32bpp, ARGBARGB... AV_PIX_FMT_RGBA AVPixelFormat = C.AV_PIX_FMT_RGBA ///< packed RGBA 8:8:8:8, 32bpp, RGBARGBA... AV_PIX_FMT_ABGR AVPixelFormat = C.AV_PIX_FMT_ABGR ///< packed ABGR 8:8:8:8, 32bpp, ABGRABGR... AV_PIX_FMT_BGRA AVPixelFormat = C.AV_PIX_FMT_BGRA ///< packed BGRA 8:8:8:8, 32bpp, BGRABGRA... AV_PIX_FMT_GRAY16BE AVPixelFormat = C.AV_PIX_FMT_GRAY16BE ///< Y , 16bpp, big-endian AV_PIX_FMT_GRAY16LE AVPixelFormat = C.AV_PIX_FMT_GRAY16LE ///< Y , 16bpp, little-endian AV_PIX_FMT_YUV440P AVPixelFormat = C.AV_PIX_FMT_YUV440P ///< planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples) AV_PIX_FMT_YUVJ440P AVPixelFormat = C.AV_PIX_FMT_YUVJ440P ///< planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range AV_PIX_FMT_YUVA420P AVPixelFormat = C.AV_PIX_FMT_YUVA420P ///< planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples) AV_PIX_FMT_RGB48BE AVPixelFormat = C.AV_PIX_FMT_RGB48BE ///< packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endian AV_PIX_FMT_RGB48LE AVPixelFormat = C.AV_PIX_FMT_RGB48LE ///< packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endian AV_PIX_FMT_RGB565BE AVPixelFormat = C.AV_PIX_FMT_RGB565BE ///< packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian AV_PIX_FMT_RGB565LE AVPixelFormat = C.AV_PIX_FMT_RGB565LE ///< packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian AV_PIX_FMT_RGB555BE AVPixelFormat = C.AV_PIX_FMT_RGB555BE ///< packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined AV_PIX_FMT_RGB555LE AVPixelFormat = C.AV_PIX_FMT_RGB555LE ///< packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined AV_PIX_FMT_BGR565BE AVPixelFormat = C.AV_PIX_FMT_BGR565BE ///< packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian AV_PIX_FMT_BGR565LE AVPixelFormat = C.AV_PIX_FMT_BGR565LE ///< packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian AV_PIX_FMT_BGR555BE AVPixelFormat = C.AV_PIX_FMT_BGR555BE ///< packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined AV_PIX_FMT_BGR555LE AVPixelFormat = C.AV_PIX_FMT_BGR555LE ///< packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined AV_PIX_FMT_VAAPI AVPixelFormat = C.AV_PIX_FMT_VAAPI AV_PIX_FMT_YUV420P16LE AVPixelFormat = C.AV_PIX_FMT_YUV420P16LE ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian AV_PIX_FMT_YUV420P16BE AVPixelFormat = C.AV_PIX_FMT_YUV420P16BE ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian AV_PIX_FMT_YUV422P16LE AVPixelFormat = C.AV_PIX_FMT_YUV422P16LE ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_YUV422P16BE AVPixelFormat = C.AV_PIX_FMT_YUV422P16BE ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_YUV444P16LE AVPixelFormat = C.AV_PIX_FMT_YUV444P16LE ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian AV_PIX_FMT_YUV444P16BE AVPixelFormat = C.AV_PIX_FMT_YUV444P16BE ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian AV_PIX_FMT_DXVA2_VLD AVPixelFormat = C.AV_PIX_FMT_DXVA2_VLD ///< HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer AV_PIX_FMT_RGB444LE AVPixelFormat = C.AV_PIX_FMT_RGB444LE ///< packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined AV_PIX_FMT_RGB444BE AVPixelFormat = C.AV_PIX_FMT_RGB444BE ///< packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined AV_PIX_FMT_BGR444LE AVPixelFormat = C.AV_PIX_FMT_BGR444LE ///< packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined AV_PIX_FMT_BGR444BE AVPixelFormat = C.AV_PIX_FMT_BGR444BE ///< packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian, X=unused/undefined AV_PIX_FMT_YA8 AVPixelFormat = C.AV_PIX_FMT_YA8 ///< 8 bits gray, 8 bits alpha AV_PIX_FMT_Y400A AVPixelFormat = C.AV_PIX_FMT_Y400A ///< alias for AV_PIX_FMT_YA8 AV_PIX_FMT_GRAY8A AVPixelFormat = C.AV_PIX_FMT_GRAY8A ///< alias for AV_PIX_FMT_YA8 AV_PIX_FMT_BGR48BE AVPixelFormat = C.AV_PIX_FMT_BGR48BE ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big-endian AV_PIX_FMT_BGR48LE AVPixelFormat = C.AV_PIX_FMT_BGR48LE ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as little-endian AV_PIX_FMT_YUV420P9BE AVPixelFormat = C.AV_PIX_FMT_YUV420P9BE ///< planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian AV_PIX_FMT_YUV420P9LE AVPixelFormat = C.AV_PIX_FMT_YUV420P9LE ///< planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian AV_PIX_FMT_YUV420P10BE AVPixelFormat = C.AV_PIX_FMT_YUV420P10BE ///< planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian AV_PIX_FMT_YUV420P10LE AVPixelFormat = C.AV_PIX_FMT_YUV420P10LE ///< planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian AV_PIX_FMT_YUV422P10BE AVPixelFormat = C.AV_PIX_FMT_YUV422P10BE ///< planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_YUV422P10LE AVPixelFormat = C.AV_PIX_FMT_YUV422P10LE ///< planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_YUV444P9BE AVPixelFormat = C.AV_PIX_FMT_YUV444P9BE ///< planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian AV_PIX_FMT_YUV444P9LE AVPixelFormat = C.AV_PIX_FMT_YUV444P9LE ///< planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian AV_PIX_FMT_YUV444P10BE AVPixelFormat = C.AV_PIX_FMT_YUV444P10BE ///< planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian AV_PIX_FMT_YUV444P10LE AVPixelFormat = C.AV_PIX_FMT_YUV444P10LE ///< planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian AV_PIX_FMT_YUV422P9BE AVPixelFormat = C.AV_PIX_FMT_YUV422P9BE ///< planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_YUV422P9LE AVPixelFormat = C.AV_PIX_FMT_YUV422P9LE ///< planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_GBRP AVPixelFormat = C.AV_PIX_FMT_GBRP ///< planar GBR 4:4:4 24bpp AV_PIX_FMT_GBR24P AVPixelFormat = C.AV_PIX_FMT_GBR24P // alias for #AV_PIX_FMT_GBRP AV_PIX_FMT_GBRP9BE AVPixelFormat = C.AV_PIX_FMT_GBRP9BE ///< planar GBR 4:4:4 27bpp, big-endian AV_PIX_FMT_GBRP9LE AVPixelFormat = C.AV_PIX_FMT_GBRP9LE ///< planar GBR 4:4:4 27bpp, little-endian AV_PIX_FMT_GBRP10BE AVPixelFormat = C.AV_PIX_FMT_GBRP10BE ///< planar GBR 4:4:4 30bpp, big-endian AV_PIX_FMT_GBRP10LE AVPixelFormat = C.AV_PIX_FMT_GBRP10LE ///< planar GBR 4:4:4 30bpp, little-endian AV_PIX_FMT_GBRP16BE AVPixelFormat = C.AV_PIX_FMT_GBRP16BE ///< planar GBR 4:4:4 48bpp, big-endian AV_PIX_FMT_GBRP16LE AVPixelFormat = C.AV_PIX_FMT_GBRP16LE ///< planar GBR 4:4:4 48bpp, little-endian AV_PIX_FMT_YUVA422P AVPixelFormat = C.AV_PIX_FMT_YUVA422P ///< planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples) AV_PIX_FMT_YUVA444P AVPixelFormat = C.AV_PIX_FMT_YUVA444P ///< planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples) AV_PIX_FMT_YUVA420P9BE AVPixelFormat = C.AV_PIX_FMT_YUVA420P9BE ///< planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), big-endian AV_PIX_FMT_YUVA420P9LE AVPixelFormat = C.AV_PIX_FMT_YUVA420P9LE ///< planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), little-endian AV_PIX_FMT_YUVA422P9BE AVPixelFormat = C.AV_PIX_FMT_YUVA422P9BE ///< planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), big-endian AV_PIX_FMT_YUVA422P9LE AVPixelFormat = C.AV_PIX_FMT_YUVA422P9LE ///< planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), little-endian AV_PIX_FMT_YUVA444P9BE AVPixelFormat = C.AV_PIX_FMT_YUVA444P9BE ///< planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), big-endian AV_PIX_FMT_YUVA444P9LE AVPixelFormat = C.AV_PIX_FMT_YUVA444P9LE ///< planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), little-endian AV_PIX_FMT_YUVA420P10BE AVPixelFormat = C.AV_PIX_FMT_YUVA420P10BE ///< planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian) AV_PIX_FMT_YUVA420P10LE AVPixelFormat = C.AV_PIX_FMT_YUVA420P10LE ///< planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian) AV_PIX_FMT_YUVA422P10BE AVPixelFormat = C.AV_PIX_FMT_YUVA422P10BE ///< planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian) AV_PIX_FMT_YUVA422P10LE AVPixelFormat = C.AV_PIX_FMT_YUVA422P10LE ///< planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian) AV_PIX_FMT_YUVA444P10BE AVPixelFormat = C.AV_PIX_FMT_YUVA444P10BE ///< planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian) AV_PIX_FMT_YUVA444P10LE AVPixelFormat = C.AV_PIX_FMT_YUVA444P10LE ///< planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian) AV_PIX_FMT_YUVA420P16BE AVPixelFormat = C.AV_PIX_FMT_YUVA420P16BE ///< planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian) AV_PIX_FMT_YUVA420P16LE AVPixelFormat = C.AV_PIX_FMT_YUVA420P16LE ///< planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian) AV_PIX_FMT_YUVA422P16BE AVPixelFormat = C.AV_PIX_FMT_YUVA422P16BE ///< planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian) AV_PIX_FMT_YUVA422P16LE AVPixelFormat = C.AV_PIX_FMT_YUVA422P16LE ///< planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian) AV_PIX_FMT_YUVA444P16BE AVPixelFormat = C.AV_PIX_FMT_YUVA444P16BE ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian) AV_PIX_FMT_YUVA444P16LE AVPixelFormat = C.AV_PIX_FMT_YUVA444P16LE ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian) AV_PIX_FMT_VDPAU AVPixelFormat = C.AV_PIX_FMT_VDPAU ///< HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface AV_PIX_FMT_XYZ12LE AVPixelFormat = C.AV_PIX_FMT_XYZ12LE ///< packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as little-endian, the 4 lower bits are set to 0 AV_PIX_FMT_XYZ12BE AVPixelFormat = C.AV_PIX_FMT_XYZ12BE ///< packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as big-endian, the 4 lower bits are set to 0 AV_PIX_FMT_NV16 AVPixelFormat = C.AV_PIX_FMT_NV16 ///< interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) AV_PIX_FMT_NV20LE AVPixelFormat = C.AV_PIX_FMT_NV20LE ///< interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_NV20BE AVPixelFormat = C.AV_PIX_FMT_NV20BE ///< interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_RGBA64BE AVPixelFormat = C.AV_PIX_FMT_RGBA64BE ///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian AV_PIX_FMT_RGBA64LE AVPixelFormat = C.AV_PIX_FMT_RGBA64LE ///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian AV_PIX_FMT_BGRA64BE AVPixelFormat = C.AV_PIX_FMT_BGRA64BE ///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian AV_PIX_FMT_BGRA64LE AVPixelFormat = C.AV_PIX_FMT_BGRA64LE ///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian AV_PIX_FMT_YVYU422 AVPixelFormat = C.AV_PIX_FMT_YVYU422 ///< packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb AV_PIX_FMT_YA16BE AVPixelFormat = C.AV_PIX_FMT_YA16BE ///< 16 bits gray, 16 bits alpha (big-endian) AV_PIX_FMT_YA16LE AVPixelFormat = C.AV_PIX_FMT_YA16LE ///< 16 bits gray, 16 bits alpha (little-endian) AV_PIX_FMT_GBRAP AVPixelFormat = C.AV_PIX_FMT_GBRAP ///< planar GBRA 4:4:4:4 32bpp AV_PIX_FMT_GBRAP16BE AVPixelFormat = C.AV_PIX_FMT_GBRAP16BE ///< planar GBRA 4:4:4:4 64bpp, big-endian AV_PIX_FMT_GBRAP16LE AVPixelFormat = C.AV_PIX_FMT_GBRAP16LE ///< planar GBRA 4:4:4:4 64bpp, little-endian AV_PIX_FMT_QSV AVPixelFormat = C.AV_PIX_FMT_QSV AV_PIX_FMT_MMAL AVPixelFormat = C.AV_PIX_FMT_MMAL AV_PIX_FMT_D3D11VA_VLD AVPixelFormat = C.AV_PIX_FMT_D3D11VA_VLD ///< HW decoding through Direct3D11 via old API, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer AV_PIX_FMT_CUDA AVPixelFormat = C.AV_PIX_FMT_CUDA AV_PIX_FMT_0RGB AVPixelFormat = C.AV_PIX_FMT_0RGB ///< packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined AV_PIX_FMT_RGB0 AVPixelFormat = C.AV_PIX_FMT_RGB0 ///< packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined AV_PIX_FMT_0BGR AVPixelFormat = C.AV_PIX_FMT_0BGR ///< packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined AV_PIX_FMT_BGR0 AVPixelFormat = C.AV_PIX_FMT_BGR0 ///< packed BGR 8:8:8, 32bpp, BGRXBGRX... X=unused/undefined AV_PIX_FMT_YUV420P12BE AVPixelFormat = C.AV_PIX_FMT_YUV420P12BE ///< planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian AV_PIX_FMT_YUV420P12LE AVPixelFormat = C.AV_PIX_FMT_YUV420P12LE ///< planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian AV_PIX_FMT_YUV420P14BE AVPixelFormat = C.AV_PIX_FMT_YUV420P14BE ///< planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian AV_PIX_FMT_YUV420P14LE AVPixelFormat = C.AV_PIX_FMT_YUV420P14LE ///< planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian AV_PIX_FMT_YUV422P12BE AVPixelFormat = C.AV_PIX_FMT_YUV422P12BE ///< planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_YUV422P12LE AVPixelFormat = C.AV_PIX_FMT_YUV422P12LE ///< planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_YUV422P14BE AVPixelFormat = C.AV_PIX_FMT_YUV422P14BE ///< planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian AV_PIX_FMT_YUV422P14LE AVPixelFormat = C.AV_PIX_FMT_YUV422P14LE ///< planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian AV_PIX_FMT_YUV444P12BE AVPixelFormat = C.AV_PIX_FMT_YUV444P12BE ///< planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian AV_PIX_FMT_YUV444P12LE AVPixelFormat = C.AV_PIX_FMT_YUV444P12LE ///< planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian AV_PIX_FMT_YUV444P14BE AVPixelFormat = C.AV_PIX_FMT_YUV444P14BE ///< planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian AV_PIX_FMT_YUV444P14LE AVPixelFormat = C.AV_PIX_FMT_YUV444P14LE ///< planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian AV_PIX_FMT_GBRP12BE AVPixelFormat = C.AV_PIX_FMT_GBRP12BE ///< planar GBR 4:4:4 36bpp, big-endian AV_PIX_FMT_GBRP12LE AVPixelFormat = C.AV_PIX_FMT_GBRP12LE ///< planar GBR 4:4:4 36bpp, little-endian AV_PIX_FMT_GBRP14BE AVPixelFormat = C.AV_PIX_FMT_GBRP14BE ///< planar GBR 4:4:4 42bpp, big-endian AV_PIX_FMT_GBRP14LE AVPixelFormat = C.AV_PIX_FMT_GBRP14LE ///< planar GBR 4:4:4 42bpp, little-endian AV_PIX_FMT_YUVJ411P AVPixelFormat = C.AV_PIX_FMT_YUVJ411P ///< planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV411P and setting color_range AV_PIX_FMT_BAYER_BGGR8 AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR8 ///< bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples AV_PIX_FMT_BAYER_RGGB8 AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB8 ///< bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples AV_PIX_FMT_BAYER_GBRG8 AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG8 ///< bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples AV_PIX_FMT_BAYER_GRBG8 AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG8 ///< bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples AV_PIX_FMT_BAYER_BGGR16LE AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR16LE ///< bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian AV_PIX_FMT_BAYER_BGGR16BE AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR16BE ///< bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian AV_PIX_FMT_BAYER_RGGB16LE AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB16LE ///< bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian AV_PIX_FMT_BAYER_RGGB16BE AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB16BE ///< bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian AV_PIX_FMT_BAYER_GBRG16LE AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG16LE ///< bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian AV_PIX_FMT_BAYER_GBRG16BE AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG16BE ///< bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian AV_PIX_FMT_BAYER_GRBG16LE AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG16LE ///< bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian AV_PIX_FMT_BAYER_GRBG16BE AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG16BE ///< bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian AV_PIX_FMT_YUV440P10LE AVPixelFormat = C.AV_PIX_FMT_YUV440P10LE ///< planar YUV 4:4:0,20bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian AV_PIX_FMT_YUV440P10BE AVPixelFormat = C.AV_PIX_FMT_YUV440P10BE ///< planar YUV 4:4:0,20bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian AV_PIX_FMT_YUV440P12LE AVPixelFormat = C.AV_PIX_FMT_YUV440P12LE ///< planar YUV 4:4:0,24bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian AV_PIX_FMT_YUV440P12BE AVPixelFormat = C.AV_PIX_FMT_YUV440P12BE ///< planar YUV 4:4:0,24bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian AV_PIX_FMT_AYUV64LE AVPixelFormat = C.AV_PIX_FMT_AYUV64LE ///< packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), little-endian AV_PIX_FMT_AYUV64BE AVPixelFormat = C.AV_PIX_FMT_AYUV64BE ///< packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), big-endian AV_PIX_FMT_VIDEOTOOLBOX AVPixelFormat = C.AV_PIX_FMT_VIDEOTOOLBOX ///< hardware decoding through Videotoolbox AV_PIX_FMT_P010LE AVPixelFormat = C.AV_PIX_FMT_P010LE ///< like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, little-endian AV_PIX_FMT_P010BE AVPixelFormat = C.AV_PIX_FMT_P010BE ///< like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, big-endian AV_PIX_FMT_GBRAP12BE AVPixelFormat = C.AV_PIX_FMT_GBRAP12BE ///< planar GBR 4:4:4:4 48bpp, big-endian AV_PIX_FMT_GBRAP12LE AVPixelFormat = C.AV_PIX_FMT_GBRAP12LE ///< planar GBR 4:4:4:4 48bpp, little-endian AV_PIX_FMT_GBRAP10BE AVPixelFormat = C.AV_PIX_FMT_GBRAP10BE ///< planar GBR 4:4:4:4 40bpp, big-endian AV_PIX_FMT_GBRAP10LE AVPixelFormat = C.AV_PIX_FMT_GBRAP10LE ///< planar GBR 4:4:4:4 40bpp, little-endian AV_PIX_FMT_MEDIACODEC AVPixelFormat = C.AV_PIX_FMT_MEDIACODEC ///< hardware decoding through MediaCodec AV_PIX_FMT_GRAY12BE AVPixelFormat = C.AV_PIX_FMT_GRAY12BE ///< Y , 12bpp, big-endian AV_PIX_FMT_GRAY12LE AVPixelFormat = C.AV_PIX_FMT_GRAY12LE ///< Y , 12bpp, little-endian AV_PIX_FMT_GRAY10BE AVPixelFormat = C.AV_PIX_FMT_GRAY10BE ///< Y , 10bpp, big-endian AV_PIX_FMT_GRAY10LE AVPixelFormat = C.AV_PIX_FMT_GRAY10LE ///< Y , 10bpp, little-endian AV_PIX_FMT_P016LE AVPixelFormat = C.AV_PIX_FMT_P016LE ///< like NV12, with 16bpp per component, little-endian AV_PIX_FMT_P016BE AVPixelFormat = C.AV_PIX_FMT_P016BE ///< like NV12, with 16bpp per component, big-endian AV_PIX_FMT_D3D11 AVPixelFormat = C.AV_PIX_FMT_D3D11 AV_PIX_FMT_GRAY9BE AVPixelFormat = C.AV_PIX_FMT_GRAY9BE ///< Y , 9bpp, big-endian AV_PIX_FMT_GRAY9LE AVPixelFormat = C.AV_PIX_FMT_GRAY9LE ///< Y , 9bpp, little-endian AV_PIX_FMT_GBRPF32BE AVPixelFormat = C.AV_PIX_FMT_GBRPF32BE ///< IEEE-754 single precision planar GBR 4:4:4, 96bpp, big-endian AV_PIX_FMT_GBRPF32LE AVPixelFormat = C.AV_PIX_FMT_GBRPF32LE ///< IEEE-754 single precision planar GBR 4:4:4, 96bpp, little-endian AV_PIX_FMT_GBRAPF32BE AVPixelFormat = C.AV_PIX_FMT_GBRAPF32BE ///< IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, big-endian AV_PIX_FMT_GBRAPF32LE AVPixelFormat = C.AV_PIX_FMT_GBRAPF32LE ///< IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, little-endian AV_PIX_FMT_DRM_PRIME AVPixelFormat = C.AV_PIX_FMT_DRM_PRIME AV_PIX_FMT_OPENCL AVPixelFormat = C.AV_PIX_FMT_OPENCL AV_PIX_FMT_GRAY14BE AVPixelFormat = C.AV_PIX_FMT_GRAY14BE ///< Y , 14bpp, big-endian AV_PIX_FMT_GRAY14LE AVPixelFormat = C.AV_PIX_FMT_GRAY14LE ///< Y , 14bpp, little-endian AV_PIX_FMT_GRAYF32BE AVPixelFormat = C.AV_PIX_FMT_GRAYF32BE ///< IEEE-754 single precision Y, 32bpp, big-endian AV_PIX_FMT_GRAYF32LE AVPixelFormat = C.AV_PIX_FMT_GRAYF32LE ///< IEEE-754 single precision Y, 32bpp, little-endian AV_PIX_FMT_YUVA422P12BE AVPixelFormat = C.AV_PIX_FMT_YUVA422P12BE ///< planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, big-endian AV_PIX_FMT_YUVA422P12LE AVPixelFormat = C.AV_PIX_FMT_YUVA422P12LE ///< planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, little-endian AV_PIX_FMT_YUVA444P12BE AVPixelFormat = C.AV_PIX_FMT_YUVA444P12BE ///< planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, big-endian AV_PIX_FMT_YUVA444P12LE AVPixelFormat = C.AV_PIX_FMT_YUVA444P12LE ///< planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, little-endian AV_PIX_FMT_NV24 AVPixelFormat = C.AV_PIX_FMT_NV24 ///< planar YUV 4:4:4, 24bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V) AV_PIX_FMT_NV42 AVPixelFormat = C.AV_PIX_FMT_NV42 ///< as above, but U and V bytes are swapped AV_PIX_FMT_VULKAN AVPixelFormat = C.AV_PIX_FMT_VULKAN AV_PIX_FMT_Y210BE AVPixelFormat = C.AV_PIX_FMT_Y210BE ///< packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, big-endian AV_PIX_FMT_Y210LE AVPixelFormat = C.AV_PIX_FMT_Y210LE ///< packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, little-endian AV_PIX_FMT_X2RGB10LE AVPixelFormat = C.AV_PIX_FMT_X2RGB10LE ///< packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), little-endian, X=unused/undefined AV_PIX_FMT_X2RGB10BE AVPixelFormat = C.AV_PIX_FMT_X2RGB10BE ///< packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), big-endian, X=unused/undefined AV_PIX_FMT_X2BGR10LE AVPixelFormat = C.AV_PIX_FMT_X2BGR10LE ///< packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), little-endian, X=unused/undefined AV_PIX_FMT_X2BGR10BE AVPixelFormat = C.AV_PIX_FMT_X2BGR10BE ///< packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), big-endian, X=unused/undefined AV_PIX_FMT_P210BE AVPixelFormat = C.AV_PIX_FMT_P210BE ///< interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, big-endian AV_PIX_FMT_P210LE AVPixelFormat = C.AV_PIX_FMT_P210LE ///< interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, little-endian AV_PIX_FMT_P410BE AVPixelFormat = C.AV_PIX_FMT_P410BE ///< interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, big-endian AV_PIX_FMT_P410LE AVPixelFormat = C.AV_PIX_FMT_P410LE ///< interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, little-endian AV_PIX_FMT_P216BE AVPixelFormat = C.AV_PIX_FMT_P216BE ///< interleaved chroma YUV 4:2:2, 32bpp, big-endian AV_PIX_FMT_P216LE AVPixelFormat = C.AV_PIX_FMT_P216LE ///< interleaved chroma YUV 4:2:2, 32bpp, little-endian AV_PIX_FMT_P416BE AVPixelFormat = C.AV_PIX_FMT_P416BE ///< interleaved chroma YUV 4:4:4, 48bpp, big-endian AV_PIX_FMT_P416LE AVPixelFormat = C.AV_PIX_FMT_P416LE ///< interleaved chroma YUV 4:4:4, 48bpp, little-endian )
func AVUtil_get_pix_fmt ¶ added in v1.6.3
func AVUtil_get_pix_fmt(name string) AVPixelFormat
Return the pixel format corresponding to name. If no pixel format has been found, returns AV_PIX_FMT_NONE
func AVUtil_next_pixel_fmt ¶ added in v1.6.3
func AVUtil_next_pixel_fmt(iterator *uintptr) AVPixelFormat
Enumerate pixel formats
func (AVPixelFormat) MarshalJSON ¶
func (v AVPixelFormat) MarshalJSON() ([]byte, error)
func (AVPixelFormat) String ¶
func (v AVPixelFormat) String() string
type AVProfile ¶
func (AVProfile) MarshalJSON ¶
type AVRational ¶
type AVRational C.AVRational
func AVUtil_rational_d2q ¶ added in v1.6.3
func AVUtil_rational_d2q(d float64, max int) AVRational
func (AVRational) Float ¶
func (r AVRational) Float(multiplier int64) float64
Float is used to convert an int64 value multipled by the rational to a float64
func (AVRational) IsZero ¶
func (r AVRational) IsZero() bool
IsZero returns true if the rational is zero
func (AVRational) MarshalJSON ¶
func (r AVRational) MarshalJSON() ([]byte, error)
func (AVRational) String ¶
func (r AVRational) String() string
type AVRounding ¶
type AVRounding C.enum_AVRounding
const ( AV_ROUND_ZERO AVRounding = C.AV_ROUND_ZERO // Round toward zero. AV_ROUND_INF AVRounding = C.AV_ROUND_INF // Round away from zero. AV_ROUND_DOWN AVRounding = C.AV_ROUND_DOWN // Round toward -infinity. AV_ROUND_UP AVRounding = C.AV_ROUND_UP // Round toward +infinity. AV_ROUND_NEAR_INF AVRounding = C.AV_ROUND_NEAR_INF // Round to nearest and halfway cases away from zero. AV_ROUND_PASS_MINMAX AVRounding = C.AV_ROUND_PASS_MINMAX // Flag to pass INT64_MIN/MAX through instead of rescaling, this avoids special cases for AV_NOPTS_VALUE )
type AVSampleFormat ¶
type AVSampleFormat C.enum_AVSampleFormat
const ( AV_SAMPLE_FMT_NONE AVSampleFormat = C.AV_SAMPLE_FMT_NONE AV_SAMPLE_FMT_U8 AVSampleFormat = C.AV_SAMPLE_FMT_U8 AV_SAMPLE_FMT_S16 AVSampleFormat = C.AV_SAMPLE_FMT_S16 AV_SAMPLE_FMT_S32 AVSampleFormat = C.AV_SAMPLE_FMT_S32 AV_SAMPLE_FMT_FLT AVSampleFormat = C.AV_SAMPLE_FMT_FLT AV_SAMPLE_FMT_DBL AVSampleFormat = C.AV_SAMPLE_FMT_DBL AV_SAMPLE_FMT_U8P AVSampleFormat = C.AV_SAMPLE_FMT_U8P AV_SAMPLE_FMT_S16P AVSampleFormat = C.AV_SAMPLE_FMT_S16P AV_SAMPLE_FMT_S32P AVSampleFormat = C.AV_SAMPLE_FMT_S32P AV_SAMPLE_FMT_FLTP AVSampleFormat = C.AV_SAMPLE_FMT_FLTP AV_SAMPLE_FMT_DBLP AVSampleFormat = C.AV_SAMPLE_FMT_DBLP AV_SAMPLE_FMT_S64 AVSampleFormat = C.AV_SAMPLE_FMT_S64 AV_SAMPLE_FMT_S64P AVSampleFormat = C.AV_SAMPLE_FMT_S64P AV_SAMPLE_FMT_NB AVSampleFormat = C.AV_SAMPLE_FMT_NB )
func AVUtil_get_packed_sample_fmt ¶
func AVUtil_get_packed_sample_fmt(sample_fmt AVSampleFormat) AVSampleFormat
Get the packed alternative form of the given sample format. If the passed sample_fmt is already in packed format, the format returned is the same as the input.
func AVUtil_get_planar_sample_fmt ¶
func AVUtil_get_planar_sample_fmt(sample_fmt AVSampleFormat) AVSampleFormat
Get the planar alternative form of the given sample format. If the passed sample_fmt is already in planar format, the format returned is the same as the input.
func AVUtil_get_sample_fmt ¶
func AVUtil_get_sample_fmt(name string) AVSampleFormat
Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error.
func AVUtil_next_sample_fmt ¶ added in v1.6.3
func AVUtil_next_sample_fmt(iterator *uintptr) AVSampleFormat
Enumerate sample formats
func (AVSampleFormat) MarshalJSON ¶
func (v AVSampleFormat) MarshalJSON() ([]byte, error)
func (AVSampleFormat) String ¶
func (v AVSampleFormat) String() string
type AVSamples ¶
type AVSamples struct {
// contains filtered or unexported fields
}
func AVUtil_samples_alloc ¶
func AVUtil_samples_alloc(nb_samples, nb_channels int, sample_fmt AVSampleFormat, align bool) (*AVSamples, error)
Allocate a samples buffer for nb_samples samples. Return allocated data for each plane, and the stride.
func (*AVSamples) NumChannels ¶
func (*AVSamples) NumSamples ¶
type AVStream ¶
type AVStream C.struct_AVStream
func AVFormat_new_stream ¶
func AVFormat_new_stream(ctx *AVFormatContext, c *AVCodec) *AVStream
func (*AVStream) CodecPar ¶
func (ctx *AVStream) CodecPar() *AVCodecParameters
func (*AVStream) MarshalJSON ¶
func (*AVStream) SetTimeBase ¶
func (ctx *AVStream) SetTimeBase(time_base AVRational)
func (*AVStream) TimeBase ¶
func (ctx *AVStream) TimeBase() AVRational
type AVTimestamp ¶
func (AVTimestamp) MarshalJSON ¶
func (v AVTimestamp) MarshalJSON() ([]byte, error)
type SWRContext ¶
type SWRContext C.struct_SwrContext
type SWSContext ¶
type SWSContext C.struct_SwsContext
func SWScale_get_context ¶
func SWScale_get_context(src_width, src_height int, src_format AVPixelFormat, dst_width, dst_height int, dst_format AVPixelFormat, flags SWSFlag, src_filter, dst_filter *SWSFilter, param []float64) *SWSContext
Allocate and return an SwsContext.
type SWSFilter ¶
type SWSFilter C.struct_SwsFilter
type SWSFlag ¶
const ( SWS_NONE SWSFlag = 0 SWS_FAST_BILINEAR SWSFlag = C.SWS_FAST_BILINEAR SWS_BILINEAR SWSFlag = C.SWS_BILINEAR SWS_BICUBIC SWSFlag = C.SWS_BICUBIC SWS_X SWSFlag = C.SWS_X SWS_POINT SWSFlag = C.SWS_POINT SWS_AREA SWSFlag = C.SWS_AREA SWS_BICUBLIN SWSFlag = C.SWS_BICUBLIN SWS_GAUSS SWSFlag = C.SWS_GAUSS SWS_SINC SWSFlag = C.SWS_SINC SWS_LANCZOS SWSFlag = C.SWS_LANCZOS SWS_SPLINE SWSFlag = C.SWS_SPLINE SWS_MIN = SWS_FAST_BILINEAR SWS_MAX = SWS_SPLINE )
func (SWSFlag) FlagString ¶
Source Files
¶
- avcodec.go
- avcodec_core.go
- avcodec_decoding.go
- avcodec_encoding.go
- avcodec_packet.go
- avcodec_parser.go
- avcodec_version.go
- avdevice.go
- avdevice_core.go
- avdevice_input.go
- avdevice_output.go
- avdevice_version.go
- avformat.go
- avformat_avio.go
- avformat_core.go
- avformat_demux.go
- avformat_dump.go
- avformat_flags.go
- avformat_input.go
- avformat_mux.go
- avformat_output.go
- avformat_stream.go
- avformat_version.go
- avutil.go
- avutil_channel_layout.go
- avutil_dict.go
- avutil_error.go
- avutil_frame.go
- avutil_image.go
- avutil_math.go
- avutil_mediatype.go
- avutil_parse.go
- avutil_picturetype.go
- avutil_pixfmt.go
- avutil_rational.go
- avutil_samplefmt.go
- avutil_samples.go
- avutil_time.go
- avutil_version.go
- doc.go
- swresample.go
- swresample_convert.go
- swresample_core.go
- swresample_opts.go
- swresample_version.go
- swscale.go
- swscale_core.go
- swscale_version.go
- util.go