ffmpeg

package module
v0.0.0-...-522ef5c Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 6 Imported by: 0

README

ffmpeg-statigo

Real FFmpeg bindings for Go. Not a wrapper. Not a CLI tool. The actual libraries.

Cross-platform, static FFmpeg libraries bundled directly into your Go binary. Hardware acceleration included. Zero runtime dependencies. Ship it and forget it.

Why This Exists

Every other Go ffmpeg projects wrap the ffmpeg command, ffmpeg-statigo gives you the actual FFmpeg C libraries with proper Go bindings. Build once, deploy anywhere. No hunting for system FFmpeg. No version mismatches. Predictable codec support.

Features

  • FFmpeg 8.0.1 - Latest release with AV1, H.265, H.264, VP8/9
  • Truly static - Builds into your binary (just needs system m and stdc++ libraries)
  • Cross-platform - Linux and macOS (arm64, amd64)
  • Hardware acceleration - NVENC/NVDEC, QuickSync, VA-API, VideoToolbox, and Vulkan support
  • GPL build - x264, x265, and all the good codecs included
  • Auto-generated - Thin, predictable bindings directly from FFmpeg headers
  • Preserved documentation - Original FFmpeg comments in your IDE

Hard fork of the excellent csnewman/ffmpeg-go, modernised with FFmpeg 8.0.x, Go 1.24, hardware acceleration, ~85% FFmpeg API coverage, and a 99.5% smaller git history.

Installation

Static libraries (~100MB per platform) cannot be distributed via go get. Use as a git submodule with a replace directive:

  1. Add submodule: git submodule add https://github.com/linuxmatters/ffmpeg-statigo third_party/ffmpeg-statigo
  2. Add replace directive to go.mod: replace github.com/linuxmatters/ffmpeg-statigo => ./third_party/ffmpeg-statigo
  3. Download libraries: cd third_party/ffmpeg-statigo && go run ./cmd/download-lib
  4. Configure git for submodule-friendly pulls: git config pull.ff only && git config submodule.recurse true
  5. Build: go build ./...

Step 4 prevents git pull --rebase from breaking submodule references. Fast-forward only pulls ensure submodule commits stay in sync with the parent repository.

Static libraries are gitignored—only the submodule reference is committed.

See docs/DEVELOPMENT.md for CI/CD integration, cross-compilation, and troubleshooting.

Codec Inclusion Policy

ffmpeg-statigo provides a curated FFmpeg static library focused on the core strengths of FFmpeg: decoding, processing, and encoding audio and video streams. ffmpeg-statigo is designed for Go developers building modern streaming applications. The pattern is:

  1. Generate content in Go - Text, graphics, effects using Go's excellent libraries
  2. Feed frames to FFmpeg - Use ffmpeg-statigo for encoding and stream processing
  3. Let FFmpeg handle codecs - Hardware acceleration, format conversion, container muxing
What's Included
  • Decoders: All contemporary formats (H.264, H.265, AV1, VP8/9, Opus, AAC, MP3)
  • Encoders: Modern codecs for streaming and transcoding (x264, x265, dav1d, rav1e, vpx, lame, opus)
  • Hardware acceleration: NVENC, QuickSync, VA-API, VideoToolbox, Vulkan Video
  • Containers: MP4, MKV, WebM, DASH, HLS, and all major formats
  • Filters: Video scaling, colour conversion, audio resampling, and processing filters
  • Streaming protocols: RTMP, SRT, HLS, DASH

Building something that deals with video? You're probably covered:

  • Streaming platform (your own Twitch/YouTube/Owncast)
  • Content management system with media handling
  • Social media app with video uploads
  • Video conferencing service
  • Transcoding pipeline for your media library
  • Home media server ripping DVDs/Blu-rays
  • Web-based media player
  • Broadcasting tool or modern content creation workflow
What's Intentionally Absent

Some FFmpeg features commonly found in the ffmpeg CLI tool are not included because they're better implemented in Go:

  • drawtext filter - Use Go's image/draw + golang.org/x/image/font packages instead
  • Font libraries (freetype, harfbuzz, fontconfig) - Not needed when rendering in Go
  • subtitles and ass filters - Use separate subtitle streams instead
  • libass - Subtitle rendering library not needed
    • FFmpeg can still copy, extract, and mux subtitle streams without libass.

The excluded features can be added back if a compelling use case emerges. ffmpeg-statigo is a living project and the curated library evolves based on real-world needs.

If you need complete FFmpeg with all filters, use the official FFmpeg distribution. If you need modern streaming codecs with Go integration, ffmpeg-statigo is designed for you.

Library versions
Library Version Description
FFmpeg 8.0.1 A complete, cross-platform solution to record, convert and stream audio and video
dav1d 1.5.2 AV1 cross-platform decoder, open-source, and focused on speed, size and correctness
glslang 15.4.0 Khronos-reference front end for GLSL/ESSL and a SPIR-V generator
libdrm 2.4.129 Direct Rendering Manager library and headers (Linux only)
libiconv 1.18 A character set conversion library (macOS only)
libsrt 1.5.5-rc.0a A transport protocol for ultra low latency live video and audio streaming
libva 2.22.0 An implementation for VA-API (Video Acceleration API) (Linux only)
libvpl 2.15.0 Intel Video Processing Library (Intel VPL) API (Linux only)
libvpx 1.15.2 High-quality, open video format for the web that's freely available to everyone
libwebp 1.6.0 A modern image format providing superior lossless and lossy compression
libxml2 2.15.1 An XML parser and toolkit implemented in C
mp3lame 3.100 A high quality MPEG Audio Layer III (MP3) encoder
nv-codec-headers 12.2.72.0 Headers required to interface with Nvidias codec APIs (Linux only)
openssl 3.6.0 Open Source Toolkit for the TLS, DTLS, and QUIC protocols.
opus 1.5.2 A totally open, royalty-free, highly versatile audio codec
rav1e 0.8.1 The fastest and safest AV1 encoder.
Vulkan-Headers 1.4.335 Vulkan header files and API registry
x264 head H.264/MPEG-4 AVC compression format library for encoding video streams
x265 head H.265/MPEG-H HEVC compression format library for encoding video streams
zimg 3.0.6 Scaling, colorspace conversion, and dithering library
zlib 1.3.1 A Massively Spiffy Yet Delicately Unobtrusive Compression Library

VVenC 1.13.1 (Fraunhofer Versatile Video Encoder, a fast & efficient software H.266/VVC encoder) is in the build configuration, but currently disabled, as it adds ~25MB to the static ffmpeg library and is too slow for practical use.

Enabled Codecs

Details of codecs, muxers and parsers available in enable in the static ffmpeg library that ffmpeg-statigo ships are documented in docs/CODECS.md.

Hardware Acceleration Support Matrix
Codec NVENC (Linux) VA-API (Linux) QuickSync (Linux) VideoToolbox (macOS) Vulkan Video (Cross-platform)
AV1 ✅ Encode/Decode ☑️ Encode ✅ Encode/Decode ☑️ Decode ✅ Encode/Decode
H.266/VVC ☑️ Decode ☑️ Decode
H.265/HEVC ✅ Encode/Decode ☑️ Encode ✅ Encode/Decode ✅ Encode/Decode ✅ Encode/Decode
H.264/AVC ✅ Encode/Decode ☑️ Encode ✅ Encode/Decode ✅ Encode/Decode ✅ Encode/Decode
VP9 ✅ Encode/Decode ☑️ Encode ✅ Encode/Decode ☑️ Decode
VP8 ☑️ Decode ☑️ Encode ☑️ Decode
MPEG-2 ☑️ Decode ☑️ Encode ✅ Encode/Decode
MJPEG ☑️ Decode ☑️ Encode ✅ Encode/Decode
Capabilities
  • NVENC/NVDEC: Most NVIDIA GPUs come with NVENC/NVDEC support but some low-end and mobile models are exceptions.
    • Decoding & Encoding H.264 8-bit - Any NVIDIA GPU supporting NVENC/NVDEC
    • Decoding & Encoding HEVC 8-bit - Maxwell 2nd Gen (GM206) and newer
    • Decoding HEVC 10-bit - Maxwell 2nd Gen (GM206) and newer
    • Encoding HEVC 10-bit - Pascal and newer
    • Decoding AV1 8/10-bit - Ampere and newer
    • Encoding AV1 8/10-bit - Ada Lovelace and newer
  • VA-API: Video Acceleration API for Intel, AMD, and NVIDIA (via nvidia-vaapi-driver) GPUs on Linux. Provides hardware encoding; decoding uses FFmpeg's hwaccel framework.
    • Encoding H.264, HEVC, AV1, VP8, VP9, MPEG-2, MJPEG - Hardware dependent
    • Intel: Use iHD driver (intel-media-driver) for broadest codec support
    • AMD: Use radeonsi driver (Mesa) for RDNA/GCN GPUs
    • NVIDIA: Use nvidia driver (nvidia-vaapi-driver) which translates to NVENC
  • QuickSync (QSV): Requires Intel CPU (11th gen Tiger Lake+) or Intel Arc GPU. Uses libvpl/oneVPL dispatcher. Older Intel CPUs (6th-10th gen) should use VA-API instead.
    • Decoding & Encoding H.264 8-bit - Any Intel GPU that supports Quick Sync Video
    • Decoding & Encoding HEVC 8-bit - Gen 9 Skylake (6th Gen Core) and newer
    • Decoding & Encoding HEVC 10-bit - Gen 9.5 Kaby Lake (7th Gen Core), Apollo Lake, Gemini Lake (Pentium and Celeron) and newer
    • Decoding AV1 8/10-bit - Gen 12 Tiger Lake (11th Gen Core) and newer
    • Encoding AV1 8/10-bit - Gen 12.5 DG2 / ARC A-series, Gen 12.7 Meteor Lake (14th Gen Core Mobile / 1st Gen Core Ultra) and newer
    • VP9 requires 7th gen Kaby Lake or newer
  • VideoToolbox: Available on macOS with Apple Silicon or Intel Macs with hardware support.
    • Decoding & Encoding H.264 8-bit - Any VideoToolbox-supported Mac.
    • Decoding & Encoding HEVC 8/10-bit - Macs from 2017 and later
    • Decoding AV1 8/10-bit - Requires an M3 series Apple Silicon Mac
  • Vulkan Video: Works with any GPU that has Vulkan 1.3+ drivers.
    • Decoding & Encoding H.264 8-bit
    • Decoding & Encoding HEVC 8/10-bit
    • Decoding & Encoding AV1 8/10-bit
    • Works via MoltenVK on macOS when MoltenVK runtime is installed

Licensing

The Go binding code is MIT licensed. However, the bundled FFmpeg libraries are compiled with GPL-licensed components like x264 and x265. Any project using ffmpeg-statigo inherits the GPL requirements from FFmpeg through this linking, making the combined work subject to GPLv3 licensing obligations.

Documentation

Overview

Package ffmpeg provides Go bindings to FFmpeg 8.0 libraries.

This package includes static FFmpeg libraries with hardware acceleration support (NVENC, VideoToolbox, Vulkan, QuickSync) and contemporary codecs (H.264, H.265, VP8/9, AV1).

The package provides direct access to FFmpeg's C API through CGO bindings. All FFmpeg functions are available with their original names prefixed with AV*.

Example usage:

import "github.com/linuxmatters/ffmpeg-statigo"

func main() {
	var ctx *ffmpeg.AVFormatContext
	url := ffmpeg.ToCStr("input.mp4")
	defer url.Free()

	_, err := ffmpeg.AVFormatOpenInput(&ctx, url, nil, nil)
	if err != nil {
		panic(err)
	}
	defer ffmpeg.AVFormatFreeContext(ctx)
}

For complete examples, see the examples/ directory.

Index

Constants

View Source
const AVBfRounds = C.AV_BF_ROUNDS

AVBfRounds wraps AV_BF_ROUNDS.

View Source
const AVBprintSizeAutomatic = C.AV_BPRINT_SIZE_AUTOMATIC

AVBprintSizeAutomatic wraps AV_BPRINT_SIZE_AUTOMATIC.

View Source
const AVBprintSizeCountOnly = C.AV_BPRINT_SIZE_COUNT_ONLY

AVBprintSizeCountOnly wraps AV_BPRINT_SIZE_COUNT_ONLY.

View Source
const AVBprintSizeUnlimited = C.AV_BPRINT_SIZE_UNLIMITED

AVBprintSizeUnlimited wraps AV_BPRINT_SIZE_UNLIMITED.

View Source
const AVBufferFlagReadonly = C.AV_BUFFER_FLAG_READONLY

AVBufferFlagReadonly wraps AV_BUFFER_FLAG_READONLY.

View Source
const AVBuffersinkFlagNoRequest = C.AV_BUFFERSINK_FLAG_NO_REQUEST

AVBuffersinkFlagNoRequest wraps AV_BUFFERSINK_FLAG_NO_REQUEST.

View Source
const AVBuffersinkFlagPeek = C.AV_BUFFERSINK_FLAG_PEEK

AVBuffersinkFlagPeek wraps AV_BUFFERSINK_FLAG_PEEK.

View Source
const AVBuffersrcFlagKeepRef = C.AV_BUFFERSRC_FLAG_KEEP_REF

AVBuffersrcFlagKeepRef wraps AV_BUFFERSRC_FLAG_KEEP_REF.

View Source
const AVBuffersrcFlagNoCheckFormat = C.AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT

AVBuffersrcFlagNoCheckFormat wraps AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT.

View Source
const AVBuffersrcFlagPush = C.AV_BUFFERSRC_FLAG_PUSH

AVBuffersrcFlagPush wraps AV_BUFFERSRC_FLAG_PUSH.

View Source
const AVChBackCenter = C.AV_CH_BACK_CENTER

AVChBackCenter wraps AV_CH_BACK_CENTER.

View Source
const AVChBackLeft = C.AV_CH_BACK_LEFT

AVChBackLeft wraps AV_CH_BACK_LEFT.

View Source
const AVChBackRight = C.AV_CH_BACK_RIGHT

AVChBackRight wraps AV_CH_BACK_RIGHT.

View Source
const AVChBinauralLeft = C.AV_CH_BINAURAL_LEFT

AVChBinauralLeft wraps AV_CH_BINAURAL_LEFT.

View Source
const AVChBinauralRight = C.AV_CH_BINAURAL_RIGHT

AVChBinauralRight wraps AV_CH_BINAURAL_RIGHT.

View Source
const AVChBottomFrontCenter = C.AV_CH_BOTTOM_FRONT_CENTER

AVChBottomFrontCenter wraps AV_CH_BOTTOM_FRONT_CENTER.

View Source
const AVChBottomFrontLeft = C.AV_CH_BOTTOM_FRONT_LEFT

AVChBottomFrontLeft wraps AV_CH_BOTTOM_FRONT_LEFT.

View Source
const AVChBottomFrontRight = C.AV_CH_BOTTOM_FRONT_RIGHT

AVChBottomFrontRight wraps AV_CH_BOTTOM_FRONT_RIGHT.

View Source
const AVChFrontCenter = C.AV_CH_FRONT_CENTER

AVChFrontCenter wraps AV_CH_FRONT_CENTER.

View Source
const AVChFrontLeft = C.AV_CH_FRONT_LEFT

AVChFrontLeft wraps AV_CH_FRONT_LEFT.

View Source
const AVChFrontLeftOfCenter = C.AV_CH_FRONT_LEFT_OF_CENTER

AVChFrontLeftOfCenter wraps AV_CH_FRONT_LEFT_OF_CENTER.

View Source
const AVChFrontRight = C.AV_CH_FRONT_RIGHT

AVChFrontRight wraps AV_CH_FRONT_RIGHT.

View Source
const AVChFrontRightOfCenter = C.AV_CH_FRONT_RIGHT_OF_CENTER

AVChFrontRightOfCenter wraps AV_CH_FRONT_RIGHT_OF_CENTER.

View Source
const AVChLayout21 = C.AV_CH_LAYOUT_2_1

AVChLayout21 wraps AV_CH_LAYOUT_2_1.

View Source
const AVChLayout22 = C.AV_CH_LAYOUT_2_2

AVChLayout22 wraps AV_CH_LAYOUT_2_2.

View Source
const AVChLayout22Point2 = C.AV_CH_LAYOUT_22POINT2

AVChLayout22Point2 wraps AV_CH_LAYOUT_22POINT2.

View Source
const AVChLayout2Point1 = C.AV_CH_LAYOUT_2POINT1

AVChLayout2Point1 wraps AV_CH_LAYOUT_2POINT1.

View Source
const AVChLayout3Point1 = C.AV_CH_LAYOUT_3POINT1

AVChLayout3Point1 wraps AV_CH_LAYOUT_3POINT1.

View Source
const AVChLayout3Point1Point2 = C.AV_CH_LAYOUT_3POINT1POINT2

AVChLayout3Point1Point2 wraps AV_CH_LAYOUT_3POINT1POINT2.

View Source
const AVChLayout4Point0 = C.AV_CH_LAYOUT_4POINT0

AVChLayout4Point0 wraps AV_CH_LAYOUT_4POINT0.

View Source
const AVChLayout4Point1 = C.AV_CH_LAYOUT_4POINT1

AVChLayout4Point1 wraps AV_CH_LAYOUT_4POINT1.

View Source
const AVChLayout5Point0 = C.AV_CH_LAYOUT_5POINT0

AVChLayout5Point0 wraps AV_CH_LAYOUT_5POINT0.

View Source
const AVChLayout5Point0Back = C.AV_CH_LAYOUT_5POINT0_BACK

AVChLayout5Point0Back wraps AV_CH_LAYOUT_5POINT0_BACK.

View Source
const AVChLayout5Point1 = C.AV_CH_LAYOUT_5POINT1

AVChLayout5Point1 wraps AV_CH_LAYOUT_5POINT1.

View Source
const AVChLayout5Point1Back = C.AV_CH_LAYOUT_5POINT1_BACK

AVChLayout5Point1Back wraps AV_CH_LAYOUT_5POINT1_BACK.

View Source
const AVChLayout5Point1Point2 = C.AV_CH_LAYOUT_5POINT1POINT2

AVChLayout5Point1Point2 wraps AV_CH_LAYOUT_5POINT1POINT2.

View Source
const AVChLayout5Point1Point2Back = C.AV_CH_LAYOUT_5POINT1POINT2_BACK

AVChLayout5Point1Point2Back wraps AV_CH_LAYOUT_5POINT1POINT2_BACK.

View Source
const AVChLayout5Point1Point4Back = C.AV_CH_LAYOUT_5POINT1POINT4_BACK

AVChLayout5Point1Point4Back wraps AV_CH_LAYOUT_5POINT1POINT4_BACK.

View Source
const AVChLayout6Point0 = C.AV_CH_LAYOUT_6POINT0

AVChLayout6Point0 wraps AV_CH_LAYOUT_6POINT0.

View Source
const AVChLayout6Point0Front = C.AV_CH_LAYOUT_6POINT0_FRONT

AVChLayout6Point0Front wraps AV_CH_LAYOUT_6POINT0_FRONT.

View Source
const AVChLayout6Point1 = C.AV_CH_LAYOUT_6POINT1

AVChLayout6Point1 wraps AV_CH_LAYOUT_6POINT1.

View Source
const AVChLayout6Point1Back = C.AV_CH_LAYOUT_6POINT1_BACK

AVChLayout6Point1Back wraps AV_CH_LAYOUT_6POINT1_BACK.

View Source
const AVChLayout6Point1Front = C.AV_CH_LAYOUT_6POINT1_FRONT

AVChLayout6Point1Front wraps AV_CH_LAYOUT_6POINT1_FRONT.

View Source
const AVChLayout7Point0 = C.AV_CH_LAYOUT_7POINT0

AVChLayout7Point0 wraps AV_CH_LAYOUT_7POINT0.

View Source
const AVChLayout7Point0Front = C.AV_CH_LAYOUT_7POINT0_FRONT

AVChLayout7Point0Front wraps AV_CH_LAYOUT_7POINT0_FRONT.

View Source
const AVChLayout7Point1 = C.AV_CH_LAYOUT_7POINT1

AVChLayout7Point1 wraps AV_CH_LAYOUT_7POINT1.

View Source
const AVChLayout7Point1Point2 = C.AV_CH_LAYOUT_7POINT1POINT2

AVChLayout7Point1Point2 wraps AV_CH_LAYOUT_7POINT1POINT2.

View Source
const AVChLayout7Point1Point4Back = C.AV_CH_LAYOUT_7POINT1POINT4_BACK

AVChLayout7Point1Point4Back wraps AV_CH_LAYOUT_7POINT1POINT4_BACK.

View Source
const AVChLayout7Point1TopBack = C.AV_CH_LAYOUT_7POINT1_TOP_BACK

AVChLayout7Point1TopBack wraps AV_CH_LAYOUT_7POINT1_TOP_BACK.

View Source
const AVChLayout7Point1Wide = C.AV_CH_LAYOUT_7POINT1_WIDE

AVChLayout7Point1Wide wraps AV_CH_LAYOUT_7POINT1_WIDE.

View Source
const AVChLayout7Point1WideBack = C.AV_CH_LAYOUT_7POINT1_WIDE_BACK

AVChLayout7Point1WideBack wraps AV_CH_LAYOUT_7POINT1_WIDE_BACK.

View Source
const AVChLayout7Point2Point3 = C.AV_CH_LAYOUT_7POINT2POINT3

AVChLayout7Point2Point3 wraps AV_CH_LAYOUT_7POINT2POINT3.

View Source
const AVChLayout9Point1Point4Back = C.AV_CH_LAYOUT_9POINT1POINT4_BACK

AVChLayout9Point1Point4Back wraps AV_CH_LAYOUT_9POINT1POINT4_BACK.

View Source
const AVChLayout9Point1Point6 = C.AV_CH_LAYOUT_9POINT1POINT6

AVChLayout9Point1Point6 wraps AV_CH_LAYOUT_9POINT1POINT6.

View Source
const AVChLayoutBinaural = C.AV_CH_LAYOUT_BINAURAL

AVChLayoutBinaural wraps AV_CH_LAYOUT_BINAURAL.

View Source
const AVChLayoutCube = C.AV_CH_LAYOUT_CUBE

AVChLayoutCube wraps AV_CH_LAYOUT_CUBE.

View Source
const AVChLayoutHexadecagonal = C.AV_CH_LAYOUT_HEXADECAGONAL

AVChLayoutHexadecagonal wraps AV_CH_LAYOUT_HEXADECAGONAL.

View Source
const AVChLayoutHexagonal = C.AV_CH_LAYOUT_HEXAGONAL

AVChLayoutHexagonal wraps AV_CH_LAYOUT_HEXAGONAL.

View Source
const AVChLayoutMono = C.AV_CH_LAYOUT_MONO

AVChLayoutMono wraps AV_CH_LAYOUT_MONO.

View Source
const AVChLayoutOctagonal = C.AV_CH_LAYOUT_OCTAGONAL

AVChLayoutOctagonal wraps AV_CH_LAYOUT_OCTAGONAL.

View Source
const AVChLayoutQuad = C.AV_CH_LAYOUT_QUAD

AVChLayoutQuad wraps AV_CH_LAYOUT_QUAD.

View Source
const AVChLayoutStereo = C.AV_CH_LAYOUT_STEREO

AVChLayoutStereo wraps AV_CH_LAYOUT_STEREO.

View Source
const AVChLayoutStereoDownmix = C.AV_CH_LAYOUT_STEREO_DOWNMIX

AVChLayoutStereoDownmix wraps AV_CH_LAYOUT_STEREO_DOWNMIX.

View Source
const AVChLayoutSurround = C.AV_CH_LAYOUT_SURROUND

AVChLayoutSurround wraps AV_CH_LAYOUT_SURROUND.

View Source
const AVChLowFrequency = C.AV_CH_LOW_FREQUENCY

AVChLowFrequency wraps AV_CH_LOW_FREQUENCY.

View Source
const AVChLowFrequency2 = C.AV_CH_LOW_FREQUENCY_2

AVChLowFrequency2 wraps AV_CH_LOW_FREQUENCY_2.

View Source
const AVChSideLeft = C.AV_CH_SIDE_LEFT

AVChSideLeft wraps AV_CH_SIDE_LEFT.

View Source
const AVChSideRight = C.AV_CH_SIDE_RIGHT

AVChSideRight wraps AV_CH_SIDE_RIGHT.

View Source
const AVChSideSurroundLeft = C.AV_CH_SIDE_SURROUND_LEFT

AVChSideSurroundLeft wraps AV_CH_SIDE_SURROUND_LEFT.

View Source
const AVChSideSurroundRight = C.AV_CH_SIDE_SURROUND_RIGHT

AVChSideSurroundRight wraps AV_CH_SIDE_SURROUND_RIGHT.

View Source
const AVChStereoLeft = C.AV_CH_STEREO_LEFT

AVChStereoLeft wraps AV_CH_STEREO_LEFT.

View Source
const AVChStereoRight = C.AV_CH_STEREO_RIGHT

AVChStereoRight wraps AV_CH_STEREO_RIGHT.

View Source
const AVChSurroundDirectLeft = C.AV_CH_SURROUND_DIRECT_LEFT

AVChSurroundDirectLeft wraps AV_CH_SURROUND_DIRECT_LEFT.

View Source
const AVChSurroundDirectRight = C.AV_CH_SURROUND_DIRECT_RIGHT

AVChSurroundDirectRight wraps AV_CH_SURROUND_DIRECT_RIGHT.

View Source
const AVChTopBackCenter = C.AV_CH_TOP_BACK_CENTER

AVChTopBackCenter wraps AV_CH_TOP_BACK_CENTER.

View Source
const AVChTopBackLeft = C.AV_CH_TOP_BACK_LEFT

AVChTopBackLeft wraps AV_CH_TOP_BACK_LEFT.

View Source
const AVChTopBackRight = C.AV_CH_TOP_BACK_RIGHT

AVChTopBackRight wraps AV_CH_TOP_BACK_RIGHT.

View Source
const AVChTopCenter = C.AV_CH_TOP_CENTER

AVChTopCenter wraps AV_CH_TOP_CENTER.

View Source
const AVChTopFrontCenter = C.AV_CH_TOP_FRONT_CENTER

AVChTopFrontCenter wraps AV_CH_TOP_FRONT_CENTER.

View Source
const AVChTopFrontLeft = C.AV_CH_TOP_FRONT_LEFT

AVChTopFrontLeft wraps AV_CH_TOP_FRONT_LEFT.

View Source
const AVChTopFrontRight = C.AV_CH_TOP_FRONT_RIGHT

AVChTopFrontRight wraps AV_CH_TOP_FRONT_RIGHT.

View Source
const AVChTopSideLeft = C.AV_CH_TOP_SIDE_LEFT

AVChTopSideLeft wraps AV_CH_TOP_SIDE_LEFT.

View Source
const AVChTopSideRight = C.AV_CH_TOP_SIDE_RIGHT

AVChTopSideRight wraps AV_CH_TOP_SIDE_RIGHT.

View Source
const AVChTopSurroundLeft = C.AV_CH_TOP_SURROUND_LEFT

AVChTopSurroundLeft wraps AV_CH_TOP_SURROUND_LEFT.

View Source
const AVChTopSurroundRight = C.AV_CH_TOP_SURROUND_RIGHT

AVChTopSurroundRight wraps AV_CH_TOP_SURROUND_RIGHT.

View Source
const AVChWideLeft = C.AV_CH_WIDE_LEFT

AVChWideLeft wraps AV_CH_WIDE_LEFT.

View Source
const AVChWideRight = C.AV_CH_WIDE_RIGHT

AVChWideRight wraps AV_CH_WIDE_RIGHT.

View Source
const AVCodecCapAVOidProbing = C.AV_CODEC_CAP_AVOID_PROBING

AVCodecCapAVOidProbing wraps AV_CODEC_CAP_AVOID_PROBING.

View Source
const AVCodecCapChannelConf = C.AV_CODEC_CAP_CHANNEL_CONF

AVCodecCapChannelConf wraps AV_CODEC_CAP_CHANNEL_CONF.

View Source
const AVCodecCapDelay = C.AV_CODEC_CAP_DELAY

AVCodecCapDelay wraps AV_CODEC_CAP_DELAY.

View Source
const AVCodecCapDr1 = C.AV_CODEC_CAP_DR1

AVCodecCapDr1 wraps AV_CODEC_CAP_DR1.

View Source
const AVCodecCapDrawHorizBand = C.AV_CODEC_CAP_DRAW_HORIZ_BAND

AVCodecCapDrawHorizBand wraps AV_CODEC_CAP_DRAW_HORIZ_BAND.

View Source
const AVCodecCapEncoderFlush = C.AV_CODEC_CAP_ENCODER_FLUSH

AVCodecCapEncoderFlush wraps AV_CODEC_CAP_ENCODER_FLUSH.

View Source
const AVCodecCapEncoderReconFrame = C.AV_CODEC_CAP_ENCODER_RECON_FRAME

AVCodecCapEncoderReconFrame wraps AV_CODEC_CAP_ENCODER_RECON_FRAME.

View Source
const AVCodecCapEncoderReorderedOpaque = C.AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE

AVCodecCapEncoderReorderedOpaque wraps AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE.

View Source
const AVCodecCapExperimental = C.AV_CODEC_CAP_EXPERIMENTAL

AVCodecCapExperimental wraps AV_CODEC_CAP_EXPERIMENTAL.

View Source
const AVCodecCapFrameThreads = C.AV_CODEC_CAP_FRAME_THREADS

AVCodecCapFrameThreads wraps AV_CODEC_CAP_FRAME_THREADS.

View Source
const AVCodecCapHardware = C.AV_CODEC_CAP_HARDWARE

AVCodecCapHardware wraps AV_CODEC_CAP_HARDWARE.

View Source
const AVCodecCapHybrid = C.AV_CODEC_CAP_HYBRID

AVCodecCapHybrid wraps AV_CODEC_CAP_HYBRID.

View Source
const AVCodecCapOtherThreads = C.AV_CODEC_CAP_OTHER_THREADS

AVCodecCapOtherThreads wraps AV_CODEC_CAP_OTHER_THREADS.

View Source
const AVCodecCapParamChange = C.AV_CODEC_CAP_PARAM_CHANGE

AVCodecCapParamChange wraps AV_CODEC_CAP_PARAM_CHANGE.

View Source
const AVCodecCapSliceThreads = C.AV_CODEC_CAP_SLICE_THREADS

AVCodecCapSliceThreads wraps AV_CODEC_CAP_SLICE_THREADS.

View Source
const AVCodecCapSmallLastFrame = C.AV_CODEC_CAP_SMALL_LAST_FRAME

AVCodecCapSmallLastFrame wraps AV_CODEC_CAP_SMALL_LAST_FRAME.

View Source
const AVCodecCapVariableFrameSize = C.AV_CODEC_CAP_VARIABLE_FRAME_SIZE

AVCodecCapVariableFrameSize wraps AV_CODEC_CAP_VARIABLE_FRAME_SIZE.

View Source
const AVCodecExportDataEnhancements = C.AV_CODEC_EXPORT_DATA_ENHANCEMENTS

AVCodecExportDataEnhancements wraps AV_CODEC_EXPORT_DATA_ENHANCEMENTS.

View Source
const AVCodecExportDataFilmGrain = C.AV_CODEC_EXPORT_DATA_FILM_GRAIN

AVCodecExportDataFilmGrain wraps AV_CODEC_EXPORT_DATA_FILM_GRAIN.

View Source
const AVCodecExportDataMvs = C.AV_CODEC_EXPORT_DATA_MVS

AVCodecExportDataMvs wraps AV_CODEC_EXPORT_DATA_MVS.

View Source
const AVCodecExportDataPrft = C.AV_CODEC_EXPORT_DATA_PRFT

AVCodecExportDataPrft wraps AV_CODEC_EXPORT_DATA_PRFT.

View Source
const AVCodecExportDataVideoEncParams = C.AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS

AVCodecExportDataVideoEncParams wraps AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS.

View Source
const AVCodecFlag2Chunks = C.AV_CODEC_FLAG2_CHUNKS

AVCodecFlag2Chunks wraps AV_CODEC_FLAG2_CHUNKS.

View Source
const AVCodecFlag2ExportMvs = C.AV_CODEC_FLAG2_EXPORT_MVS

AVCodecFlag2ExportMvs wraps AV_CODEC_FLAG2_EXPORT_MVS.

View Source
const AVCodecFlag2Fast = C.AV_CODEC_FLAG2_FAST

AVCodecFlag2Fast wraps AV_CODEC_FLAG2_FAST.

View Source
const AVCodecFlag2IccProfiles = C.AV_CODEC_FLAG2_ICC_PROFILES

AVCodecFlag2IccProfiles wraps AV_CODEC_FLAG2_ICC_PROFILES.

View Source
const AVCodecFlag2IgnoreCrop = C.AV_CODEC_FLAG2_IGNORE_CROP

AVCodecFlag2IgnoreCrop wraps AV_CODEC_FLAG2_IGNORE_CROP.

View Source
const AVCodecFlag2LocalHeader = C.AV_CODEC_FLAG2_LOCAL_HEADER

AVCodecFlag2LocalHeader wraps AV_CODEC_FLAG2_LOCAL_HEADER.

View Source
const AVCodecFlag2NoOutput = C.AV_CODEC_FLAG2_NO_OUTPUT

AVCodecFlag2NoOutput wraps AV_CODEC_FLAG2_NO_OUTPUT.

View Source
const AVCodecFlag2RoFlushNoop = C.AV_CODEC_FLAG2_RO_FLUSH_NOOP

AVCodecFlag2RoFlushNoop wraps AV_CODEC_FLAG2_RO_FLUSH_NOOP.

View Source
const AVCodecFlag2ShowAll = C.AV_CODEC_FLAG2_SHOW_ALL

AVCodecFlag2ShowAll wraps AV_CODEC_FLAG2_SHOW_ALL.

View Source
const AVCodecFlag2SkipManual = C.AV_CODEC_FLAG2_SKIP_MANUAL

AVCodecFlag2SkipManual wraps AV_CODEC_FLAG2_SKIP_MANUAL.

View Source
const AVCodecFlag4Mv = C.AV_CODEC_FLAG_4MV

AVCodecFlag4Mv wraps AV_CODEC_FLAG_4MV.

View Source
const AVCodecFlagAcPred = C.AV_CODEC_FLAG_AC_PRED

AVCodecFlagAcPred wraps AV_CODEC_FLAG_AC_PRED.

View Source
const AVCodecFlagBitexact = C.AV_CODEC_FLAG_BITEXACT

AVCodecFlagBitexact wraps AV_CODEC_FLAG_BITEXACT.

View Source
const AVCodecFlagClosedGop = C.AV_CODEC_FLAG_CLOSED_GOP

AVCodecFlagClosedGop wraps AV_CODEC_FLAG_CLOSED_GOP.

View Source
const AVCodecFlagCopyOpaque = C.AV_CODEC_FLAG_COPY_OPAQUE

AVCodecFlagCopyOpaque wraps AV_CODEC_FLAG_COPY_OPAQUE.

View Source
const AVCodecFlagFrameDuration = C.AV_CODEC_FLAG_FRAME_DURATION

AVCodecFlagFrameDuration wraps AV_CODEC_FLAG_FRAME_DURATION.

View Source
const AVCodecFlagGlobalHeader = C.AV_CODEC_FLAG_GLOBAL_HEADER

AVCodecFlagGlobalHeader wraps AV_CODEC_FLAG_GLOBAL_HEADER.

View Source
const AVCodecFlagGray = C.AV_CODEC_FLAG_GRAY

AVCodecFlagGray wraps AV_CODEC_FLAG_GRAY.

View Source
const AVCodecFlagInterlacedDct = C.AV_CODEC_FLAG_INTERLACED_DCT

AVCodecFlagInterlacedDct wraps AV_CODEC_FLAG_INTERLACED_DCT.

View Source
const AVCodecFlagInterlacedMe = C.AV_CODEC_FLAG_INTERLACED_ME

AVCodecFlagInterlacedMe wraps AV_CODEC_FLAG_INTERLACED_ME.

View Source
const AVCodecFlagLoopFilter = C.AV_CODEC_FLAG_LOOP_FILTER

AVCodecFlagLoopFilter wraps AV_CODEC_FLAG_LOOP_FILTER.

View Source
const AVCodecFlagLowDelay = C.AV_CODEC_FLAG_LOW_DELAY

AVCodecFlagLowDelay wraps AV_CODEC_FLAG_LOW_DELAY.

View Source
const AVCodecFlagOutputCorrupt = C.AV_CODEC_FLAG_OUTPUT_CORRUPT

AVCodecFlagOutputCorrupt wraps AV_CODEC_FLAG_OUTPUT_CORRUPT.

View Source
const AVCodecFlagPass1 = C.AV_CODEC_FLAG_PASS1

AVCodecFlagPass1 wraps AV_CODEC_FLAG_PASS1.

View Source
const AVCodecFlagPass2 = C.AV_CODEC_FLAG_PASS2

AVCodecFlagPass2 wraps AV_CODEC_FLAG_PASS2.

View Source
const AVCodecFlagPsnr = C.AV_CODEC_FLAG_PSNR

AVCodecFlagPsnr wraps AV_CODEC_FLAG_PSNR.

View Source
const AVCodecFlagQpel = C.AV_CODEC_FLAG_QPEL

AVCodecFlagQpel wraps AV_CODEC_FLAG_QPEL.

View Source
const AVCodecFlagQscale = C.AV_CODEC_FLAG_QSCALE

AVCodecFlagQscale wraps AV_CODEC_FLAG_QSCALE.

View Source
const AVCodecFlagReconFrame = C.AV_CODEC_FLAG_RECON_FRAME

AVCodecFlagReconFrame wraps AV_CODEC_FLAG_RECON_FRAME.

View Source
const AVCodecFlagUnaligned = C.AV_CODEC_FLAG_UNALIGNED

AVCodecFlagUnaligned wraps AV_CODEC_FLAG_UNALIGNED.

View Source
const AVCodecHWConfigMethodAdHoc = C.AV_CODEC_HW_CONFIG_METHOD_AD_HOC

AVCodecHWConfigMethodAdHoc wraps AV_CODEC_HW_CONFIG_METHOD_AD_HOC.

View Source
const AVCodecHWConfigMethodHWDeviceCtx = C.AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX

AVCodecHWConfigMethodHWDeviceCtx wraps AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX.

View Source
const AVCodecHWConfigMethodHWFramesCtx = C.AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX

AVCodecHWConfigMethodHWFramesCtx wraps AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX.

View Source
const AVCodecHWConfigMethodInternal = C.AV_CODEC_HW_CONFIG_METHOD_INTERNAL

AVCodecHWConfigMethodInternal wraps AV_CODEC_HW_CONFIG_METHOD_INTERNAL.

View Source
const AVCodecIdH265 = C.AV_CODEC_ID_H265

AVCodecIdH265 wraps AV_CODEC_ID_H265.

View Source
const AVCodecIdH266 = C.AV_CODEC_ID_H266

AVCodecIdH266 wraps AV_CODEC_ID_H266.

View Source
const AVCodecIdIffByterun1 = C.AV_CODEC_ID_IFF_BYTERUN1

AVCodecIdIffByterun1 wraps AV_CODEC_ID_IFF_BYTERUN1.

View Source
const AVCodecPropBitmapSub = C.AV_CODEC_PROP_BITMAP_SUB

AVCodecPropBitmapSub wraps AV_CODEC_PROP_BITMAP_SUB.

View Source
const AVCodecPropFields = C.AV_CODEC_PROP_FIELDS

AVCodecPropFields wraps AV_CODEC_PROP_FIELDS.

View Source
const AVCodecPropIntraOnly = C.AV_CODEC_PROP_INTRA_ONLY

AVCodecPropIntraOnly wraps AV_CODEC_PROP_INTRA_ONLY.

View Source
const AVCodecPropLossless = C.AV_CODEC_PROP_LOSSLESS

AVCodecPropLossless wraps AV_CODEC_PROP_LOSSLESS.

View Source
const AVCodecPropLossy = C.AV_CODEC_PROP_LOSSY

AVCodecPropLossy wraps AV_CODEC_PROP_LOSSY.

View Source
const AVCodecPropReorder = C.AV_CODEC_PROP_REORDER

AVCodecPropReorder wraps AV_CODEC_PROP_REORDER.

View Source
const AVCodecPropTextSub = C.AV_CODEC_PROP_TEXT_SUB

AVCodecPropTextSub wraps AV_CODEC_PROP_TEXT_SUB.

View Source
const AVCpuFlag3Dnow = C.AV_CPU_FLAG_3DNOW

AVCpuFlag3Dnow wraps AV_CPU_FLAG_3DNOW.

View Source
const AVCpuFlag3Dnowext = C.AV_CPU_FLAG_3DNOWEXT

AVCpuFlag3Dnowext wraps AV_CPU_FLAG_3DNOWEXT.

View Source
const AVCpuFlagAVX = C.AV_CPU_FLAG_AVX

AVCpuFlagAVX wraps AV_CPU_FLAG_AVX.

View Source
const AVCpuFlagAVX2 = C.AV_CPU_FLAG_AVX2

AVCpuFlagAVX2 wraps AV_CPU_FLAG_AVX2.

View Source
const AVCpuFlagAVX512 = C.AV_CPU_FLAG_AVX512

AVCpuFlagAVX512 wraps AV_CPU_FLAG_AVX512.

View Source
const AVCpuFlagAVX512Icl = C.AV_CPU_FLAG_AVX512ICL

AVCpuFlagAVX512Icl wraps AV_CPU_FLAG_AVX512ICL.

View Source
const AVCpuFlagAVXslow = C.AV_CPU_FLAG_AVXSLOW

AVCpuFlagAVXslow wraps AV_CPU_FLAG_AVXSLOW.

View Source
const AVCpuFlagAesni = C.AV_CPU_FLAG_AESNI

AVCpuFlagAesni wraps AV_CPU_FLAG_AESNI.

View Source
const AVCpuFlagAltivec = C.AV_CPU_FLAG_ALTIVEC

AVCpuFlagAltivec wraps AV_CPU_FLAG_ALTIVEC.

View Source
const AVCpuFlagArmv5Te = C.AV_CPU_FLAG_ARMV5TE

AVCpuFlagArmv5Te wraps AV_CPU_FLAG_ARMV5TE.

View Source
const AVCpuFlagArmv6 = C.AV_CPU_FLAG_ARMV6

AVCpuFlagArmv6 wraps AV_CPU_FLAG_ARMV6.

View Source
const AVCpuFlagArmv6T2 = C.AV_CPU_FLAG_ARMV6T2

AVCpuFlagArmv6T2 wraps AV_CPU_FLAG_ARMV6T2.

View Source
const AVCpuFlagArmv8 = C.AV_CPU_FLAG_ARMV8

AVCpuFlagArmv8 wraps AV_CPU_FLAG_ARMV8.

View Source
const AVCpuFlagAtom = C.AV_CPU_FLAG_ATOM

AVCpuFlagAtom wraps AV_CPU_FLAG_ATOM.

View Source
const AVCpuFlagBmi1 = C.AV_CPU_FLAG_BMI1

AVCpuFlagBmi1 wraps AV_CPU_FLAG_BMI1.

View Source
const AVCpuFlagBmi2 = C.AV_CPU_FLAG_BMI2

AVCpuFlagBmi2 wraps AV_CPU_FLAG_BMI2.

View Source
const AVCpuFlagCmov = C.AV_CPU_FLAG_CMOV

AVCpuFlagCmov wraps AV_CPU_FLAG_CMOV.

View Source
const AVCpuFlagDotprod = C.AV_CPU_FLAG_DOTPROD

AVCpuFlagDotprod wraps AV_CPU_FLAG_DOTPROD.

View Source
const AVCpuFlagFma3 = C.AV_CPU_FLAG_FMA3

AVCpuFlagFma3 wraps AV_CPU_FLAG_FMA3.

View Source
const AVCpuFlagFma4 = C.AV_CPU_FLAG_FMA4

AVCpuFlagFma4 wraps AV_CPU_FLAG_FMA4.

View Source
const AVCpuFlagForce = C.AV_CPU_FLAG_FORCE

AVCpuFlagForce wraps AV_CPU_FLAG_FORCE.

View Source
const AVCpuFlagI8Mm = C.AV_CPU_FLAG_I8MM

AVCpuFlagI8Mm wraps AV_CPU_FLAG_I8MM.

View Source
const AVCpuFlagLasx = C.AV_CPU_FLAG_LASX

AVCpuFlagLasx wraps AV_CPU_FLAG_LASX.

View Source
const AVCpuFlagLsx = C.AV_CPU_FLAG_LSX

AVCpuFlagLsx wraps AV_CPU_FLAG_LSX.

View Source
const AVCpuFlagMmi = C.AV_CPU_FLAG_MMI

AVCpuFlagMmi wraps AV_CPU_FLAG_MMI.

View Source
const AVCpuFlagMmx = C.AV_CPU_FLAG_MMX

AVCpuFlagMmx wraps AV_CPU_FLAG_MMX.

View Source
const AVCpuFlagMmx2 = C.AV_CPU_FLAG_MMX2

AVCpuFlagMmx2 wraps AV_CPU_FLAG_MMX2.

View Source
const AVCpuFlagMmxext = C.AV_CPU_FLAG_MMXEXT

AVCpuFlagMmxext wraps AV_CPU_FLAG_MMXEXT.

View Source
const AVCpuFlagMsa = C.AV_CPU_FLAG_MSA

AVCpuFlagMsa wraps AV_CPU_FLAG_MSA.

View Source
const AVCpuFlagNeon = C.AV_CPU_FLAG_NEON

AVCpuFlagNeon wraps AV_CPU_FLAG_NEON.

View Source
const AVCpuFlagPower8 = C.AV_CPU_FLAG_POWER8

AVCpuFlagPower8 wraps AV_CPU_FLAG_POWER8.

View Source
const AVCpuFlagRvMisaligned = C.AV_CPU_FLAG_RV_MISALIGNED

AVCpuFlagRvMisaligned wraps AV_CPU_FLAG_RV_MISALIGNED.

View Source
const AVCpuFlagRvZvbb = C.AV_CPU_FLAG_RV_ZVBB

AVCpuFlagRvZvbb wraps AV_CPU_FLAG_RV_ZVBB.

View Source
const AVCpuFlagRvb = C.AV_CPU_FLAG_RVB

AVCpuFlagRvb wraps AV_CPU_FLAG_RVB.

View Source
const AVCpuFlagRvbAddr = C.AV_CPU_FLAG_RVB_ADDR

AVCpuFlagRvbAddr wraps AV_CPU_FLAG_RVB_ADDR.

View Source
const AVCpuFlagRvbBasic = C.AV_CPU_FLAG_RVB_BASIC

AVCpuFlagRvbBasic wraps AV_CPU_FLAG_RVB_BASIC.

View Source
const AVCpuFlagRvd = C.AV_CPU_FLAG_RVD

AVCpuFlagRvd wraps AV_CPU_FLAG_RVD.

View Source
const AVCpuFlagRvf = C.AV_CPU_FLAG_RVF

AVCpuFlagRvf wraps AV_CPU_FLAG_RVF.

View Source
const AVCpuFlagRvi = C.AV_CPU_FLAG_RVI

AVCpuFlagRvi wraps AV_CPU_FLAG_RVI.

View Source
const AVCpuFlagRvvF32 = C.AV_CPU_FLAG_RVV_F32

AVCpuFlagRvvF32 wraps AV_CPU_FLAG_RVV_F32.

View Source
const AVCpuFlagRvvF64 = C.AV_CPU_FLAG_RVV_F64

AVCpuFlagRvvF64 wraps AV_CPU_FLAG_RVV_F64.

View Source
const AVCpuFlagRvvI32 = C.AV_CPU_FLAG_RVV_I32

AVCpuFlagRvvI32 wraps AV_CPU_FLAG_RVV_I32.

View Source
const AVCpuFlagRvvI64 = C.AV_CPU_FLAG_RVV_I64

AVCpuFlagRvvI64 wraps AV_CPU_FLAG_RVV_I64.

View Source
const AVCpuFlagSetend = C.AV_CPU_FLAG_SETEND

AVCpuFlagSetend wraps AV_CPU_FLAG_SETEND.

View Source
const AVCpuFlagSimd128 = C.AV_CPU_FLAG_SIMD128

AVCpuFlagSimd128 wraps AV_CPU_FLAG_SIMD128.

View Source
const AVCpuFlagSlowGather = C.AV_CPU_FLAG_SLOW_GATHER

AVCpuFlagSlowGather wraps AV_CPU_FLAG_SLOW_GATHER.

View Source
const AVCpuFlagSse = C.AV_CPU_FLAG_SSE

AVCpuFlagSse wraps AV_CPU_FLAG_SSE.

View Source
const AVCpuFlagSse2 = C.AV_CPU_FLAG_SSE2

AVCpuFlagSse2 wraps AV_CPU_FLAG_SSE2.

View Source
const AVCpuFlagSse2Slow = C.AV_CPU_FLAG_SSE2SLOW

AVCpuFlagSse2Slow wraps AV_CPU_FLAG_SSE2SLOW.

View Source
const AVCpuFlagSse3 = C.AV_CPU_FLAG_SSE3

AVCpuFlagSse3 wraps AV_CPU_FLAG_SSE3.

View Source
const AVCpuFlagSse3Slow = C.AV_CPU_FLAG_SSE3SLOW

AVCpuFlagSse3Slow wraps AV_CPU_FLAG_SSE3SLOW.

View Source
const AVCpuFlagSse4 = C.AV_CPU_FLAG_SSE4

AVCpuFlagSse4 wraps AV_CPU_FLAG_SSE4.

View Source
const AVCpuFlagSse42 = C.AV_CPU_FLAG_SSE42

AVCpuFlagSse42 wraps AV_CPU_FLAG_SSE42.

View Source
const AVCpuFlagSsse3 = C.AV_CPU_FLAG_SSSE3

AVCpuFlagSsse3 wraps AV_CPU_FLAG_SSSE3.

View Source
const AVCpuFlagSsse3Slow = C.AV_CPU_FLAG_SSSE3SLOW

AVCpuFlagSsse3Slow wraps AV_CPU_FLAG_SSSE3SLOW.

View Source
const AVCpuFlagSve = C.AV_CPU_FLAG_SVE

AVCpuFlagSve wraps AV_CPU_FLAG_SVE.

View Source
const AVCpuFlagSve2 = C.AV_CPU_FLAG_SVE2

AVCpuFlagSve2 wraps AV_CPU_FLAG_SVE2.

View Source
const AVCpuFlagVfp = C.AV_CPU_FLAG_VFP

AVCpuFlagVfp wraps AV_CPU_FLAG_VFP.

View Source
const AVCpuFlagVfpVm = C.AV_CPU_FLAG_VFP_VM

AVCpuFlagVfpVm wraps AV_CPU_FLAG_VFP_VM.

View Source
const AVCpuFlagVfpv3 = C.AV_CPU_FLAG_VFPV3

AVCpuFlagVfpv3 wraps AV_CPU_FLAG_VFPV3.

View Source
const AVCpuFlagVsx = C.AV_CPU_FLAG_VSX

AVCpuFlagVsx wraps AV_CPU_FLAG_VSX.

View Source
const AVCpuFlagXop = C.AV_CPU_FLAG_XOP

AVCpuFlagXop wraps AV_CPU_FLAG_XOP.

View Source
const AVDetectionBboxLabelNameMaxSize = C.AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE

AVDetectionBboxLabelNameMaxSize wraps AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE.

View Source
const AVDictAppend = C.AV_DICT_APPEND

AVDictAppend wraps AV_DICT_APPEND.

View Source
const AVDictDedup = C.AV_DICT_DEDUP

AVDictDedup wraps AV_DICT_DEDUP.

View Source
const AVDictDontOverwrite = C.AV_DICT_DONT_OVERWRITE

AVDictDontOverwrite wraps AV_DICT_DONT_OVERWRITE.

View Source
const AVDictDontStrdupKey = C.AV_DICT_DONT_STRDUP_KEY

AVDictDontStrdupKey wraps AV_DICT_DONT_STRDUP_KEY.

View Source
const AVDictDontStrdupVal = C.AV_DICT_DONT_STRDUP_VAL

AVDictDontStrdupVal wraps AV_DICT_DONT_STRDUP_VAL.

View Source
const AVDictIgnoreSuffix = C.AV_DICT_IGNORE_SUFFIX

AVDictIgnoreSuffix wraps AV_DICT_IGNORE_SUFFIX.

View Source
const AVDictMatchCase = C.AV_DICT_MATCH_CASE

AVDictMatchCase wraps AV_DICT_MATCH_CASE.

View Source
const AVDictMultikey = C.AV_DICT_MULTIKEY

AVDictMultikey wraps AV_DICT_MULTIKEY.

View Source
const AVDispositionAttachedPic = C.AV_DISPOSITION_ATTACHED_PIC

AVDispositionAttachedPic wraps AV_DISPOSITION_ATTACHED_PIC.

View Source
const AVDispositionCaptions = C.AV_DISPOSITION_CAPTIONS

AVDispositionCaptions wraps AV_DISPOSITION_CAPTIONS.

View Source
const AVDispositionCleanEffects = C.AV_DISPOSITION_CLEAN_EFFECTS

AVDispositionCleanEffects wraps AV_DISPOSITION_CLEAN_EFFECTS.

View Source
const AVDispositionComment = C.AV_DISPOSITION_COMMENT

AVDispositionComment wraps AV_DISPOSITION_COMMENT.

View Source
const AVDispositionDefault = C.AV_DISPOSITION_DEFAULT

AVDispositionDefault wraps AV_DISPOSITION_DEFAULT.

View Source
const AVDispositionDependent = C.AV_DISPOSITION_DEPENDENT

AVDispositionDependent wraps AV_DISPOSITION_DEPENDENT.

View Source
const AVDispositionDescriptions = C.AV_DISPOSITION_DESCRIPTIONS

AVDispositionDescriptions wraps AV_DISPOSITION_DESCRIPTIONS.

View Source
const AVDispositionDub = C.AV_DISPOSITION_DUB

AVDispositionDub wraps AV_DISPOSITION_DUB.

View Source
const AVDispositionForced = C.AV_DISPOSITION_FORCED

AVDispositionForced wraps AV_DISPOSITION_FORCED.

View Source
const AVDispositionHearingImpaired = C.AV_DISPOSITION_HEARING_IMPAIRED

AVDispositionHearingImpaired wraps AV_DISPOSITION_HEARING_IMPAIRED.

View Source
const AVDispositionKaraoke = C.AV_DISPOSITION_KARAOKE

AVDispositionKaraoke wraps AV_DISPOSITION_KARAOKE.

View Source
const AVDispositionLyrics = C.AV_DISPOSITION_LYRICS

AVDispositionLyrics wraps AV_DISPOSITION_LYRICS.

View Source
const AVDispositionMetadata = C.AV_DISPOSITION_METADATA

AVDispositionMetadata wraps AV_DISPOSITION_METADATA.

View Source
const AVDispositionMultilayer = C.AV_DISPOSITION_MULTILAYER

AVDispositionMultilayer wraps AV_DISPOSITION_MULTILAYER.

View Source
const AVDispositionNonDiegetic = C.AV_DISPOSITION_NON_DIEGETIC

AVDispositionNonDiegetic wraps AV_DISPOSITION_NON_DIEGETIC.

View Source
const AVDispositionOriginal = C.AV_DISPOSITION_ORIGINAL

AVDispositionOriginal wraps AV_DISPOSITION_ORIGINAL.

View Source
const AVDispositionStillImage = C.AV_DISPOSITION_STILL_IMAGE

AVDispositionStillImage wraps AV_DISPOSITION_STILL_IMAGE.

View Source
const AVDispositionTimedThumbnails = C.AV_DISPOSITION_TIMED_THUMBNAILS

AVDispositionTimedThumbnails wraps AV_DISPOSITION_TIMED_THUMBNAILS.

View Source
const AVDispositionVisualImpaired = C.AV_DISPOSITION_VISUAL_IMPAIRED

AVDispositionVisualImpaired wraps AV_DISPOSITION_VISUAL_IMPAIRED.

View Source
const AVDoviMaxExtBlocks = C.AV_DOVI_MAX_EXT_BLOCKS

AVDoviMaxExtBlocks wraps AV_DOVI_MAX_EXT_BLOCKS.

View Source
const AVDoviMaxPieces = C.AV_DOVI_MAX_PIECES

AVDoviMaxPieces wraps AV_DOVI_MAX_PIECES.

View Source
const AVEfAggressive = C.AV_EF_AGGRESSIVE

AVEfAggressive wraps AV_EF_AGGRESSIVE.

View Source
const AVEfBitstream = C.AV_EF_BITSTREAM

AVEfBitstream wraps AV_EF_BITSTREAM.

View Source
const AVEfBuffer = C.AV_EF_BUFFER

AVEfBuffer wraps AV_EF_BUFFER.

View Source
const AVEfCareful = C.AV_EF_CAREFUL

AVEfCareful wraps AV_EF_CAREFUL.

View Source
const AVEfCompliant = C.AV_EF_COMPLIANT

AVEfCompliant wraps AV_EF_COMPLIANT.

View Source
const AVEfCrccheck = C.AV_EF_CRCCHECK

AVEfCrccheck wraps AV_EF_CRCCHECK.

View Source
const AVEfExplode = C.AV_EF_EXPLODE

AVEfExplode wraps AV_EF_EXPLODE.

View Source
const AVEfIgnoreErr = C.AV_EF_IGNORE_ERR

AVEfIgnoreErr wraps AV_EF_IGNORE_ERR.

View Source
const AVErrorBsfNotFoundConst = C.AVERROR_BSF_NOT_FOUND

AVErrorBsfNotFoundConst wraps AVERROR_BSF_NOT_FOUND.

View Source
const AVErrorBufferTooSmallConst = C.AVERROR_BUFFER_TOO_SMALL

AVErrorBufferTooSmallConst wraps AVERROR_BUFFER_TOO_SMALL.

View Source
const AVErrorBug2Const = C.AVERROR_BUG2

AVErrorBug2Const wraps AVERROR_BUG2.

View Source
const AVErrorBugConst = C.AVERROR_BUG

AVErrorBugConst wraps AVERROR_BUG.

View Source
const AVErrorDecoderNotFoundConst = C.AVERROR_DECODER_NOT_FOUND

AVErrorDecoderNotFoundConst wraps AVERROR_DECODER_NOT_FOUND.

View Source
const AVErrorDemuxerNotFoundConst = C.AVERROR_DEMUXER_NOT_FOUND

AVErrorDemuxerNotFoundConst wraps AVERROR_DEMUXER_NOT_FOUND.

View Source
const AVErrorEncoderNotFoundConst = C.AVERROR_ENCODER_NOT_FOUND

AVErrorEncoderNotFoundConst wraps AVERROR_ENCODER_NOT_FOUND.

View Source
const AVErrorEofConst = C.AVERROR_EOF

AVErrorEofConst wraps AVERROR_EOF.

View Source
const AVErrorExitConst = C.AVERROR_EXIT

AVErrorExitConst wraps AVERROR_EXIT.

View Source
const AVErrorExperimentalConst = C.AVERROR_EXPERIMENTAL

AVErrorExperimentalConst wraps AVERROR_EXPERIMENTAL.

View Source
const AVErrorExternalConst = C.AVERROR_EXTERNAL

AVErrorExternalConst wraps AVERROR_EXTERNAL.

View Source
const AVErrorFilterNotFoundConst = C.AVERROR_FILTER_NOT_FOUND

AVErrorFilterNotFoundConst wraps AVERROR_FILTER_NOT_FOUND.

View Source
const AVErrorHttpBadRequestConst = C.AVERROR_HTTP_BAD_REQUEST

AVErrorHttpBadRequestConst wraps AVERROR_HTTP_BAD_REQUEST.

View Source
const AVErrorHttpForbiddenConst = C.AVERROR_HTTP_FORBIDDEN

AVErrorHttpForbiddenConst wraps AVERROR_HTTP_FORBIDDEN.

View Source
const AVErrorHttpNotFoundConst = C.AVERROR_HTTP_NOT_FOUND

AVErrorHttpNotFoundConst wraps AVERROR_HTTP_NOT_FOUND.

View Source
const AVErrorHttpOther4XxConst = C.AVERROR_HTTP_OTHER_4XX

AVErrorHttpOther4XxConst wraps AVERROR_HTTP_OTHER_4XX.

View Source
const AVErrorHttpServerErrorConst = C.AVERROR_HTTP_SERVER_ERROR

AVErrorHttpServerErrorConst wraps AVERROR_HTTP_SERVER_ERROR.

View Source
const AVErrorHttpTooManyRequestsConst = C.AVERROR_HTTP_TOO_MANY_REQUESTS

AVErrorHttpTooManyRequestsConst wraps AVERROR_HTTP_TOO_MANY_REQUESTS.

View Source
const AVErrorHttpUnauthorizedConst = C.AVERROR_HTTP_UNAUTHORIZED

AVErrorHttpUnauthorizedConst wraps AVERROR_HTTP_UNAUTHORIZED.

View Source
const AVErrorInputChangedConst = C.AVERROR_INPUT_CHANGED

AVErrorInputChangedConst wraps AVERROR_INPUT_CHANGED.

View Source
const AVErrorInvaliddataConst = C.AVERROR_INVALIDDATA

AVErrorInvaliddataConst wraps AVERROR_INVALIDDATA.

View Source
const AVErrorMaxStringSize = C.AV_ERROR_MAX_STRING_SIZE

AVErrorMaxStringSize wraps AV_ERROR_MAX_STRING_SIZE.

View Source
const AVErrorMuxerNotFoundConst = C.AVERROR_MUXER_NOT_FOUND

AVErrorMuxerNotFoundConst wraps AVERROR_MUXER_NOT_FOUND.

View Source
const AVErrorOptionNotFoundConst = C.AVERROR_OPTION_NOT_FOUND

AVErrorOptionNotFoundConst wraps AVERROR_OPTION_NOT_FOUND.

View Source
const AVErrorOutputChangedConst = C.AVERROR_OUTPUT_CHANGED

AVErrorOutputChangedConst wraps AVERROR_OUTPUT_CHANGED.

View Source
const AVErrorPatchwelcomeConst = C.AVERROR_PATCHWELCOME

AVErrorPatchwelcomeConst wraps AVERROR_PATCHWELCOME.

View Source
const AVErrorProtocolNotFoundConst = C.AVERROR_PROTOCOL_NOT_FOUND

AVErrorProtocolNotFoundConst wraps AVERROR_PROTOCOL_NOT_FOUND.

View Source
const AVErrorStreamNotFoundConst = C.AVERROR_STREAM_NOT_FOUND

AVErrorStreamNotFoundConst wraps AVERROR_STREAM_NOT_FOUND.

View Source
const AVErrorUnknownConst = C.AVERROR_UNKNOWN

AVErrorUnknownConst wraps AVERROR_UNKNOWN.

View Source
const AVEscapeFlagStrict = C.AV_ESCAPE_FLAG_STRICT

AVEscapeFlagStrict wraps AV_ESCAPE_FLAG_STRICT.

View Source
const AVEscapeFlagWhitespace = C.AV_ESCAPE_FLAG_WHITESPACE

AVEscapeFlagWhitespace wraps AV_ESCAPE_FLAG_WHITESPACE.

View Source
const AVEscapeFlagXmlDoubleQuotes = C.AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES

AVEscapeFlagXmlDoubleQuotes wraps AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES.

View Source
const AVEscapeFlagXmlSingleQuotes = C.AV_ESCAPE_FLAG_XML_SINGLE_QUOTES

AVEscapeFlagXmlSingleQuotes wraps AV_ESCAPE_FLAG_XML_SINGLE_QUOTES.

View Source
const AVFifoFlagAutoGrow = C.AV_FIFO_FLAG_AUTO_GROW

AVFifoFlagAutoGrow wraps AV_FIFO_FLAG_AUTO_GROW.

View Source
const AVFilterAutoConvertAll = C.AVFILTER_AUTO_CONVERT_ALL

AVFilterAutoConvertAll wraps AVFILTER_AUTO_CONVERT_ALL.

View Source
const AVFilterAutoConvertNone = C.AVFILTER_AUTO_CONVERT_NONE

AVFilterAutoConvertNone wraps AVFILTER_AUTO_CONVERT_NONE.

View Source
const AVFilterCmdFlagFast = C.AVFILTER_CMD_FLAG_FAST

AVFilterCmdFlagFast wraps AVFILTER_CMD_FLAG_FAST.

View Source
const AVFilterCmdFlagOne = C.AVFILTER_CMD_FLAG_ONE

AVFilterCmdFlagOne wraps AVFILTER_CMD_FLAG_ONE.

View Source
const AVFilterFlagDynamicInputs = C.AVFILTER_FLAG_DYNAMIC_INPUTS

AVFilterFlagDynamicInputs wraps AVFILTER_FLAG_DYNAMIC_INPUTS.

View Source
const AVFilterFlagDynamicOutputs = C.AVFILTER_FLAG_DYNAMIC_OUTPUTS

AVFilterFlagDynamicOutputs wraps AVFILTER_FLAG_DYNAMIC_OUTPUTS.

View Source
const AVFilterFlagHWDevice = C.AVFILTER_FLAG_HWDEVICE

AVFilterFlagHWDevice wraps AVFILTER_FLAG_HWDEVICE.

View Source
const AVFilterFlagMetadataOnly = C.AVFILTER_FLAG_METADATA_ONLY

AVFilterFlagMetadataOnly wraps AVFILTER_FLAG_METADATA_ONLY.

View Source
const AVFilterFlagSliceThreads = C.AVFILTER_FLAG_SLICE_THREADS

AVFilterFlagSliceThreads wraps AVFILTER_FLAG_SLICE_THREADS.

View Source
const AVFilterFlagSupportTimeline = C.AVFILTER_FLAG_SUPPORT_TIMELINE

AVFilterFlagSupportTimeline wraps AVFILTER_FLAG_SUPPORT_TIMELINE.

View Source
const AVFilterFlagSupportTimelineGeneric = C.AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC

AVFilterFlagSupportTimelineGeneric wraps AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC.

View Source
const AVFilterFlagSupportTimelineInternal = C.AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL

AVFilterFlagSupportTimelineInternal wraps AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL.

View Source
const AVFilterThreadSlice = C.AVFILTER_THREAD_SLICE

AVFilterThreadSlice wraps AVFILTER_THREAD_SLICE.

View Source
const AVFmtAVOidNegTsAuto = C.AVFMT_AVOID_NEG_TS_AUTO

AVFmtAVOidNegTsAuto wraps AVFMT_AVOID_NEG_TS_AUTO.

View Source
const AVFmtAVOidNegTsDisabled = C.AVFMT_AVOID_NEG_TS_DISABLED

AVFmtAVOidNegTsDisabled wraps AVFMT_AVOID_NEG_TS_DISABLED.

View Source
const AVFmtAVOidNegTsMakeNonNegative = C.AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE

AVFmtAVOidNegTsMakeNonNegative wraps AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE.

View Source
const AVFmtAVOidNegTsMakeZero = C.AVFMT_AVOID_NEG_TS_MAKE_ZERO

AVFmtAVOidNegTsMakeZero wraps AVFMT_AVOID_NEG_TS_MAKE_ZERO.

View Source
const AVFmtEventFlagMetadataUpdated = C.AVFMT_EVENT_FLAG_METADATA_UPDATED

AVFmtEventFlagMetadataUpdated wraps AVFMT_EVENT_FLAG_METADATA_UPDATED.

View Source
const AVFmtExperimental = C.AVFMT_EXPERIMENTAL

AVFmtExperimental wraps AVFMT_EXPERIMENTAL.

View Source
const AVFmtFlagAutoBsf = C.AVFMT_FLAG_AUTO_BSF

AVFmtFlagAutoBsf wraps AVFMT_FLAG_AUTO_BSF.

View Source
const AVFmtFlagBitexact = C.AVFMT_FLAG_BITEXACT

AVFmtFlagBitexact wraps AVFMT_FLAG_BITEXACT.

View Source
const AVFmtFlagCustomIO = C.AVFMT_FLAG_CUSTOM_IO

AVFmtFlagCustomIO wraps AVFMT_FLAG_CUSTOM_IO.

View Source
const AVFmtFlagDiscardCorrupt = C.AVFMT_FLAG_DISCARD_CORRUPT

AVFmtFlagDiscardCorrupt wraps AVFMT_FLAG_DISCARD_CORRUPT.

View Source
const AVFmtFlagFastSeek = C.AVFMT_FLAG_FAST_SEEK

AVFmtFlagFastSeek wraps AVFMT_FLAG_FAST_SEEK.

View Source
const AVFmtFlagFlushPackets = C.AVFMT_FLAG_FLUSH_PACKETS

AVFmtFlagFlushPackets wraps AVFMT_FLAG_FLUSH_PACKETS.

View Source
const AVFmtFlagGenpts = C.AVFMT_FLAG_GENPTS

AVFmtFlagGenpts wraps AVFMT_FLAG_GENPTS.

View Source
const AVFmtFlagIgndts = C.AVFMT_FLAG_IGNDTS

AVFmtFlagIgndts wraps AVFMT_FLAG_IGNDTS.

View Source
const AVFmtFlagIgnidx = C.AVFMT_FLAG_IGNIDX

AVFmtFlagIgnidx wraps AVFMT_FLAG_IGNIDX.

View Source
const AVFmtFlagNobuffer = C.AVFMT_FLAG_NOBUFFER

AVFmtFlagNobuffer wraps AVFMT_FLAG_NOBUFFER.

View Source
const AVFmtFlagNofillin = C.AVFMT_FLAG_NOFILLIN

AVFmtFlagNofillin wraps AVFMT_FLAG_NOFILLIN.

View Source
const AVFmtFlagNonblock = C.AVFMT_FLAG_NONBLOCK

AVFmtFlagNonblock wraps AVFMT_FLAG_NONBLOCK.

View Source
const AVFmtFlagNoparse = C.AVFMT_FLAG_NOPARSE

AVFmtFlagNoparse wraps AVFMT_FLAG_NOPARSE.

View Source
const AVFmtFlagSortDts = C.AVFMT_FLAG_SORT_DTS

AVFmtFlagSortDts wraps AVFMT_FLAG_SORT_DTS.

View Source
const AVFmtGenericIndex = C.AVFMT_GENERIC_INDEX

AVFmtGenericIndex wraps AVFMT_GENERIC_INDEX.

View Source
const AVFmtGlobalheader = C.AVFMT_GLOBALHEADER

AVFmtGlobalheader wraps AVFMT_GLOBALHEADER.

View Source
const AVFmtNeednumber = C.AVFMT_NEEDNUMBER

AVFmtNeednumber wraps AVFMT_NEEDNUMBER.

View Source
const AVFmtNoByteSeek = C.AVFMT_NO_BYTE_SEEK

AVFmtNoByteSeek wraps AVFMT_NO_BYTE_SEEK.

View Source
const AVFmtNobinsearch = C.AVFMT_NOBINSEARCH

AVFmtNobinsearch wraps AVFMT_NOBINSEARCH.

View Source
const AVFmtNodimensions = C.AVFMT_NODIMENSIONS

AVFmtNodimensions wraps AVFMT_NODIMENSIONS.

View Source
const AVFmtNofile = C.AVFMT_NOFILE

AVFmtNofile wraps AVFMT_NOFILE.

View Source
const AVFmtNogensearch = C.AVFMT_NOGENSEARCH

AVFmtNogensearch wraps AVFMT_NOGENSEARCH.

View Source
const AVFmtNostreams = C.AVFMT_NOSTREAMS

AVFmtNostreams wraps AVFMT_NOSTREAMS.

View Source
const AVFmtNotimestamps = C.AVFMT_NOTIMESTAMPS

AVFmtNotimestamps wraps AVFMT_NOTIMESTAMPS.

View Source
const AVFmtSeekToPts = C.AVFMT_SEEK_TO_PTS

AVFmtSeekToPts wraps AVFMT_SEEK_TO_PTS.

View Source
const AVFmtShowIds = C.AVFMT_SHOW_IDS

AVFmtShowIds wraps AVFMT_SHOW_IDS.

View Source
const AVFmtTsDiscont = C.AVFMT_TS_DISCONT

AVFmtTsDiscont wraps AVFMT_TS_DISCONT.

View Source
const AVFmtTsNegative = C.AVFMT_TS_NEGATIVE

AVFmtTsNegative wraps AVFMT_TS_NEGATIVE.

View Source
const AVFmtTsNonstrict = C.AVFMT_TS_NONSTRICT

AVFmtTsNonstrict wraps AVFMT_TS_NONSTRICT.

View Source
const AVFmtVariableFps = C.AVFMT_VARIABLE_FPS

AVFmtVariableFps wraps AVFMT_VARIABLE_FPS.

View Source
const AVFmtctxNoheader = C.AVFMTCTX_NOHEADER

AVFmtctxNoheader wraps AVFMTCTX_NOHEADER.

View Source
const AVFmtctxUnseekable = C.AVFMTCTX_UNSEEKABLE

AVFmtctxUnseekable wraps AVFMTCTX_UNSEEKABLE.

View Source
const AVFourccMaxStringSize = C.AV_FOURCC_MAX_STRING_SIZE

AVFourccMaxStringSize wraps AV_FOURCC_MAX_STRING_SIZE.

View Source
const AVFrameCropUnaligned = C.AV_FRAME_CROP_UNALIGNED

AVFrameCropUnaligned wraps AV_FRAME_CROP_UNALIGNED.

View Source
const AVFrameFilenameFlagsMultiple = C.AV_FRAME_FILENAME_FLAGS_MULTIPLE

AVFrameFilenameFlagsMultiple wraps AV_FRAME_FILENAME_FLAGS_MULTIPLE.

View Source
const AVFrameFlagCorrupt = C.AV_FRAME_FLAG_CORRUPT

AVFrameFlagCorrupt wraps AV_FRAME_FLAG_CORRUPT.

View Source
const AVFrameFlagDiscard = C.AV_FRAME_FLAG_DISCARD

AVFrameFlagDiscard wraps AV_FRAME_FLAG_DISCARD.

View Source
const AVFrameFlagInterlaced = C.AV_FRAME_FLAG_INTERLACED

AVFrameFlagInterlaced wraps AV_FRAME_FLAG_INTERLACED.

View Source
const AVFrameFlagKey = C.AV_FRAME_FLAG_KEY

AVFrameFlagKey wraps AV_FRAME_FLAG_KEY.

View Source
const AVFrameFlagLossless = C.AV_FRAME_FLAG_LOSSLESS

AVFrameFlagLossless wraps AV_FRAME_FLAG_LOSSLESS.

View Source
const AVFrameFlagTopFieldFirst = C.AV_FRAME_FLAG_TOP_FIELD_FIRST

AVFrameFlagTopFieldFirst wraps AV_FRAME_FLAG_TOP_FIELD_FIRST.

View Source
const AVFrameSideDataFlagNewRef = C.AV_FRAME_SIDE_DATA_FLAG_NEW_REF

AVFrameSideDataFlagNewRef wraps AV_FRAME_SIDE_DATA_FLAG_NEW_REF.

View Source
const AVFrameSideDataFlagReplace = C.AV_FRAME_SIDE_DATA_FLAG_REPLACE

AVFrameSideDataFlagReplace wraps AV_FRAME_SIDE_DATA_FLAG_REPLACE.

View Source
const AVFrameSideDataFlagUnique = C.AV_FRAME_SIDE_DATA_FLAG_UNIQUE

AVFrameSideDataFlagUnique wraps AV_FRAME_SIDE_DATA_FLAG_UNIQUE.

View Source
const AVGetBufferFlagRef = C.AV_GET_BUFFER_FLAG_REF

AVGetBufferFlagRef wraps AV_GET_BUFFER_FLAG_REF.

View Source
const AVGetEncodeBufferFlagRef = C.AV_GET_ENCODE_BUFFER_FLAG_REF

AVGetEncodeBufferFlagRef wraps AV_GET_ENCODE_BUFFER_FLAG_REF.

View Source
const AVHWAccelCodecCapExperimental = C.AV_HWACCEL_CODEC_CAP_EXPERIMENTAL

AVHWAccelCodecCapExperimental wraps AV_HWACCEL_CODEC_CAP_EXPERIMENTAL.

View Source
const AVHWAccelFlagAllowHighDepth = C.AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH

AVHWAccelFlagAllowHighDepth wraps AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH.

View Source
const AVHWAccelFlagAllowProfileMismatch = C.AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH

AVHWAccelFlagAllowProfileMismatch wraps AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH.

View Source
const AVHWAccelFlagIgnoreLevel = C.AV_HWACCEL_FLAG_IGNORE_LEVEL

AVHWAccelFlagIgnoreLevel wraps AV_HWACCEL_FLAG_IGNORE_LEVEL.

View Source
const AVHWAccelFlagUnsafeOutput = C.AV_HWACCEL_FLAG_UNSAFE_OUTPUT

AVHWAccelFlagUnsafeOutput wraps AV_HWACCEL_FLAG_UNSAFE_OUTPUT.

View Source
const AVHWFrameMapDirect = C.AV_HWFRAME_MAP_DIRECT

AVHWFrameMapDirect wraps AV_HWFRAME_MAP_DIRECT.

View Source
const AVHWFrameMapOverwrite = C.AV_HWFRAME_MAP_OVERWRITE

AVHWFrameMapOverwrite wraps AV_HWFRAME_MAP_OVERWRITE.

View Source
const AVHWFrameMapRead = C.AV_HWFRAME_MAP_READ

AVHWFrameMapRead wraps AV_HWFRAME_MAP_READ.

View Source
const AVHWFrameMapWrite = C.AV_HWFRAME_MAP_WRITE

AVHWFrameMapWrite wraps AV_HWFRAME_MAP_WRITE.

View Source
const AVHashMaxSize = C.AV_HASH_MAX_SIZE

AVHashMaxSize wraps AV_HASH_MAX_SIZE.

View Source
const AVHaveBigendian = C.AV_HAVE_BIGENDIAN

AVHaveBigendian wraps AV_HAVE_BIGENDIAN.

View Source
const AVHaveFastUnaligned = C.AV_HAVE_FAST_UNALIGNED

AVHaveFastUnaligned wraps AV_HAVE_FAST_UNALIGNED.

View Source
const AVHdrPlusMaxPayloadSize = C.AV_HDR_PLUS_MAX_PAYLOAD_SIZE

AVHdrPlusMaxPayloadSize wraps AV_HDR_PLUS_MAX_PAYLOAD_SIZE.

View Source
const AVIOFlagDirect = C.AVIO_FLAG_DIRECT

AVIOFlagDirect wraps AVIO_FLAG_DIRECT.

View Source
const AVIOFlagNonblock = C.AVIO_FLAG_NONBLOCK

AVIOFlagNonblock wraps AVIO_FLAG_NONBLOCK.

View Source
const AVIOFlagRead = C.AVIO_FLAG_READ

AVIOFlagRead wraps AVIO_FLAG_READ.

View Source
const AVIOFlagReadWrite = C.AVIO_FLAG_READ_WRITE

AVIOFlagReadWrite wraps AVIO_FLAG_READ_WRITE.

View Source
const AVIOFlagWrite = C.AVIO_FLAG_WRITE

AVIOFlagWrite wraps AVIO_FLAG_WRITE.

View Source
const AVIOSeekableNormal = C.AVIO_SEEKABLE_NORMAL

AVIOSeekableNormal wraps AVIO_SEEKABLE_NORMAL.

View Source
const AVIOSeekableTime = C.AVIO_SEEKABLE_TIME

AVIOSeekableTime wraps AVIO_SEEKABLE_TIME.

View Source
const AVIamfLayerFlagReconGain = C.AV_IAMF_LAYER_FLAG_RECON_GAIN

AVIamfLayerFlagReconGain wraps AV_IAMF_LAYER_FLAG_RECON_GAIN.

View Source
const AVIndexDiscardFrame = C.AVINDEX_DISCARD_FRAME

AVIndexDiscardFrame wraps AVINDEX_DISCARD_FRAME.

View Source
const AVIndexKeyframe = C.AVINDEX_KEYFRAME

AVIndexKeyframe wraps AVINDEX_KEYFRAME.

View Source
const AVInputBufferPaddingSize = C.AV_INPUT_BUFFER_PADDING_SIZE

AVInputBufferPaddingSize wraps AV_INPUT_BUFFER_PADDING_SIZE.

View Source
const AVLevelUnknown = C.AV_LEVEL_UNKNOWN

AVLevelUnknown wraps AV_LEVEL_UNKNOWN.

View Source
const AVLogDebug = C.AV_LOG_DEBUG

AVLogDebug wraps AV_LOG_DEBUG.

View Source
const AVLogError = C.AV_LOG_ERROR

AVLogError wraps AV_LOG_ERROR.

View Source
const AVLogFatal = C.AV_LOG_FATAL

AVLogFatal wraps AV_LOG_FATAL.

View Source
const AVLogInfo = C.AV_LOG_INFO

AVLogInfo wraps AV_LOG_INFO.

View Source
const AVLogMaxOffset = C.AV_LOG_MAX_OFFSET

AVLogMaxOffset wraps AV_LOG_MAX_OFFSET.

View Source
const AVLogPanic = C.AV_LOG_PANIC

AVLogPanic wraps AV_LOG_PANIC.

View Source
const AVLogPrintDatetime = C.AV_LOG_PRINT_DATETIME

AVLogPrintDatetime wraps AV_LOG_PRINT_DATETIME.

View Source
const AVLogPrintLevel = C.AV_LOG_PRINT_LEVEL

AVLogPrintLevel wraps AV_LOG_PRINT_LEVEL.

View Source
const AVLogPrintTime = C.AV_LOG_PRINT_TIME

AVLogPrintTime wraps AV_LOG_PRINT_TIME.

View Source
const AVLogQuiet = C.AV_LOG_QUIET

AVLogQuiet wraps AV_LOG_QUIET.

View Source
const AVLogSkipRepeated = C.AV_LOG_SKIP_REPEATED

AVLogSkipRepeated wraps AV_LOG_SKIP_REPEATED.

View Source
const AVLogTrace = C.AV_LOG_TRACE

AVLogTrace wraps AV_LOG_TRACE.

View Source
const AVLogVerbose = C.AV_LOG_VERBOSE

AVLogVerbose wraps AV_LOG_VERBOSE.

View Source
const AVLogWarning = C.AV_LOG_WARNING

AVLogWarning wraps AV_LOG_WARNING.

View Source
const AVLzoError = C.AV_LZO_ERROR

AVLzoError wraps AV_LZO_ERROR.

View Source
const AVLzoInputDepleted = C.AV_LZO_INPUT_DEPLETED

AVLzoInputDepleted wraps AV_LZO_INPUT_DEPLETED.

View Source
const AVLzoInputPadding = C.AV_LZO_INPUT_PADDING

AVLzoInputPadding wraps AV_LZO_INPUT_PADDING.

View Source
const AVLzoInvalidBackptr = C.AV_LZO_INVALID_BACKPTR

AVLzoInvalidBackptr wraps AV_LZO_INVALID_BACKPTR.

View Source
const AVLzoOutputFull = C.AV_LZO_OUTPUT_FULL

AVLzoOutputFull wraps AV_LZO_OUTPUT_FULL.

View Source
const AVLzoOutputPadding = C.AV_LZO_OUTPUT_PADDING

AVLzoOutputPadding wraps AV_LZO_OUTPUT_PADDING.

View Source
const AVNoptsValue = C.AV_NOPTS_VALUE

AVNoptsValue wraps AV_NOPTS_VALUE.

View Source
const AVNumDataPointers = C.AV_NUM_DATA_POINTERS

AVNumDataPointers wraps AV_NUM_DATA_POINTERS.

View Source
const AVNumDetectionBboxClassify = C.AV_NUM_DETECTION_BBOX_CLASSIFY

AVNumDetectionBboxClassify wraps AV_NUM_DETECTION_BBOX_CLASSIFY.

View Source
const AVOptAllowNull = C.AV_OPT_ALLOW_NULL

AVOptAllowNull wraps AV_OPT_ALLOW_NULL.

View Source
const AVOptArrayReplace = C.AV_OPT_ARRAY_REPLACE

AVOptArrayReplace wraps AV_OPT_ARRAY_REPLACE.

View Source
const AVOptFlagAudioParam = C.AV_OPT_FLAG_AUDIO_PARAM

AVOptFlagAudioParam wraps AV_OPT_FLAG_AUDIO_PARAM.

View Source
const AVOptFlagBsfParam = C.AV_OPT_FLAG_BSF_PARAM

AVOptFlagBsfParam wraps AV_OPT_FLAG_BSF_PARAM.

View Source
const AVOptFlagChildConsts = C.AV_OPT_FLAG_CHILD_CONSTS

AVOptFlagChildConsts wraps AV_OPT_FLAG_CHILD_CONSTS.

View Source
const AVOptFlagDecodingParam = C.AV_OPT_FLAG_DECODING_PARAM

AVOptFlagDecodingParam wraps AV_OPT_FLAG_DECODING_PARAM.

View Source
const AVOptFlagDeprecated = C.AV_OPT_FLAG_DEPRECATED

AVOptFlagDeprecated wraps AV_OPT_FLAG_DEPRECATED.

View Source
const AVOptFlagEncodingParam = C.AV_OPT_FLAG_ENCODING_PARAM

AVOptFlagEncodingParam wraps AV_OPT_FLAG_ENCODING_PARAM.

View Source
const AVOptFlagExport = C.AV_OPT_FLAG_EXPORT

AVOptFlagExport wraps AV_OPT_FLAG_EXPORT.

View Source
const AVOptFlagFilteringParam = C.AV_OPT_FLAG_FILTERING_PARAM

AVOptFlagFilteringParam wraps AV_OPT_FLAG_FILTERING_PARAM.

View Source
const AVOptFlagImplicitKey = C.AV_OPT_FLAG_IMPLICIT_KEY

AVOptFlagImplicitKey wraps AV_OPT_FLAG_IMPLICIT_KEY.

View Source
const AVOptFlagReadonly = C.AV_OPT_FLAG_READONLY

AVOptFlagReadonly wraps AV_OPT_FLAG_READONLY.

View Source
const AVOptFlagRuntimeParam = C.AV_OPT_FLAG_RUNTIME_PARAM

AVOptFlagRuntimeParam wraps AV_OPT_FLAG_RUNTIME_PARAM.

View Source
const AVOptFlagSubtitleParam = C.AV_OPT_FLAG_SUBTITLE_PARAM

AVOptFlagSubtitleParam wraps AV_OPT_FLAG_SUBTITLE_PARAM.

View Source
const AVOptFlagVideoParam = C.AV_OPT_FLAG_VIDEO_PARAM

AVOptFlagVideoParam wraps AV_OPT_FLAG_VIDEO_PARAM.

View Source
const AVOptMultiComponentRange = C.AV_OPT_MULTI_COMPONENT_RANGE

AVOptMultiComponentRange wraps AV_OPT_MULTI_COMPONENT_RANGE.

View Source
const AVOptSearchChildren = C.AV_OPT_SEARCH_CHILDREN

AVOptSearchChildren wraps AV_OPT_SEARCH_CHILDREN.

View Source
const AVOptSearchFakeObj = C.AV_OPT_SEARCH_FAKE_OBJ

AVOptSearchFakeObj wraps AV_OPT_SEARCH_FAKE_OBJ.

View Source
const AVOptSerializeOptFlagsExact = C.AV_OPT_SERIALIZE_OPT_FLAGS_EXACT

AVOptSerializeOptFlagsExact wraps AV_OPT_SERIALIZE_OPT_FLAGS_EXACT.

View Source
const AVOptSerializeSearchChildren = C.AV_OPT_SERIALIZE_SEARCH_CHILDREN

AVOptSerializeSearchChildren wraps AV_OPT_SERIALIZE_SEARCH_CHILDREN.

View Source
const AVOptSerializeSkipDefaults = C.AV_OPT_SERIALIZE_SKIP_DEFAULTS

AVOptSerializeSkipDefaults wraps AV_OPT_SERIALIZE_SKIP_DEFAULTS.

View Source
const AVPaletteCount = C.AVPALETTE_COUNT

AVPaletteCount wraps AVPALETTE_COUNT.

View Source
const AVPaletteSize = C.AVPALETTE_SIZE

AVPaletteSize wraps AVPALETTE_SIZE.

View Source
const AVParserPtsNb = C.AV_PARSER_PTS_NB

AVParserPtsNb wraps AV_PARSER_PTS_NB.

View Source
const AVPixFmt0Bgr32 = C.AV_PIX_FMT_0BGR32

AVPixFmt0Bgr32 wraps AV_PIX_FMT_0BGR32.

View Source
const AVPixFmt0Rgb32 = C.AV_PIX_FMT_0RGB32

AVPixFmt0Rgb32 wraps AV_PIX_FMT_0RGB32.

View Source
const AVPixFmtAyuv64 = C.AV_PIX_FMT_AYUV64

AVPixFmtAyuv64 wraps AV_PIX_FMT_AYUV64.

View Source
const AVPixFmtBayerBggr16 = C.AV_PIX_FMT_BAYER_BGGR16

AVPixFmtBayerBggr16 wraps AV_PIX_FMT_BAYER_BGGR16.

View Source
const AVPixFmtBayerGbrg16 = C.AV_PIX_FMT_BAYER_GBRG16

AVPixFmtBayerGbrg16 wraps AV_PIX_FMT_BAYER_GBRG16.

View Source
const AVPixFmtBayerGrbg16 = C.AV_PIX_FMT_BAYER_GRBG16

AVPixFmtBayerGrbg16 wraps AV_PIX_FMT_BAYER_GRBG16.

View Source
const AVPixFmtBayerRggb16 = C.AV_PIX_FMT_BAYER_RGGB16

AVPixFmtBayerRggb16 wraps AV_PIX_FMT_BAYER_RGGB16.

View Source
const AVPixFmtBgr32 = C.AV_PIX_FMT_BGR32

AVPixFmtBgr32 wraps AV_PIX_FMT_BGR32.

View Source
const AVPixFmtBgr321 = C.AV_PIX_FMT_BGR32_1

AVPixFmtBgr321 wraps AV_PIX_FMT_BGR32_1.

View Source
const AVPixFmtBgr444 = C.AV_PIX_FMT_BGR444

AVPixFmtBgr444 wraps AV_PIX_FMT_BGR444.

View Source
const AVPixFmtBgr48 = C.AV_PIX_FMT_BGR48

AVPixFmtBgr48 wraps AV_PIX_FMT_BGR48.

View Source
const AVPixFmtBgr555 = C.AV_PIX_FMT_BGR555

AVPixFmtBgr555 wraps AV_PIX_FMT_BGR555.

View Source
const AVPixFmtBgr565 = C.AV_PIX_FMT_BGR565

AVPixFmtBgr565 wraps AV_PIX_FMT_BGR565.

View Source
const AVPixFmtBgra64 = C.AV_PIX_FMT_BGRA64

AVPixFmtBgra64 wraps AV_PIX_FMT_BGRA64.

View Source
const AVPixFmtFlagAlpha = C.AV_PIX_FMT_FLAG_ALPHA

AVPixFmtFlagAlpha wraps AV_PIX_FMT_FLAG_ALPHA.

View Source
const AVPixFmtFlagBayer = C.AV_PIX_FMT_FLAG_BAYER

AVPixFmtFlagBayer wraps AV_PIX_FMT_FLAG_BAYER.

View Source
const AVPixFmtFlagBe = C.AV_PIX_FMT_FLAG_BE

AVPixFmtFlagBe wraps AV_PIX_FMT_FLAG_BE.

View Source
const AVPixFmtFlagBitstream = C.AV_PIX_FMT_FLAG_BITSTREAM

AVPixFmtFlagBitstream wraps AV_PIX_FMT_FLAG_BITSTREAM.

View Source
const AVPixFmtFlagFloat = C.AV_PIX_FMT_FLAG_FLOAT

AVPixFmtFlagFloat wraps AV_PIX_FMT_FLAG_FLOAT.

View Source
const AVPixFmtFlagHWAccel = C.AV_PIX_FMT_FLAG_HWACCEL

AVPixFmtFlagHWAccel wraps AV_PIX_FMT_FLAG_HWACCEL.

View Source
const AVPixFmtFlagPal = C.AV_PIX_FMT_FLAG_PAL

AVPixFmtFlagPal wraps AV_PIX_FMT_FLAG_PAL.

View Source
const AVPixFmtFlagPlanar = C.AV_PIX_FMT_FLAG_PLANAR

AVPixFmtFlagPlanar wraps AV_PIX_FMT_FLAG_PLANAR.

View Source
const AVPixFmtFlagRgb = C.AV_PIX_FMT_FLAG_RGB

AVPixFmtFlagRgb wraps AV_PIX_FMT_FLAG_RGB.

View Source
const AVPixFmtFlagXyz = C.AV_PIX_FMT_FLAG_XYZ

AVPixFmtFlagXyz wraps AV_PIX_FMT_FLAG_XYZ.

View Source
const AVPixFmtGbrap10 = C.AV_PIX_FMT_GBRAP10

AVPixFmtGbrap10 wraps AV_PIX_FMT_GBRAP10.

View Source
const AVPixFmtGbrap12 = C.AV_PIX_FMT_GBRAP12

AVPixFmtGbrap12 wraps AV_PIX_FMT_GBRAP12.

View Source
const AVPixFmtGbrap14 = C.AV_PIX_FMT_GBRAP14

AVPixFmtGbrap14 wraps AV_PIX_FMT_GBRAP14.

View Source
const AVPixFmtGbrap16 = C.AV_PIX_FMT_GBRAP16

AVPixFmtGbrap16 wraps AV_PIX_FMT_GBRAP16.

View Source
const AVPixFmtGbrap32 = C.AV_PIX_FMT_GBRAP32

AVPixFmtGbrap32 wraps AV_PIX_FMT_GBRAP32.

View Source
const AVPixFmtGbrapf16 = C.AV_PIX_FMT_GBRAPF16

AVPixFmtGbrapf16 wraps AV_PIX_FMT_GBRAPF16.

View Source
const AVPixFmtGbrapf32 = C.AV_PIX_FMT_GBRAPF32

AVPixFmtGbrapf32 wraps AV_PIX_FMT_GBRAPF32.

View Source
const AVPixFmtGbrp10 = C.AV_PIX_FMT_GBRP10

AVPixFmtGbrp10 wraps AV_PIX_FMT_GBRP10.

View Source
const AVPixFmtGbrp10Msb = C.AV_PIX_FMT_GBRP10MSB

AVPixFmtGbrp10Msb wraps AV_PIX_FMT_GBRP10MSB.

View Source
const AVPixFmtGbrp12 = C.AV_PIX_FMT_GBRP12

AVPixFmtGbrp12 wraps AV_PIX_FMT_GBRP12.

View Source
const AVPixFmtGbrp12Msb = C.AV_PIX_FMT_GBRP12MSB

AVPixFmtGbrp12Msb wraps AV_PIX_FMT_GBRP12MSB.

View Source
const AVPixFmtGbrp14 = C.AV_PIX_FMT_GBRP14

AVPixFmtGbrp14 wraps AV_PIX_FMT_GBRP14.

View Source
const AVPixFmtGbrp16 = C.AV_PIX_FMT_GBRP16

AVPixFmtGbrp16 wraps AV_PIX_FMT_GBRP16.

View Source
const AVPixFmtGbrp9 = C.AV_PIX_FMT_GBRP9

AVPixFmtGbrp9 wraps AV_PIX_FMT_GBRP9.

View Source
const AVPixFmtGbrpf16 = C.AV_PIX_FMT_GBRPF16

AVPixFmtGbrpf16 wraps AV_PIX_FMT_GBRPF16.

View Source
const AVPixFmtGbrpf32 = C.AV_PIX_FMT_GBRPF32

AVPixFmtGbrpf32 wraps AV_PIX_FMT_GBRPF32.

View Source
const AVPixFmtGray10 = C.AV_PIX_FMT_GRAY10

AVPixFmtGray10 wraps AV_PIX_FMT_GRAY10.

View Source
const AVPixFmtGray12 = C.AV_PIX_FMT_GRAY12

AVPixFmtGray12 wraps AV_PIX_FMT_GRAY12.

View Source
const AVPixFmtGray14 = C.AV_PIX_FMT_GRAY14

AVPixFmtGray14 wraps AV_PIX_FMT_GRAY14.

View Source
const AVPixFmtGray16 = C.AV_PIX_FMT_GRAY16

AVPixFmtGray16 wraps AV_PIX_FMT_GRAY16.

View Source
const AVPixFmtGray32 = C.AV_PIX_FMT_GRAY32

AVPixFmtGray32 wraps AV_PIX_FMT_GRAY32.

View Source
const AVPixFmtGray9 = C.AV_PIX_FMT_GRAY9

AVPixFmtGray9 wraps AV_PIX_FMT_GRAY9.

View Source
const AVPixFmtGrayf16 = C.AV_PIX_FMT_GRAYF16

AVPixFmtGrayf16 wraps AV_PIX_FMT_GRAYF16.

View Source
const AVPixFmtGrayf32 = C.AV_PIX_FMT_GRAYF32

AVPixFmtGrayf32 wraps AV_PIX_FMT_GRAYF32.

View Source
const AVPixFmtNv20 = C.AV_PIX_FMT_NV20

AVPixFmtNv20 wraps AV_PIX_FMT_NV20.

View Source
const AVPixFmtP010 = C.AV_PIX_FMT_P010

AVPixFmtP010 wraps AV_PIX_FMT_P010.

View Source
const AVPixFmtP012 = C.AV_PIX_FMT_P012

AVPixFmtP012 wraps AV_PIX_FMT_P012.

View Source
const AVPixFmtP016 = C.AV_PIX_FMT_P016

AVPixFmtP016 wraps AV_PIX_FMT_P016.

View Source
const AVPixFmtP210 = C.AV_PIX_FMT_P210

AVPixFmtP210 wraps AV_PIX_FMT_P210.

View Source
const AVPixFmtP212 = C.AV_PIX_FMT_P212

AVPixFmtP212 wraps AV_PIX_FMT_P212.

View Source
const AVPixFmtP216 = C.AV_PIX_FMT_P216

AVPixFmtP216 wraps AV_PIX_FMT_P216.

View Source
const AVPixFmtP410 = C.AV_PIX_FMT_P410

AVPixFmtP410 wraps AV_PIX_FMT_P410.

View Source
const AVPixFmtP412 = C.AV_PIX_FMT_P412

AVPixFmtP412 wraps AV_PIX_FMT_P412.

View Source
const AVPixFmtP416 = C.AV_PIX_FMT_P416

AVPixFmtP416 wraps AV_PIX_FMT_P416.

View Source
const AVPixFmtRgb32 = C.AV_PIX_FMT_RGB32

AVPixFmtRgb32 wraps AV_PIX_FMT_RGB32.

View Source
const AVPixFmtRgb321 = C.AV_PIX_FMT_RGB32_1

AVPixFmtRgb321 wraps AV_PIX_FMT_RGB32_1.

View Source
const AVPixFmtRgb444 = C.AV_PIX_FMT_RGB444

AVPixFmtRgb444 wraps AV_PIX_FMT_RGB444.

View Source
const AVPixFmtRgb48 = C.AV_PIX_FMT_RGB48

AVPixFmtRgb48 wraps AV_PIX_FMT_RGB48.

View Source
const AVPixFmtRgb555 = C.AV_PIX_FMT_RGB555

AVPixFmtRgb555 wraps AV_PIX_FMT_RGB555.

View Source
const AVPixFmtRgb565 = C.AV_PIX_FMT_RGB565

AVPixFmtRgb565 wraps AV_PIX_FMT_RGB565.

View Source
const AVPixFmtRgb96 = C.AV_PIX_FMT_RGB96

AVPixFmtRgb96 wraps AV_PIX_FMT_RGB96.

View Source
const AVPixFmtRgba128 = C.AV_PIX_FMT_RGBA128

AVPixFmtRgba128 wraps AV_PIX_FMT_RGBA128.

View Source
const AVPixFmtRgba64 = C.AV_PIX_FMT_RGBA64

AVPixFmtRgba64 wraps AV_PIX_FMT_RGBA64.

View Source
const AVPixFmtRgbaf16 = C.AV_PIX_FMT_RGBAF16

AVPixFmtRgbaf16 wraps AV_PIX_FMT_RGBAF16.

View Source
const AVPixFmtRgbaf32 = C.AV_PIX_FMT_RGBAF32

AVPixFmtRgbaf32 wraps AV_PIX_FMT_RGBAF32.

View Source
const AVPixFmtRgbf16 = C.AV_PIX_FMT_RGBF16

AVPixFmtRgbf16 wraps AV_PIX_FMT_RGBF16.

View Source
const AVPixFmtRgbf32 = C.AV_PIX_FMT_RGBF32

AVPixFmtRgbf32 wraps AV_PIX_FMT_RGBF32.

View Source
const AVPixFmtV30X = C.AV_PIX_FMT_V30X

AVPixFmtV30X wraps AV_PIX_FMT_V30X.

View Source
const AVPixFmtX2Bgr10 = C.AV_PIX_FMT_X2BGR10

AVPixFmtX2Bgr10 wraps AV_PIX_FMT_X2BGR10.

View Source
const AVPixFmtX2Rgb10 = C.AV_PIX_FMT_X2RGB10

AVPixFmtX2Rgb10 wraps AV_PIX_FMT_X2RGB10.

View Source
const AVPixFmtXv30 = C.AV_PIX_FMT_XV30

AVPixFmtXv30 wraps AV_PIX_FMT_XV30.

View Source
const AVPixFmtXv36 = C.AV_PIX_FMT_XV36

AVPixFmtXv36 wraps AV_PIX_FMT_XV36.

View Source
const AVPixFmtXv48 = C.AV_PIX_FMT_XV48

AVPixFmtXv48 wraps AV_PIX_FMT_XV48.

View Source
const AVPixFmtXyz12 = C.AV_PIX_FMT_XYZ12

AVPixFmtXyz12 wraps AV_PIX_FMT_XYZ12.

View Source
const AVPixFmtY210 = C.AV_PIX_FMT_Y210

AVPixFmtY210 wraps AV_PIX_FMT_Y210.

View Source
const AVPixFmtY212 = C.AV_PIX_FMT_Y212

AVPixFmtY212 wraps AV_PIX_FMT_Y212.

View Source
const AVPixFmtY216 = C.AV_PIX_FMT_Y216

AVPixFmtY216 wraps AV_PIX_FMT_Y216.

View Source
const AVPixFmtYa16 = C.AV_PIX_FMT_YA16

AVPixFmtYa16 wraps AV_PIX_FMT_YA16.

View Source
const AVPixFmtYaf16 = C.AV_PIX_FMT_YAF16

AVPixFmtYaf16 wraps AV_PIX_FMT_YAF16.

View Source
const AVPixFmtYaf32 = C.AV_PIX_FMT_YAF32

AVPixFmtYaf32 wraps AV_PIX_FMT_YAF32.

View Source
const AVPixFmtYuv420P10 = C.AV_PIX_FMT_YUV420P10

AVPixFmtYuv420P10 wraps AV_PIX_FMT_YUV420P10.

View Source
const AVPixFmtYuv420P12 = C.AV_PIX_FMT_YUV420P12

AVPixFmtYuv420P12 wraps AV_PIX_FMT_YUV420P12.

View Source
const AVPixFmtYuv420P14 = C.AV_PIX_FMT_YUV420P14

AVPixFmtYuv420P14 wraps AV_PIX_FMT_YUV420P14.

View Source
const AVPixFmtYuv420P16 = C.AV_PIX_FMT_YUV420P16

AVPixFmtYuv420P16 wraps AV_PIX_FMT_YUV420P16.

View Source
const AVPixFmtYuv420P9 = C.AV_PIX_FMT_YUV420P9

AVPixFmtYuv420P9 wraps AV_PIX_FMT_YUV420P9.

View Source
const AVPixFmtYuv422P10 = C.AV_PIX_FMT_YUV422P10

AVPixFmtYuv422P10 wraps AV_PIX_FMT_YUV422P10.

View Source
const AVPixFmtYuv422P12 = C.AV_PIX_FMT_YUV422P12

AVPixFmtYuv422P12 wraps AV_PIX_FMT_YUV422P12.

View Source
const AVPixFmtYuv422P14 = C.AV_PIX_FMT_YUV422P14

AVPixFmtYuv422P14 wraps AV_PIX_FMT_YUV422P14.

View Source
const AVPixFmtYuv422P16 = C.AV_PIX_FMT_YUV422P16

AVPixFmtYuv422P16 wraps AV_PIX_FMT_YUV422P16.

View Source
const AVPixFmtYuv422P9 = C.AV_PIX_FMT_YUV422P9

AVPixFmtYuv422P9 wraps AV_PIX_FMT_YUV422P9.

View Source
const AVPixFmtYuv440P10 = C.AV_PIX_FMT_YUV440P10

AVPixFmtYuv440P10 wraps AV_PIX_FMT_YUV440P10.

View Source
const AVPixFmtYuv440P12 = C.AV_PIX_FMT_YUV440P12

AVPixFmtYuv440P12 wraps AV_PIX_FMT_YUV440P12.

View Source
const AVPixFmtYuv444P10 = C.AV_PIX_FMT_YUV444P10

AVPixFmtYuv444P10 wraps AV_PIX_FMT_YUV444P10.

View Source
const AVPixFmtYuv444P10Msb = C.AV_PIX_FMT_YUV444P10MSB

AVPixFmtYuv444P10Msb wraps AV_PIX_FMT_YUV444P10MSB.

View Source
const AVPixFmtYuv444P12 = C.AV_PIX_FMT_YUV444P12

AVPixFmtYuv444P12 wraps AV_PIX_FMT_YUV444P12.

View Source
const AVPixFmtYuv444P12Msb = C.AV_PIX_FMT_YUV444P12MSB

AVPixFmtYuv444P12Msb wraps AV_PIX_FMT_YUV444P12MSB.

View Source
const AVPixFmtYuv444P14 = C.AV_PIX_FMT_YUV444P14

AVPixFmtYuv444P14 wraps AV_PIX_FMT_YUV444P14.

View Source
const AVPixFmtYuv444P16 = C.AV_PIX_FMT_YUV444P16

AVPixFmtYuv444P16 wraps AV_PIX_FMT_YUV444P16.

View Source
const AVPixFmtYuv444P9 = C.AV_PIX_FMT_YUV444P9

AVPixFmtYuv444P9 wraps AV_PIX_FMT_YUV444P9.

View Source
const AVPixFmtYuva420P10 = C.AV_PIX_FMT_YUVA420P10

AVPixFmtYuva420P10 wraps AV_PIX_FMT_YUVA420P10.

View Source
const AVPixFmtYuva420P16 = C.AV_PIX_FMT_YUVA420P16

AVPixFmtYuva420P16 wraps AV_PIX_FMT_YUVA420P16.

View Source
const AVPixFmtYuva420P9 = C.AV_PIX_FMT_YUVA420P9

AVPixFmtYuva420P9 wraps AV_PIX_FMT_YUVA420P9.

View Source
const AVPixFmtYuva422P10 = C.AV_PIX_FMT_YUVA422P10

AVPixFmtYuva422P10 wraps AV_PIX_FMT_YUVA422P10.

View Source
const AVPixFmtYuva422P12 = C.AV_PIX_FMT_YUVA422P12

AVPixFmtYuva422P12 wraps AV_PIX_FMT_YUVA422P12.

View Source
const AVPixFmtYuva422P16 = C.AV_PIX_FMT_YUVA422P16

AVPixFmtYuva422P16 wraps AV_PIX_FMT_YUVA422P16.

View Source
const AVPixFmtYuva422P9 = C.AV_PIX_FMT_YUVA422P9

AVPixFmtYuva422P9 wraps AV_PIX_FMT_YUVA422P9.

View Source
const AVPixFmtYuva444P10 = C.AV_PIX_FMT_YUVA444P10

AVPixFmtYuva444P10 wraps AV_PIX_FMT_YUVA444P10.

View Source
const AVPixFmtYuva444P12 = C.AV_PIX_FMT_YUVA444P12

AVPixFmtYuva444P12 wraps AV_PIX_FMT_YUVA444P12.

View Source
const AVPixFmtYuva444P16 = C.AV_PIX_FMT_YUVA444P16

AVPixFmtYuva444P16 wraps AV_PIX_FMT_YUVA444P16.

View Source
const AVPixFmtYuva444P9 = C.AV_PIX_FMT_YUVA444P9

AVPixFmtYuva444P9 wraps AV_PIX_FMT_YUVA444P9.

View Source
const AVPktFlagCorrupt = C.AV_PKT_FLAG_CORRUPT

AVPktFlagCorrupt wraps AV_PKT_FLAG_CORRUPT.

View Source
const AVPktFlagDiscard = C.AV_PKT_FLAG_DISCARD

AVPktFlagDiscard wraps AV_PKT_FLAG_DISCARD.

View Source
const AVPktFlagDisposable = C.AV_PKT_FLAG_DISPOSABLE

AVPktFlagDisposable wraps AV_PKT_FLAG_DISPOSABLE.

View Source
const AVPktFlagKey = C.AV_PKT_FLAG_KEY

AVPktFlagKey wraps AV_PKT_FLAG_KEY.

View Source
const AVPktFlagTrusted = C.AV_PKT_FLAG_TRUSTED

AVPktFlagTrusted wraps AV_PKT_FLAG_TRUSTED.

View Source
const AVPriUrnUuid = C.AV_PRI_URN_UUID

AVPriUrnUuid wraps AV_PRI_URN_UUID.

View Source
const AVPriUuid = C.AV_PRI_UUID

AVPriUuid wraps AV_PRI_UUID.

View Source
const AVProbePaddingSize = C.AVPROBE_PADDING_SIZE

AVProbePaddingSize wraps AVPROBE_PADDING_SIZE.

View Source
const AVProbeScoreExtension = C.AVPROBE_SCORE_EXTENSION

AVProbeScoreExtension wraps AVPROBE_SCORE_EXTENSION.

View Source
const AVProbeScoreMax = C.AVPROBE_SCORE_MAX

AVProbeScoreMax wraps AVPROBE_SCORE_MAX.

View Source
const AVProbeScoreMimeBonus = C.AVPROBE_SCORE_MIME_BONUS

AVProbeScoreMimeBonus wraps AVPROBE_SCORE_MIME_BONUS.

View Source
const AVProbeScoreRetry = C.AVPROBE_SCORE_RETRY

AVProbeScoreRetry wraps AVPROBE_SCORE_RETRY.

View Source
const AVProbeScoreStreamRetry = C.AVPROBE_SCORE_STREAM_RETRY

AVProbeScoreStreamRetry wraps AVPROBE_SCORE_STREAM_RETRY.

View Source
const AVProfileAV1High = C.AV_PROFILE_AV1_HIGH

AVProfileAV1High wraps AV_PROFILE_AV1_HIGH.

View Source
const AVProfileAV1Main = C.AV_PROFILE_AV1_MAIN

AVProfileAV1Main wraps AV_PROFILE_AV1_MAIN.

View Source
const AVProfileAV1Professional = C.AV_PROFILE_AV1_PROFESSIONAL

AVProfileAV1Professional wraps AV_PROFILE_AV1_PROFESSIONAL.

View Source
const AVProfileAacEld = C.AV_PROFILE_AAC_ELD

AVProfileAacEld wraps AV_PROFILE_AAC_ELD.

View Source
const AVProfileAacHe = C.AV_PROFILE_AAC_HE

AVProfileAacHe wraps AV_PROFILE_AAC_HE.

View Source
const AVProfileAacHeV2 = C.AV_PROFILE_AAC_HE_V2

AVProfileAacHeV2 wraps AV_PROFILE_AAC_HE_V2.

View Source
const AVProfileAacLd = C.AV_PROFILE_AAC_LD

AVProfileAacLd wraps AV_PROFILE_AAC_LD.

View Source
const AVProfileAacLow = C.AV_PROFILE_AAC_LOW

AVProfileAacLow wraps AV_PROFILE_AAC_LOW.

View Source
const AVProfileAacLtp = C.AV_PROFILE_AAC_LTP

AVProfileAacLtp wraps AV_PROFILE_AAC_LTP.

View Source
const AVProfileAacMain = C.AV_PROFILE_AAC_MAIN

AVProfileAacMain wraps AV_PROFILE_AAC_MAIN.

View Source
const AVProfileAacSsr = C.AV_PROFILE_AAC_SSR

AVProfileAacSsr wraps AV_PROFILE_AAC_SSR.

View Source
const AVProfileAacUsac = C.AV_PROFILE_AAC_USAC

AVProfileAacUsac wraps AV_PROFILE_AAC_USAC.

View Source
const AVProfileApv40010 = C.AV_PROFILE_APV_400_10

AVProfileApv40010 wraps AV_PROFILE_APV_400_10.

View Source
const AVProfileApv42210 = C.AV_PROFILE_APV_422_10

AVProfileApv42210 wraps AV_PROFILE_APV_422_10.

View Source
const AVProfileApv42212 = C.AV_PROFILE_APV_422_12

AVProfileApv42212 wraps AV_PROFILE_APV_422_12.

View Source
const AVProfileApv44410 = C.AV_PROFILE_APV_444_10

AVProfileApv44410 wraps AV_PROFILE_APV_444_10.

View Source
const AVProfileApv44412 = C.AV_PROFILE_APV_444_12

AVProfileApv44412 wraps AV_PROFILE_APV_444_12.

View Source
const AVProfileApv444410 = C.AV_PROFILE_APV_4444_10

AVProfileApv444410 wraps AV_PROFILE_APV_4444_10.

View Source
const AVProfileApv444412 = C.AV_PROFILE_APV_4444_12

AVProfileApv444412 wraps AV_PROFILE_APV_4444_12.

View Source
const AVProfileAribProfileA = C.AV_PROFILE_ARIB_PROFILE_A

AVProfileAribProfileA wraps AV_PROFILE_ARIB_PROFILE_A.

View Source
const AVProfileAribProfileC = C.AV_PROFILE_ARIB_PROFILE_C

AVProfileAribProfileC wraps AV_PROFILE_ARIB_PROFILE_C.

View Source
const AVProfileDnxhd = C.AV_PROFILE_DNXHD

AVProfileDnxhd wraps AV_PROFILE_DNXHD.

View Source
const AVProfileDnxhr444 = C.AV_PROFILE_DNXHR_444

AVProfileDnxhr444 wraps AV_PROFILE_DNXHR_444.

View Source
const AVProfileDnxhrHq = C.AV_PROFILE_DNXHR_HQ

AVProfileDnxhrHq wraps AV_PROFILE_DNXHR_HQ.

View Source
const AVProfileDnxhrHqx = C.AV_PROFILE_DNXHR_HQX

AVProfileDnxhrHqx wraps AV_PROFILE_DNXHR_HQX.

View Source
const AVProfileDnxhrLb = C.AV_PROFILE_DNXHR_LB

AVProfileDnxhrLb wraps AV_PROFILE_DNXHR_LB.

View Source
const AVProfileDnxhrSq = C.AV_PROFILE_DNXHR_SQ

AVProfileDnxhrSq wraps AV_PROFILE_DNXHR_SQ.

View Source
const AVProfileDts = C.AV_PROFILE_DTS

AVProfileDts wraps AV_PROFILE_DTS.

View Source
const AVProfileDts9624 = C.AV_PROFILE_DTS_96_24

AVProfileDts9624 wraps AV_PROFILE_DTS_96_24.

View Source
const AVProfileDtsEs = C.AV_PROFILE_DTS_ES

AVProfileDtsEs wraps AV_PROFILE_DTS_ES.

View Source
const AVProfileDtsExpress = C.AV_PROFILE_DTS_EXPRESS

AVProfileDtsExpress wraps AV_PROFILE_DTS_EXPRESS.

View Source
const AVProfileDtsHdHra = C.AV_PROFILE_DTS_HD_HRA

AVProfileDtsHdHra wraps AV_PROFILE_DTS_HD_HRA.

View Source
const AVProfileDtsHdMa = C.AV_PROFILE_DTS_HD_MA

AVProfileDtsHdMa wraps AV_PROFILE_DTS_HD_MA.

View Source
const AVProfileDtsHdMaX = C.AV_PROFILE_DTS_HD_MA_X

AVProfileDtsHdMaX wraps AV_PROFILE_DTS_HD_MA_X.

View Source
const AVProfileDtsHdMaXImax = C.AV_PROFILE_DTS_HD_MA_X_IMAX

AVProfileDtsHdMaXImax wraps AV_PROFILE_DTS_HD_MA_X_IMAX.

View Source
const AVProfileEac3DdpAtmos = C.AV_PROFILE_EAC3_DDP_ATMOS

AVProfileEac3DdpAtmos wraps AV_PROFILE_EAC3_DDP_ATMOS.

View Source
const AVProfileEvcBaseline = C.AV_PROFILE_EVC_BASELINE

AVProfileEvcBaseline wraps AV_PROFILE_EVC_BASELINE.

View Source
const AVProfileEvcMain = C.AV_PROFILE_EVC_MAIN

AVProfileEvcMain wraps AV_PROFILE_EVC_MAIN.

View Source
const AVProfileH264Baseline = C.AV_PROFILE_H264_BASELINE

AVProfileH264Baseline wraps AV_PROFILE_H264_BASELINE.

View Source
const AVProfileH264Cavlc444 = C.AV_PROFILE_H264_CAVLC_444

AVProfileH264Cavlc444 wraps AV_PROFILE_H264_CAVLC_444.

View Source
const AVProfileH264Constrained = C.AV_PROFILE_H264_CONSTRAINED

AVProfileH264Constrained wraps AV_PROFILE_H264_CONSTRAINED.

View Source
const AVProfileH264ConstrainedBaseline = C.AV_PROFILE_H264_CONSTRAINED_BASELINE

AVProfileH264ConstrainedBaseline wraps AV_PROFILE_H264_CONSTRAINED_BASELINE.

View Source
const AVProfileH264Extended = C.AV_PROFILE_H264_EXTENDED

AVProfileH264Extended wraps AV_PROFILE_H264_EXTENDED.

View Source
const AVProfileH264High = C.AV_PROFILE_H264_HIGH

AVProfileH264High wraps AV_PROFILE_H264_HIGH.

View Source
const AVProfileH264High10 = C.AV_PROFILE_H264_HIGH_10

AVProfileH264High10 wraps AV_PROFILE_H264_HIGH_10.

View Source
const AVProfileH264High10Intra = C.AV_PROFILE_H264_HIGH_10_INTRA

AVProfileH264High10Intra wraps AV_PROFILE_H264_HIGH_10_INTRA.

View Source
const AVProfileH264High422 = C.AV_PROFILE_H264_HIGH_422

AVProfileH264High422 wraps AV_PROFILE_H264_HIGH_422.

View Source
const AVProfileH264High422Intra = C.AV_PROFILE_H264_HIGH_422_INTRA

AVProfileH264High422Intra wraps AV_PROFILE_H264_HIGH_422_INTRA.

View Source
const AVProfileH264High444 = C.AV_PROFILE_H264_HIGH_444

AVProfileH264High444 wraps AV_PROFILE_H264_HIGH_444.

View Source
const AVProfileH264High444Intra = C.AV_PROFILE_H264_HIGH_444_INTRA

AVProfileH264High444Intra wraps AV_PROFILE_H264_HIGH_444_INTRA.

View Source
const AVProfileH264High444Predictive = C.AV_PROFILE_H264_HIGH_444_PREDICTIVE

AVProfileH264High444Predictive wraps AV_PROFILE_H264_HIGH_444_PREDICTIVE.

View Source
const AVProfileH264Intra = C.AV_PROFILE_H264_INTRA

AVProfileH264Intra wraps AV_PROFILE_H264_INTRA.

View Source
const AVProfileH264Main = C.AV_PROFILE_H264_MAIN

AVProfileH264Main wraps AV_PROFILE_H264_MAIN.

View Source
const AVProfileH264MultiviewHigh = C.AV_PROFILE_H264_MULTIVIEW_HIGH

AVProfileH264MultiviewHigh wraps AV_PROFILE_H264_MULTIVIEW_HIGH.

View Source
const AVProfileH264StereoHigh = C.AV_PROFILE_H264_STEREO_HIGH

AVProfileH264StereoHigh wraps AV_PROFILE_H264_STEREO_HIGH.

View Source
const AVProfileHevcMain = C.AV_PROFILE_HEVC_MAIN

AVProfileHevcMain wraps AV_PROFILE_HEVC_MAIN.

View Source
const AVProfileHevcMain10 = C.AV_PROFILE_HEVC_MAIN_10

AVProfileHevcMain10 wraps AV_PROFILE_HEVC_MAIN_10.

View Source
const AVProfileHevcMainStillPicture = C.AV_PROFILE_HEVC_MAIN_STILL_PICTURE

AVProfileHevcMainStillPicture wraps AV_PROFILE_HEVC_MAIN_STILL_PICTURE.

View Source
const AVProfileHevcMultiviewMain = C.AV_PROFILE_HEVC_MULTIVIEW_MAIN

AVProfileHevcMultiviewMain wraps AV_PROFILE_HEVC_MULTIVIEW_MAIN.

View Source
const AVProfileHevcRext = C.AV_PROFILE_HEVC_REXT

AVProfileHevcRext wraps AV_PROFILE_HEVC_REXT.

View Source
const AVProfileHevcScc = C.AV_PROFILE_HEVC_SCC

AVProfileHevcScc wraps AV_PROFILE_HEVC_SCC.

View Source
const AVProfileJpeg2000CstreamNoRestriction = C.AV_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION

AVProfileJpeg2000CstreamNoRestriction wraps AV_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION.

View Source
const AVProfileJpeg2000CstreamRestriction0 = C.AV_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0

AVProfileJpeg2000CstreamRestriction0 wraps AV_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0.

View Source
const AVProfileJpeg2000CstreamRestriction1 = C.AV_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1

AVProfileJpeg2000CstreamRestriction1 wraps AV_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1.

View Source
const AVProfileJpeg2000Dcinema2K = C.AV_PROFILE_JPEG2000_DCINEMA_2K

AVProfileJpeg2000Dcinema2K wraps AV_PROFILE_JPEG2000_DCINEMA_2K.

View Source
const AVProfileJpeg2000Dcinema4K = C.AV_PROFILE_JPEG2000_DCINEMA_4K

AVProfileJpeg2000Dcinema4K wraps AV_PROFILE_JPEG2000_DCINEMA_4K.

View Source
const AVProfileKlvaAsync = C.AV_PROFILE_KLVA_ASYNC

AVProfileKlvaAsync wraps AV_PROFILE_KLVA_ASYNC.

View Source
const AVProfileKlvaSync = C.AV_PROFILE_KLVA_SYNC

AVProfileKlvaSync wraps AV_PROFILE_KLVA_SYNC.

View Source
const AVProfileMjpegHuffmanBaselineDct = C.AV_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT

AVProfileMjpegHuffmanBaselineDct wraps AV_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT.

View Source
const AVProfileMjpegHuffmanExtendedSequentialDct = C.AV_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT

AVProfileMjpegHuffmanExtendedSequentialDct wraps AV_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT.

View Source
const AVProfileMjpegHuffmanLossless = C.AV_PROFILE_MJPEG_HUFFMAN_LOSSLESS

AVProfileMjpegHuffmanLossless wraps AV_PROFILE_MJPEG_HUFFMAN_LOSSLESS.

View Source
const AVProfileMjpegHuffmanProgressiveDct = C.AV_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT

AVProfileMjpegHuffmanProgressiveDct wraps AV_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT.

View Source
const AVProfileMjpegJpegLs = C.AV_PROFILE_MJPEG_JPEG_LS

AVProfileMjpegJpegLs wraps AV_PROFILE_MJPEG_JPEG_LS.

View Source
const AVProfileMpeg2422 = C.AV_PROFILE_MPEG2_422

AVProfileMpeg2422 wraps AV_PROFILE_MPEG2_422.

View Source
const AVProfileMpeg2AacHe = C.AV_PROFILE_MPEG2_AAC_HE

AVProfileMpeg2AacHe wraps AV_PROFILE_MPEG2_AAC_HE.

View Source
const AVProfileMpeg2AacLow = C.AV_PROFILE_MPEG2_AAC_LOW

AVProfileMpeg2AacLow wraps AV_PROFILE_MPEG2_AAC_LOW.

View Source
const AVProfileMpeg2High = C.AV_PROFILE_MPEG2_HIGH

AVProfileMpeg2High wraps AV_PROFILE_MPEG2_HIGH.

View Source
const AVProfileMpeg2Main = C.AV_PROFILE_MPEG2_MAIN

AVProfileMpeg2Main wraps AV_PROFILE_MPEG2_MAIN.

View Source
const AVProfileMpeg2Simple = C.AV_PROFILE_MPEG2_SIMPLE

AVProfileMpeg2Simple wraps AV_PROFILE_MPEG2_SIMPLE.

View Source
const AVProfileMpeg2SnrScalable = C.AV_PROFILE_MPEG2_SNR_SCALABLE

AVProfileMpeg2SnrScalable wraps AV_PROFILE_MPEG2_SNR_SCALABLE.

View Source
const AVProfileMpeg2Ss = C.AV_PROFILE_MPEG2_SS

AVProfileMpeg2Ss wraps AV_PROFILE_MPEG2_SS.

View Source
const AVProfileMpeg4AdvancedCoding = C.AV_PROFILE_MPEG4_ADVANCED_CODING

AVProfileMpeg4AdvancedCoding wraps AV_PROFILE_MPEG4_ADVANCED_CODING.

View Source
const AVProfileMpeg4AdvancedCore = C.AV_PROFILE_MPEG4_ADVANCED_CORE

AVProfileMpeg4AdvancedCore wraps AV_PROFILE_MPEG4_ADVANCED_CORE.

View Source
const AVProfileMpeg4AdvancedRealTime = C.AV_PROFILE_MPEG4_ADVANCED_REAL_TIME

AVProfileMpeg4AdvancedRealTime wraps AV_PROFILE_MPEG4_ADVANCED_REAL_TIME.

View Source
const AVProfileMpeg4AdvancedScalableTexture = C.AV_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE

AVProfileMpeg4AdvancedScalableTexture wraps AV_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE.

View Source
const AVProfileMpeg4AdvancedSimple = C.AV_PROFILE_MPEG4_ADVANCED_SIMPLE

AVProfileMpeg4AdvancedSimple wraps AV_PROFILE_MPEG4_ADVANCED_SIMPLE.

View Source
const AVProfileMpeg4BasicAnimatedTexture = C.AV_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE

AVProfileMpeg4BasicAnimatedTexture wraps AV_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE.

View Source
const AVProfileMpeg4Core = C.AV_PROFILE_MPEG4_CORE

AVProfileMpeg4Core wraps AV_PROFILE_MPEG4_CORE.

View Source
const AVProfileMpeg4CoreScalable = C.AV_PROFILE_MPEG4_CORE_SCALABLE

AVProfileMpeg4CoreScalable wraps AV_PROFILE_MPEG4_CORE_SCALABLE.

View Source
const AVProfileMpeg4Hybrid = C.AV_PROFILE_MPEG4_HYBRID

AVProfileMpeg4Hybrid wraps AV_PROFILE_MPEG4_HYBRID.

View Source
const AVProfileMpeg4Main = C.AV_PROFILE_MPEG4_MAIN

AVProfileMpeg4Main wraps AV_PROFILE_MPEG4_MAIN.

View Source
const AVProfileMpeg4NBit = C.AV_PROFILE_MPEG4_N_BIT

AVProfileMpeg4NBit wraps AV_PROFILE_MPEG4_N_BIT.

View Source
const AVProfileMpeg4ScalableTexture = C.AV_PROFILE_MPEG4_SCALABLE_TEXTURE

AVProfileMpeg4ScalableTexture wraps AV_PROFILE_MPEG4_SCALABLE_TEXTURE.

View Source
const AVProfileMpeg4Simple = C.AV_PROFILE_MPEG4_SIMPLE

AVProfileMpeg4Simple wraps AV_PROFILE_MPEG4_SIMPLE.

View Source
const AVProfileMpeg4SimpleFaceAnimation = C.AV_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION

AVProfileMpeg4SimpleFaceAnimation wraps AV_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION.

View Source
const AVProfileMpeg4SimpleScalable = C.AV_PROFILE_MPEG4_SIMPLE_SCALABLE

AVProfileMpeg4SimpleScalable wraps AV_PROFILE_MPEG4_SIMPLE_SCALABLE.

View Source
const AVProfileMpeg4SimpleStudio = C.AV_PROFILE_MPEG4_SIMPLE_STUDIO

AVProfileMpeg4SimpleStudio wraps AV_PROFILE_MPEG4_SIMPLE_STUDIO.

View Source
const AVProfileProres4444 = C.AV_PROFILE_PRORES_4444

AVProfileProres4444 wraps AV_PROFILE_PRORES_4444.

View Source
const AVProfileProresHq = C.AV_PROFILE_PRORES_HQ

AVProfileProresHq wraps AV_PROFILE_PRORES_HQ.

View Source
const AVProfileProresLt = C.AV_PROFILE_PRORES_LT

AVProfileProresLt wraps AV_PROFILE_PRORES_LT.

View Source
const AVProfileProresProxy = C.AV_PROFILE_PRORES_PROXY

AVProfileProresProxy wraps AV_PROFILE_PRORES_PROXY.

View Source
const AVProfileProresRaw = C.AV_PROFILE_PRORES_RAW

AVProfileProresRaw wraps AV_PROFILE_PRORES_RAW.

View Source
const AVProfileProresRawHq = C.AV_PROFILE_PRORES_RAW_HQ

AVProfileProresRawHq wraps AV_PROFILE_PRORES_RAW_HQ.

View Source
const AVProfileProresStandard = C.AV_PROFILE_PRORES_STANDARD

AVProfileProresStandard wraps AV_PROFILE_PRORES_STANDARD.

View Source
const AVProfileProresXq = C.AV_PROFILE_PRORES_XQ

AVProfileProresXq wraps AV_PROFILE_PRORES_XQ.

View Source
const AVProfileReserved = C.AV_PROFILE_RESERVED

AVProfileReserved wraps AV_PROFILE_RESERVED.

View Source
const AVProfileSbcMsbc = C.AV_PROFILE_SBC_MSBC

AVProfileSbcMsbc wraps AV_PROFILE_SBC_MSBC.

View Source
const AVProfileTruehdAtmos = C.AV_PROFILE_TRUEHD_ATMOS

AVProfileTruehdAtmos wraps AV_PROFILE_TRUEHD_ATMOS.

View Source
const AVProfileUnknown = C.AV_PROFILE_UNKNOWN

AVProfileUnknown wraps AV_PROFILE_UNKNOWN.

View Source
const AVProfileVc1Advanced = C.AV_PROFILE_VC1_ADVANCED

AVProfileVc1Advanced wraps AV_PROFILE_VC1_ADVANCED.

View Source
const AVProfileVc1Complex = C.AV_PROFILE_VC1_COMPLEX

AVProfileVc1Complex wraps AV_PROFILE_VC1_COMPLEX.

View Source
const AVProfileVc1Main = C.AV_PROFILE_VC1_MAIN

AVProfileVc1Main wraps AV_PROFILE_VC1_MAIN.

View Source
const AVProfileVc1Simple = C.AV_PROFILE_VC1_SIMPLE

AVProfileVc1Simple wraps AV_PROFILE_VC1_SIMPLE.

View Source
const AVProfileVp90 = C.AV_PROFILE_VP9_0

AVProfileVp90 wraps AV_PROFILE_VP9_0.

View Source
const AVProfileVp91 = C.AV_PROFILE_VP9_1

AVProfileVp91 wraps AV_PROFILE_VP9_1.

View Source
const AVProfileVp92 = C.AV_PROFILE_VP9_2

AVProfileVp92 wraps AV_PROFILE_VP9_2.

View Source
const AVProfileVp93 = C.AV_PROFILE_VP9_3

AVProfileVp93 wraps AV_PROFILE_VP9_3.

View Source
const AVProfileVvcMain10 = C.AV_PROFILE_VVC_MAIN_10

AVProfileVvcMain10 wraps AV_PROFILE_VVC_MAIN_10.

View Source
const AVProfileVvcMain10444 = C.AV_PROFILE_VVC_MAIN_10_444

AVProfileVvcMain10444 wraps AV_PROFILE_VVC_MAIN_10_444.

View Source
const AVProgramRunning = C.AV_PROGRAM_RUNNING

AVProgramRunning wraps AV_PROGRAM_RUNNING.

View Source
const AVPtsWrapAddOffset = C.AV_PTS_WRAP_ADD_OFFSET

AVPtsWrapAddOffset wraps AV_PTS_WRAP_ADD_OFFSET.

View Source
const AVPtsWrapIgnore = C.AV_PTS_WRAP_IGNORE

AVPtsWrapIgnore wraps AV_PTS_WRAP_IGNORE.

View Source
const AVPtsWrapSubOffset = C.AV_PTS_WRAP_SUB_OFFSET

AVPtsWrapSubOffset wraps AV_PTS_WRAP_SUB_OFFSET.

View Source
const AVSeekFlagAny = C.AVSEEK_FLAG_ANY

AVSeekFlagAny wraps AVSEEK_FLAG_ANY.

View Source
const AVSeekFlagBackward = C.AVSEEK_FLAG_BACKWARD

AVSeekFlagBackward wraps AVSEEK_FLAG_BACKWARD.

View Source
const AVSeekFlagByte = C.AVSEEK_FLAG_BYTE

AVSeekFlagByte wraps AVSEEK_FLAG_BYTE.

View Source
const AVSeekFlagFrame = C.AVSEEK_FLAG_FRAME

AVSeekFlagFrame wraps AVSEEK_FLAG_FRAME.

View Source
const AVSeekForce = C.AVSEEK_FORCE

AVSeekForce wraps AVSEEK_FORCE.

View Source
const AVSeekSize = C.AVSEEK_SIZE

AVSeekSize wraps AVSEEK_SIZE.

View Source
const AVStereo3DFlagInvert = C.AV_STEREO3D_FLAG_INVERT

AVStereo3DFlagInvert wraps AV_STEREO3D_FLAG_INVERT.

View Source
const AVStreamEventFlagMetadataUpdated = C.AVSTREAM_EVENT_FLAG_METADATA_UPDATED

AVStreamEventFlagMetadataUpdated wraps AVSTREAM_EVENT_FLAG_METADATA_UPDATED.

View Source
const AVStreamEventFlagNewPackets = C.AVSTREAM_EVENT_FLAG_NEW_PACKETS

AVStreamEventFlagNewPackets wraps AVSTREAM_EVENT_FLAG_NEW_PACKETS.

View Source
const AVStreamInitInInitOutput = C.AVSTREAM_INIT_IN_INIT_OUTPUT

AVStreamInitInInitOutput wraps AVSTREAM_INIT_IN_INIT_OUTPUT.

View Source
const AVStreamInitInWriteHeader = C.AVSTREAM_INIT_IN_WRITE_HEADER

AVStreamInitInWriteHeader wraps AVSTREAM_INIT_IN_WRITE_HEADER.

View Source
const AVSubtitleFlagForced = C.AV_SUBTITLE_FLAG_FORCED

AVSubtitleFlagForced wraps AV_SUBTITLE_FLAG_FORCED.

View Source
const AVTdrdiMaxNumRefDisplay = C.AV_TDRDI_MAX_NUM_REF_DISPLAY

AVTdrdiMaxNumRefDisplay wraps AV_TDRDI_MAX_NUM_REF_DISPLAY.

View Source
const AVTimeBase = C.AV_TIME_BASE

AVTimeBase wraps AV_TIME_BASE.

View Source
const AVTimecodeStrSize = C.AV_TIMECODE_STR_SIZE

AVTimecodeStrSize wraps AV_TIMECODE_STR_SIZE.

View Source
const AVTsMaxStringSize = C.AV_TS_MAX_STRING_SIZE

AVTsMaxStringSize wraps AV_TS_MAX_STRING_SIZE.

View Source
const AVUtf8FlagAcceptAll = C.AV_UTF8_FLAG_ACCEPT_ALL

AVUtf8FlagAcceptAll wraps AV_UTF8_FLAG_ACCEPT_ALL.

View Source
const AVUtf8FlagAcceptInvalidBigCodes = C.AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES

AVUtf8FlagAcceptInvalidBigCodes wraps AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES.

View Source
const AVUtf8FlagAcceptNonCharacters = C.AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS

AVUtf8FlagAcceptNonCharacters wraps AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS.

View Source
const AVUtf8FlagAcceptSurrogates = C.AV_UTF8_FLAG_ACCEPT_SURROGATES

AVUtf8FlagAcceptSurrogates wraps AV_UTF8_FLAG_ACCEPT_SURROGATES.

View Source
const AVUtf8FlagExcludeXmlInvalidControlCodes = C.AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES

AVUtf8FlagExcludeXmlInvalidControlCodes wraps AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES.

View Source
const AVUuidLen = C.AV_UUID_LEN

AVUuidLen wraps AV_UUID_LEN.

View Source
const AVVideoMaxPlanes = C.AV_VIDEO_MAX_PLANES

AVVideoMaxPlanes wraps AV_VIDEO_MAX_PLANES.

View Source
const AesCtrIvSize = C.AES_CTR_IV_SIZE

AesCtrIvSize wraps AES_CTR_IV_SIZE.

View Source
const AesCtrKeySize = C.AES_CTR_KEY_SIZE

AesCtrKeySize wraps AES_CTR_KEY_SIZE.

View Source
const FFAPIAlsaChannels = C.FF_API_ALSA_CHANNELS

FFAPIAlsaChannels wraps FF_API_ALSA_CHANNELS.

View Source
const FFAPIBuffersinkOpts = C.FF_API_BUFFERSINK_OPTS

FFAPIBuffersinkOpts wraps FF_API_BUFFERSINK_OPTS.

View Source
const FFAPICodecProps = C.FF_API_CODEC_PROPS

FFAPICodecProps wraps FF_API_CODEC_PROPS.

View Source
const FFAPIComputePktFields2 = C.FF_API_COMPUTE_PKT_FIELDS2

FFAPIComputePktFields2 wraps FF_API_COMPUTE_PKT_FIELDS2.

View Source
const FFAPIContextPublic = C.FF_API_CONTEXT_PUBLIC

FFAPIContextPublic wraps FF_API_CONTEXT_PUBLIC.

View Source
const FFAPIExrGamma = C.FF_API_EXR_GAMMA

FFAPIExrGamma wraps FF_API_EXR_GAMMA.

View Source
const FFAPIInitPacket = C.FF_API_INIT_PACKET

FFAPIInitPacket wraps FF_API_INIT_PACKET.

View Source
const FFAPIInternalTiming = C.FF_API_INTERNAL_TIMING

FFAPIInternalTiming wraps FF_API_INTERNAL_TIMING.

View Source
const FFAPIModUintp2 = C.FF_API_MOD_UINTP2

FFAPIModUintp2 wraps FF_API_MOD_UINTP2.

View Source
const FFAPINoDefaultTlsVerify = C.FF_API_NO_DEFAULT_TLS_VERIFY

FFAPINoDefaultTlsVerify wraps FF_API_NO_DEFAULT_TLS_VERIFY.

View Source
const FFAPINvdecOldPixFmts = C.FF_API_NVDEC_OLD_PIX_FMTS

FFAPINvdecOldPixFmts wraps FF_API_NVDEC_OLD_PIX_FMTS.

View Source
const FFAPIOptIntList = C.FF_API_OPT_INT_LIST

FFAPIOptIntList wraps FF_API_OPT_INT_LIST.

View Source
const FFAPIOptPtr = C.FF_API_OPT_PTR

FFAPIOptPtr wraps FF_API_OPT_PTR.

View Source
const FFAPIRFrameRate = C.FF_API_R_FRAME_RATE

FFAPIRFrameRate wraps FF_API_R_FRAME_RATE.

View Source
const FFAPIRiscvFdZba = C.FF_API_RISCV_FD_ZBA

FFAPIRiscvFdZba wraps FF_API_RISCV_FD_ZBA.

View Source
const FFAPIV408Codecid = C.FF_API_V408_CODECID

FFAPIV408Codecid wraps FF_API_V408_CODECID.

View Source
const FFAPIVulkanFixedQueues = C.FF_API_VULKAN_FIXED_QUEUES

FFAPIVulkanFixedQueues wraps FF_API_VULKAN_FIXED_QUEUES.

View Source
const FFBugAmv = C.FF_BUG_AMV

FFBugAmv wraps FF_BUG_AMV.

View Source
const FFBugAutodetect = C.FF_BUG_AUTODETECT

FFBugAutodetect wraps FF_BUG_AUTODETECT.

View Source
const FFBugDcClip = C.FF_BUG_DC_CLIP

FFBugDcClip wraps FF_BUG_DC_CLIP.

View Source
const FFBugDirectBlocksize = C.FF_BUG_DIRECT_BLOCKSIZE

FFBugDirectBlocksize wraps FF_BUG_DIRECT_BLOCKSIZE.

View Source
const FFBugEdge = C.FF_BUG_EDGE

FFBugEdge wraps FF_BUG_EDGE.

View Source
const FFBugHpelChroma = C.FF_BUG_HPEL_CHROMA

FFBugHpelChroma wraps FF_BUG_HPEL_CHROMA.

View Source
const FFBugIedge = C.FF_BUG_IEDGE

FFBugIedge wraps FF_BUG_IEDGE.

View Source
const FFBugMs = C.FF_BUG_MS

FFBugMs wraps FF_BUG_MS.

View Source
const FFBugNoPadding = C.FF_BUG_NO_PADDING

FFBugNoPadding wraps FF_BUG_NO_PADDING.

View Source
const FFBugQpelChroma = C.FF_BUG_QPEL_CHROMA

FFBugQpelChroma wraps FF_BUG_QPEL_CHROMA.

View Source
const FFBugQpelChroma2 = C.FF_BUG_QPEL_CHROMA2

FFBugQpelChroma2 wraps FF_BUG_QPEL_CHROMA2.

View Source
const FFBugStdQpel = C.FF_BUG_STD_QPEL

FFBugStdQpel wraps FF_BUG_STD_QPEL.

View Source
const FFBugTruncated = C.FF_BUG_TRUNCATED

FFBugTruncated wraps FF_BUG_TRUNCATED.

View Source
const FFBugUmp4 = C.FF_BUG_UMP4

FFBugUmp4 wraps FF_BUG_UMP4.

View Source
const FFBugXvidIlace = C.FF_BUG_XVID_ILACE

FFBugXvidIlace wraps FF_BUG_XVID_ILACE.

View Source
const FFCmpBit = C.FF_CMP_BIT

FFCmpBit wraps FF_CMP_BIT.

View Source
const FFCmpChroma = C.FF_CMP_CHROMA

FFCmpChroma wraps FF_CMP_CHROMA.

View Source
const FFCmpDct = C.FF_CMP_DCT

FFCmpDct wraps FF_CMP_DCT.

View Source
const FFCmpDct264 = C.FF_CMP_DCT264

FFCmpDct264 wraps FF_CMP_DCT264.

View Source
const FFCmpDctmax = C.FF_CMP_DCTMAX

FFCmpDctmax wraps FF_CMP_DCTMAX.

View Source
const FFCmpMedianSad = C.FF_CMP_MEDIAN_SAD

FFCmpMedianSad wraps FF_CMP_MEDIAN_SAD.

View Source
const FFCmpNsse = C.FF_CMP_NSSE

FFCmpNsse wraps FF_CMP_NSSE.

View Source
const FFCmpPsnr = C.FF_CMP_PSNR

FFCmpPsnr wraps FF_CMP_PSNR.

View Source
const FFCmpRd = C.FF_CMP_RD

FFCmpRd wraps FF_CMP_RD.

View Source
const FFCmpSad = C.FF_CMP_SAD

FFCmpSad wraps FF_CMP_SAD.

View Source
const FFCmpSatd = C.FF_CMP_SATD

FFCmpSatd wraps FF_CMP_SATD.

View Source
const FFCmpSse = C.FF_CMP_SSE

FFCmpSse wraps FF_CMP_SSE.

View Source
const FFCmpVsad = C.FF_CMP_VSAD

FFCmpVsad wraps FF_CMP_VSAD.

View Source
const FFCmpVsse = C.FF_CMP_VSSE

FFCmpVsse wraps FF_CMP_VSSE.

View Source
const FFCmpW53 = C.FF_CMP_W53

FFCmpW53 wraps FF_CMP_W53.

View Source
const FFCmpW97 = C.FF_CMP_W97

FFCmpW97 wraps FF_CMP_W97.

View Source
const FFCmpZero = C.FF_CMP_ZERO

FFCmpZero wraps FF_CMP_ZERO.

View Source
const FFCodecOmx = C.FF_CODEC_OMX

FFCodecOmx wraps FF_CODEC_OMX.

View Source
const FFCodecPropertyClosedCaptions = C.FF_CODEC_PROPERTY_CLOSED_CAPTIONS

FFCodecPropertyClosedCaptions wraps FF_CODEC_PROPERTY_CLOSED_CAPTIONS.

View Source
const FFCodecPropertyFilmGrain = C.FF_CODEC_PROPERTY_FILM_GRAIN

FFCodecPropertyFilmGrain wraps FF_CODEC_PROPERTY_FILM_GRAIN.

View Source
const FFCodecPropertyLossless = C.FF_CODEC_PROPERTY_LOSSLESS

FFCodecPropertyLossless wraps FF_CODEC_PROPERTY_LOSSLESS.

View Source
const FFCodecSonicDec = C.FF_CODEC_SONIC_DEC

FFCodecSonicDec wraps FF_CODEC_SONIC_DEC.

View Source
const FFCodecSonicEnc = C.FF_CODEC_SONIC_ENC

FFCodecSonicEnc wraps FF_CODEC_SONIC_ENC.

View Source
const FFComplianceExperimental = C.FF_COMPLIANCE_EXPERIMENTAL

FFComplianceExperimental wraps FF_COMPLIANCE_EXPERIMENTAL.

View Source
const FFComplianceNormal = C.FF_COMPLIANCE_NORMAL

FFComplianceNormal wraps FF_COMPLIANCE_NORMAL.

View Source
const FFComplianceStrict = C.FF_COMPLIANCE_STRICT

FFComplianceStrict wraps FF_COMPLIANCE_STRICT.

View Source
const FFComplianceUnofficial = C.FF_COMPLIANCE_UNOFFICIAL

FFComplianceUnofficial wraps FF_COMPLIANCE_UNOFFICIAL.

View Source
const FFComplianceVeryStrict = C.FF_COMPLIANCE_VERY_STRICT

FFComplianceVeryStrict wraps FF_COMPLIANCE_VERY_STRICT.

View Source
const FFCompressionDefault = C.FF_COMPRESSION_DEFAULT

FFCompressionDefault wraps FF_COMPRESSION_DEFAULT.

View Source
const FFDctAltivec = C.FF_DCT_ALTIVEC

FFDctAltivec wraps FF_DCT_ALTIVEC.

View Source
const FFDctAuto = C.FF_DCT_AUTO

FFDctAuto wraps FF_DCT_AUTO.

View Source
const FFDctFaan = C.FF_DCT_FAAN

FFDctFaan wraps FF_DCT_FAAN.

View Source
const FFDctFastint = C.FF_DCT_FASTINT

FFDctFastint wraps FF_DCT_FASTINT.

View Source
const FFDctInt = C.FF_DCT_INT

FFDctInt wraps FF_DCT_INT.

View Source
const FFDctMmx = C.FF_DCT_MMX

FFDctMmx wraps FF_DCT_MMX.

View Source
const FFDctNeon = C.FF_DCT_NEON

FFDctNeon wraps FF_DCT_NEON.

View Source
const FFDebugBitstream = C.FF_DEBUG_BITSTREAM

FFDebugBitstream wraps FF_DEBUG_BITSTREAM.

View Source
const FFDebugBuffers = C.FF_DEBUG_BUFFERS

FFDebugBuffers wraps FF_DEBUG_BUFFERS.

View Source
const FFDebugBugs = C.FF_DEBUG_BUGS

FFDebugBugs wraps FF_DEBUG_BUGS.

View Source
const FFDebugDctCoeff = C.FF_DEBUG_DCT_COEFF

FFDebugDctCoeff wraps FF_DEBUG_DCT_COEFF.

View Source
const FFDebugEr = C.FF_DEBUG_ER

FFDebugEr wraps FF_DEBUG_ER.

View Source
const FFDebugGreenMd = C.FF_DEBUG_GREEN_MD

FFDebugGreenMd wraps FF_DEBUG_GREEN_MD.

View Source
const FFDebugMbType = C.FF_DEBUG_MB_TYPE

FFDebugMbType wraps FF_DEBUG_MB_TYPE.

View Source
const FFDebugMmco = C.FF_DEBUG_MMCO

FFDebugMmco wraps FF_DEBUG_MMCO.

View Source
const FFDebugNomc = C.FF_DEBUG_NOMC

FFDebugNomc wraps FF_DEBUG_NOMC.

View Source
const FFDebugPictInfo = C.FF_DEBUG_PICT_INFO

FFDebugPictInfo wraps FF_DEBUG_PICT_INFO.

View Source
const FFDebugQp = C.FF_DEBUG_QP

FFDebugQp wraps FF_DEBUG_QP.

View Source
const FFDebugRc = C.FF_DEBUG_RC

FFDebugRc wraps FF_DEBUG_RC.

View Source
const FFDebugSkip = C.FF_DEBUG_SKIP

FFDebugSkip wraps FF_DEBUG_SKIP.

View Source
const FFDebugStartcode = C.FF_DEBUG_STARTCODE

FFDebugStartcode wraps FF_DEBUG_STARTCODE.

View Source
const FFDebugThreads = C.FF_DEBUG_THREADS

FFDebugThreads wraps FF_DEBUG_THREADS.

View Source
const FFDecodeErrorConcealmentActive = C.FF_DECODE_ERROR_CONCEALMENT_ACTIVE

FFDecodeErrorConcealmentActive wraps FF_DECODE_ERROR_CONCEALMENT_ACTIVE.

View Source
const FFDecodeErrorDecodeSlices = C.FF_DECODE_ERROR_DECODE_SLICES

FFDecodeErrorDecodeSlices wraps FF_DECODE_ERROR_DECODE_SLICES.

View Source
const FFDecodeErrorInvalidBitstream = C.FF_DECODE_ERROR_INVALID_BITSTREAM

FFDecodeErrorInvalidBitstream wraps FF_DECODE_ERROR_INVALID_BITSTREAM.

View Source
const FFDecodeErrorMissingReference = C.FF_DECODE_ERROR_MISSING_REFERENCE

FFDecodeErrorMissingReference wraps FF_DECODE_ERROR_MISSING_REFERENCE.

View Source
const FFEcDeblock = C.FF_EC_DEBLOCK

FFEcDeblock wraps FF_EC_DEBLOCK.

View Source
const FFEcFavorInter = C.FF_EC_FAVOR_INTER

FFEcFavorInter wraps FF_EC_FAVOR_INTER.

View Source
const FFEcGuessMvs = C.FF_EC_GUESS_MVS

FFEcGuessMvs wraps FF_EC_GUESS_MVS.

View Source
const FFFdebugTs = C.FF_FDEBUG_TS

FFFdebugTs wraps FF_FDEBUG_TS.

View Source
const FFIdctAltivec = C.FF_IDCT_ALTIVEC

FFIdctAltivec wraps FF_IDCT_ALTIVEC.

View Source
const FFIdctArm = C.FF_IDCT_ARM

FFIdctArm wraps FF_IDCT_ARM.

View Source
const FFIdctAuto = C.FF_IDCT_AUTO

FFIdctAuto wraps FF_IDCT_AUTO.

View Source
const FFIdctFaan = C.FF_IDCT_FAAN

FFIdctFaan wraps FF_IDCT_FAAN.

View Source
const FFIdctInt = C.FF_IDCT_INT

FFIdctInt wraps FF_IDCT_INT.

View Source
const FFIdctSimple = C.FF_IDCT_SIMPLE

FFIdctSimple wraps FF_IDCT_SIMPLE.

View Source
const FFIdctSimplearm = C.FF_IDCT_SIMPLEARM

FFIdctSimplearm wraps FF_IDCT_SIMPLEARM.

View Source
const FFIdctSimplearmv5Te = C.FF_IDCT_SIMPLEARMV5TE

FFIdctSimplearmv5Te wraps FF_IDCT_SIMPLEARMV5TE.

View Source
const FFIdctSimplearmv6 = C.FF_IDCT_SIMPLEARMV6

FFIdctSimplearmv6 wraps FF_IDCT_SIMPLEARMV6.

View Source
const FFIdctSimpleauto = C.FF_IDCT_SIMPLEAUTO

FFIdctSimpleauto wraps FF_IDCT_SIMPLEAUTO.

View Source
const FFIdctSimplemmx = C.FF_IDCT_SIMPLEMMX

FFIdctSimplemmx wraps FF_IDCT_SIMPLEMMX.

View Source
const FFIdctSimpleneon = C.FF_IDCT_SIMPLENEON

FFIdctSimpleneon wraps FF_IDCT_SIMPLENEON.

View Source
const FFIdctXvid = C.FF_IDCT_XVID

FFIdctXvid wraps FF_IDCT_XVID.

View Source
const FFLambdaMax = C.FF_LAMBDA_MAX

FFLambdaMax wraps FF_LAMBDA_MAX.

View Source
const FFLambdaScale = C.FF_LAMBDA_SCALE

FFLambdaScale wraps FF_LAMBDA_SCALE.

View Source
const FFLambdaShift = C.FF_LAMBDA_SHIFT

FFLambdaShift wraps FF_LAMBDA_SHIFT.

View Source
const FFLossAlpha = C.FF_LOSS_ALPHA

FFLossAlpha wraps FF_LOSS_ALPHA.

View Source
const FFLossChroma = C.FF_LOSS_CHROMA

FFLossChroma wraps FF_LOSS_CHROMA.

View Source
const FFLossColorquant = C.FF_LOSS_COLORQUANT

FFLossColorquant wraps FF_LOSS_COLORQUANT.

View Source
const FFLossColorspace = C.FF_LOSS_COLORSPACE

FFLossColorspace wraps FF_LOSS_COLORSPACE.

View Source
const FFLossDepth = C.FF_LOSS_DEPTH

FFLossDepth wraps FF_LOSS_DEPTH.

View Source
const FFLossExcessDepth = C.FF_LOSS_EXCESS_DEPTH

FFLossExcessDepth wraps FF_LOSS_EXCESS_DEPTH.

View Source
const FFLossExcessResolution = C.FF_LOSS_EXCESS_RESOLUTION

FFLossExcessResolution wraps FF_LOSS_EXCESS_RESOLUTION.

View Source
const FFLossResolution = C.FF_LOSS_RESOLUTION

FFLossResolution wraps FF_LOSS_RESOLUTION.

View Source
const FFMbDecisionBits = C.FF_MB_DECISION_BITS

FFMbDecisionBits wraps FF_MB_DECISION_BITS.

View Source
const FFMbDecisionRd = C.FF_MB_DECISION_RD

FFMbDecisionRd wraps FF_MB_DECISION_RD.

View Source
const FFMbDecisionSimple = C.FF_MB_DECISION_SIMPLE

FFMbDecisionSimple wraps FF_MB_DECISION_SIMPLE.

View Source
const FFQp2Lambda = C.FF_QP2LAMBDA

FFQp2Lambda wraps FF_QP2LAMBDA.

View Source
const FFQualityScale = C.FF_QUALITY_SCALE

FFQualityScale wraps FF_QUALITY_SCALE.

View Source
const FFSubCharencModeAutomatic = C.FF_SUB_CHARENC_MODE_AUTOMATIC

FFSubCharencModeAutomatic wraps FF_SUB_CHARENC_MODE_AUTOMATIC.

View Source
const FFSubCharencModeDoNothing = C.FF_SUB_CHARENC_MODE_DO_NOTHING

FFSubCharencModeDoNothing wraps FF_SUB_CHARENC_MODE_DO_NOTHING.

View Source
const FFSubCharencModeIgnore = C.FF_SUB_CHARENC_MODE_IGNORE

FFSubCharencModeIgnore wraps FF_SUB_CHARENC_MODE_IGNORE.

View Source
const FFSubCharencModePreDecoder = C.FF_SUB_CHARENC_MODE_PRE_DECODER

FFSubCharencModePreDecoder wraps FF_SUB_CHARENC_MODE_PRE_DECODER.

View Source
const FFThreadFrame = C.FF_THREAD_FRAME

FFThreadFrame wraps FF_THREAD_FRAME.

View Source
const FFThreadSlice = C.FF_THREAD_SLICE

FFThreadSlice wraps FF_THREAD_SLICE.

View Source
const LIBAVCodecBuild = C.LIBAVCODEC_BUILD

LIBAVCodecBuild wraps LIBAVCODEC_BUILD.

View Source
const LIBAVCodecVersionInt = C.LIBAVCODEC_VERSION_INT

LIBAVCodecVersionInt wraps LIBAVCODEC_VERSION_INT.

View Source
const LIBAVCodecVersionMajor = C.LIBAVCODEC_VERSION_MAJOR

LIBAVCodecVersionMajor wraps LIBAVCODEC_VERSION_MAJOR.

View Source
const LIBAVCodecVersionMicro = C.LIBAVCODEC_VERSION_MICRO

LIBAVCodecVersionMicro wraps LIBAVCODEC_VERSION_MICRO.

View Source
const LIBAVCodecVersionMinor = C.LIBAVCODEC_VERSION_MINOR

LIBAVCodecVersionMinor wraps LIBAVCODEC_VERSION_MINOR.

View Source
const LIBAVDeviceBuild = C.LIBAVDEVICE_BUILD

LIBAVDeviceBuild wraps LIBAVDEVICE_BUILD.

View Source
const LIBAVDeviceVersionInt = C.LIBAVDEVICE_VERSION_INT

LIBAVDeviceVersionInt wraps LIBAVDEVICE_VERSION_INT.

View Source
const LIBAVDeviceVersionMajor = C.LIBAVDEVICE_VERSION_MAJOR

LIBAVDeviceVersionMajor wraps LIBAVDEVICE_VERSION_MAJOR.

View Source
const LIBAVDeviceVersionMicro = C.LIBAVDEVICE_VERSION_MICRO

LIBAVDeviceVersionMicro wraps LIBAVDEVICE_VERSION_MICRO.

View Source
const LIBAVDeviceVersionMinor = C.LIBAVDEVICE_VERSION_MINOR

LIBAVDeviceVersionMinor wraps LIBAVDEVICE_VERSION_MINOR.

View Source
const LIBAVFilterBuild = C.LIBAVFILTER_BUILD

LIBAVFilterBuild wraps LIBAVFILTER_BUILD.

View Source
const LIBAVFilterVersionInt = C.LIBAVFILTER_VERSION_INT

LIBAVFilterVersionInt wraps LIBAVFILTER_VERSION_INT.

View Source
const LIBAVFilterVersionMajor = C.LIBAVFILTER_VERSION_MAJOR

LIBAVFilterVersionMajor wraps LIBAVFILTER_VERSION_MAJOR.

View Source
const LIBAVFilterVersionMicro = C.LIBAVFILTER_VERSION_MICRO

LIBAVFilterVersionMicro wraps LIBAVFILTER_VERSION_MICRO.

View Source
const LIBAVFilterVersionMinor = C.LIBAVFILTER_VERSION_MINOR

LIBAVFilterVersionMinor wraps LIBAVFILTER_VERSION_MINOR.

View Source
const LIBAVFormatBuild = C.LIBAVFORMAT_BUILD

LIBAVFormatBuild wraps LIBAVFORMAT_BUILD.

View Source
const LIBAVFormatVersionInt = C.LIBAVFORMAT_VERSION_INT

LIBAVFormatVersionInt wraps LIBAVFORMAT_VERSION_INT.

View Source
const LIBAVFormatVersionMajor = C.LIBAVFORMAT_VERSION_MAJOR

LIBAVFormatVersionMajor wraps LIBAVFORMAT_VERSION_MAJOR.

View Source
const LIBAVFormatVersionMicro = C.LIBAVFORMAT_VERSION_MICRO

LIBAVFormatVersionMicro wraps LIBAVFORMAT_VERSION_MICRO.

View Source
const LIBAVFormatVersionMinor = C.LIBAVFORMAT_VERSION_MINOR

LIBAVFormatVersionMinor wraps LIBAVFORMAT_VERSION_MINOR.

View Source
const LIBAVUtilBuild = C.LIBAVUTIL_BUILD

LIBAVUtilBuild wraps LIBAVUTIL_BUILD.

View Source
const LIBAVUtilVersionInt = C.LIBAVUTIL_VERSION_INT

LIBAVUtilVersionInt wraps LIBAVUTIL_VERSION_INT.

View Source
const LIBAVUtilVersionMajor = C.LIBAVUTIL_VERSION_MAJOR

LIBAVUtilVersionMajor wraps LIBAVUTIL_VERSION_MAJOR.

View Source
const LIBAVUtilVersionMicro = C.LIBAVUTIL_VERSION_MICRO

LIBAVUtilVersionMicro wraps LIBAVUTIL_VERSION_MICRO.

View Source
const LIBAVUtilVersionMinor = C.LIBAVUTIL_VERSION_MINOR

LIBAVUtilVersionMinor wraps LIBAVUTIL_VERSION_MINOR.

View Source
const LIBSwresampleBuild = C.LIBSWRESAMPLE_BUILD

LIBSwresampleBuild wraps LIBSWRESAMPLE_BUILD.

View Source
const LIBSwresampleVersionInt = C.LIBSWRESAMPLE_VERSION_INT

LIBSwresampleVersionInt wraps LIBSWRESAMPLE_VERSION_INT.

View Source
const LIBSwresampleVersionMajor = C.LIBSWRESAMPLE_VERSION_MAJOR

LIBSwresampleVersionMajor wraps LIBSWRESAMPLE_VERSION_MAJOR.

View Source
const LIBSwresampleVersionMicro = C.LIBSWRESAMPLE_VERSION_MICRO

LIBSwresampleVersionMicro wraps LIBSWRESAMPLE_VERSION_MICRO.

View Source
const LIBSwresampleVersionMinor = C.LIBSWRESAMPLE_VERSION_MINOR

LIBSwresampleVersionMinor wraps LIBSWRESAMPLE_VERSION_MINOR.

View Source
const LIBSwscaleBuild = C.LIBSWSCALE_BUILD

LIBSwscaleBuild wraps LIBSWSCALE_BUILD.

View Source
const LIBSwscaleVersionInt = C.LIBSWSCALE_VERSION_INT

LIBSwscaleVersionInt wraps LIBSWSCALE_VERSION_INT.

View Source
const LIBSwscaleVersionMajor = C.LIBSWSCALE_VERSION_MAJOR

LIBSwscaleVersionMajor wraps LIBSWSCALE_VERSION_MAJOR.

View Source
const LIBSwscaleVersionMicro = C.LIBSWSCALE_VERSION_MICRO

LIBSwscaleVersionMicro wraps LIBSWSCALE_VERSION_MICRO.

View Source
const LIBSwscaleVersionMinor = C.LIBSWSCALE_VERSION_MINOR

LIBSwscaleVersionMinor wraps LIBSWSCALE_VERSION_MINOR.

View Source
const MLog210 = C.M_LOG2_10

MLog210 wraps M_LOG2_10.

View Source
const MLog210F = C.M_LOG2_10f

MLog210F wraps M_LOG2_10f.

View Source
const MPhi = C.M_PHI

MPhi wraps M_PHI.

View Source
const MPhif = C.M_PHIf

MPhif wraps M_PHIf.

View Source
const ParserFlagCompleteFrames = C.PARSER_FLAG_COMPLETE_FRAMES

ParserFlagCompleteFrames wraps PARSER_FLAG_COMPLETE_FRAMES.

View Source
const ParserFlagFetchedOffset = C.PARSER_FLAG_FETCHED_OFFSET

ParserFlagFetchedOffset wraps PARSER_FLAG_FETCHED_OFFSET.

View Source
const ParserFlagOnce = C.PARSER_FLAG_ONCE

ParserFlagOnce wraps PARSER_FLAG_ONCE.

View Source
const ParserFlagUseCodecTs = C.PARSER_FLAG_USE_CODEC_TS

ParserFlagUseCodecTs wraps PARSER_FLAG_USE_CODEC_TS.

View Source
const SizeOfAVActiveFormatDescription = C.sizeof_enum_AVActiveFormatDescription
View Source
const SizeOfAVAppToDevMessageType = C.sizeof_enum_AVAppToDevMessageType
View Source
const SizeOfAVAudioServiceType = C.sizeof_enum_AVAudioServiceType
View Source
const SizeOfAVCRCId = C.sizeof_AVCRCId
View Source
const SizeOfAVChannel = C.sizeof_enum_AVChannel
View Source
const SizeOfAVChannelOrder = C.sizeof_enum_AVChannelOrder
View Source
const SizeOfAVChromaLocation = C.sizeof_enum_AVChromaLocation
View Source
const SizeOfAVClassCategory = C.sizeof_AVClassCategory
View Source
const SizeOfAVClassStateFlags = C.sizeof_enum_AVClassStateFlags
View Source
const SizeOfAVCodecConfig = C.sizeof_enum_AVCodecConfig
View Source
const SizeOfAVCodecID = C.sizeof_enum_AVCodecID
View Source
const SizeOfAVColorPrimaries = C.sizeof_enum_AVColorPrimaries
View Source
const SizeOfAVColorRange = C.sizeof_enum_AVColorRange
View Source
const SizeOfAVColorSpace = C.sizeof_enum_AVColorSpace
View Source
const SizeOfAVColorTransferCharacteristic = C.sizeof_enum_AVColorTransferCharacteristic
View Source
const SizeOfAVContainerFifoFlags = C.sizeof_enum_AVContainerFifoFlags
View Source
const SizeOfAVDOVICompression = C.sizeof_enum_AVDOVICompression
View Source
const SizeOfAVDOVIMappingMethod = C.sizeof_enum_AVDOVIMappingMethod
View Source
const SizeOfAVDOVINLQMethod = C.sizeof_enum_AVDOVINLQMethod
View Source
const SizeOfAVDevToAppMessageType = C.sizeof_enum_AVDevToAppMessageType
View Source
const SizeOfAVDiscard = C.sizeof_enum_AVDiscard
View Source
const SizeOfAVDownmixType = C.sizeof_enum_AVDownmixType
View Source
const SizeOfAVDurationEstimationMethod = C.sizeof_enum_AVDurationEstimationMethod
View Source
const SizeOfAVEscapeMode = C.sizeof_enum_AVEscapeMode
View Source
const SizeOfAVFieldOrder = C.sizeof_enum_AVFieldOrder
View Source
const SizeOfAVFilmGrainParamsType = C.sizeof_enum_AVFilmGrainParamsType
View Source
const SizeOfAVFrameSideDataType = C.sizeof_enum_AVFrameSideDataType
View Source
const SizeOfAVHDRPlusOverlapProcessOption = C.sizeof_enum_AVHDRPlusOverlapProcessOption
View Source
const SizeOfAVHMACType = C.sizeof_enum_AVHMACType
View Source
const SizeOfAVHWDeviceType = C.sizeof_enum_AVHWDeviceType
View Source
const SizeOfAVHWFrameTransferDirection = C.sizeof_enum_AVHWFrameTransferDirection
View Source
const SizeOfAVIAMFAmbisonicsMode = C.sizeof_enum_AVIAMFAmbisonicsMode
View Source
const SizeOfAVIAMFAnimationType = C.sizeof_enum_AVIAMFAnimationType
View Source
const SizeOfAVIAMFAudioElementType = C.sizeof_enum_AVIAMFAudioElementType
View Source
const SizeOfAVIAMFHeadphonesMode = C.sizeof_enum_AVIAMFHeadphonesMode
View Source
const SizeOfAVIAMFParamDefinitionType = C.sizeof_enum_AVIAMFParamDefinitionType
View Source
const SizeOfAVIAMFSubmixLayoutType = C.sizeof_enum_AVIAMFSubmixLayoutType
View Source
const SizeOfAVIODataMarkerType = C.sizeof_enum_AVIODataMarkerType
View Source
const SizeOfAVIODirEntryType = C.sizeof_enum_AVIODirEntryType
View Source
const SizeOfAVMatrixEncoding = C.sizeof_enum_AVMatrixEncoding
View Source
const SizeOfAVMediaType = C.sizeof_enum_AVMediaType
View Source
const SizeOfAVOptionType = C.sizeof_enum_AVOptionType
View Source
const SizeOfAVPacketSideDataType = C.sizeof_enum_AVPacketSideDataType
View Source
const SizeOfAVPictureStructure = C.sizeof_enum_AVPictureStructure
View Source
const SizeOfAVPictureType = C.sizeof_enum_AVPictureType
View Source
const SizeOfAVPixelFormat = C.sizeof_enum_AVPixelFormat
View Source
const SizeOfAVRounding = C.sizeof_enum_AVRounding
View Source
const SizeOfAVSampleFormat = C.sizeof_enum_AVSampleFormat
View Source
const SizeOfAVSideDataParamChangeFlags = C.sizeof_enum_AVSideDataParamChangeFlags
View Source
const SizeOfAVSideDataProps = C.sizeof_enum_AVSideDataProps
View Source
const SizeOfAVSphericalProjection = C.sizeof_enum_AVSphericalProjection
View Source
const SizeOfAVStereo3DPrimaryEye = C.sizeof_enum_AVStereo3DPrimaryEye
View Source
const SizeOfAVStereo3DType = C.sizeof_enum_AVStereo3DType
View Source
const SizeOfAVStereo3DView = C.sizeof_enum_AVStereo3DView
View Source
const SizeOfAVStreamGroupParamsType = C.sizeof_enum_AVStreamGroupParamsType
View Source
const SizeOfAVStreamParseType = C.sizeof_enum_AVStreamParseType
View Source
const SizeOfAVSubtitleType = C.sizeof_enum_AVSubtitleType
View Source
const SizeOfAVTXFlags = C.sizeof_enum_AVTXFlags
View Source
const SizeOfAVTXType = C.sizeof_enum_AVTXType
View Source
const SizeOfAVThreadMessageFlags = C.sizeof_AVThreadMessageFlags
View Source
const SizeOfAVTimebaseSource = C.sizeof_enum_AVTimebaseSource
View Source
const SizeOfAVTimecodeFlag = C.sizeof_enum_AVTimecodeFlag
View Source
const SizeOfAVVideoEncParamsType = C.sizeof_enum_AVVideoEncParamsType
View Source
const SizeOfAVVideoHintType = C.sizeof_AVVideoHintType
View Source
const SizeOfSwrDitherType = C.sizeof_enum_SwrDitherType
View Source
const SizeOfSwrEngine = C.sizeof_enum_SwrEngine
View Source
const SizeOfSwrFilterType = C.sizeof_enum_SwrFilterType
View Source
const SizeOfSwsAlphaBlend = C.sizeof_SwsAlphaBlend
View Source
const SizeOfSwsDither = C.sizeof_SwsDither
View Source
const SizeOfSwsFlags = C.sizeof_SwsFlags
View Source
const SizeOfSwsIntent = C.sizeof_SwsIntent
View Source
const SliceFlagAllowField = C.SLICE_FLAG_ALLOW_FIELD

SliceFlagAllowField wraps SLICE_FLAG_ALLOW_FIELD.

View Source
const SliceFlagAllowPlane = C.SLICE_FLAG_ALLOW_PLANE

SliceFlagAllowPlane wraps SLICE_FLAG_ALLOW_PLANE.

View Source
const SliceFlagCodedOrder = C.SLICE_FLAG_CODED_ORDER

SliceFlagCodedOrder wraps SLICE_FLAG_CODED_ORDER.

View Source
const SwrFlagResample = C.SWR_FLAG_RESAMPLE

SwrFlagResample wraps SWR_FLAG_RESAMPLE.

View Source
const SwsCsBt2020 = C.SWS_CS_BT2020

SwsCsBt2020 wraps SWS_CS_BT2020.

View Source
const SwsCsDefault = C.SWS_CS_DEFAULT

SwsCsDefault wraps SWS_CS_DEFAULT.

View Source
const SwsCsFcc = C.SWS_CS_FCC

SwsCsFcc wraps SWS_CS_FCC.

View Source
const SwsCsItu601 = C.SWS_CS_ITU601

SwsCsItu601 wraps SWS_CS_ITU601.

View Source
const SwsCsItu624 = C.SWS_CS_ITU624

SwsCsItu624 wraps SWS_CS_ITU624.

View Source
const SwsCsItu709 = C.SWS_CS_ITU709

SwsCsItu709 wraps SWS_CS_ITU709.

View Source
const SwsCsSmpte170M = C.SWS_CS_SMPTE170M

SwsCsSmpte170M wraps SWS_CS_SMPTE170M.

View Source
const SwsCsSmpte240M = C.SWS_CS_SMPTE240M

SwsCsSmpte240M wraps SWS_CS_SMPTE240M.

View Source
const SwsMaxReduceCutoff = C.SWS_MAX_REDUCE_CUTOFF

SwsMaxReduceCutoff wraps SWS_MAX_REDUCE_CUTOFF.

View Source
const SwsParamDefault = C.SWS_PARAM_DEFAULT

SwsParamDefault wraps SWS_PARAM_DEFAULT.

View Source
const SwsSrcVChrDropMask = C.SWS_SRC_V_CHR_DROP_MASK

SwsSrcVChrDropMask wraps SWS_SRC_V_CHR_DROP_MASK.

View Source
const SwsSrcVChrDropShift = C.SWS_SRC_V_CHR_DROP_SHIFT

SwsSrcVChrDropShift wraps SWS_SRC_V_CHR_DROP_SHIFT.

Variables

View Source
var (
	EAgain     = AVError{Code: -C.EAGAIN}
	AVErrorEOF = AVError{Code: AVErrorEofConst}
)
View Source
var AVTimeBaseQ = &AVRational{value: C.AV_TIME_BASE_Q}

Functions

func AVAddIndexEntry

func AVAddIndexEntry(st *AVStream, pos int64, timestamp int64, size int, distance int, flags int) (int, error)

AVAddIndexEntry wraps av_add_index_entry.

Add an index entry into a sorted list. Update the entry if the list
already contains it.

@param timestamp timestamp in the time base of the given stream

func AVAddStable

func AVAddStable(tsTb *AVRational, ts int64, incTb *AVRational, inc int64) int64

AVAddStable wraps av_add_stable.

Add a value to a timestamp.

This function guarantees that when the same value is repeatedly added that
no accumulation of rounding errors occurs.

@param[in] ts     Input timestamp
@param[in] ts_tb  Input timestamp time base
@param[in] inc    Value to be added
@param[in] inc_tb Time base of `inc`

func AVAesCrypt

func AVAesCrypt(a *AVAES, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVAesCrypt wraps av_aes_crypt.

Encrypt or decrypt a buffer using a previously initialized context.

@param a The AVAES context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 16 byte blocks
@param iv initialization vector for CBC mode, if NULL then ECB will be used
@param decrypt 0 for encryption, 1 for decryption

func AVAesCtrCrypt

func AVAesCtrCrypt(a *AVAESCTR, dst unsafe.Pointer, src unsafe.Pointer, size int)

AVAesCtrCrypt wraps av_aes_ctr_crypt.

Process a buffer using a previously initialized context.

@param a The AVAESCTR context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param size the size of src and dst

func AVAesCtrFree

func AVAesCtrFree(a *AVAESCTR)

AVAesCtrFree wraps av_aes_ctr_free.

Release an AVAESCTR context.

@param a The AVAESCTR context

func AVAesCtrGetIv

func AVAesCtrGetIv(a *AVAESCTR) unsafe.Pointer

AVAesCtrGetIv wraps av_aes_ctr_get_iv.

Get the current iv

func AVAesCtrIncrementIv

func AVAesCtrIncrementIv(a *AVAESCTR)

AVAesCtrIncrementIv wraps av_aes_ctr_increment_iv.

Increment the top 64 bit of the iv (performed after each frame)

func AVAesCtrInit

func AVAesCtrInit(a *AVAESCTR, key unsafe.Pointer) (int, error)

AVAesCtrInit wraps av_aes_ctr_init.

Initialize an AVAESCTR context.

@param a The AVAESCTR context to initialize
@param key encryption key, must have a length of AES_CTR_KEY_SIZE

func AVAesCtrSetFullIv

func AVAesCtrSetFullIv(a *AVAESCTR, iv unsafe.Pointer)

AVAesCtrSetFullIv wraps av_aes_ctr_set_full_iv.

Forcefully change the "full" 16-byte iv, including the counter

func AVAesCtrSetIv

func AVAesCtrSetIv(a *AVAESCTR, iv unsafe.Pointer)

AVAesCtrSetIv wraps av_aes_ctr_set_iv.

Forcefully change the 8-byte iv

func AVAesCtrSetRandomIv

func AVAesCtrSetRandomIv(a *AVAESCTR)

AVAesCtrSetRandomIv wraps av_aes_ctr_set_random_iv.

Generate a random iv

func AVAesInit

func AVAesInit(a *AVAES, key unsafe.Pointer, keyBits int, decrypt int) (int, error)

AVAesInit wraps av_aes_init.

Initialize an AVAES context.

@param a The AVAES context
@param key Pointer to the key
@param key_bits 128, 192 or 256
@param decrypt 0 for encryption, 1 for decryption

func AVAppendPacket

func AVAppendPacket(s *AVIOContext, pkt *AVPacket, size int) (int, error)

AVAppendPacket wraps av_append_packet.

Read data and append it to the current content of the AVPacket.
If pkt->size is 0 this is identical to av_get_packet.
Note that this uses av_grow_packet and thus involves a realloc
which is inefficient. Thus this function should only be used
when there is no reasonable way to know (an upper bound of)
the final size.

@param s    associated IO context
@param pkt packet
@param size amount of data to read
@return >0 (read size) if OK, AVERROR_xxx otherwise, previous data
        will not be lost even if an error occurs.

func AVAssert0Fpu

func AVAssert0Fpu()

AVAssert0Fpu wraps av_assert0_fpu.

Assert that floating point operations can be executed.

This will av_assert0() that the cpu is not in MMX state on X86

func AVAudioFifoDrain

func AVAudioFifoDrain(af *AVAudioFifo, nbSamples int) (int, error)

AVAudioFifoDrain wraps av_audio_fifo_drain.

Drain data from an AVAudioFifo.

Removes the data without reading it.

@param af          AVAudioFifo to drain
@param nb_samples  number of samples to drain
@return            0 if OK, or negative AVERROR code on failure

func AVAudioFifoFree

func AVAudioFifoFree(af *AVAudioFifo)

AVAudioFifoFree wraps av_audio_fifo_free.

Free an AVAudioFifo.

@param af  AVAudioFifo to free

func AVAudioFifoRealloc

func AVAudioFifoRealloc(af *AVAudioFifo, nbSamples int) (int, error)

AVAudioFifoRealloc wraps av_audio_fifo_realloc.

Reallocate an AVAudioFifo.

@param af          AVAudioFifo to reallocate
@param nb_samples  new allocation size, in samples
@return            0 if OK, or negative AVERROR code on failure

func AVAudioFifoReset

func AVAudioFifoReset(af *AVAudioFifo)

AVAudioFifoReset wraps av_audio_fifo_reset.

Reset the AVAudioFifo buffer.

This empties all data in the buffer.

@param af  AVAudioFifo to reset

func AVAudioFifoSize

func AVAudioFifoSize(af *AVAudioFifo) (int, error)

AVAudioFifoSize wraps av_audio_fifo_size.

Get the current number of samples in the AVAudioFifo available for reading.

@param af  the AVAudioFifo to query
@return    number of samples available for reading

func AVAudioFifoSpace

func AVAudioFifoSpace(af *AVAudioFifo) (int, error)

AVAudioFifoSpace wraps av_audio_fifo_space.

Get the current number of samples in the AVAudioFifo available for writing.

@param af  the AVAudioFifo to query
@return    number of samples available for writing

func AVBase64Decode

func AVBase64Decode(out unsafe.Pointer, in *CStr, outSize int) (int, error)

AVBase64Decode wraps av_base64_decode.

Decode a base64-encoded string.

@param out      buffer for decoded data
@param in       null-terminated input string
@param out_size size in bytes of the out buffer, must be at
                least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
@return         number of bytes written, or a negative value in case of
                invalid input

func AVBesselI0

func AVBesselI0(x float64) float64

AVBesselI0 wraps av_bessel_i0.

0th order modified bessel function of the first kind.

func AVBlowfishCrypt

func AVBlowfishCrypt(ctx *AVBlowfish, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVBlowfishCrypt wraps av_blowfish_crypt.

Encrypt or decrypt a buffer using a previously initialized context.

@param ctx an AVBlowfish context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, if NULL ECB will be used
@param decrypt 0 for encryption, 1 for decryption

func AVBlowfishInit

func AVBlowfishInit(ctx *AVBlowfish, key unsafe.Pointer, keyLen int)

AVBlowfishInit wraps av_blowfish_init.

Initialize an AVBlowfish context.

@param ctx an AVBlowfish context
@param key a key
@param key_len length of the key

func AVBprintAppendData

func AVBprintAppendData(buf *AVBPrint, data *CStr, size uint)

AVBprintAppendData wraps av_bprint_append_data.

Append data to a print buffer.

@param buf  bprint buffer to use
@param data pointer to data
@param size size of data

func AVBprintChars

func AVBprintChars(buf *AVBPrint, c uint8, n uint)

AVBprintChars wraps av_bprint_chars.

Append char c n times to a print buffer.

func AVBprintClear

func AVBprintClear(buf *AVBPrint)

AVBprintClear wraps av_bprint_clear.

Reset the string to "" but keep internal allocated data.

func AVBprintEscape

func AVBprintEscape(dstbuf *AVBPrint, src *CStr, specialChars *CStr, mode AVEscapeMode, flags int)

AVBprintEscape wraps av_bprint_escape.

Escape the content in src and append it to dstbuf.

@param dstbuf        already inited destination bprint buffer
@param src           string containing the text to escape
@param special_chars string containing the special characters which
                     need to be escaped, can be NULL
@param mode          escape mode to employ, see AV_ESCAPE_MODE_* macros.
                     Any unknown value for mode will be considered equivalent to
                     AV_ESCAPE_MODE_BACKSLASH, but this behaviour can change without
                     notice.
@param flags         flags which control how to escape, see AV_ESCAPE_FLAG_* macros

func AVBprintInit

func AVBprintInit(buf *AVBPrint, sizeInit uint, sizeMax uint)

AVBprintInit wraps av_bprint_init.

Init a print buffer.

@param buf        buffer to init
@param size_init  initial size (including the final 0)
@param size_max   maximum size;
                  - `0` means do not write anything, just count the length
                  - `1` is replaced by the maximum value for automatic storage
                      any large value means that the internal buffer will be
                      reallocated as needed up to that limit
                  - `-1` is converted to `UINT_MAX`, the largest limit possible.
                  Check also `AV_BPRINT_SIZE_*` macros.

func AVBprintInitForBuffer

func AVBprintInitForBuffer(buf *AVBPrint, buffer *CStr, size uint)

AVBprintInitForBuffer wraps av_bprint_init_for_buffer.

Init a print buffer using a pre-existing buffer.

The buffer will not be reallocated.
In case size equals zero, the AVBPrint will be initialized to use
the internal buffer as if using AV_BPRINT_SIZE_COUNT_ONLY with
av_bprint_init().

@param buf     buffer structure to init
@param buffer  byte buffer to use for the string data
@param size    size of buffer

func AVBprintIsComplete

func AVBprintIsComplete(buf *AVBPrint) (int, error)

AVBprintIsComplete wraps av_bprint_is_complete.

Test if the print buffer is complete (not truncated).

It may have been truncated due to a memory allocation failure
or the size_max limit (compare size and size_max if necessary).

func AVBsfAlloc

func AVBsfAlloc(filter *AVBitStreamFilter, ctx **AVBSFContext) (int, error)

AVBsfAlloc wraps av_bsf_alloc.

Allocate a context for a given bitstream filter. The caller must fill in the
context parameters as described in the documentation and then call
av_bsf_init() before sending any data to the filter.

@param filter the filter for which to allocate an instance.
@param[out] ctx a pointer into which the pointer to the newly-allocated context
                will be written. It must be freed with av_bsf_free() after the
                filtering is done.

@return 0 on success, a negative AVERROR code on failure

func AVBsfFlush

func AVBsfFlush(ctx *AVBSFContext)

AVBsfFlush wraps av_bsf_flush.

Reset the internal bitstream filter state. Should be called e.g. when seeking.

func AVBsfFree

func AVBsfFree(ctx **AVBSFContext)

AVBsfFree wraps av_bsf_free.

Free a bitstream filter context and everything associated with it; write NULL
into the supplied pointer.

func AVBsfGetNullFilter

func AVBsfGetNullFilter(bsf **AVBSFContext) (int, error)

AVBsfGetNullFilter wraps av_bsf_get_null_filter.

Get null/pass-through bitstream filter.

@param[out] bsf Pointer to be set to new instance of pass-through bitstream filter

@return

func AVBsfInit

func AVBsfInit(ctx *AVBSFContext) (int, error)

AVBsfInit wraps av_bsf_init.

Prepare the filter for use, after all the parameters and options have been
set.

@param ctx a AVBSFContext previously allocated with av_bsf_alloc()

func AVBsfListAppend

func AVBsfListAppend(lst *AVBSFList, bsf *AVBSFContext) (int, error)

AVBsfListAppend wraps av_bsf_list_append.

Append bitstream filter to the list of bitstream filters.

@param lst List to append to
@param bsf Filter context to be appended

@return >=0 on success, negative AVERROR in case of failure

func AVBsfListAppend2

func AVBsfListAppend2(lst *AVBSFList, bsfName *CStr, options **AVDictionary) (int, error)

AVBsfListAppend2 wraps av_bsf_list_append2.

Construct new bitstream filter context given it's name and options
and append it to the list of bitstream filters.

@param lst      List to append to
@param bsf_name Name of the bitstream filter
@param options  Options for the bitstream filter, can be set to NULL

@return >=0 on success, negative AVERROR in case of failure

func AVBsfListFinalize

func AVBsfListFinalize(lst **AVBSFList, bsf **AVBSFContext) (int, error)

AVBsfListFinalize wraps av_bsf_list_finalize.

Finalize list of bitstream filters.

This function will transform @ref AVBSFList to single @ref AVBSFContext,
so the whole chain of bitstream filters can be treated as single filter
freshly allocated by av_bsf_alloc().
If the call is successful, @ref AVBSFList structure is freed and lst
will be set to NULL. In case of failure, caller is responsible for
freeing the structure by av_bsf_list_free()

@param      lst Filter list structure to be transformed
@param[out] bsf Pointer to be set to newly created @ref AVBSFContext structure
                representing the chain of bitstream filters

@return >=0 on success, negative AVERROR in case of failure

func AVBsfListFree

func AVBsfListFree(lst **AVBSFList)

AVBsfListFree wraps av_bsf_list_free.

Free list of bitstream filters.

@param lst Pointer to pointer returned by av_bsf_list_alloc()

func AVBsfListParseStr

func AVBsfListParseStr(str *CStr, bsf **AVBSFContext) (int, error)

AVBsfListParseStr wraps av_bsf_list_parse_str.

Parse string describing list of bitstream filters and create single
@ref AVBSFContext describing the whole chain of bitstream filters.
Resulting @ref AVBSFContext can be treated as any other @ref AVBSFContext freshly
allocated by av_bsf_alloc().

@param      str String describing chain of bitstream filters in format
                `bsf1[=opt1=val1:opt2=val2][,bsf2]`
@param[out] bsf Pointer to be set to newly created @ref AVBSFContext structure
                representing the chain of bitstream filters

@return >=0 on success, negative AVERROR in case of failure

func AVBsfReceivePacket

func AVBsfReceivePacket(ctx *AVBSFContext, pkt *AVPacket) (int, error)

AVBsfReceivePacket wraps av_bsf_receive_packet.

Retrieve a filtered packet.

@param ctx an initialized AVBSFContext
@param[out] pkt this struct will be filled with the contents of the filtered
                packet. It is owned by the caller and must be freed using
                av_packet_unref() when it is no longer needed.
                This parameter should be "clean" (i.e. freshly allocated
                with av_packet_alloc() or unreffed with av_packet_unref())
                when this function is called. If this function returns
                successfully, the contents of pkt will be completely
                overwritten by the returned data. On failure, pkt is not
                touched.

@return
 - 0 on success.
 - AVERROR(EAGAIN) if more packets need to be sent to the filter (using
   av_bsf_send_packet()) to get more output.
 - AVERROR_EOF if there will be no further output from the filter.
 - Another negative AVERROR value if an error occurs.

@note one input packet may result in several output packets, so after sending
a packet with av_bsf_send_packet(), this function needs to be called
repeatedly until it stops returning 0. It is also possible for a filter to
output fewer packets than were sent to it, so this function may return
AVERROR(EAGAIN) immediately after a successful av_bsf_send_packet() call.

func AVBsfSendPacket

func AVBsfSendPacket(ctx *AVBSFContext, pkt *AVPacket) (int, error)

AVBsfSendPacket wraps av_bsf_send_packet.

Submit a packet for filtering.

After sending each packet, the filter must be completely drained by calling
av_bsf_receive_packet() repeatedly until it returns AVERROR(EAGAIN) or
AVERROR_EOF.

@param ctx an initialized AVBSFContext
@param pkt the packet to filter. The bitstream filter will take ownership of
the packet and reset the contents of pkt. pkt is not touched if an error occurs.
If pkt is empty (i.e. NULL, or pkt->data is NULL and pkt->side_data_elems zero),
it signals the end of the stream (i.e. no more non-empty packets will be sent;
sending more empty packets does nothing) and will cause the filter to output
any packets it may have buffered internally.

@return
 - 0 on success.
 - AVERROR(EAGAIN) if packets need to be retrieved from the filter (using
   av_bsf_receive_packet()) before new input can be consumed.
 - Another negative AVERROR value if an error occurs.

func AVBswap16

func AVBswap16(x uint16) uint16

AVBswap16 wraps av_bswap16.

func AVBswap32

func AVBswap32(x uint32) uint32

AVBswap32 wraps av_bswap32.

func AVBswap64

func AVBswap64(x uint64) uint64

AVBswap64 wraps av_bswap64.

func AVBufferDefaultFree

func AVBufferDefaultFree(opaque unsafe.Pointer, data unsafe.Pointer)

AVBufferDefaultFree wraps av_buffer_default_free.

Default free callback, which calls av_free() on the buffer data.
This function is meant to be passed to av_buffer_create(), not called
directly.

func AVBufferGetOpaque

func AVBufferGetOpaque(buf *AVBufferRef) unsafe.Pointer

AVBufferGetOpaque wraps av_buffer_get_opaque.

@return the opaque parameter set by av_buffer_create.

func AVBufferGetRefCount

func AVBufferGetRefCount(buf *AVBufferRef) (int, error)

AVBufferGetRefCount wraps av_buffer_get_ref_count.

func AVBufferIsWritable

func AVBufferIsWritable(buf *AVBufferRef) (int, error)

AVBufferIsWritable wraps av_buffer_is_writable.

@return 1 if the caller may write to the data referred to by buf (which is
true if and only if buf is the only reference to the underlying AVBuffer).
Return 0 otherwise.
A positive answer is valid until av_buffer_ref() is called on buf.

func AVBufferMakeWritable

func AVBufferMakeWritable(buf **AVBufferRef) (int, error)

AVBufferMakeWritable wraps av_buffer_make_writable.

Create a writable reference from a given buffer reference, avoiding data copy
if possible.

@param buf buffer reference to make writable. On success, buf is either left
           untouched, or it is unreferenced and a new writable AVBufferRef is
           written in its place. On failure, buf is left untouched.
@return 0 on success, a negative AVERROR on failure.

func AVBufferPoolBufferGetOpaque

func AVBufferPoolBufferGetOpaque(ref *AVBufferRef) unsafe.Pointer

AVBufferPoolBufferGetOpaque wraps av_buffer_pool_buffer_get_opaque.

Query the original opaque parameter of an allocated buffer in the pool.

@param ref a buffer reference to a buffer returned by av_buffer_pool_get.
@return the opaque parameter set by the buffer allocator function of the
        buffer pool.

@note the opaque parameter of ref is used by the buffer pool implementation,
therefore you have to use this function to access the original opaque
parameter of an allocated buffer.

func AVBufferPoolUninit

func AVBufferPoolUninit(pool **AVBufferPool)

AVBufferPoolUninit wraps av_buffer_pool_uninit.

Mark the pool as being available for freeing. It will actually be freed only
once all the allocated buffers associated with the pool are released. Thus it
is safe to call this function while some of the allocated buffers are still
in use.

@param pool pointer to the pool to be freed. It will be set to NULL.

func AVBufferRealloc

func AVBufferRealloc(buf **AVBufferRef, size uint64) (int, error)

AVBufferRealloc wraps av_buffer_realloc.

Reallocate a given buffer.

@param buf  a buffer reference to reallocate. On success, buf will be
            unreferenced and a new reference with the required size will be
            written in its place. On failure buf will be left untouched. *buf
            may be NULL, then a new buffer is allocated.
@param size required new buffer size.
@return 0 on success, a negative AVERROR on failure.

@note the buffer is actually reallocated with av_realloc() only if it was
initially allocated through av_buffer_realloc(NULL) and there is only one
reference to it (i.e. the one passed to this function). In all other cases
a new buffer is allocated and the data is copied.

func AVBufferReplace

func AVBufferReplace(dst **AVBufferRef, src *AVBufferRef) (int, error)

AVBufferReplace wraps av_buffer_replace.

Ensure dst refers to the same data as src.

When *dst is already equivalent to src, do nothing. Otherwise unreference dst
and replace it with a new reference to src.

@param dst Pointer to either a valid buffer reference or NULL. On success,
           this will point to a buffer reference equivalent to src. On
           failure, dst will be left untouched.
@param src A buffer reference to replace dst with. May be NULL, then this
           function is equivalent to av_buffer_unref(dst).
@return 0 on success
        AVERROR(ENOMEM) on memory allocation failure.

func AVBufferUnref

func AVBufferUnref(buf **AVBufferRef)

AVBufferUnref wraps av_buffer_unref.

Free a given reference and automatically free the buffer if there are no more
references to it.

@param buf the reference to be freed. The pointer is set to NULL on return.

func AVBuffersinkGetChLayout

func AVBuffersinkGetChLayout(ctx *AVFilterContext, chLayout *AVChannelLayout) (int, error)

AVBuffersinkGetChLayout wraps av_buffersink_get_ch_layout.

func AVBuffersinkGetChannels

func AVBuffersinkGetChannels(ctx *AVFilterContext) (int, error)

AVBuffersinkGetChannels wraps av_buffersink_get_channels.

func AVBuffersinkGetFormat

func AVBuffersinkGetFormat(ctx *AVFilterContext) (int, error)

AVBuffersinkGetFormat wraps av_buffersink_get_format.

func AVBuffersinkGetFrame

func AVBuffersinkGetFrame(ctx *AVFilterContext, frame *AVFrame) (int, error)

AVBuffersinkGetFrame wraps av_buffersink_get_frame.

Get a frame with filtered data from sink and put it in frame.

@param ctx pointer to a context of a buffersink or abuffersink AVFilter.
@param frame pointer to an allocated frame that will be filled with data.
             The data must be freed using av_frame_unref() / av_frame_free()

@return
        - >= 0 if a frame was successfully returned.
        - AVERROR(EAGAIN) if no frames are available at this point; more
          input frames must be added to the filtergraph to get more output.
        - AVERROR_EOF if there will be no more output frames on this sink.
        - A different negative AVERROR code in other failure cases.

func AVBuffersinkGetFrameFlags

func AVBuffersinkGetFrameFlags(ctx *AVFilterContext, frame *AVFrame, flags int) (int, error)

AVBuffersinkGetFrameFlags wraps av_buffersink_get_frame_flags.

Get a frame with filtered data from sink and put it in frame.

@param ctx    pointer to a buffersink or abuffersink filter context.
@param frame  pointer to an allocated frame that will be filled with data.
              The data must be freed using av_frame_unref() / av_frame_free()
@param flags  a combination of AV_BUFFERSINK_FLAG_* flags

@return  >= 0 in for success, a negative AVERROR code for failure.

func AVBuffersinkGetH

func AVBuffersinkGetH(ctx *AVFilterContext) (int, error)

AVBuffersinkGetH wraps av_buffersink_get_h.

func AVBuffersinkGetSampleRate

func AVBuffersinkGetSampleRate(ctx *AVFilterContext) (int, error)

AVBuffersinkGetSampleRate wraps av_buffersink_get_sample_rate.

func AVBuffersinkGetSamples

func AVBuffersinkGetSamples(ctx *AVFilterContext, frame *AVFrame, nbSamples int) (int, error)

AVBuffersinkGetSamples wraps av_buffersink_get_samples.

Same as av_buffersink_get_frame(), but with the ability to specify the number
of samples read. This function is less efficient than
av_buffersink_get_frame(), because it copies the data around.

@param ctx pointer to a context of the abuffersink AVFilter.
@param frame pointer to an allocated frame that will be filled with data.
             The data must be freed using av_frame_unref() / av_frame_free()
             frame will contain exactly nb_samples audio samples, except at
             the end of stream, when it can contain less than nb_samples.

@return The return codes have the same meaning as for
        av_buffersink_get_frame().

@warning do not mix this function with av_buffersink_get_frame(). Use only one or
the other with a single sink, not both.

func AVBuffersinkGetW

func AVBuffersinkGetW(ctx *AVFilterContext) (int, error)

AVBuffersinkGetW wraps av_buffersink_get_w.

func AVBuffersinkSetFrameSize

func AVBuffersinkSetFrameSize(ctx *AVFilterContext, frameSize uint)

AVBuffersinkSetFrameSize wraps av_buffersink_set_frame_size.

Set the frame size for an audio buffer sink.

All calls to av_buffersink_get_buffer_ref will return a buffer with
exactly the specified number of samples, or AVERROR(EAGAIN) if there is
not enough. The last buffer at EOF will be padded with 0.

func AVBuffersrcAddFrame

func AVBuffersrcAddFrame(ctx *AVFilterContext, frame *AVFrame) (int, error)

AVBuffersrcAddFrame wraps av_buffersrc_add_frame.

Add a frame to the buffer source.

@param ctx   an instance of the buffersrc filter
@param frame frame to be added. If the frame is reference counted, this
function will take ownership of the reference(s) and reset the frame.
Otherwise the frame data will be copied. If this function returns an error,
the input frame is not touched.

@return 0 on success, a negative AVERROR on error.

@note the difference between this function and av_buffersrc_write_frame() is
that av_buffersrc_write_frame() creates a new reference to the input frame,
while this function takes ownership of the reference passed to it.

This function is equivalent to av_buffersrc_add_frame_flags() without the
AV_BUFFERSRC_FLAG_KEEP_REF flag.

func AVBuffersrcAddFrameFlags

func AVBuffersrcAddFrameFlags(bufferSrc *AVFilterContext, frame *AVFrame, flags int) (int, error)

AVBuffersrcAddFrameFlags wraps av_buffersrc_add_frame_flags.

Add a frame to the buffer source.

By default, if the frame is reference-counted, this function will take
ownership of the reference(s) and reset the frame. This can be controlled
using the flags.

If this function returns an error, the input frame is not touched.

@param buffer_src  pointer to a buffer source context
@param frame       a frame, or NULL to mark EOF
@param flags       a combination of AV_BUFFERSRC_FLAG_*
@return            >= 0 in case of success, a negative AVERROR code
                   in case of failure

func AVBuffersrcClose

func AVBuffersrcClose(ctx *AVFilterContext, pts int64, flags uint) (int, error)

AVBuffersrcClose wraps av_buffersrc_close.

Close the buffer source after EOF.

This is similar to passing NULL to av_buffersrc_add_frame_flags()
except it takes the timestamp of the EOF, i.e. the timestamp of the end
of the last frame.

func AVBuffersrcGetNbFailedRequests

func AVBuffersrcGetNbFailedRequests(bufferSrc *AVFilterContext) uint

AVBuffersrcGetNbFailedRequests wraps av_buffersrc_get_nb_failed_requests.

Get the number of failed requests.

A failed request is when the request_frame method is called while no
frame is present in the buffer.
The number is reset when a frame is added.

func AVBuffersrcParametersSet

func AVBuffersrcParametersSet(ctx *AVFilterContext, param *AVBufferSrcParameters) (int, error)

AVBuffersrcParametersSet wraps av_buffersrc_parameters_set.

Initialize the buffersrc or abuffersrc filter with the provided parameters.
This function may be called multiple times, the later calls override the
previous ones. Some of the parameters may also be set through AVOptions, then
whatever method is used last takes precedence.

@param ctx an instance of the buffersrc or abuffersrc filter
@param param the stream parameters. The frames later passed to this filter
             must conform to those parameters. All the allocated fields in
             param remain owned by the caller, libavfilter will make internal
             copies or references when necessary.
@return 0 on success, a negative AVERROR code on failure.

func AVBuffersrcWriteFrame

func AVBuffersrcWriteFrame(ctx *AVFilterContext, frame *AVFrame) (int, error)

AVBuffersrcWriteFrame wraps av_buffersrc_write_frame.

Add a frame to the buffer source.

@param ctx   an instance of the buffersrc filter
@param frame frame to be added. If the frame is reference counted, this
function will make a new reference to it. Otherwise the frame data will be
copied.

@return 0 on success, a negative AVERROR on error

This function is equivalent to av_buffersrc_add_frame_flags() with the
AV_BUFFERSRC_FLAG_KEEP_REF flag.

func AVCalloc

func AVCalloc(nmemb uint64, size uint64) unsafe.Pointer

AVCalloc wraps av_calloc.

Allocate a memory block for an array with av_mallocz().

The allocated memory will have size `size * nmemb` bytes.

@param nmemb Number of elements
@param size  Size of the single element
@return Pointer to the allocated block, or `NULL` if the block cannot
        be allocated

@see av_mallocz()
@see av_malloc_array()

func AVCamelliaCrypt

func AVCamelliaCrypt(ctx *AVCAMELLIA, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVCamelliaCrypt wraps av_camellia_crypt.

Encrypt or decrypt a buffer using a previously initialized context

@param ctx an AVCAMELLIA context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 16 byte blocks
@param iv initialization vector for CBC mode, NULL for ECB mode
@param decrypt 0 for encryption, 1 for decryption

func AVCamelliaInit

func AVCamelliaInit(ctx *AVCAMELLIA, key unsafe.Pointer, keyBits int) (int, error)

AVCamelliaInit wraps av_camellia_init.

Initialize an AVCAMELLIA context.

@param ctx an AVCAMELLIA context
@param key a key of 16, 24, 32 bytes used for encryption/decryption
@param key_bits number of keybits: possible are 128, 192, 256

func AVCast5Crypt

func AVCast5Crypt(ctx *AVCAST5, dst unsafe.Pointer, src unsafe.Pointer, count int, decrypt int)

AVCast5Crypt wraps av_cast5_crypt.

Encrypt or decrypt a buffer using a previously initialized context, ECB mode only

@param ctx an AVCAST5 context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param decrypt 0 for encryption, 1 for decryption

func AVCast5Crypt2

func AVCast5Crypt2(ctx *AVCAST5, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVCast5Crypt2 wraps av_cast5_crypt2.

Encrypt or decrypt a buffer using a previously initialized context

@param ctx an AVCAST5 context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, NULL for ECB mode
@param decrypt 0 for encryption, 1 for decryption

func AVCast5Init

func AVCast5Init(ctx *AVCAST5, key unsafe.Pointer, keyBits int) (int, error)

AVCast5Init wraps av_cast5_init.

Initialize an AVCAST5 context.

@param ctx an AVCAST5 context
@param key a key of 5,6,...16 bytes used for encryption/decryption
@param key_bits number of keybits: possible are 40,48,...,128
@return 0 on success, less than 0 on failure

func AVCeilLog2C

func AVCeilLog2C(x int) (int, error)

AVCeilLog2C wraps av_ceil_log2_c.

Compute ceil(log2(x)).
@param x value used to compute ceil(log2(x))
@return computed ceiling of log2(x)

func AVChannelDescription

func AVChannelDescription(buf *CStr, bufSize uint64, channel AVChannel) (int, error)

AVChannelDescription wraps av_channel_description.

Get a human readable string describing a given channel.

@param buf pre-allocated buffer where to put the generated string
@param buf_size size in bytes of the buffer.
@param channel the AVChannel whose description to get
@return amount of bytes needed to hold the output string, or a negative AVERROR
        on failure. If the returned value is bigger than buf_size, then the
        string was truncated.

func AVChannelDescriptionBprint

func AVChannelDescriptionBprint(bp *AVBPrint, channelId AVChannel)

AVChannelDescriptionBprint wraps av_channel_description_bprint.

bprint variant of av_channel_description().

@note the string will be appended to the bprint buffer.

func AVChannelLayoutAmbisonicOrder

func AVChannelLayoutAmbisonicOrder(channelLayout *AVChannelLayout) (int, error)

AVChannelLayoutAmbisonicOrder wraps av_channel_layout_ambisonic_order.

Return the order if the layout is n-th order standard-order ambisonic.
The presence of optional extra non-diegetic channels at the end is not taken
into account.

@param channel_layout input channel layout
@return the order of the layout, a negative error code otherwise.

func AVChannelLayoutCheck

func AVChannelLayoutCheck(channelLayout *AVChannelLayout) (int, error)

AVChannelLayoutCheck wraps av_channel_layout_check.

Check whether a channel layout is valid, i.e. can possibly describe audio
data.

@param channel_layout input channel layout
@return 1 if channel_layout is valid, 0 otherwise.

func AVChannelLayoutCompare

func AVChannelLayoutCompare(chl *AVChannelLayout, chl1 *AVChannelLayout) (int, error)

AVChannelLayoutCompare wraps av_channel_layout_compare.

Check whether two channel layouts are semantically the same, i.e. the same
channels are present on the same positions in both.

If one of the channel layouts is AV_CHANNEL_ORDER_UNSPEC, while the other is
not, they are considered to be unequal. If both are AV_CHANNEL_ORDER_UNSPEC,
they are considered equal iff the channel counts are the same in both.

@param chl input channel layout
@param chl1 input channel layout
@return 0 if chl and chl1 are equal, 1 if they are not equal. A negative
        AVERROR code if one or both are invalid.

func AVChannelLayoutCopy

func AVChannelLayoutCopy(dst *AVChannelLayout, src *AVChannelLayout) (int, error)

AVChannelLayoutCopy wraps av_channel_layout_copy.

Make a copy of a channel layout. This differs from just assigning src to dst
in that it allocates and copies the map for AV_CHANNEL_ORDER_CUSTOM.

@note the destination channel_layout will be always uninitialized before copy.

@param dst destination channel layout
@param src source channel layout
@return 0 on success, a negative AVERROR on error.

func AVChannelLayoutCustomInit

func AVChannelLayoutCustomInit(channelLayout *AVChannelLayout, nbChannels int) (int, error)

AVChannelLayoutCustomInit wraps av_channel_layout_custom_init.

Initialize a custom channel layout with the specified number of channels.
The channel map will be allocated and the designation of all channels will
be set to AV_CHAN_UNKNOWN.

This is only a convenience helper function, a custom channel layout can also
be constructed without using this.

@param channel_layout the layout structure to be initialized
@param nb_channels the number of channels

@return 0 on success
        AVERROR(EINVAL) if the number of channels <= 0
        AVERROR(ENOMEM) if the channel map could not be allocated

func AVChannelLayoutDefault

func AVChannelLayoutDefault(chLayout *AVChannelLayout, nbChannels int)

AVChannelLayoutDefault wraps av_channel_layout_default.

Get the default channel layout for a given number of channels.

@param ch_layout the layout structure to be initialized
@param nb_channels number of channels

func AVChannelLayoutDescribe

func AVChannelLayoutDescribe(channelLayout *AVChannelLayout, buf *CStr, bufSize uint64) (int, error)

AVChannelLayoutDescribe wraps av_channel_layout_describe.

Get a human-readable string describing the channel layout properties.
The string will be in the same format that is accepted by
@ref av_channel_layout_from_string(), allowing to rebuild the same
channel layout, except for opaque pointers.

@param channel_layout channel layout to be described
@param buf pre-allocated buffer where to put the generated string
@param buf_size size in bytes of the buffer.
@return amount of bytes needed to hold the output string, or a negative AVERROR
        on failure. If the returned value is bigger than buf_size, then the
        string was truncated.

func AVChannelLayoutDescribeBprint

func AVChannelLayoutDescribeBprint(channelLayout *AVChannelLayout, bp *AVBPrint) (int, error)

AVChannelLayoutDescribeBprint wraps av_channel_layout_describe_bprint.

bprint variant of av_channel_layout_describe().

@note the string will be appended to the bprint buffer.
@return 0 on success, or a negative AVERROR value on failure.

func AVChannelLayoutFromMask

func AVChannelLayoutFromMask(channelLayout *AVChannelLayout, mask uint64) (int, error)

AVChannelLayoutFromMask wraps av_channel_layout_from_mask.

Initialize a native channel layout from a bitmask indicating which channels
are present.

@param channel_layout the layout structure to be initialized
@param mask bitmask describing the channel layout

@return 0 on success
        AVERROR(EINVAL) for invalid mask values

func AVChannelLayoutFromString

func AVChannelLayoutFromString(channelLayout *AVChannelLayout, str *CStr) (int, error)

AVChannelLayoutFromString wraps av_channel_layout_from_string.

Initialize a channel layout from a given string description.
The input string can be represented by:
 - the formal channel layout name (returned by av_channel_layout_describe())
 - single or multiple channel names (returned by av_channel_name(), eg. "FL",
   or concatenated with "+", each optionally containing a custom name after
   a "@", eg. "FL@Left+FR@Right+LFE")
 - a decimal or hexadecimal value of a native channel layout (eg. "4" or "0x4")
 - the number of channels with default layout (eg. "4c")
 - the number of unordered channels (eg. "4C" or "4 channels")
 - the ambisonic order followed by optional non-diegetic channels (eg.
   "ambisonic 2+stereo")
On error, the channel layout will remain uninitialized, but not necessarily
untouched.

@param channel_layout uninitialized channel layout for the result
@param str string describing the channel layout
@return 0 on success parsing the channel layout
        AVERROR(EINVAL) if an invalid channel layout string was provided
        AVERROR(ENOMEM) if there was not enough memory

func AVChannelLayoutIndexFromChannel

func AVChannelLayoutIndexFromChannel(channelLayout *AVChannelLayout, channel AVChannel) (int, error)

AVChannelLayoutIndexFromChannel wraps av_channel_layout_index_from_channel.

Get the index of a given channel in a channel layout. In case multiple
channels are found, only the first match will be returned.

@param channel_layout input channel layout
@param channel the channel whose index to obtain
@return index of channel in channel_layout on success or a negative number if
        channel is not present in channel_layout.

func AVChannelLayoutIndexFromString

func AVChannelLayoutIndexFromString(channelLayout *AVChannelLayout, name *CStr) (int, error)

AVChannelLayoutIndexFromString wraps av_channel_layout_index_from_string.

Get the index in a channel layout of a channel described by the given string.
In case multiple channels are found, only the first match will be returned.

This function accepts channel names in the same format as
@ref av_channel_from_string().

@param channel_layout input channel layout
@param name string describing the channel whose index to obtain
@return a channel index described by the given string, or a negative AVERROR
        value.

func AVChannelLayoutRetype

func AVChannelLayoutRetype(channelLayout *AVChannelLayout, order AVChannelOrder, flags int) (int, error)

AVChannelLayoutRetype wraps av_channel_layout_retype.

Change the AVChannelOrder of a channel layout.

Change of AVChannelOrder can be either lossless or lossy. In case of a
lossless conversion all the channel designations and the associated channel
names (if any) are kept. On a lossy conversion the channel names and channel
designations might be lost depending on the capabilities of the desired
AVChannelOrder. Note that some conversions are simply not possible in which
case this function returns AVERROR(ENOSYS).

The following conversions are supported:

Any       -> Custom     : Always possible, always lossless.
Any       -> Unspecified: Always possible, lossless if channel designations
  are all unknown and channel names are not used, lossy otherwise.
Custom    -> Ambisonic  : Possible if it contains ambisonic channels with
  optional non-diegetic channels in the end. Lossy if the channels have
  custom names, lossless otherwise.
Custom    -> Native     : Possible if it contains native channels in native
    order. Lossy if the channels have custom names, lossless otherwise.

On error this function keeps the original channel layout untouched.

@param channel_layout channel layout which will be changed
@param order the desired channel layout order
@param flags a combination of AV_CHANNEL_LAYOUT_RETYPE_FLAG_* constants
@return 0 if the conversion was successful and lossless or if the channel
          layout was already in the desired order
        >0 if the conversion was successful but lossy
        AVERROR(ENOSYS) if the conversion was not possible (or would be
          lossy and AV_CHANNEL_LAYOUT_RETYPE_FLAG_LOSSLESS was specified)
        AVERROR(EINVAL), AVERROR(ENOMEM) on error

func AVChannelLayoutSubset

func AVChannelLayoutSubset(channelLayout *AVChannelLayout, mask uint64) uint64

AVChannelLayoutSubset wraps av_channel_layout_subset.

Find out what channels from a given set are present in a channel layout,
without regard for their positions.

@param channel_layout input channel layout
@param mask a combination of AV_CH_* representing a set of channels
@return a bitfield representing all the channels from mask that are present
        in channel_layout

func AVChannelLayoutUninit

func AVChannelLayoutUninit(channelLayout *AVChannelLayout)

AVChannelLayoutUninit wraps av_channel_layout_uninit.

Free any allocated data in the channel layout and reset the channel
count to 0.

@param channel_layout the layout structure to be uninitialized

func AVChannelName

func AVChannelName(buf *CStr, bufSize uint64, channel AVChannel) (int, error)

AVChannelName wraps av_channel_name.

Get a human readable string in an abbreviated form describing a given channel.
This is the inverse function of @ref av_channel_from_string().

@param buf pre-allocated buffer where to put the generated string
@param buf_size size in bytes of the buffer.
@param channel the AVChannel whose name to get
@return amount of bytes needed to hold the output string, or a negative AVERROR
        on failure. If the returned value is bigger than buf_size, then the
        string was truncated.

func AVChannelNameBprint

func AVChannelNameBprint(bp *AVBPrint, channelId AVChannel)

AVChannelNameBprint wraps av_channel_name_bprint.

bprint variant of av_channel_name().

@note the string will be appended to the bprint buffer.

func AVChromaLocationFromName

func AVChromaLocationFromName(name *CStr) (int, error)

AVChromaLocationFromName wraps av_chroma_location_from_name.

@return the AVChromaLocation value for name or an AVError if not found.

func AVClip64C

func AVClip64C(a int64, amin int64, amax int64) int64

AVClip64C wraps av_clip64_c.

Clip a signed 64bit integer value into the amin-amax range.
@param a value to clip
@param amin minimum value of the clip range
@param amax maximum value of the clip range
@return clipped value

func AVClipC

func AVClipC(a int, amin int, amax int) (int, error)

AVClipC wraps av_clip_c.

Clip a signed integer value into the amin-amax range.
@param a value to clip
@param amin minimum value of the clip range
@param amax maximum value of the clip range
@return clipped value

func AVClipInt16C

func AVClipInt16C(a int) int16

AVClipInt16C wraps av_clip_int16_c.

Clip a signed integer value into the -32768,32767 range.
@param a value to clip
@return clipped value

func AVClipInt8C

func AVClipInt8C(a int) int8

AVClipInt8C wraps av_clip_int8_c.

Clip a signed integer value into the -128,127 range.
@param a value to clip
@return clipped value

func AVClipIntp2C

func AVClipIntp2C(a int, p int) (int, error)

AVClipIntp2C wraps av_clip_intp2_c.

Clip a signed integer into the -(2^p),(2^p-1) range.
@param  a value to clip
@param  p bit position to clip at
@return clipped value

func AVClipUint16C

func AVClipUint16C(a int) uint16

AVClipUint16C wraps av_clip_uint16_c.

Clip a signed integer value into the 0-65535 range.
@param a value to clip
@return clipped value

func AVClipUint8C

func AVClipUint8C(a int) uint8

AVClipUint8C wraps av_clip_uint8_c.

Clip a signed integer value into the 0-255 range.
@param a value to clip
@return clipped value

func AVClipUintp2C

func AVClipUintp2C(a int, p int) uint

AVClipUintp2C wraps av_clip_uintp2_c.

Clip a signed integer to an unsigned power of two range.
@param  a value to clip
@param  p bit position to clip at
@return clipped value

func AVClipdC

func AVClipdC(a float64, amin float64, amax float64) float64

AVClipdC wraps av_clipd_c.

Clip a double value into the amin-amax range.
If a is nan or -inf amin will be returned.
If a is +inf amax will be returned.
@param a value to clip
@param amin minimum value of the clip range
@param amax maximum value of the clip range
@return clipped value

func AVClipfC

func AVClipfC(a float32, amin float32, amax float32) float32

AVClipfC wraps av_clipf_c.

Clip a float value into the amin-amax range.
If a is nan or -inf amin will be returned.
If a is +inf amax will be returned.
@param a value to clip
@param amin minimum value of the clip range
@param amax maximum value of the clip range
@return clipped value

func AVCliplInt32C

func AVCliplInt32C(a int64) int32

AVCliplInt32C wraps av_clipl_int32_c.

Clip a signed 64-bit integer value into the -2147483648,2147483647 range.
@param a value to clip
@return clipped value

func AVCmpQ

func AVCmpQ(a *AVRational, b *AVRational) (int, error)

AVCmpQ wraps av_cmp_q.

Compare two rationals.

@param a First rational
@param b Second rational

@return One of the following values:
        - 0 if `a == b`
        - 1 if `a > b`
        - -1 if `a < b`
        - `INT_MIN` if one of the values is of the form `0 / 0`

func AVCodecAlignDimensions

func AVCodecAlignDimensions(s *AVCodecContext, width *int, height *int)

AVCodecAlignDimensions wraps avcodec_align_dimensions.

Modify width and height values so that they will result in a memory
buffer that is acceptable for the codec if you do not use any horizontal
padding.

May only be used if a codec with AV_CODEC_CAP_DR1 has been opened.

func AVCodecDecodeSubtitle2

func AVCodecDecodeSubtitle2(avctx *AVCodecContext, sub *AVSubtitle, gotSubPtr *int, avpkt *AVPacket) (int, error)

AVCodecDecodeSubtitle2 wraps avcodec_decode_subtitle2.

Decode a subtitle message.
Return a negative value on error, otherwise return the number of bytes used.
If no subtitle could be decompressed, got_sub_ptr is zero.
Otherwise, the subtitle is stored in *sub.
Note that AV_CODEC_CAP_DR1 is not available for subtitle codecs. This is for
simplicity, because the performance difference is expected to be negligible
and reusing a get_buffer written for video codecs would probably perform badly
due to a potentially very different allocation pattern.

Some decoders (those marked with AV_CODEC_CAP_DELAY) have a delay between input
and output. This means that for some packets they will not immediately
produce decoded output and need to be flushed at the end of decoding to get
all the decoded data. Flushing is done by calling this function with packets
with avpkt->data set to NULL and avpkt->size set to 0 until it stops
returning subtitles. It is safe to flush even those decoders that are not
marked with AV_CODEC_CAP_DELAY, then no subtitles will be returned.

@note The AVCodecContext MUST have been opened with @ref avcodec_open2()
before packets may be fed to the decoder.

@param avctx the codec context
@param[out] sub The preallocated AVSubtitle in which the decoded subtitle will be stored,
                must be freed with avsubtitle_free if *got_sub_ptr is set.
@param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero.
@param[in] avpkt The input AVPacket containing the input buffer.

func AVCodecDefaultGetBuffer2

func AVCodecDefaultGetBuffer2(s *AVCodecContext, frame *AVFrame, flags int) (int, error)

AVCodecDefaultGetBuffer2 wraps avcodec_default_get_buffer2.

The default callback for AVCodecContext.get_buffer2(). It is made public so
it can be called by custom get_buffer2() implementations for decoders without
AV_CODEC_CAP_DR1 set.

func AVCodecDefaultGetEncodeBuffer

func AVCodecDefaultGetEncodeBuffer(s *AVCodecContext, pkt *AVPacket, flags int) (int, error)

AVCodecDefaultGetEncodeBuffer wraps avcodec_default_get_encode_buffer.

The default callback for AVCodecContext.get_encode_buffer(). It is made public so
it can be called by custom get_encode_buffer() implementations for encoders without
AV_CODEC_CAP_DR1 set.

func AVCodecEncodeSubtitle

func AVCodecEncodeSubtitle(avctx *AVCodecContext, buf unsafe.Pointer, bufSize int, sub *AVSubtitle) (int, error)

AVCodecEncodeSubtitle wraps avcodec_encode_subtitle.

func AVCodecFillAudioFrame

func AVCodecFillAudioFrame(frame *AVFrame, nbChannels int, sampleFmt AVSampleFormat, buf unsafe.Pointer, bufSize int, align int) (int, error)

AVCodecFillAudioFrame wraps avcodec_fill_audio_frame.

Fill AVFrame audio data and linesize pointers.

The buffer buf must be a preallocated buffer with a size big enough
to contain the specified samples amount. The filled AVFrame data
pointers will point to this buffer.

AVFrame extended_data channel pointers are allocated if necessary for
planar audio.

@param frame       the AVFrame
                   frame->nb_samples must be set prior to calling the
                   function. This function fills in frame->data,
                   frame->extended_data, frame->linesize[0].
@param nb_channels channel count
@param sample_fmt  sample format
@param buf         buffer to use for frame data
@param buf_size    size of buffer
@param align       plane size sample alignment (0 = default)
@return            >=0 on success, negative error code on failure
@todo return the size in bytes required to store the samples in
case of success, at the next libavutil bump

func AVCodecFlushBuffers

func AVCodecFlushBuffers(avctx *AVCodecContext)

AVCodecFlushBuffers wraps avcodec_flush_buffers.

Reset the internal codec state / flush internal buffers. Should be called
e.g. when seeking or when switching to a different stream.

@note for decoders, this function just releases any references the decoder
might keep internally, but the caller's references remain valid.

@note for encoders, this function will only do something if the encoder
declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder
will drain any remaining packets, and can then be reused for a different
stream (as opposed to sending a null frame which will leave the encoder
in a permanent EOF state after draining). This can be desirable if the
cost of tearing down and replacing the encoder instance is high.

func AVCodecFreeContext

func AVCodecFreeContext(avctx **AVCodecContext)

AVCodecFreeContext wraps avcodec_free_context.

Free the codec context and everything associated with it and write NULL to
the provided pointer.

func AVCodecGetHWFramesParameters

func AVCodecGetHWFramesParameters(avctx *AVCodecContext, deviceRef *AVBufferRef, hwPixFmt AVPixelFormat, outFramesRef **AVBufferRef) (int, error)

AVCodecGetHWFramesParameters wraps avcodec_get_hw_frames_parameters.

Create and return a AVHWFramesContext with values adequate for hardware
decoding. This is meant to get called from the get_format callback, and is
a helper for preparing a AVHWFramesContext for AVCodecContext.hw_frames_ctx.
This API is for decoding with certain hardware acceleration modes/APIs only.

The returned AVHWFramesContext is not initialized. The caller must do this
with av_hwframe_ctx_init().

Calling this function is not a requirement, but makes it simpler to avoid
codec or hardware API specific details when manually allocating frames.

Alternatively to this, an API user can set AVCodecContext.hw_device_ctx,
which sets up AVCodecContext.hw_frames_ctx fully automatically, and makes
it unnecessary to call this function or having to care about
AVHWFramesContext initialization at all.

There are a number of requirements for calling this function:

- It must be called from get_format with the same avctx parameter that was
  passed to get_format. Calling it outside of get_format is not allowed, and
  can trigger undefined behavior.
- The function is not always supported (see description of return values).
  Even if this function returns successfully, hwaccel initialization could
  fail later. (The degree to which implementations check whether the stream
  is actually supported varies. Some do this check only after the user's
  get_format callback returns.)
- The hw_pix_fmt must be one of the choices suggested by get_format. If the
  user decides to use a AVHWFramesContext prepared with this API function,
  the user must return the same hw_pix_fmt from get_format.
- The device_ref passed to this function must support the given hw_pix_fmt.
- After calling this API function, it is the user's responsibility to
  initialize the AVHWFramesContext (returned by the out_frames_ref parameter),
  and to set AVCodecContext.hw_frames_ctx to it. If done, this must be done
  before returning from get_format (this is implied by the normal
  AVCodecContext.hw_frames_ctx API rules).
- The AVHWFramesContext parameters may change every time time get_format is
  called. Also, AVCodecContext.hw_frames_ctx is reset before get_format. So
  you are inherently required to go through this process again on every
  get_format call.
- It is perfectly possible to call this function without actually using
  the resulting AVHWFramesContext. One use-case might be trying to reuse a
  previously initialized AVHWFramesContext, and calling this API function
  only to test whether the required frame parameters have changed.
- Fields that use dynamically allocated values of any kind must not be set
  by the user unless setting them is explicitly allowed by the documentation.
  If the user sets AVHWFramesContext.free and AVHWFramesContext.user_opaque,
  the new free callback must call the potentially set previous free callback.
  This API call may set any dynamically allocated fields, including the free
  callback.

The function will set at least the following fields on AVHWFramesContext
(potentially more, depending on hwaccel API):

- All fields set by av_hwframe_ctx_alloc().
- Set the format field to hw_pix_fmt.
- Set the sw_format field to the most suited and most versatile format. (An
  implication is that this will prefer generic formats over opaque formats
  with arbitrary restrictions, if possible.)
- Set the width/height fields to the coded frame size, rounded up to the
  API-specific minimum alignment.
- Only _if_ the hwaccel requires a pre-allocated pool: set the initial_pool_size
  field to the number of maximum reference surfaces possible with the codec,
  plus 1 surface for the user to work (meaning the user can safely reference
  at most 1 decoded surface at a time), plus additional buffering introduced
  by frame threading. If the hwaccel does not require pre-allocation, the
  field is left to 0, and the decoder will allocate new surfaces on demand
  during decoding.
- Possibly AVHWFramesContext.hwctx fields, depending on the underlying
  hardware API.

Essentially, out_frames_ref returns the same as av_hwframe_ctx_alloc(), but
with basic frame parameters set.

The function is stateless, and does not change the AVCodecContext or the
device_ref AVHWDeviceContext.

@param avctx The context which is currently calling get_format, and which
             implicitly contains all state needed for filling the returned
             AVHWFramesContext properly.
@param device_ref A reference to the AVHWDeviceContext describing the device
                  which will be used by the hardware decoder.
@param hw_pix_fmt The hwaccel format you are going to return from get_format.
@param out_frames_ref On success, set to a reference to an _uninitialized_
                      AVHWFramesContext, created from the given device_ref.
                      Fields will be set to values required for decoding.
                      Not changed if an error is returned.
@return zero on success, a negative value on error. The following error codes
        have special semantics:
     AVERROR(ENOENT): the decoder does not support this functionality. Setup
                      is always manual, or it is a decoder which does not
                      support setting AVCodecContext.hw_frames_ctx at all,
                      or it is a software format.
     AVERROR(EINVAL): it is known that hardware decoding is not supported for
                      this configuration, or the device_ref is not supported
                      for the hwaccel referenced by hw_pix_fmt.

func AVCodecGetTag

func AVCodecGetTag(tags **AVCodecTag, id AVCodecID) uint

AVCodecGetTag wraps av_codec_get_tag.

Get the codec tag for the given codec id id.
If no codec tag is found returns 0.

@param tags list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tag
@param id   codec ID to match to a codec tag

func AVCodecIsDecoder

func AVCodecIsDecoder(codec *AVCodec) (int, error)

AVCodecIsDecoder wraps av_codec_is_decoder.

@return a non-zero number if codec is a decoder, zero otherwise

func AVCodecIsEncoder

func AVCodecIsEncoder(codec *AVCodec) (int, error)

AVCodecIsEncoder wraps av_codec_is_encoder.

@return a non-zero number if codec is an encoder, zero otherwise

func AVCodecIsOpen

func AVCodecIsOpen(s *AVCodecContext) (int, error)

AVCodecIsOpen wraps avcodec_is_open.

@return a positive value if s is open (i.e. avcodec_open2() was called on it),
0 otherwise.

func AVCodecOpen2

func AVCodecOpen2(avctx *AVCodecContext, codec *AVCodec, options **AVDictionary) (int, error)

AVCodecOpen2 wraps avcodec_open2.

Initialize the AVCodecContext to use the given AVCodec. Prior to using this
function the context has to be allocated with avcodec_alloc_context3().

The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(),
avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for
retrieving a codec.

Depending on the codec, you might need to set options in the codec context
also for decoding (e.g. width, height, or the pixel or audio sample format in
the case the information is not available in the bitstream, as when decoding
raw audio or video).

Options in the codec context can be set either by setting them in the options
AVDictionary, or by setting the values in the context itself, directly or by
using the av_opt_set() API before calling this function.

Example:
@code
av_dict_set(&opts, "b", "2.5M", 0);
codec = avcodec_find_decoder(AV_CODEC_ID_H264);
if (!codec)
    exit(1);

context = avcodec_alloc_context3(codec);

if (avcodec_open2(context, codec, opts) < 0)
    exit(1);
@endcode

In the case AVCodecParameters are available (e.g. when demuxing a stream
using libavformat, and accessing the AVStream contained in the demuxer), the
codec parameters can be copied to the codec context using
avcodec_parameters_to_context(), as in the following example:

@code
AVStream *stream = ...;
context = avcodec_alloc_context3(codec);
if (avcodec_parameters_to_context(context, stream->codecpar) < 0)
    exit(1);
if (avcodec_open2(context, codec, NULL) < 0)
    exit(1);
@endcode

@note Always call this function before using decoding routines (such as
@ref avcodec_receive_frame()).

@param avctx The context to initialize.
@param codec The codec to open this context for. If a non-NULL codec has been
             previously passed to avcodec_alloc_context3() or
             for this context, then this parameter MUST be either NULL or
             equal to the previously passed codec.
@param options A dictionary filled with AVCodecContext and codec-private
               options, which are set on top of the options already set in
               avctx, can be NULL. On return this object will be filled with
               options that were not found in the avctx codec context.

@return zero on success, a negative value on error
@see avcodec_alloc_context3(), avcodec_find_decoder(), avcodec_find_encoder(),
     av_dict_set(), av_opt_set(), av_opt_find(), avcodec_parameters_to_context()

func AVCodecParametersCopy

func AVCodecParametersCopy(dst *AVCodecParameters, src *AVCodecParameters) (int, error)

AVCodecParametersCopy wraps avcodec_parameters_copy.

Copy the contents of src to dst. Any allocated fields in dst are freed and
replaced with newly allocated duplicates of the corresponding fields in src.

@return >= 0 on success, a negative AVERROR code on failure.

func AVCodecParametersFree

func AVCodecParametersFree(par **AVCodecParameters)

AVCodecParametersFree wraps avcodec_parameters_free.

Free an AVCodecParameters instance and everything associated with it and
write NULL to the supplied pointer.

func AVCodecParametersFromContext

func AVCodecParametersFromContext(par *AVCodecParameters, codec *AVCodecContext) (int, error)

AVCodecParametersFromContext wraps avcodec_parameters_from_context.

Fill the parameters struct based on the values from the supplied codec
context. Any allocated fields in par are freed and replaced with duplicates
of the corresponding fields in codec.

@return >= 0 on success, a negative AVERROR code on failure

func AVCodecParametersToContext

func AVCodecParametersToContext(codec *AVCodecContext, par *AVCodecParameters) (int, error)

AVCodecParametersToContext wraps avcodec_parameters_to_context.

Fill the codec context based on the values from the supplied codec
parameters. Any allocated fields in codec that have a corresponding field in
par are freed and replaced with duplicates of the corresponding field in par.
Fields in codec that do not have a counterpart in par are not touched.

@return >= 0 on success, a negative AVERROR code on failure.

func AVCodecPixFmtToCodecTag

func AVCodecPixFmtToCodecTag(pixFmt AVPixelFormat) uint

AVCodecPixFmtToCodecTag wraps avcodec_pix_fmt_to_codec_tag.

Return a value representing the fourCC code associated to the
pixel format pix_fmt, or 0 if no associated fourCC code can be
found.

func AVCodecReceiveFrame

func AVCodecReceiveFrame(avctx *AVCodecContext, frame *AVFrame) (int, error)

AVCodecReceiveFrame wraps avcodec_receive_frame.

Return decoded output data from a decoder or encoder (when the
@ref AV_CODEC_FLAG_RECON_FRAME flag is used).

@param avctx codec context
@param frame This will be set to a reference-counted video or audio
             frame (depending on the decoder type) allocated by the
             codec. Note that the function will always call
             av_frame_unref(frame) before doing anything else.

@retval 0                success, a frame was returned
@retval AVERROR(EAGAIN)  output is not available in this state - user must
                         try to send new input
@retval AVERROR_EOF      the codec has been fully flushed, and there will be
                         no more output frames
@retval AVERROR(EINVAL)  codec not opened, or it is an encoder without the
                         @ref AV_CODEC_FLAG_RECON_FRAME flag enabled
@retval "other negative error code" legitimate decoding errors

func AVCodecReceivePacket

func AVCodecReceivePacket(avctx *AVCodecContext, avpkt *AVPacket) (int, error)

AVCodecReceivePacket wraps avcodec_receive_packet.

Read encoded data from the encoder.

@param avctx codec context
@param avpkt This will be set to a reference-counted packet allocated by the
             encoder. Note that the function will always call
             av_packet_unref(avpkt) before doing anything else.
@retval 0               success
@retval AVERROR(EAGAIN) output is not available in the current state - user must
                        try to send input
@retval AVERROR_EOF     the encoder has been fully flushed, and there will be no
                        more output packets
@retval AVERROR(EINVAL) codec not opened, or it is a decoder
@retval "another negative error code" legitimate encoding errors

func AVCodecSendFrame

func AVCodecSendFrame(avctx *AVCodecContext, frame *AVFrame) (int, error)

AVCodecSendFrame wraps avcodec_send_frame.

Supply a raw video or audio frame to the encoder. Use avcodec_receive_packet()
to retrieve buffered output packets.

@param avctx     codec context
@param[in] frame AVFrame containing the raw audio or video frame to be encoded.
                 Ownership of the frame remains with the caller, and the
                 encoder will not write to the frame. The encoder may create
                 a reference to the frame data (or copy it if the frame is
                 not reference-counted).
                 It can be NULL, in which case it is considered a flush
                 packet.  This signals the end of the stream. If the encoder
                 still has packets buffered, it will return them after this
                 call. Once flushing mode has been entered, additional flush
                 packets are ignored, and sending frames will return
                 AVERROR_EOF.

                 For audio:
                 If AV_CODEC_CAP_VARIABLE_FRAME_SIZE is set, then each frame
                 can have any number of samples.
                 If it is not set, frame->nb_samples must be equal to
                 avctx->frame_size for all frames except the last.
                 The final frame may be smaller than avctx->frame_size.
@retval 0                 success
@retval AVERROR(EAGAIN)   input is not accepted in the current state - user must
                          read output with avcodec_receive_packet() (once all
                          output is read, the packet should be resent, and the
                          call will not fail with EAGAIN).
@retval AVERROR_EOF       the encoder has been flushed, and no new frames can
                          be sent to it
@retval AVERROR(EINVAL)   codec not opened, it is a decoder, or requires flush
@retval AVERROR(ENOMEM)   failed to add packet to internal queue, or similar
@retval "another negative error code" legitimate encoding errors

func AVCodecSendPacket

func AVCodecSendPacket(avctx *AVCodecContext, avpkt *AVPacket) (int, error)

AVCodecSendPacket wraps avcodec_send_packet.

Supply raw packet data as input to a decoder.

Internally, this call will copy relevant AVCodecContext fields, which can
influence decoding per-packet, and apply them when the packet is actually
decoded. (For example AVCodecContext.skip_frame, which might direct the
decoder to drop the frame contained by the packet sent with this function.)

@warning The input buffer, avpkt->data must be AV_INPUT_BUFFER_PADDING_SIZE
         larger than the actual read bytes because some optimized bitstream
         readers read 32 or 64 bits at once and could read over the end.

@note The AVCodecContext MUST have been opened with @ref avcodec_open2()
      before packets may be fed to the decoder.

@param avctx codec context
@param[in] avpkt The input AVPacket. Usually, this will be a single video
                 frame, or several complete audio frames.
                 Ownership of the packet remains with the caller, and the
                 decoder will not write to the packet. The decoder may create
                 a reference to the packet data (or copy it if the packet is
                 not reference-counted).
                 Unlike with older APIs, the packet is always fully consumed,
                 and if it contains multiple frames (e.g. some audio codecs),
                 will require you to call avcodec_receive_frame() multiple
                 times afterwards before you can send a new packet.
                 It can be NULL (or an AVPacket with data set to NULL and
                 size set to 0); in this case, it is considered a flush
                 packet, which signals the end of the stream. Sending the
                 first flush packet will return success. Subsequent ones are
                 unnecessary and will return AVERROR_EOF. If the decoder
                 still has frames buffered, it will return them after sending
                 a flush packet.

@retval 0                 success
@retval AVERROR(EAGAIN)   input is not accepted in the current state - user
                          must read output with avcodec_receive_frame() (once
                          all output is read, the packet should be resent,
                          and the call will not fail with EAGAIN).
@retval AVERROR_EOF       the decoder has been flushed, and no new packets can be
                          sent to it (also returned if more than 1 flush
                          packet is sent)
@retval AVERROR(EINVAL)   codec not opened, it is an encoder, or requires flush
@retval AVERROR(ENOMEM)   failed to add packet to internal queue, or similar
@retval "another negative error code" legitimate decoding errors

func AVCodecString

func AVCodecString(buf *CStr, bufSize int, enc *AVCodecContext, encode int)

AVCodecString wraps avcodec_string.

func AVCodecVersion

func AVCodecVersion() uint

AVCodecVersion wraps avcodec_version.

Return the LIBAVCODEC_VERSION_INT constant.

func AVColorPrimariesFromName

func AVColorPrimariesFromName(name *CStr) (int, error)

AVColorPrimariesFromName wraps av_color_primaries_from_name.

@return the AVColorPrimaries value for name or an AVError if not found.

func AVColorRangeFromName

func AVColorRangeFromName(name *CStr) (int, error)

AVColorRangeFromName wraps av_color_range_from_name.

@return the AVColorRange value for name or an AVError if not found.

func AVColorSpaceFromName

func AVColorSpaceFromName(name *CStr) (int, error)

AVColorSpaceFromName wraps av_color_space_from_name.

@return the AVColorSpace value for name or an AVError if not found.

func AVColorTransferFromName

func AVColorTransferFromName(name *CStr) (int, error)

AVColorTransferFromName wraps av_color_transfer_from_name.

@return the AVColorTransferCharacteristic value for name or an AVError if not found.

func AVCompareMod

func AVCompareMod(a uint64, b uint64, mod uint64) int64

AVCompareMod wraps av_compare_mod.

Compare the remainders of two integer operands divided by a common divisor.

In other words, compare the least significant `log2(mod)` bits of integers
`a` and `b`.

@code{.c}
av_compare_mod(0x11, 0x02, 0x10) < 0 // since 0x11 % 0x10  (0x1) < 0x02 % 0x10  (0x2)
av_compare_mod(0x11, 0x02, 0x20) > 0 // since 0x11 % 0x20 (0x11) > 0x02 % 0x20 (0x02)
@endcode

@param a Operand
@param b Operand
@param mod Divisor; must be a power of 2
@return
        - a negative value if `a % mod < b % mod`
        - a positive value if `a % mod > b % mod`
        - zero             if `a % mod == b % mod`

func AVCompareTs

func AVCompareTs(tsA int64, tbA *AVRational, tsB int64, tbB *AVRational) (int, error)

AVCompareTs wraps av_compare_ts.

Compare two timestamps each in its own time base.

@return One of the following values:
        - -1 if `ts_a` is before `ts_b`
        - 1 if `ts_a` is after `ts_b`
        - 0 if they represent the same position

@warning
The result of the function is undefined if one of the timestamps is outside
the `int64_t` range when represented in the other's timebase.

func AVContainerFifoCanRead

func AVContainerFifoCanRead(cf *AVContainerFifo) uint64

AVContainerFifoCanRead wraps av_container_fifo_can_read.

@return number of objects available for reading

func AVContainerFifoDrain

func AVContainerFifoDrain(cf *AVContainerFifo, nbElems uint64)

AVContainerFifoDrain wraps av_container_fifo_drain.

Discard the specified number of elements from the FIFO.

@param nb_elems number of elements to discard, MUST NOT be larger than
                av_fifo_can_read(f)

func AVContainerFifoFree

func AVContainerFifoFree(cf **AVContainerFifo)

AVContainerFifoFree wraps av_container_fifo_free.

Free a AVContainerFifo and everything in it.

func AVContainerFifoRead

func AVContainerFifoRead(cf *AVContainerFifo, obj unsafe.Pointer, flags uint) (int, error)

AVContainerFifoRead wraps av_container_fifo_read.

Read the next available object from the FIFO into obj.

The fifo_read() callback previously provided to av_container_fifo_alloc()
will be called with obj as dst in order to perform the actual transfer.

func AVContainerFifoWrite

func AVContainerFifoWrite(cf *AVContainerFifo, obj unsafe.Pointer, flags uint) (int, error)

AVContainerFifoWrite wraps av_container_fifo_write.

Write the contents of obj to the FIFO.

The fifo_transfer() callback previously provided to av_container_fifo_alloc()
will be called with obj as src in order to perform the actual transfer.

func AVCpuCount

func AVCpuCount() (int, error)

AVCpuCount wraps av_cpu_count.

@return the number of logical CPU cores present.

func AVCpuForceCount

func AVCpuForceCount(count int)

AVCpuForceCount wraps av_cpu_force_count.

Overrides cpu count detection and forces the specified count.
Count < 1 disables forcing of specific count.

func AVCpuMaxAlign

func AVCpuMaxAlign() uint64

AVCpuMaxAlign wraps av_cpu_max_align.

Get the maximum data alignment that may be required by FFmpeg.

Note that this is affected by the build configuration and the CPU flags mask,
so e.g. if the CPU supports AVX, but libavutil has been built with
--disable-avx or the AV_CPU_FLAG_AVX flag has been disabled through
 av_set_cpu_flags_mask(), then this function will behave as if AVX is not
 present.

func AVCrc

func AVCrc(ctx *AVCRC, crc uint32, buffer unsafe.Pointer, length uint64) uint32

AVCrc wraps av_crc.

Calculate the CRC of a block.
@param ctx initialized AVCRC array (see av_crc_init())
@param crc CRC of previous blocks if any or initial value for CRC
@param buffer buffer whose CRC to calculate
@param length length of the buffer
@return CRC updated with the data from the given block

@see av_crc_init() "le" parameter

func AVCrcInit

func AVCrcInit(ctx *AVCRC, le int, bits int, poly uint32, ctxSize int) (int, error)

AVCrcInit wraps av_crc_init.

Initialize a CRC table.
@param ctx must be an array of size sizeof(AVCRC)*257 or sizeof(AVCRC)*1024
@param le If 1, the lowest bit represents the coefficient for the highest
          exponent of the corresponding polynomial (both for poly and
          actual CRC).
          If 0, you must swap the CRC parameter and the result of av_crc
          if you need the standard representation (can be simplified in
          most cases to e.g. bswap16):
          av_bswap32(crc << (32-bits))
@param bits number of bits for the CRC
@param poly generator polynomial without the x**bits coefficient, in the
            representation as specified by le
@param ctx_size size of ctx in bytes
@return <0 on failure

func AVCspApproximateTrcGamma

func AVCspApproximateTrcGamma(trc AVColorTransferCharacteristic) float64

AVCspApproximateTrcGamma wraps av_csp_approximate_trc_gamma.

Determine a suitable 'gamma' value to match the supplied
AVColorTransferCharacteristic.

See Apple Technical Note TN2257 (https://developer.apple.com/library/mac/technotes/tn2257/_index.html)

This function returns the gamma exponent for the OETF. For example, sRGB is approximated
by gamma 2.2, not by gamma 0.45455.

@return Will return an approximation to the simple gamma function matching
        the supplied Transfer Characteristic, Will return 0.0 for any
        we cannot reasonably match against.

func AVDesCrypt

func AVDesCrypt(d *AVDES, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVDesCrypt wraps av_des_crypt.

@brief Encrypts / decrypts using the DES algorithm.

@param d pointer to the AVDES structure
@param dst destination array, can be equal to src, must be 8-byte aligned
@param src source array, can be equal to dst, must be 8-byte aligned, may be NULL
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, if NULL then ECB will be used,
          must be 8-byte aligned
@param decrypt 0 for encryption, 1 for decryption

func AVDesInit

func AVDesInit(d *AVDES, key unsafe.Pointer, keyBits int, decrypt int) (int, error)

AVDesInit wraps av_des_init.

@brief Initializes an AVDES context.

@param d pointer to a AVDES structure to initialize
@param key pointer to the key to use
@param key_bits must be 64 or 192
@param decrypt 0 for encryption/CBC-MAC, 1 for decryption
@return zero on success, negative value otherwise

func AVDesMac

func AVDesMac(d *AVDES, dst unsafe.Pointer, src unsafe.Pointer, count int)

AVDesMac wraps av_des_mac.

@brief Calculates CBC-MAC using the DES algorithm.

@param d pointer to the AVDES structure
@param dst destination array, can be equal to src, must be 8-byte aligned
@param src source array, can be equal to dst, must be 8-byte aligned, may be NULL
@param count number of 8 byte blocks

func AVDeviceAppToDevControlMessage

func AVDeviceAppToDevControlMessage(s *AVFormatContext, _type AVAppToDevMessageType, data unsafe.Pointer, dataSize uint64) (int, error)

AVDeviceAppToDevControlMessage wraps avdevice_app_to_dev_control_message.

Send control message from application to device.

@param s         device context.
@param type      message type.
@param data      message data. Exact type depends on message type.
@param data_size size of message data.
@return >= 0 on success, negative on error.
        AVERROR(ENOSYS) when device doesn't implement handler of the message.

func AVDeviceDevToAppControlMessage

func AVDeviceDevToAppControlMessage(s *AVFormatContext, _type AVDevToAppMessageType, data unsafe.Pointer, dataSize uint64) (int, error)

AVDeviceDevToAppControlMessage wraps avdevice_dev_to_app_control_message.

Send control message from device to application.

@param s         device context.
@param type      message type.
@param data      message data. Can be NULL.
@param data_size size of message data.
@return >= 0 on success, negative on error.
        AVERROR(ENOSYS) when application doesn't implement handler of the message.

func AVDeviceFreeListDevices

func AVDeviceFreeListDevices(deviceList **AVDeviceInfoList)

AVDeviceFreeListDevices wraps avdevice_free_list_devices.

Convenient function to free result of avdevice_list_devices().

@param device_list device list to be freed.

func AVDeviceListDevices

func AVDeviceListDevices(s *AVFormatContext, deviceList **AVDeviceInfoList) (int, error)

AVDeviceListDevices wraps avdevice_list_devices.

List devices.

Returns available device names and their parameters.

@note: Some devices may accept system-dependent device names that cannot be
       autodetected. The list returned by this function cannot be assumed to
       be always completed.

@param s                device context.
@param[out] device_list list of autodetected devices.
@return count of autodetected devices, negative on error.

func AVDeviceListInputSources

func AVDeviceListInputSources(device *AVInputFormat, deviceName *CStr, deviceOptions *AVDictionary, deviceList **AVDeviceInfoList) (int, error)

AVDeviceListInputSources wraps avdevice_list_input_sources.

List devices.

Returns available device names and their parameters.
These are convenient wrappers for avdevice_list_devices().
Device context is allocated and deallocated internally.

@param device           device format. May be NULL if device name is set.
@param device_name      device name. May be NULL if device format is set.
@param device_options   An AVDictionary filled with device-private options. May be NULL.
                        The same options must be passed later to avformat_write_header() for output
                        devices or avformat_open_input() for input devices, or at any other place
                        that affects device-private options.
@param[out] device_list list of autodetected devices
@return count of autodetected devices, negative on error.
@note device argument takes precedence over device_name when both are set.

func AVDeviceListOutputSinks

func AVDeviceListOutputSinks(device *AVOutputFormat, deviceName *CStr, deviceOptions *AVDictionary, deviceList **AVDeviceInfoList) (int, error)

AVDeviceListOutputSinks wraps avdevice_list_output_sinks.

func AVDeviceRegisterAll

func AVDeviceRegisterAll()

AVDeviceRegisterAll wraps avdevice_register_all.

Initialize libavdevice and register all the input and output devices.

func AVDeviceVersion

func AVDeviceVersion() uint

AVDeviceVersion wraps avdevice_version.

Return the LIBAVDEVICE_VERSION_INT constant.

func AVDictCopy

func AVDictCopy(dst **AVDictionary, src *AVDictionary, flags int) (int, error)

AVDictCopy wraps av_dict_copy.

Copy entries from one AVDictionary struct into another.

@note Metadata is read using the ::AV_DICT_IGNORE_SUFFIX flag

@param dst   Pointer to a pointer to a AVDictionary struct to copy into. If *dst is NULL,
             this function will allocate a struct for you and put it in *dst
@param src   Pointer to the source AVDictionary struct to copy items from.
@param flags Flags to use when setting entries in *dst

@return 0 on success, negative AVERROR code on failure. If dst was allocated
          by this function, callers should free the associated memory.

func AVDictCount

func AVDictCount(m *AVDictionary) (int, error)

AVDictCount wraps av_dict_count.

Get number of entries in dictionary.

@param m dictionary
@return  number of entries in dictionary

func AVDictFree

func AVDictFree(m **AVDictionary)

AVDictFree wraps av_dict_free.

Free all the memory allocated for an AVDictionary struct
and all keys and values.

func AVDictParseString

func AVDictParseString(pm **AVDictionary, str *CStr, keyValSep *CStr, pairsSep *CStr, flags int) (int, error)

AVDictParseString wraps av_dict_parse_string.

Parse the key/value pairs list and add the parsed entries to a dictionary.

In case of failure, all the successfully set entries are stored in
*pm. You may need to manually free the created dictionary.

@param key_val_sep  A 0-terminated list of characters used to separate
                    key from value
@param pairs_sep    A 0-terminated list of characters used to separate
                    two pairs from each other
@param flags        Flags to use when adding to the dictionary.
                    ::AV_DICT_DONT_STRDUP_KEY and ::AV_DICT_DONT_STRDUP_VAL
                    are ignored since the key/value tokens will always
                    be duplicated.

@return             0 on success, negative AVERROR code on failure

func AVDictSet

func AVDictSet(pm **AVDictionary, key *CStr, value *CStr, flags int) (int, error)

AVDictSet wraps av_dict_set.

Set the given entry in *pm, overwriting an existing entry.

Note: If AV_DICT_DONT_STRDUP_KEY or AV_DICT_DONT_STRDUP_VAL is set,
these arguments will be freed on error.

@warning Adding a new entry to a dictionary invalidates all existing entries
previously returned with av_dict_get() or av_dict_iterate().

@param pm        Pointer to a pointer to a dictionary struct. If *pm is NULL
                 a dictionary struct is allocated and put in *pm.
@param key       Entry key to add to *pm (will either be av_strduped or added as a new key depending on flags)
@param value     Entry value to add to *pm (will be av_strduped or added as a new key depending on flags).
                 Passing a NULL value will cause an existing entry to be deleted.

@return          >= 0 on success otherwise an error code <0

func AVDictSetInt

func AVDictSetInt(pm **AVDictionary, key *CStr, value int64, flags int) (int, error)

AVDictSetInt wraps av_dict_set_int.

Convenience wrapper for av_dict_set() that converts the value to a string
and stores it.

Note: If ::AV_DICT_DONT_STRDUP_KEY is set, key will be freed on error.

func AVDispositionFromString

func AVDispositionFromString(disp *CStr) (int, error)

AVDispositionFromString wraps av_disposition_from_string.

@return The AV_DISPOSITION_* flag corresponding to disp or a negative error
        code if disp does not correspond to a known stream disposition.

func AVDouble2Int

func AVDouble2Int(f float64) uint64

AVDouble2Int wraps av_double2int.

Reinterpret a double as a 64-bit integer.

func AVDumpFormat

func AVDumpFormat(ic *AVFormatContext, index int, url *CStr, isOutput int)

AVDumpFormat wraps av_dump_format.

Print detailed information about the input or output format, such as
duration, bitrate, streams, container, programs, metadata, side data,
codec and time base.

@param ic        the context to analyze
@param index     index of the stream to dump information about
@param url       the URL to print, such as source or destination file
@param is_output Select whether the specified context is an input(0) or output(1)

func AVDynamicHdrPlusFromT35

func AVDynamicHdrPlusFromT35(s *AVDynamicHDRPlus, data unsafe.Pointer, size uint64) (int, error)

AVDynamicHdrPlusFromT35 wraps av_dynamic_hdr_plus_from_t35.

Parse the user data registered ITU-T T.35 to AVbuffer (AVDynamicHDRPlus).
The T.35 buffer must begin with the application mode, skipping the
country code, terminal provider codes, and application identifier.
@param s A pointer containing the decoded AVDynamicHDRPlus structure.
@param data The byte array containing the raw ITU-T T.35 data.
@param size Size of the data array in bytes.

@return >= 0 on success. Otherwise, returns the appropriate AVERROR.

func AVDynarrayAdd

func AVDynarrayAdd(tabPtr unsafe.Pointer, nbPtr *int, elem unsafe.Pointer)

AVDynarrayAdd wraps av_dynarray_add.

Add the pointer to an element to a dynamic array.

The array to grow is supposed to be an array of pointers to
structures, and the element to add must be a pointer to an already
allocated structure.

The array is reallocated when its size reaches powers of 2.
Therefore, the amortized cost of adding an element is constant.

In case of success, the pointer to the array is updated in order to
point to the new grown array, and the number pointed to by `nb_ptr`
is incremented.
In case of failure, the array is freed, `*tab_ptr` is set to `NULL` and
`*nb_ptr` is set to 0.

@param[in,out] tab_ptr Pointer to the array to grow
@param[in,out] nb_ptr  Pointer to the number of elements in the array
@param[in]     elem    Element to add
@see av_dynarray_add_nofree(), av_dynarray2_add()

func AVDynarrayAddNofree

func AVDynarrayAddNofree(tabPtr unsafe.Pointer, nbPtr *int, elem unsafe.Pointer) (int, error)

AVDynarrayAddNofree wraps av_dynarray_add_nofree.

Add an element to a dynamic array.

Function has the same functionality as av_dynarray_add(),
but it doesn't free memory on fails. It returns error code
instead and leave current buffer untouched.

@return >=0 on success, negative otherwise
@see av_dynarray_add(), av_dynarray2_add()

func AVEncryptionInfoAddSideData

func AVEncryptionInfoAddSideData(info *AVEncryptionInfo, sideDataSize *uint64) unsafe.Pointer

AVEncryptionInfoAddSideData wraps av_encryption_info_add_side_data.

Allocates and initializes side data that holds a copy of the given encryption
info.  The resulting pointer should be either freed using av_free or given
to av_packet_add_side_data().

@return The new side-data pointer, or NULL.

func AVEncryptionInfoFree

func AVEncryptionInfoFree(info *AVEncryptionInfo)

AVEncryptionInfoFree wraps av_encryption_info_free.

Frees the given encryption info object.  This MUST NOT be used to free the
side-data data pointer, that should use normal side-data methods.

func AVEncryptionInitInfoAddSideData

func AVEncryptionInitInfoAddSideData(info *AVEncryptionInitInfo, sideDataSize *uint64) unsafe.Pointer

AVEncryptionInitInfoAddSideData wraps av_encryption_init_info_add_side_data.

Allocates and initializes side data that holds a copy of the given encryption
init info.  The resulting pointer should be either freed using av_free or
given to av_packet_add_side_data().

@return The new side-data pointer, or NULL.

func AVEncryptionInitInfoFree

func AVEncryptionInitInfoFree(info *AVEncryptionInitInfo)

AVEncryptionInitInfoFree wraps av_encryption_init_info_free.

Frees the given encryption init info object.  This MUST NOT be used to free
the side-data data pointer, that should use normal side-data methods.

func AVExecutorExecute

func AVExecutorExecute(e *AVExecutor, t *AVTask)

AVExecutorExecute wraps av_executor_execute.

Add task to executor
@param e pointer to executor
@param t pointer to task. If NULL, it will wakeup one work thread

func AVExecutorFree

func AVExecutorFree(e **AVExecutor)

AVExecutorFree wraps av_executor_free.

Free executor
@param e  pointer to executor

func AVExprCountFunc

func AVExprCountFunc(e *AVExpr, counter *uint, size int, arg int) (int, error)

AVExprCountFunc wraps av_expr_count_func.

Track the presence of user provided functions and their number of occurrences
in a parsed expression.

@param e the AVExpr to track user provided functions in
@param counter a zero-initialized array where the count of each function will be stored
               if you passed 5 functions with 2 arguments to av_expr_parse()
               then for arg=2 this will use up to 5 entries.
@param size size of array
@param arg number of arguments the counted functions have
@return 0 on success, a negative value indicates that no expression or array was passed
or size was zero

func AVExprCountVars

func AVExprCountVars(e *AVExpr, counter *uint, size int) (int, error)

AVExprCountVars wraps av_expr_count_vars.

Track the presence of variables and their number of occurrences in a parsed expression

@param e the AVExpr to track variables in
@param counter a zero-initialized array where the count of each variable will be stored
@param size size of array
@return 0 on success, a negative value indicates that no expression or array was passed
or size was zero

func AVExprFree

func AVExprFree(e *AVExpr)

AVExprFree wraps av_expr_free.

Free a parsed expression previously created with av_expr_parse().

func AVFastMalloc

func AVFastMalloc(ptr unsafe.Pointer, size *uint, minSize uint64)

AVFastMalloc wraps av_fast_malloc.

Allocate a buffer, reusing the given one if large enough.

Contrary to av_fast_realloc(), the current buffer contents might not be
preserved and on error the old buffer is freed, thus no special handling to
avoid memleaks is necessary.

`*ptr` is allowed to be `NULL`, in which case allocation always happens if
`size_needed` is greater than 0.

@code{.c}
uint8_t *buf = ...;
av_fast_malloc(&buf, &current_size, size_needed);
if (!buf) {
    // Allocation failed; buf already freed
    return AVERROR(ENOMEM);
}
@endcode

@param[in,out] ptr      Pointer to pointer to an already allocated buffer.
                        `*ptr` will be overwritten with pointer to new
                        buffer on success or `NULL` on failure
@param[in,out] size     Pointer to the size of buffer `*ptr`. `*size` is
                        updated to the new allocated size, in particular 0
                        in case of failure.
@param[in]     min_size Desired minimal size of buffer `*ptr`
@see av_realloc()
@see av_fast_mallocz()

func AVFastMallocz

func AVFastMallocz(ptr unsafe.Pointer, size *uint, minSize uint64)

AVFastMallocz wraps av_fast_mallocz.

Allocate and clear a buffer, reusing the given one if large enough.

Like av_fast_malloc(), but all newly allocated space is initially cleared.
Reused buffer is not cleared.

`*ptr` is allowed to be `NULL`, in which case allocation always happens if
`size_needed` is greater than 0.

@param[in,out] ptr      Pointer to pointer to an already allocated buffer.
                        `*ptr` will be overwritten with pointer to new
                        buffer on success or `NULL` on failure
@param[in,out] size     Pointer to the size of buffer `*ptr`. `*size` is
                        updated to the new allocated size, in particular 0
                        in case of failure.
@param[in]     min_size Desired minimal size of buffer `*ptr`
@see av_fast_malloc()

func AVFastPaddedMalloc

func AVFastPaddedMalloc(ptr unsafe.Pointer, size *uint, minSize uint64)

AVFastPaddedMalloc wraps av_fast_padded_malloc.

Same behaviour av_fast_malloc but the buffer has additional
AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.

In addition the whole buffer will initially and after resizes
be 0-initialized so that no uninitialized data will ever appear.

func AVFastPaddedMallocz

func AVFastPaddedMallocz(ptr unsafe.Pointer, size *uint, minSize uint64)

AVFastPaddedMallocz wraps av_fast_padded_mallocz.

Same behaviour av_fast_padded_malloc except that buffer will always
be 0-initialized after call.

func AVFastRealloc

func AVFastRealloc(ptr unsafe.Pointer, size *uint, minSize uint64) unsafe.Pointer

AVFastRealloc wraps av_fast_realloc.

Reallocate the given buffer if it is not large enough, otherwise do nothing.

If the given buffer is `NULL`, then a new uninitialized buffer is allocated.

If the given buffer is not large enough, and reallocation fails, `NULL` is
returned and `*size` is set to 0, but the original buffer is not changed or
freed.

A typical use pattern follows:

@code{.c}
uint8_t *buf = ...;
uint8_t *new_buf = av_fast_realloc(buf, &current_size, size_needed);
if (!new_buf) {
    // Allocation failed; clean up original buffer
    av_freep(&buf);
    return AVERROR(ENOMEM);
}
@endcode

@param[in,out] ptr      Already allocated buffer, or `NULL`
@param[in,out] size     Pointer to the size of buffer `ptr`. `*size` is
                        updated to the new allocated size, in particular 0
                        in case of failure.
@param[in]     min_size Desired minimal size of buffer `ptr`
@return `ptr` if the buffer is large enough, a pointer to newly reallocated
        buffer if the buffer was not large enough, or `NULL` in case of
        error
@see av_realloc()
@see av_fast_malloc()

func AVFifoAutoGrowLimit

func AVFifoAutoGrowLimit(f *AVFifo, maxElems uint64)

AVFifoAutoGrowLimit wraps av_fifo_auto_grow_limit.

Set the maximum size (in elements) to which the FIFO can be resized
automatically. Has no effect unless AV_FIFO_FLAG_AUTO_GROW is used.

func AVFifoCanRead

func AVFifoCanRead(f *AVFifo) uint64

AVFifoCanRead wraps av_fifo_can_read.

@return number of elements available for reading from the given FIFO.

func AVFifoCanWrite

func AVFifoCanWrite(f *AVFifo) uint64

AVFifoCanWrite wraps av_fifo_can_write.

@return Number of elements that can be written into the given FIFO without
        growing it.

        In other words, this number of elements or less is guaranteed to fit
        into the FIFO. More data may be written when the
        AV_FIFO_FLAG_AUTO_GROW flag was specified at FIFO creation, but this
        may involve memory allocation, which can fail.

func AVFifoDrain2

func AVFifoDrain2(f *AVFifo, size uint64)

AVFifoDrain2 wraps av_fifo_drain2.

Discard the specified amount of data from an AVFifo.
@param size number of elements to discard, MUST NOT be larger than
            av_fifo_can_read(f)

func AVFifoElemSize

func AVFifoElemSize(f *AVFifo) uint64

AVFifoElemSize wraps av_fifo_elem_size.

@return Element size for FIFO operations. This element size is set at
        FIFO allocation and remains constant during its lifetime

func AVFifoFreep2

func AVFifoFreep2(f **AVFifo)

AVFifoFreep2 wraps av_fifo_freep2.

Free an AVFifo and reset pointer to NULL.
@param f Pointer to an AVFifo to free. *f == NULL is allowed.

func AVFifoGrow2

func AVFifoGrow2(f *AVFifo, inc uint64) (int, error)

AVFifoGrow2 wraps av_fifo_grow2.

Enlarge an AVFifo.

On success, the FIFO will be large enough to hold exactly
inc + av_fifo_can_read() + av_fifo_can_write()
elements. In case of failure, the old FIFO is kept unchanged.

@param f AVFifo to resize
@param inc number of elements to allocate for, in addition to the current
           allocated size
@return a non-negative number on success, a negative error code on failure

func AVFifoPeek

func AVFifoPeek(f *AVFifo, buf unsafe.Pointer, nbElems uint64, offset uint64) (int, error)

AVFifoPeek wraps av_fifo_peek.

Read data from a FIFO without modifying FIFO state.

Returns an error if an attempt is made to peek to nonexistent elements
(i.e. if offset + nb_elems is larger than av_fifo_can_read(f)).

@param f the FIFO buffer
@param buf Buffer to store the data. nb_elems * av_fifo_elem_size(f) bytes
           will be written into buf.
@param nb_elems number of elements to read from FIFO
@param offset number of initial elements to skip.

@return a non-negative number on success, a negative error code on failure

func AVFifoRead

func AVFifoRead(f *AVFifo, buf unsafe.Pointer, nbElems uint64) (int, error)

AVFifoRead wraps av_fifo_read.

Read data from a FIFO.

In case nb_elems > av_fifo_can_read(f), nothing is read and an error
is returned.

@param f the FIFO buffer
@param buf Buffer to store the data. nb_elems * av_fifo_elem_size(f) bytes
           will be written into buf on success.
@param nb_elems number of elements to read from FIFO

@return a non-negative number on success, a negative error code on failure

func AVFifoReset2

func AVFifoReset2(f *AVFifo)

AVFifoReset2 wraps av_fifo_reset2.

Empty the AVFifo.
@param f AVFifo to reset

func AVFifoWrite

func AVFifoWrite(f *AVFifo, buf unsafe.Pointer, nbElems uint64) (int, error)

AVFifoWrite wraps av_fifo_write.

Write data into a FIFO.

In case nb_elems > av_fifo_can_write(f) and the AV_FIFO_FLAG_AUTO_GROW flag
was not specified at FIFO creation, nothing is written and an error
is returned.

Calling function is guaranteed to succeed if nb_elems <= av_fifo_can_write(f).

@param f the FIFO buffer
@param buf Data to be written. nb_elems * av_fifo_elem_size(f) bytes will be
           read from buf on success.
@param nb_elems number of elements to write into FIFO

@return a non-negative number on success, a negative error code on failure

func AVFileUnmap

func AVFileUnmap(bufptr unsafe.Pointer, size uint64)

AVFileUnmap wraps av_file_unmap.

Unmap or free the buffer bufptr created by av_file_map().

@param bufptr the buffer previously created with av_file_map()
@param size size in bytes of bufptr, must be the same as returned
by av_file_map()

func AVFilenameNumberTest

func AVFilenameNumberTest(filename *CStr) (int, error)

AVFilenameNumberTest wraps av_filename_number_test.

Check whether filename actually is a numbered sequence generator.

@param filename possible numbered sequence string
@return 1 if a valid numbered sequence string, 0 otherwise

func AVFilterFilterPadCount

func AVFilterFilterPadCount(filter *AVFilter, isOutput int) uint

AVFilterFilterPadCount wraps avfilter_filter_pad_count.

Get the number of elements in an AVFilter's inputs or outputs array.

func AVFilterFree

func AVFilterFree(filter *AVFilterContext)

AVFilterFree wraps avfilter_free.

Free a filter context. This will also remove the filter from its
filtergraph's list of filters.

@param filter the filter to free

func AVFilterGraphConfig

func AVFilterGraphConfig(graphctx *AVFilterGraph, logCtx unsafe.Pointer) (int, error)

AVFilterGraphConfig wraps avfilter_graph_config.

Check validity and configure all the links and formats in the graph.

@param graphctx the filter graph
@param log_ctx context used for logging
@return >= 0 in case of success, a negative AVERROR code otherwise

func AVFilterGraphCreateFilter

func AVFilterGraphCreateFilter(filtCtx **AVFilterContext, filt *AVFilter, name *CStr, args *CStr, opaque unsafe.Pointer, graphCtx *AVFilterGraph) (int, error)

AVFilterGraphCreateFilter wraps avfilter_graph_create_filter.

A convenience wrapper that allocates and initializes a filter in a single
step. The filter instance is created from the filter filt and inited with the
parameter args. opaque is currently ignored.

In case of success put in *filt_ctx the pointer to the created
filter instance, otherwise set *filt_ctx to NULL.

@param name the instance name to give to the created filter instance
@param graph_ctx the filter graph
@return a negative AVERROR error code in case of failure, a non
negative value otherwise

@warning Since the filter is initialized after this function successfully
         returns, you MUST NOT set any further options on it. If you need to
         do that, call ::avfilter_graph_alloc_filter(), followed by setting
         the options, followed by ::avfilter_init_dict() instead of this
         function.

func AVFilterGraphFree

func AVFilterGraphFree(graph **AVFilterGraph)

AVFilterGraphFree wraps avfilter_graph_free.

Free a graph, destroy its links, and set *graph to NULL.
If *graph is NULL, do nothing.

func AVFilterGraphParse

func AVFilterGraphParse(graph *AVFilterGraph, filters *CStr, inputs *AVFilterInOut, outputs *AVFilterInOut, logCtx unsafe.Pointer) (int, error)

AVFilterGraphParse wraps avfilter_graph_parse.

Add a graph described by a string to a graph.

@note The caller must provide the lists of inputs and outputs,
which therefore must be known before calling the function.

@note The inputs parameter describes inputs of the already existing
part of the graph; i.e. from the point of view of the newly created
part, they are outputs. Similarly the outputs parameter describes
outputs of the already existing filters, which are provided as
inputs to the parsed filters.

@param graph   the filter graph where to link the parsed graph context
@param filters string to be parsed
@param inputs  linked list to the inputs of the graph
@param outputs linked list to the outputs of the graph
@return zero on success, a negative AVERROR code on error

func AVFilterGraphParse2

func AVFilterGraphParse2(graph *AVFilterGraph, filters *CStr, inputs **AVFilterInOut, outputs **AVFilterInOut) (int, error)

AVFilterGraphParse2 wraps avfilter_graph_parse2.

Add a graph described by a string to a graph.

@param[in]  graph   the filter graph where to link the parsed graph context
@param[in]  filters string to be parsed
@param[out] inputs  a linked list of all free (unlinked) inputs of the
                    parsed graph will be returned here. It is to be freed
                    by the caller using avfilter_inout_free().
@param[out] outputs a linked list of all free (unlinked) outputs of the
                    parsed graph will be returned here. It is to be freed by the
                    caller using avfilter_inout_free().
@return zero on success, a negative AVERROR code on error

@note This function returns the inputs and outputs that are left
unlinked after parsing the graph and the caller then deals with
them.
@note This function makes no reference whatsoever to already
existing parts of the graph and the inputs parameter will on return
contain inputs of the newly parsed part of the graph.  Analogously
the outputs parameter will contain outputs of the newly created
filters.

func AVFilterGraphParsePtr

func AVFilterGraphParsePtr(graph *AVFilterGraph, filters *CStr, inputs **AVFilterInOut, outputs **AVFilterInOut, logCtx unsafe.Pointer) (int, error)

AVFilterGraphParsePtr wraps avfilter_graph_parse_ptr.

Add a graph described by a string to a graph.

In the graph filters description, if the input label of the first
filter is not specified, "in" is assumed; if the output label of
the last filter is not specified, "out" is assumed.

@param graph   the filter graph where to link the parsed graph context
@param filters string to be parsed
@param inputs  pointer to a linked list to the inputs of the graph, may be NULL.
               If non-NULL, *inputs is updated to contain the list of open inputs
               after the parsing, should be freed with avfilter_inout_free().
@param outputs pointer to a linked list to the outputs of the graph, may be NULL.
               If non-NULL, *outputs is updated to contain the list of open outputs
               after the parsing, should be freed with avfilter_inout_free().
@return non negative on success, a negative AVERROR code on error

func AVFilterGraphQueueCommand

func AVFilterGraphQueueCommand(graph *AVFilterGraph, target *CStr, cmd *CStr, arg *CStr, flags int, ts float64) (int, error)

AVFilterGraphQueueCommand wraps avfilter_graph_queue_command.

Queue a command for one or more filter instances.

@param graph  the filter graph
@param target the filter(s) to which the command should be sent
              "all" sends to all filters
              otherwise it can be a filter or filter instance name
              which will send the command to all matching filters.
@param cmd    the command to sent, for handling simplicity all commands must be alphanumeric only
@param arg    the argument for the command
@param ts     time at which the command should be sent to the filter

@note As this executes commands after this function returns, no return code
      from the filter is provided, also AVFILTER_CMD_FLAG_ONE is not supported.

func AVFilterGraphRequestOldest

func AVFilterGraphRequestOldest(graph *AVFilterGraph) (int, error)

AVFilterGraphRequestOldest wraps avfilter_graph_request_oldest.

Request a frame on the oldest sink link.

If the request returns AVERROR_EOF, try the next.

Note that this function is not meant to be the sole scheduling mechanism
of a filtergraph, only a convenience function to help drain a filtergraph
in a balanced way under normal circumstances.

Also note that AVERROR_EOF does not mean that frames did not arrive on
some of the sinks during the process.
When there are multiple sink links, in case the requested link
returns an EOF, this may cause a filter to flush pending frames
which are sent to another sink link, although unrequested.

@return  the return value of ff_request_frame(),
         or AVERROR_EOF if all links returned AVERROR_EOF

func AVFilterGraphSegmentApply

func AVFilterGraphSegmentApply(seg *AVFilterGraphSegment, flags int, inputs **AVFilterInOut, outputs **AVFilterInOut) (int, error)

AVFilterGraphSegmentApply wraps avfilter_graph_segment_apply.

Apply all filter/link descriptions from a graph segment to the associated filtergraph.

This functions is currently equivalent to calling the following in sequence:
- avfilter_graph_segment_create_filters();
- avfilter_graph_segment_apply_opts();
- avfilter_graph_segment_init();
- avfilter_graph_segment_link();
failing if any of them fails. This list may be extended in the future.

Since the above functions are idempotent, the caller may call some of them
manually, then do some custom processing on the filtergraph, then call this
function to do the rest.

@param seg the filtergraph segment to process
@param flags reserved for future use, caller must set to 0 for now
@param[out] inputs passed to avfilter_graph_segment_link()
@param[out] outputs passed to avfilter_graph_segment_link()

@retval "non-negative number" success
@retval "negative error code" failure

@note Calling this function multiple times is safe, as it is idempotent.

func AVFilterGraphSegmentApplyOpts

func AVFilterGraphSegmentApplyOpts(seg *AVFilterGraphSegment, flags int) (int, error)

AVFilterGraphSegmentApplyOpts wraps avfilter_graph_segment_apply_opts.

Apply parsed options to filter instances in a graph segment.

Walk through all filter instances in the graph segment that have option
dictionaries associated with them and apply those options with
av_opt_set_dict2(..., AV_OPT_SEARCH_CHILDREN). AVFilterParams.opts is
replaced by the dictionary output by av_opt_set_dict2(), which should be
empty (NULL) if all options were successfully applied.

If any options could not be found, this function will continue processing all
other filters and finally return AVERROR_OPTION_NOT_FOUND (unless another
error happens). The calling program may then deal with unapplied options as
it wishes.

Any creation-pending filters (see avfilter_graph_segment_create_filters())
present in the segment will cause this function to fail. AVFilterParams with
no associated filter context are simply skipped.

@param seg the filtergraph segment to process
@param flags reserved for future use, caller must set to 0 for now

@retval "non-negative number" Success, all options were successfully applied.
@retval AVERROR_OPTION_NOT_FOUND some options were not found in a filter
@retval "another negative error code" other failures

@note Calling this function multiple times is safe, as it is idempotent.

func AVFilterGraphSegmentCreateFilters

func AVFilterGraphSegmentCreateFilters(seg *AVFilterGraphSegment, flags int) (int, error)

AVFilterGraphSegmentCreateFilters wraps avfilter_graph_segment_create_filters.

Create filters specified in a graph segment.

Walk through the creation-pending AVFilterParams in the segment and create
new filter instances for them.
Creation-pending params are those where AVFilterParams.filter_name is
non-NULL (and hence AVFilterParams.filter is NULL). All other AVFilterParams
instances are ignored.

For any filter created by this function, the corresponding
AVFilterParams.filter is set to the newly-created filter context,
AVFilterParams.filter_name and AVFilterParams.instance_name are freed and set
to NULL.

@param seg the filtergraph segment to process
@param flags reserved for future use, caller must set to 0 for now

@retval "non-negative number" Success, all creation-pending filters were
                              successfully created
@retval AVERROR_FILTER_NOT_FOUND some filter's name did not correspond to a
                                 known filter
@retval "another negative error code" other failures

@note Calling this function multiple times is safe, as it is idempotent.

func AVFilterGraphSegmentFree

func AVFilterGraphSegmentFree(seg **AVFilterGraphSegment)

AVFilterGraphSegmentFree wraps avfilter_graph_segment_free.

Free the provided AVFilterGraphSegment and everything associated with it.

@param seg double pointer to the AVFilterGraphSegment to be freed. NULL will
be written to this pointer on exit from this function.

@note
The filter contexts (AVFilterParams.filter) are owned by AVFilterGraph rather
than AVFilterGraphSegment, so they are not freed.

func AVFilterGraphSegmentInit

func AVFilterGraphSegmentInit(seg *AVFilterGraphSegment, flags int) (int, error)

AVFilterGraphSegmentInit wraps avfilter_graph_segment_init.

Initialize all filter instances in a graph segment.

Walk through all filter instances in the graph segment and call
avfilter_init_dict(..., NULL) on those that have not been initialized yet.

Any creation-pending filters (see avfilter_graph_segment_create_filters())
present in the segment will cause this function to fail. AVFilterParams with
no associated filter context or whose filter context is already initialized,
are simply skipped.

@param seg the filtergraph segment to process
@param flags reserved for future use, caller must set to 0 for now

@retval "non-negative number" Success, all filter instances were successfully
                              initialized
@retval "negative error code" failure

@note Calling this function multiple times is safe, as it is idempotent.
func AVFilterGraphSegmentLink(seg *AVFilterGraphSegment, flags int, inputs **AVFilterInOut, outputs **AVFilterInOut) (int, error)

AVFilterGraphSegmentLink wraps avfilter_graph_segment_link.

Link filters in a graph segment.

Walk through all filter instances in the graph segment and try to link all
unlinked input and output pads. Any creation-pending filters (see
avfilter_graph_segment_create_filters()) present in the segment will cause
this function to fail. Disabled filters and already linked pads are skipped.

Every filter output pad that has a corresponding AVFilterPadParams with a
non-NULL label is
- linked to the input with the matching label, if one exists;
- exported in the outputs linked list otherwise, with the label preserved.
Unlabeled outputs are
- linked to the first unlinked unlabeled input in the next non-disabled
  filter in the chain, if one exists
- exported in the outputs linked list otherwise, with NULL label

Similarly, unlinked input pads are exported in the inputs linked list.

@param seg the filtergraph segment to process
@param flags reserved for future use, caller must set to 0 for now
@param[out] inputs  a linked list of all free (unlinked) inputs of the
                    filters in this graph segment will be returned here. It
                    is to be freed by the caller using avfilter_inout_free().
@param[out] outputs a linked list of all free (unlinked) outputs of the
                    filters in this graph segment will be returned here. It
                    is to be freed by the caller using avfilter_inout_free().

@retval "non-negative number" success
@retval "negative error code" failure

@note Calling this function multiple times is safe, as it is idempotent.

func AVFilterGraphSegmentParse

func AVFilterGraphSegmentParse(graph *AVFilterGraph, graphStr *CStr, flags int, seg **AVFilterGraphSegment) (int, error)

AVFilterGraphSegmentParse wraps avfilter_graph_segment_parse.

Parse a textual filtergraph description into an intermediate form.

This intermediate representation is intended to be modified by the caller as
described in the documentation of AVFilterGraphSegment and its children, and
then applied to the graph either manually or with other
avfilter_graph_segment_*() functions. See the documentation for
avfilter_graph_segment_apply() for the canonical way to apply
AVFilterGraphSegment.

@param graph Filter graph the parsed segment is associated with. Will only be
             used for logging and similar auxiliary purposes. The graph will
             not be actually modified by this function - the parsing results
             are instead stored in seg for further processing.
@param graph_str a string describing the filtergraph segment
@param flags reserved for future use, caller must set to 0 for now
@param seg A pointer to the newly-created AVFilterGraphSegment is written
           here on success. The graph segment is owned by the caller and must
           be freed with avfilter_graph_segment_free() before graph itself is
           freed.

@retval "non-negative number" success
@retval "negative error code" failure

func AVFilterGraphSendCommand

func AVFilterGraphSendCommand(graph *AVFilterGraph, target *CStr, cmd *CStr, arg *CStr, res *CStr, resLen int, flags int) (int, error)

AVFilterGraphSendCommand wraps avfilter_graph_send_command.

Send a command to one or more filter instances.

@param graph  the filter graph
@param target the filter(s) to which the command should be sent
              "all" sends to all filters
              otherwise it can be a filter or filter instance name
              which will send the command to all matching filters.
@param cmd    the command to send, for handling simplicity all commands must be alphanumeric only
@param arg    the argument for the command
@param res    a buffer with size res_size where the filter(s) can return a response.

@returns >=0 on success otherwise an error code.
             AVERROR(ENOSYS) on unsupported commands

func AVFilterGraphSetAutoConvert

func AVFilterGraphSetAutoConvert(graph *AVFilterGraph, flags uint)

AVFilterGraphSetAutoConvert wraps avfilter_graph_set_auto_convert.

Enable or disable automatic format conversion inside the graph.

Note that format conversion can still happen inside explicitly inserted
scale and aresample filters.

@param flags  any of the AVFILTER_AUTO_CONVERT_* constants

func AVFilterInitDict

func AVFilterInitDict(ctx *AVFilterContext, options **AVDictionary) (int, error)

AVFilterInitDict wraps avfilter_init_dict.

Initialize a filter with the supplied dictionary of options.

@param ctx     uninitialized filter context to initialize
@param options An AVDictionary filled with options for this filter. On
               return this parameter will be destroyed and replaced with
               a dict containing options that were not found. This dictionary
               must be freed by the caller.
               May be NULL, then this function is equivalent to
               avfilter_init_str() with the second parameter set to NULL.
@return 0 on success, a negative AVERROR on failure

@note This function and avfilter_init_str() do essentially the same thing,
the difference is in manner in which the options are passed. It is up to the
calling code to choose whichever is more preferable. The two functions also
behave differently when some of the provided options are not declared as
supported by the filter. In such a case, avfilter_init_str() will fail, but
this function will leave those extra options in the options AVDictionary and
continue as usual.

func AVFilterInitStr

func AVFilterInitStr(ctx *AVFilterContext, args *CStr) (int, error)

AVFilterInitStr wraps avfilter_init_str.

Initialize a filter with the supplied parameters.

@param ctx  uninitialized filter context to initialize
@param args Options to initialize the filter with. This must be a
            ':'-separated list of options in the 'key=value' form.
            May be NULL if the options have been set directly using the
            AVOptions API or there are no options that need to be set.
@return 0 on success, a negative AVERROR on failure

func AVFilterInoutFree

func AVFilterInoutFree(inout **AVFilterInOut)

AVFilterInoutFree wraps avfilter_inout_free.

Free the supplied list of AVFilterInOut and set *inout to NULL.
If *inout is NULL, do nothing.

func AVFilterInsertFilter

func AVFilterInsertFilter(link *AVFilterLink, filt *AVFilterContext, filtSrcpadIdx uint, filtDstpadIdx uint) (int, error)

AVFilterInsertFilter wraps avfilter_insert_filter.

Insert a filter in the middle of an existing link.

@param link the link into which the filter should be inserted
@param filt the filter to be inserted
@param filt_srcpad_idx the input pad on the filter to connect
@param filt_dstpad_idx the output pad on the filter to connect
@return     zero on success
func AVFilterLink_(src *AVFilterContext, srcpad uint, dst *AVFilterContext, dstpad uint) (int, error)

AVFilterLink_ wraps avfilter_link.

Link two filters together.

@param src    the source filter
@param srcpad index of the output pad on the source filter
@param dst    the destination filter
@param dstpad index of the input pad on the destination filter
@return       zero on success

func AVFilterProcessCommand

func AVFilterProcessCommand(filter *AVFilterContext, cmd *CStr, arg *CStr, res *CStr, resLen int, flags int) (int, error)

AVFilterProcessCommand wraps avfilter_process_command.

Make the filter instance process a command.
It is recommended to use avfilter_graph_send_command().

func AVFilterVersion

func AVFilterVersion() uint

AVFilterVersion wraps avfilter_version.

Return the LIBAVFILTER_VERSION_INT constant.

func AVFindBestStream

func AVFindBestStream(ic *AVFormatContext, _type AVMediaType, wantedStreamNb int, relatedStream int, decoderRet **AVCodec, flags int) (int, error)

AVFindBestStream wraps av_find_best_stream.

Find the "best" stream in the file.
The best stream is determined according to various heuristics as the most
likely to be what the user expects.
If the decoder parameter is non-NULL, av_find_best_stream will find the
default decoder for the stream's codec; streams for which no decoder can
be found are ignored.

@param ic                media file handle
@param type              stream type: video, audio, subtitles, etc.
@param wanted_stream_nb  user-requested stream number,
                         or -1 for automatic selection
@param related_stream    try to find a stream related (eg. in the same
                         program) to this one, or -1 if none
@param decoder_ret       if non-NULL, returns the decoder for the
                         selected stream
@param flags             flags; none are currently defined

@return  the non-negative stream number in case of success,
         AVERROR_STREAM_NOT_FOUND if no stream with the requested type
         could be found,
         AVERROR_DECODER_NOT_FOUND if streams were found but no decoder

@note  If av_find_best_stream returns successfully and decoder_ret is not
       NULL, then *decoder_ret is guaranteed to be set to a valid AVCodec.

func AVFindDefaultStreamIndex

func AVFindDefaultStreamIndex(s *AVFormatContext) (int, error)

AVFindDefaultStreamIndex wraps av_find_default_stream_index.

func AVFindInfoTag

func AVFindInfoTag(arg *CStr, argSize int, tag1 *CStr, info *CStr) (int, error)

AVFindInfoTag wraps av_find_info_tag.

Attempt to find a specific tag in a URL.

syntax: '?tag1=val1&tag2=val2...'. Little URL decoding is done.
Return 1 if found.

func AVFloat2Int

func AVFloat2Int(f float32) uint32

AVFloat2Int wraps av_float2int.

Reinterpret a float as a 32-bit integer.

func AVForceCpuFlags

func AVForceCpuFlags(flags int)

AVForceCpuFlags wraps av_force_cpu_flags.

Disables cpu detection and forces the specified flags.
-1 is a special case that disables forcing of specific flags.

func AVFormatAllocOutputContext2

func AVFormatAllocOutputContext2(ctx **AVFormatContext, oformat *AVOutputFormat, formatName *CStr, filename *CStr) (int, error)

AVFormatAllocOutputContext2 wraps avformat_alloc_output_context2.

Allocate an AVFormatContext for an output format.
avformat_free_context() can be used to free the context and
everything allocated by the framework within it.

@param ctx           pointee is set to the created format context,
                     or to NULL in case of failure
@param oformat       format to use for allocating the context, if NULL
                     format_name and filename are used instead
@param format_name   the name of output format to use for allocating the
                     context, if NULL filename is used instead
@param filename      the name of the filename to use for allocating the
                     context, may be NULL

@return  >= 0 in case of success, a negative AVERROR code in case of
         failure

func AVFormatCloseInput

func AVFormatCloseInput(s **AVFormatContext)

AVFormatCloseInput wraps avformat_close_input.

Close an opened input AVFormatContext. Free it and all its contents
and set *s to NULL.

func AVFormatFindStreamInfo

func AVFormatFindStreamInfo(ic *AVFormatContext, options **AVDictionary) (int, error)

AVFormatFindStreamInfo wraps avformat_find_stream_info.

Read packets of a media file to get stream information. This
is useful for file formats with no headers such as MPEG. This
function also computes the real framerate in case of MPEG-2 repeat
frame mode.
The logical file position is not changed by this function;
examined packets may be buffered for later processing.

@param ic media file handle
@param options  If non-NULL, an ic.nb_streams long array of pointers to
                dictionaries, where i-th member contains options for
                codec corresponding to i-th stream.
                On return each dictionary will be filled with options that were not found.
@return >=0 if OK, AVERROR_xxx on error

@note this function isn't guaranteed to open all the codecs, so
      options being non-empty at return is a perfectly normal behavior.

@todo Let the user decide somehow what information is needed so that
      we do not waste time getting stuff the user does not need.

func AVFormatFlush

func AVFormatFlush(s *AVFormatContext) (int, error)

AVFormatFlush wraps avformat_flush.

Discard all internally buffered data. This can be useful when dealing with
discontinuities in the byte stream. Generally works only with formats that
can resync. This includes headerless formats like MPEG-TS/TS but should also
work with NUT, Ogg and in a limited way AVI for example.

The set of streams, the detected duration, stream parameters and codecs do
not change when calling this function. If you want a complete reset, it's
better to open a new AVFormatContext.

This does not flush the AVIOContext (s->pb). If necessary, call
avio_flush(s->pb) before calling this function.

@param s media file handle
@return >=0 on success, error code otherwise

func AVFormatFreeContext

func AVFormatFreeContext(s *AVFormatContext)

AVFormatFreeContext wraps avformat_free_context.

Free an AVFormatContext and all its streams.
@param s context to free

func AVFormatIndexGetEntriesCount

func AVFormatIndexGetEntriesCount(st *AVStream) (int, error)

AVFormatIndexGetEntriesCount wraps avformat_index_get_entries_count.

Get the index entry count for the given AVStream.

@param st stream
@return the number of index entries in the stream

func AVFormatInitOutput

func AVFormatInitOutput(s *AVFormatContext, options **AVDictionary) (int, error)

AVFormatInitOutput wraps avformat_init_output.

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.
If using this function, do not pass the same options to avformat_write_header().

@param s        Media file handle, must be allocated with
                avformat_alloc_context().
                Its \ref AVFormatContext.oformat "oformat" field must be set
                to the desired output format;
                Its \ref AVFormatContext.pb "pb" field must be set to an
                already opened ::AVIOContext.
@param options  An ::AVDictionary filled with AVFormatContext and
                muxer-private options.
                On return this parameter will be destroyed and replaced with
                a dict containing options that were not found. May be NULL.

@retval AVSTREAM_INIT_IN_WRITE_HEADER On success, if the codec requires
                                      avformat_write_header to fully initialize.
@retval AVSTREAM_INIT_IN_INIT_OUTPUT  On success, if the codec has been fully
                                      initialized.
@retval AVERROR                       Anegative AVERROR on failure.

@see av_opt_find, av_dict_set, avio_open, av_oformat_next, avformat_write_header.

func AVFormatMatchStreamSpecifier

func AVFormatMatchStreamSpecifier(s *AVFormatContext, st *AVStream, spec *CStr) (int, error)

AVFormatMatchStreamSpecifier wraps avformat_match_stream_specifier.

Check if the stream st contained in s is matched by the stream specifier
spec.

See the "stream specifiers" chapter in the documentation for the syntax
of spec.

@return  >0 if st is matched by spec;
         0  if st is not matched by spec;
         AVERROR code if spec is invalid

@note  A stream specifier can match several streams in the format.

func AVFormatNetworkDeinit

func AVFormatNetworkDeinit() (int, error)

AVFormatNetworkDeinit wraps avformat_network_deinit.

Undo the initialization done by avformat_network_init. Call it only
once for each time you called avformat_network_init.

func AVFormatNetworkInit

func AVFormatNetworkInit() (int, error)

AVFormatNetworkInit wraps avformat_network_init.

Do global initialization of network libraries. This is optional,
and not recommended anymore.

This functions only exists to work around thread-safety issues
with older GnuTLS or OpenSSL libraries. If libavformat is linked
to newer versions of those libraries, or if you do not use them,
calling this function is unnecessary. Otherwise, you need to call
this function before any other threads using them are started.

This function will be deprecated once support for older GnuTLS and
OpenSSL libraries is removed, and this function has no purpose
anymore.

func AVFormatOpenInput

func AVFormatOpenInput(ps **AVFormatContext, url *CStr, fmt *AVInputFormat, options **AVDictionary) (int, error)

AVFormatOpenInput wraps avformat_open_input.

Open an input stream and read the header. The codecs are not opened.
The stream must be closed with avformat_close_input().

@param ps       Pointer to user-supplied AVFormatContext (allocated by
                avformat_alloc_context). May be a pointer to NULL, in
                which case an AVFormatContext is allocated by this
                function and written into ps.
                Note that a user-supplied AVFormatContext will be freed
                on failure and its pointer set to NULL.
@param url      URL of the stream to open.
@param fmt      If non-NULL, this parameter forces a specific input format.
                Otherwise the format is autodetected.
@param options  A dictionary filled with AVFormatContext and demuxer-private
                options.
                On return this parameter will be destroyed and replaced with
                a dict containing options that were not found. May be NULL.

@return 0 on success; on failure: frees ps, sets its pointer to NULL,
        and returns a negative AVERROR.

@note If you want to use custom IO, preallocate the format context and set its pb field.

func AVFormatQueryCodec

func AVFormatQueryCodec(ofmt *AVOutputFormat, codecId AVCodecID, stdCompliance int) (int, error)

AVFormatQueryCodec wraps avformat_query_codec.

Test if the given container can store a codec.

@param ofmt           container to check for compatibility
@param codec_id       codec to potentially store in container
@param std_compliance standards compliance level, one of FF_COMPLIANCE_*

@return 1 if codec with ID codec_id can be stored in ofmt, 0 if it cannot.
        A negative number if this information is not available.

func AVFormatQueueAttachedPictures

func AVFormatQueueAttachedPictures(s *AVFormatContext) (int, error)

AVFormatQueueAttachedPictures wraps avformat_queue_attached_pictures.

func AVFormatSeekFile

func AVFormatSeekFile(s *AVFormatContext, streamIndex int, minTs int64, ts int64, maxTs int64, flags int) (int, error)

AVFormatSeekFile wraps avformat_seek_file.

Seek to timestamp ts.
Seeking will be done so that the point from which all active streams
can be presented successfully will be closest to ts and within min/max_ts.
Active streams are all streams that have AVStream.discard < AVDISCARD_ALL.

If flags contain AVSEEK_FLAG_BYTE, then all timestamps are in bytes and
are the file position (this may not be supported by all demuxers).
If flags contain AVSEEK_FLAG_FRAME, then all timestamps are in frames
in the stream with stream_index (this may not be supported by all demuxers).
Otherwise all timestamps are in units of the stream selected by stream_index
or if stream_index is -1, in AV_TIME_BASE units.
If flags contain AVSEEK_FLAG_ANY, then non-keyframes are treated as
keyframes (this may not be supported by all demuxers).
If flags contain AVSEEK_FLAG_BACKWARD, it is ignored.

@param s            media file handle
@param stream_index index of the stream which is used as time base reference
@param min_ts       smallest acceptable timestamp
@param ts           target timestamp
@param max_ts       largest acceptable timestamp
@param flags        flags
@return >=0 on success, error code otherwise

@note This is part of the new seek API which is still under construction.

func AVFormatStreamGroupAddStream

func AVFormatStreamGroupAddStream(stg *AVStreamGroup, st *AVStream) (int, error)

AVFormatStreamGroupAddStream wraps avformat_stream_group_add_stream.

Add an already allocated stream to a stream group.

When demuxing, it may be called by the demuxer in read_header(). If the
flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
be called in read_packet().

When muxing, may be called by the user before avformat_write_header() after
having allocated a new group with avformat_stream_group_create() and stream with
avformat_new_stream().

User is required to call avformat_free_context() to clean up the allocation
by avformat_stream_group_add_stream().

@param stg stream group belonging to a media file.
@param st  stream in the media file to add to the group.

@retval 0                 success
@retval AVERROR(EEXIST)   the stream was already in the group
@retval "another negative error code" legitimate errors

@see avformat_new_stream, avformat_stream_group_create.

func AVFormatTransferInternalStreamTimingInfo

func AVFormatTransferInternalStreamTimingInfo(ofmt *AVOutputFormat, ost *AVStream, ist *AVStream, copyTb AVTimebaseSource) (int, error)

AVFormatTransferInternalStreamTimingInfo wraps avformat_transfer_internal_stream_timing_info.

@deprecated do not call this function

func AVFormatVersion

func AVFormatVersion() uint

AVFormatVersion wraps avformat_version.

Return the LIBAVFORMAT_VERSION_INT constant.

func AVFormatWriteHeader

func AVFormatWriteHeader(s *AVFormatContext, options **AVDictionary) (int, error)

AVFormatWriteHeader wraps avformat_write_header.

Allocate the stream private data and write the stream header to
an output media file.

@param s        Media file handle, must be allocated with
                avformat_alloc_context().
                Its \ref AVFormatContext.oformat "oformat" field must be set
                to the desired output format;
                Its \ref AVFormatContext.pb "pb" field must be set to an
                already opened ::AVIOContext.
@param options  An ::AVDictionary filled with AVFormatContext and
                muxer-private options.
                On return this parameter will be destroyed and replaced with
                a dict containing options that were not found. May be NULL.

@retval AVSTREAM_INIT_IN_WRITE_HEADER On success, if the codec had not already been
                                      fully initialized in avformat_init_output().
@retval AVSTREAM_INIT_IN_INIT_OUTPUT  On success, if the codec had already been fully
                                      initialized in avformat_init_output().
@retval AVERROR                       A negative AVERROR on failure.

@see av_opt_find, av_dict_set, avio_open, av_oformat_next, avformat_init_output.

func AVFrameApplyCropping

func AVFrameApplyCropping(frame *AVFrame, flags int) (int, error)

AVFrameApplyCropping wraps av_frame_apply_cropping.

Crop the given video AVFrame according to its crop_left/crop_top/crop_right/
crop_bottom fields. If cropping is successful, the function will adjust the
data pointers and the width/height fields, and set the crop fields to 0.

In all cases, the cropping boundaries will be rounded to the inherent
alignment of the pixel format. In some cases, such as for opaque hwaccel
formats, the left/top cropping is ignored. The crop fields are set to 0 even
if the cropping was rounded or ignored.

@param frame the frame which should be cropped
@param flags Some combination of AV_FRAME_CROP_* flags, or 0.

@return >= 0 on success, a negative AVERROR on error. If the cropping fields
were invalid, AVERROR(ERANGE) is returned, and nothing is changed.

func AVFrameCopy

func AVFrameCopy(dst *AVFrame, src *AVFrame) (int, error)

AVFrameCopy wraps av_frame_copy.

Copy the frame data from src to dst.

This function does not allocate anything, dst must be already initialized and
allocated with the same parameters as src.

This function only copies the frame data (i.e. the contents of the data /
extended data arrays), not any other properties.

@return >= 0 on success, a negative AVERROR on error.

func AVFrameCopyProps

func AVFrameCopyProps(dst *AVFrame, src *AVFrame) (int, error)

AVFrameCopyProps wraps av_frame_copy_props.

Copy only "metadata" fields from src to dst.

Metadata for the purpose of this function are 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 AVFrameFree

func AVFrameFree(frame **AVFrame)

AVFrameFree wraps av_frame_free.

Free the frame and any dynamically allocated objects in it,
e.g. extended_data. If the frame is reference counted, it will be
unreferenced first.

@param frame frame to be freed. The pointer will be set to NULL.

func AVFrameGetBuffer

func AVFrameGetBuffer(frame *AVFrame, align int) (int, error)

AVFrameGetBuffer wraps av_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 (pixel format for video, sample format for audio)
- width and height for video
- nb_samples and ch_layout for audio

This function will fill AVFrame.data and AVFrame.buf arrays and, if
necessary, allocate and fill AVFrame.extended_data and AVFrame.extended_buf.
For planar formats, one buffer will be allocated for each plane.

@warning: if frame already has been allocated, calling this function will
          leak memory. In addition, undefined behavior can occur in certain
          cases.

@param frame frame in which to store the new buffers.
@param align Required buffer size and data pointer alignment. If equal to 0,
             alignment will be chosen automatically for the current CPU.
             It is highly recommended to pass 0 here unless you know what
             you are doing.

@return 0 on success, a negative AVERROR on error.

func AVFrameIsWritable

func AVFrameIsWritable(frame *AVFrame) (int, error)

AVFrameIsWritable wraps av_frame_is_writable.

Check if the frame data is writable.

@return A positive value if the frame data is writable (which is true if and
only if each of the underlying buffers has only one reference, namely the one
stored in this frame). Return 0 otherwise.

If 1 is returned the answer is valid until av_buffer_ref() is called on any
of the underlying AVBufferRefs (e.g. through av_frame_ref() or directly).

@see av_frame_make_writable(), av_buffer_is_writable()

func AVFrameMakeWritable

func AVFrameMakeWritable(frame *AVFrame) (int, error)

AVFrameMakeWritable wraps av_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.

@return 0 on success, a negative AVERROR on error.

@see av_frame_is_writable(), av_buffer_is_writable(),
av_buffer_make_writable()

func AVFrameMoveRef

func AVFrameMoveRef(dst *AVFrame, src *AVFrame)

AVFrameMoveRef wraps av_frame_move_ref.

Move everything contained in src to dst and reset src.

@warning: dst is not unreferenced, but directly overwritten without reading
          or deallocating its contents. Call av_frame_unref(dst) manually
          before calling this function to ensure that no memory is leaked.

func AVFrameRef

func AVFrameRef(dst *AVFrame, src *AVFrame) (int, error)

AVFrameRef wraps av_frame_ref.

Set up a new reference to the data described by the source frame.

Copy frame properties from src to dst and create a new reference for each
AVBufferRef from src.

If src is not reference counted, new buffers are allocated and the data is
copied.

@warning: dst MUST have been either unreferenced with av_frame_unref(dst),
          or newly allocated with av_frame_alloc() before calling this
          function, or undefined behavior will occur.

@return 0 on success, a negative AVERROR on error

func AVFrameRemoveSideData

func AVFrameRemoveSideData(frame *AVFrame, _type AVFrameSideDataType)

AVFrameRemoveSideData wraps av_frame_remove_side_data.

Remove and free all side data instances of the given type.

func AVFrameReplace

func AVFrameReplace(dst *AVFrame, src *AVFrame) (int, error)

AVFrameReplace wraps av_frame_replace.

Ensure the destination frame refers to the same data described by the source
frame, either by creating a new reference for each AVBufferRef from src if
they differ from those in dst, by allocating new buffers and copying data if
src is not reference counted, or by unrefencing it if src is empty.

Frame properties on dst will be replaced by those from src.

@return 0 on success, a negative AVERROR on error. On error, dst is
        unreferenced.

func AVFrameUnref

func AVFrameUnref(frame *AVFrame)

AVFrameUnref wraps av_frame_unref.

Unreference all the buffers referenced by frame and reset the frame fields.

func AVFree

func AVFree(ptr unsafe.Pointer)

AVFree wraps av_free.

Free a memory block which has been allocated with a function of av_malloc()
or av_realloc() family.

@param ptr Pointer to the memory block which should be freed.

@note `ptr = NULL` is explicitly allowed.
@note It is recommended that you use av_freep() instead, to prevent leaving
      behind dangling pointers.
@see av_freep()

func AVFreep

func AVFreep(ptr unsafe.Pointer)

AVFreep wraps av_freep.

Free a memory block which has been allocated with a function of av_malloc()
or av_realloc() family, and set the pointer pointing to it to `NULL`.

@code{.c}
uint8_t *buf = av_malloc(16);
av_free(buf);
buf now contains a dangling pointer to freed memory, and accidental
dereference of buf will result in a use-after-free, which may be a
security risk.

uint8_t *buf = av_malloc(16);
av_freep(&buf);
buf is now NULL, and accidental dereference will only result in a
NULL-pointer dereference.
@endcode

@param ptr Pointer to the pointer to the memory block which should be freed
@note `*ptr = NULL` is safe and leads to no action.
@see av_free()

func AVGcd

func AVGcd(a int64, b int64) int64

AVGcd wraps av_gcd.

Compute the greatest common divisor of two integer operands.

@param a Operand
@param b Operand
@return GCD of a and b up to sign; if a >= 0 and b >= 0, return value is >= 0;
if a == 0 and b == 0, returns 0.

func AVGetAudioFrameDuration

func AVGetAudioFrameDuration(avctx *AVCodecContext, frameBytes int) (int, error)

AVGetAudioFrameDuration wraps av_get_audio_frame_duration.

Return audio frame duration.

@param avctx        codec context
@param frame_bytes  size of the frame, or 0 if unknown
@return             frame duration, in samples, if known. 0 if not able to
                    determine.

func AVGetAudioFrameDuration2

func AVGetAudioFrameDuration2(par *AVCodecParameters, frameBytes int) (int, error)

AVGetAudioFrameDuration2 wraps av_get_audio_frame_duration2.

This function is the same as av_get_audio_frame_duration(), except it works
with AVCodecParameters instead of an AVCodecContext.

func AVGetBitsPerPixel

func AVGetBitsPerPixel(pixdesc *AVPixFmtDescriptor) (int, error)

AVGetBitsPerPixel wraps av_get_bits_per_pixel.

Return the number of bits per pixel used by the pixel format
described by pixdesc. Note that this is not the same as the number
of bits per sample.

The returned number of bits refers to the number of bits actually
used for storing the pixel information, that is padding bits are
not counted.

func AVGetBitsPerSample

func AVGetBitsPerSample(codecId AVCodecID) (int, error)

AVGetBitsPerSample wraps av_get_bits_per_sample.

Return codec bits per sample.

@param[in] codec_id the codec
@return Number of bits per sample or zero if unknown for the given codec.

func AVGetBytesPerSample

func AVGetBytesPerSample(sampleFmt AVSampleFormat) (int, error)

AVGetBytesPerSample wraps av_get_bytes_per_sample.

Return number of bytes per sample.

@param sample_fmt the sample format
@return number of bytes per sample or zero if unknown for the given
sample format

func AVGetCpuFlags

func AVGetCpuFlags() (int, error)

AVGetCpuFlags wraps av_get_cpu_flags.

Return the flags which specify extensions supported by the CPU.
The returned value is affected by av_force_cpu_flags() if that was used
before. So av_get_cpu_flags() can easily be used in an application to
detect the enabled cpu flags.

func AVGetExactBitsPerSample

func AVGetExactBitsPerSample(codecId AVCodecID) (int, error)

AVGetExactBitsPerSample wraps av_get_exact_bits_per_sample.

Return codec bits per sample.
Only return non-zero if the bits per sample is exactly correct, not an
approximation.

@param[in] codec_id the codec
@return Number of bits per sample or zero if unknown for the given codec.

func AVGetFrameFilename

func AVGetFrameFilename(buf *CStr, bufSize int, path *CStr, number int) (int, error)

AVGetFrameFilename wraps av_get_frame_filename.

func AVGetFrameFilename2

func AVGetFrameFilename2(buf *CStr, bufSize int, path *CStr, number int, flags int) (int, error)

AVGetFrameFilename2 wraps av_get_frame_filename2.

Return in 'buf' the path with '%d' replaced by a number.

Also handles the '%0nd' format where 'n' is the total number
of digits and '%%'.

@param buf destination buffer
@param buf_size destination buffer size
@param path numbered sequence string
@param number frame number
@param flags AV_FRAME_FILENAME_FLAGS_*
@return 0 if OK, -1 on format error

func AVGetPacket

func AVGetPacket(s *AVIOContext, pkt *AVPacket, size int) (int, error)

AVGetPacket wraps av_get_packet.

Allocate and read the payload of a packet and initialize its
fields with default values.

@param s    associated IO context
@param pkt packet
@param size desired payload size
@return >0 (read size) if OK, AVERROR_xxx otherwise

func AVGetPaddedBitsPerPixel

func AVGetPaddedBitsPerPixel(pixdesc *AVPixFmtDescriptor) (int, error)

AVGetPaddedBitsPerPixel wraps av_get_padded_bits_per_pixel.

Return the number of bits per pixel for the pixel format
described by pixdesc, including any padding or unused bits.

func AVGetPictureTypeChar

func AVGetPictureTypeChar(pictType AVPictureType) uint8

AVGetPictureTypeChar wraps av_get_picture_type_char.

Return a single letter to describe the given picture type
pict_type.

@param[in] pict_type the picture type @return a single character
representing the picture type, '?' if pict_type is unknown

func AVGetPixFmtLoss

func AVGetPixFmtLoss(dstPixFmt AVPixelFormat, srcPixFmt AVPixelFormat, hasAlpha int) (int, error)

AVGetPixFmtLoss wraps av_get_pix_fmt_loss.

Compute what kind of losses will occur when converting from one specific
pixel format to another.
When converting from one pixel format to another, information loss may occur.
For example, when converting from RGB24 to GRAY, the color information will
be lost. Similarly, other losses occur when converting from some formats to
other formats. These losses can involve loss of chroma, but also loss of
resolution, loss of color depth, loss due to the color space conversion, loss
of the alpha bits or loss due to color quantization.
av_get_fix_fmt_loss() informs you about the various types of losses
which will occur when converting from one pixel format to another.

@param[in] dst_pix_fmt destination pixel format
@param[in] src_pix_fmt source pixel format
@param[in] has_alpha Whether the source pixel format alpha channel is used.
@return Combination of flags informing you what kind of losses will occur
(maximum loss for an invalid dst_pix_fmt).

func AVGetRandomSeed

func AVGetRandomSeed() uint32

AVGetRandomSeed wraps av_get_random_seed.

Get a seed to use in conjunction with random functions.
This function tries to provide a good seed at a best effort bases.
Its possible to call this function multiple times if more bits are needed.
It can be quite slow, which is why it should only be used as seed for a faster
PRNG. The quality of the seed depends on the platform.

func AVGettime

func AVGettime() int64

AVGettime wraps av_gettime.

Get the current time in microseconds.

func AVGettimeRelative

func AVGettimeRelative() int64

AVGettimeRelative wraps av_gettime_relative.

Get the current time in microseconds since some unspecified starting point.
On platforms that support it, the time comes from a monotonic clock
This property makes this time source ideal for measuring relative time.
The returned values may not be monotonic on platforms where a monotonic
clock is not available.

func AVGettimeRelativeIsMonotonic

func AVGettimeRelativeIsMonotonic() (int, error)

AVGettimeRelativeIsMonotonic wraps av_gettime_relative_is_monotonic.

Indicates with a boolean result if the av_gettime_relative() time source
is monotonic.

func AVGrowPacket

func AVGrowPacket(pkt *AVPacket, growBy int) (int, error)

AVGrowPacket wraps av_grow_packet.

Increase packet size, correctly zeroing padding

@param pkt packet
@param grow_by number of bytes by which to increase the size of the packet

func AVHWDeviceCtxCreate

func AVHWDeviceCtxCreate(deviceCtx **AVBufferRef, _type AVHWDeviceType, device *CStr, opts *AVDictionary, flags int) (int, error)

AVHWDeviceCtxCreate wraps av_hwdevice_ctx_create.

Open a device of the specified type and create an AVHWDeviceContext for it.

This is a convenience function intended to cover the simple cases. Callers
who need to fine-tune device creation/management should open the device
manually and then wrap it in an AVHWDeviceContext using
av_hwdevice_ctx_alloc()/av_hwdevice_ctx_init().

The returned context is already initialized and ready for use, the caller
should not call av_hwdevice_ctx_init() on it. The user_opaque/free fields of
the created AVHWDeviceContext are set by this function and should not be
touched by the caller.

@param device_ctx On success, a reference to the newly-created device context
                  will be written here. The reference is owned by the caller
                  and must be released with av_buffer_unref() when no longer
                  needed. On failure, NULL will be written to this pointer.
@param type The type of the device to create.
@param device A type-specific string identifying the device to open.
@param opts A dictionary of additional (type-specific) options to use in
            opening the device. The dictionary remains owned by the caller.
@param flags currently unused

@return 0 on success, a negative AVERROR code on failure.

func AVHWDeviceCtxCreateDerived

func AVHWDeviceCtxCreateDerived(dstCtx **AVBufferRef, _type AVHWDeviceType, srcCtx *AVBufferRef, flags int) (int, error)

AVHWDeviceCtxCreateDerived wraps av_hwdevice_ctx_create_derived.

Create a new device of the specified type from an existing device.

If the source device is a device of the target type or was originally
derived from such a device (possibly through one or more intermediate
devices of other types), then this will return a reference to the
existing device of the same type as is requested.

Otherwise, it will attempt to derive a new device from the given source
device.  If direct derivation to the new type is not implemented, it will
attempt the same derivation from each ancestor of the source device in
turn looking for an implemented derivation method.

@param dst_ctx On success, a reference to the newly-created
               AVHWDeviceContext.
@param type    The type of the new device to create.
@param src_ctx A reference to an existing AVHWDeviceContext which will be
               used to create the new device.
@param flags   Currently unused; should be set to zero.
@return        Zero on success, a negative AVERROR code on failure.

func AVHWDeviceCtxCreateDerivedOpts

func AVHWDeviceCtxCreateDerivedOpts(dstCtx **AVBufferRef, _type AVHWDeviceType, srcCtx *AVBufferRef, options *AVDictionary, flags int) (int, error)

AVHWDeviceCtxCreateDerivedOpts wraps av_hwdevice_ctx_create_derived_opts.

Create a new device of the specified type from an existing device.

This function performs the same action as av_hwdevice_ctx_create_derived,
however, it is able to set options for the new device to be derived.

@param dst_ctx On success, a reference to the newly-created
               AVHWDeviceContext.
@param type    The type of the new device to create.
@param src_ctx A reference to an existing AVHWDeviceContext which will be
               used to create the new device.
@param options Options for the new device to create, same format as in
               av_hwdevice_ctx_create.
@param flags   Currently unused; should be set to zero.
@return        Zero on success, a negative AVERROR code on failure.

func AVHWDeviceCtxInit

func AVHWDeviceCtxInit(ref *AVBufferRef) (int, error)

AVHWDeviceCtxInit wraps av_hwdevice_ctx_init.

Finalize the device context before use. This function must be called after
the context is filled with all the required information and before it is
used in any way.

@param ref a reference to the AVHWDeviceContext
@return 0 on success, a negative AVERROR code on failure

func AVHWDeviceHWConfigAlloc

func AVHWDeviceHWConfigAlloc(deviceCtx *AVBufferRef) unsafe.Pointer

AVHWDeviceHWConfigAlloc wraps av_hwdevice_hwconfig_alloc.

Allocate a HW-specific configuration structure for a given HW device.
After use, the user must free all members as required by the specific
hardware structure being used, then free the structure itself with
av_free().

@param device_ctx a reference to the associated AVHWDeviceContext.
@return The newly created HW-specific configuration structure on
        success or NULL on failure.

func AVHWFrameConstraintsFree

func AVHWFrameConstraintsFree(constraints **AVHWFramesConstraints)

AVHWFrameConstraintsFree wraps av_hwframe_constraints_free.

Free an AVHWFrameConstraints structure.

@param constraints The (filled or unfilled) AVHWFrameConstraints structure.

func AVHWFrameCtxCreateDerived

func AVHWFrameCtxCreateDerived(derivedFrameCtx **AVBufferRef, format AVPixelFormat, derivedDeviceCtx *AVBufferRef, sourceFrameCtx *AVBufferRef, flags int) (int, error)

AVHWFrameCtxCreateDerived wraps av_hwframe_ctx_create_derived.

Create and initialise an AVHWFramesContext as a mapping of another existing
AVHWFramesContext on a different device.

av_hwframe_ctx_init() should not be called after this.

@param derived_frame_ctx  On success, a reference to the newly created
                          AVHWFramesContext.
@param format             The AVPixelFormat for the derived context.
@param derived_device_ctx A reference to the device to create the new
                          AVHWFramesContext on.
@param source_frame_ctx   A reference to an existing AVHWFramesContext
                          which will be mapped to the derived context.
@param flags  Some combination of AV_HWFRAME_MAP_* flags, defining the
              mapping parameters to apply to frames which are allocated
              in the derived device.
@return       Zero on success, negative AVERROR code on failure.

func AVHWFrameCtxInit

func AVHWFrameCtxInit(ref *AVBufferRef) (int, error)

AVHWFrameCtxInit wraps av_hwframe_ctx_init.

Finalize the context before use. This function must be called after the
context is filled with all the required information and before it is attached
to any frames.

@param ref a reference to the AVHWFramesContext
@return 0 on success, a negative AVERROR code on failure

func AVHWFrameGetBuffer

func AVHWFrameGetBuffer(hwframeCtx *AVBufferRef, frame *AVFrame, flags int) (int, error)

AVHWFrameGetBuffer wraps av_hwframe_get_buffer.

Allocate a new frame attached to the given AVHWFramesContext.

@param hwframe_ctx a reference to an AVHWFramesContext
@param frame an empty (freshly allocated or unreffed) frame to be filled with
             newly allocated buffers.
@param flags currently unused, should be set to zero
@return 0 on success, a negative AVERROR code on failure

func AVHWFrameMap

func AVHWFrameMap(dst *AVFrame, src *AVFrame, flags int) (int, error)

AVHWFrameMap wraps av_hwframe_map.

Map a hardware frame.

This has a number of different possible effects, depending on the format
and origin of the src and dst frames.  On input, src should be a usable
frame with valid buffers and dst should be blank (typically as just created
by av_frame_alloc()).  src should have an associated hwframe context, and
dst may optionally have a format and associated hwframe context.

If src was created by mapping a frame from the hwframe context of dst,
then this function undoes the mapping - dst is replaced by a reference to
the frame that src was originally mapped from.

If both src and dst have an associated hwframe context, then this function
attempts to map the src frame from its hardware context to that of dst and
then fill dst with appropriate data to be usable there.  This will only be
possible if the hwframe contexts and associated devices are compatible -
given compatible devices, av_hwframe_ctx_create_derived() can be used to
create a hwframe context for dst in which mapping should be possible.

If src has a hwframe context but dst does not, then the src frame is
mapped to normal memory and should thereafter be usable as a normal frame.
If the format is set on dst, then the mapping will attempt to create dst
with that format and fail if it is not possible.  If format is unset (is
AV_PIX_FMT_NONE) then dst will be mapped with whatever the most appropriate
format to use is (probably the sw_format of the src hwframe context).

A return value of AVERROR(ENOSYS) indicates that the mapping is not
possible with the given arguments and hwframe setup, while other return
values indicate that it failed somehow.

On failure, the destination frame will be left blank, except for the
hw_frames_ctx/format fields they may have been set by the caller - those will
be preserved as they were.

@param dst Destination frame, to contain the mapping.
@param src Source frame, to be mapped.
@param flags Some combination of AV_HWFRAME_MAP_* flags.
@return Zero on success, negative AVERROR code on failure.

func AVHWFrameTransferData

func AVHWFrameTransferData(dst *AVFrame, src *AVFrame, flags int) (int, error)

AVHWFrameTransferData wraps av_hwframe_transfer_data.

Copy data to or from a hw surface. At least one of dst/src must have an
AVHWFramesContext attached.

If src has an AVHWFramesContext attached, then the format of dst (if set)
must use one of the formats returned by av_hwframe_transfer_get_formats(src,
AV_HWFRAME_TRANSFER_DIRECTION_FROM).
If dst has an AVHWFramesContext attached, then the format of src must use one
of the formats returned by av_hwframe_transfer_get_formats(dst,
AV_HWFRAME_TRANSFER_DIRECTION_TO)

dst may be "clean" (i.e. with data/buf pointers unset), in which case the
data buffers will be allocated by this function using av_frame_get_buffer().
If dst->format is set, then this format will be used, otherwise (when
dst->format is AV_PIX_FMT_NONE) the first acceptable format will be chosen.

The two frames must have matching allocated dimensions (i.e. equal to
AVHWFramesContext.width/height), since not all device types support
transferring a sub-rectangle of the whole surface. The display dimensions
(i.e. AVFrame.width/height) may be smaller than the allocated dimensions, but
also have to be equal for both frames. When the display dimensions are
smaller than the allocated dimensions, the content of the padding in the
destination frame is unspecified.

@param dst the destination frame. dst is not touched on failure.
@param src the source frame.
@param flags currently unused, should be set to zero
@return 0 on success, a negative AVERROR error code on failure.

func AVHashAlloc

func AVHashAlloc(ctx **AVHashContext, name *CStr) (int, error)

AVHashAlloc wraps av_hash_alloc.

Allocate a hash context for the algorithm specified by name.

@return  >= 0 for success, a negative error code for failure

@note The context is not initialized after a call to this function; you must
call av_hash_init() to do so.

func AVHashFinal

func AVHashFinal(ctx *AVHashContext, dst unsafe.Pointer)

AVHashFinal wraps av_hash_final.

Finalize a hash context and compute the actual hash value.

The minimum size of `dst` buffer is given by av_hash_get_size() or
#AV_HASH_MAX_SIZE. The use of the latter macro is discouraged.

It is not safe to update or finalize a hash context again, if it has already
been finalized.

@param[in,out] ctx Hash context
@param[out]    dst Where the final hash value will be stored

@see av_hash_final_bin() provides an alternative API

func AVHashFinalB64

func AVHashFinalB64(ctx *AVHashContext, dst unsafe.Pointer, size int)

AVHashFinalB64 wraps av_hash_final_b64.

Finalize a hash context and store the Base64 representation of the
actual hash value as a string.

It is not safe to update or finalize a hash context again, if it has already
been finalized.

The string is always 0-terminated.

If `size` is smaller than AV_BASE64_SIZE(hash_size), where `hash_size` is
the value returned by av_hash_get_size(), the string will be truncated.

@param[in,out] ctx  Hash context
@param[out]    dst  Where the final hash value will be stored
@param[in]     size Maximum number of bytes to write to `dst`

func AVHashFinalBin

func AVHashFinalBin(ctx *AVHashContext, dst unsafe.Pointer, size int)

AVHashFinalBin wraps av_hash_final_bin.

Finalize a hash context and store the actual hash value in a buffer.

It is not safe to update or finalize a hash context again, if it has already
been finalized.

If `size` is smaller than the hash size (given by av_hash_get_size()), the
hash is truncated; if size is larger, the buffer is padded with 0.

@param[in,out] ctx  Hash context
@param[out]    dst  Where the final hash value will be stored
@param[in]     size Number of bytes to write to `dst`

func AVHashFinalHex

func AVHashFinalHex(ctx *AVHashContext, dst unsafe.Pointer, size int)

AVHashFinalHex wraps av_hash_final_hex.

Finalize a hash context and store the hexadecimal representation of the
actual hash value as a string.

It is not safe to update or finalize a hash context again, if it has already
been finalized.

The string is always 0-terminated.

If `size` is smaller than `2 * hash_size + 1`, where `hash_size` is the
value returned by av_hash_get_size(), the string will be truncated.

@param[in,out] ctx  Hash context
@param[out]    dst  Where the string will be stored
@param[in]     size Maximum number of bytes to write to `dst`

func AVHashFreep

func AVHashFreep(ctx **AVHashContext)

AVHashFreep wraps av_hash_freep.

Free hash context and set hash context pointer to `NULL`.

@param[in,out] ctx  Pointer to hash context

func AVHashGetSize

func AVHashGetSize(ctx *AVHashContext) (int, error)

AVHashGetSize wraps av_hash_get_size.

Get the size of the resulting hash value in bytes.

The maximum value this function will currently return is available as macro
#AV_HASH_MAX_SIZE.

@param[in]     ctx Hash context
@return            Size of the hash value in bytes

func AVHashInit

func AVHashInit(ctx *AVHashContext)

AVHashInit wraps av_hash_init.

Initialize or reset a hash context.

@param[in,out] ctx Hash context

func AVHashUpdate

func AVHashUpdate(ctx *AVHashContext, src unsafe.Pointer, len uint64)

AVHashUpdate wraps av_hash_update.

Update a hash context with additional data.

@param[in,out] ctx Hash context
@param[in]     src Data to be added to the hash context
@param[in]     len Size of the additional data

func AVHexDumpLog

func AVHexDumpLog(avcl unsafe.Pointer, level int, buf unsafe.Pointer, size int)

AVHexDumpLog wraps av_hex_dump_log.

Send a nice hexadecimal dump of a buffer to the log.

@param avcl A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.
@param level The importance level of the message, lower values signifying
higher importance.
@param buf buffer
@param size buffer size

@see av_hex_dump, av_pkt_dump2, av_pkt_dump_log2

func AVHmacCalc

func AVHmacCalc(ctx *AVHMAC, data unsafe.Pointer, len uint, key unsafe.Pointer, keylen uint, out unsafe.Pointer, outlen uint) (int, error)

AVHmacCalc wraps av_hmac_calc.

Hash an array of data with a key.
@param ctx    The HMAC context
@param data   The data to hash
@param len    The length of the data, in bytes
@param key    The authentication key
@param keylen The length of the key, in bytes
@param out    The output buffer to write the digest into
@param outlen The length of the out buffer, in bytes
@return       The number of bytes written to out, or a negative error code.

func AVHmacFinal

func AVHmacFinal(ctx *AVHMAC, out unsafe.Pointer, outlen uint) (int, error)

AVHmacFinal wraps av_hmac_final.

Finish hashing and output the HMAC digest.
@param ctx    The HMAC context
@param out    The output buffer to write the digest into
@param outlen The length of the out buffer, in bytes
@return       The number of bytes written to out, or a negative error code.

func AVHmacFree

func AVHmacFree(ctx *AVHMAC)

AVHmacFree wraps av_hmac_free.

Free an AVHMAC context.
@param ctx The context to free, may be NULL

func AVHmacInit

func AVHmacInit(ctx *AVHMAC, key unsafe.Pointer, keylen uint)

AVHmacInit wraps av_hmac_init.

Initialize an AVHMAC context with an authentication key.
@param ctx    The HMAC context
@param key    The authentication key
@param keylen The length of the key, in bytes

func AVHmacUpdate

func AVHmacUpdate(ctx *AVHMAC, data unsafe.Pointer, len uint)

AVHmacUpdate wraps av_hmac_update.

Hash data with the HMAC.
@param ctx  The HMAC context
@param data The data to hash
@param len  The length of the data, in bytes

func AVIOAccept

func AVIOAccept(s *AVIOContext, c **AVIOContext) (int, error)

AVIOAccept wraps avio_accept.

Accept and allocate a client context on a server context.
@param  s the server context
@param  c the client context, must be unallocated
@return   >= 0 on success or a negative value corresponding
          to an AVERROR on failure

func AVIOCheck

func AVIOCheck(url *CStr, flags int) (int, error)

AVIOCheck wraps avio_check.

Return AVIO_FLAG_* access flags corresponding to the access permissions
of the resource in url, or a negative value corresponding to an
AVERROR code in case of failure. The returned access flags are
masked by the value in flags.

@note This function is intrinsically unsafe, in the sense that the
checked resource may change its existence or permission status from
one call to another. Thus you should not trust the returned value,
unless you are sure that no other processes are accessing the
checked resource.

func AVIOClose

func AVIOClose(s *AVIOContext) (int, error)

AVIOClose wraps avio_close.

Close the resource accessed by the AVIOContext s and free it.
This function can only be used if s was opened by avio_open().

The internal buffer is automatically flushed before closing the
resource.

@return 0 on success, an AVERROR < 0 on error.
@see avio_closep

func AVIOCloseDir

func AVIOCloseDir(s **AVIODirContext) (int, error)

AVIOCloseDir wraps avio_close_dir.

Close directory.

@note Entries created using avio_read_dir() are not deleted and must be
freeded with avio_free_directory_entry().

@param s         directory read context.
@return >=0 on success or negative on error.

func AVIOClosep

func AVIOClosep(s **AVIOContext) (int, error)

AVIOClosep wraps avio_closep.

Close the resource accessed by the AVIOContext *s, free it
and set the pointer pointing to it to NULL.
This function can only be used if s was opened by avio_open().

The internal buffer is automatically flushed before closing the
resource.

@return 0 on success, an AVERROR < 0 on error.
@see avio_close

func AVIOContextFree

func AVIOContextFree(s **AVIOContext)

AVIOContextFree wraps avio_context_free.

Free the supplied IO context and everything associated with it.

@param s Double pointer to the IO context. This function will write NULL
into s.

func AVIOEnumProtocols

func AVIOEnumProtocols(opaque *unsafe.Pointer, output int) string

AVIOEnumProtocols iterates through names of available protocols.

@param opaque a pointer where libavformat will store the iteration state. Must

point to NULL to start the iteration.

@param output if set to 1, iterate over output protocols, otherwise over input protocols.

@return a static string containing the name of current protocol or NULL

func AVIOFeof

func AVIOFeof(s *AVIOContext) (int, error)

AVIOFeof wraps avio_feof.

Similar to feof() but also returns nonzero on read errors.
@return non zero if and only if at end of file or a read error happened when reading.

func AVIOFlush

func AVIOFlush(s *AVIOContext)

AVIOFlush wraps avio_flush.

Force flushing of buffered data.

For write streams, force the buffered data to be immediately written to the output,
without to wait to fill the internal buffer.

For read streams, discard all currently buffered data, and advance the
reported file position to that of the underlying stream. This does not
read new data, and does not perform any seeks.

func AVIOFreeDirectoryEntry

func AVIOFreeDirectoryEntry(entry **AVIODirEntry)

AVIOFreeDirectoryEntry wraps avio_free_directory_entry.

Free entry allocated by avio_read_dir().

@param entry entry to be freed.

func AVIOGetStr

func AVIOGetStr(pb *AVIOContext, maxlen int, buf *CStr, buflen int) (int, error)

AVIOGetStr wraps avio_get_str.

Read a string from pb into buf. The reading will terminate when either
a NULL character was encountered, maxlen bytes have been read, or nothing
more can be read from pb. The result is guaranteed to be NULL-terminated, it
will be truncated if buf is too small.
Note that the string is not interpreted or validated in any way, it
might get truncated in the middle of a sequence for multi-byte encodings.

@return number of bytes read (is always <= maxlen).
If reading ends on EOF or error, the return value will be one more than
bytes actually read.

func AVIOGetStr16Be

func AVIOGetStr16Be(pb *AVIOContext, maxlen int, buf *CStr, buflen int) (int, error)

AVIOGetStr16Be wraps avio_get_str16be.

func AVIOGetStr16Le

func AVIOGetStr16Le(pb *AVIOContext, maxlen int, buf *CStr, buflen int) (int, error)

AVIOGetStr16Le wraps avio_get_str16le.

Read a UTF-16 string from pb and convert it to UTF-8.
The reading will terminate when either a null or invalid character was
encountered or maxlen bytes have been read.
@return number of bytes read (is always <= maxlen)

func AVIOHandshake

func AVIOHandshake(c *AVIOContext) (int, error)

AVIOHandshake wraps avio_handshake.

Perform one step of the protocol handshake to accept a new client.
This function must be called on a client returned by avio_accept() before
using it as a read/write context.
It is separate from avio_accept() because it may block.
A step of the handshake is defined by places where the application may
decide to change the proceedings.
For example, on a protocol with a request header and a reply header, each
one can constitute a step because the application may use the parameters
from the request to change parameters in the reply; or each individual
chunk of the request can constitute a step.
If the handshake is already finished, avio_handshake() does nothing and
returns 0 immediately.

@param  c the client context to perform the handshake on
@return   0   on a complete and successful handshake
          > 0 if the handshake progressed, but is not complete
          < 0 for an AVERROR code

func AVIOOpen

func AVIOOpen(s **AVIOContext, url *CStr, flags int) (int, error)

AVIOOpen wraps avio_open.

Create and initialize a AVIOContext for accessing the
resource indicated by url.
@note When the resource indicated by url has been opened in
read+write mode, the AVIOContext can be used only for writing.

@param s Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.
@param url resource to access
@param flags flags which control how the resource indicated by url
is to be opened
@return >= 0 in case of success, a negative value corresponding to an
AVERROR code in case of failure

func AVIOOpen2

func AVIOOpen2(s **AVIOContext, url *CStr, flags int, intCb *AVIOInterruptCB, options **AVDictionary) (int, error)

AVIOOpen2 wraps avio_open2.

Create and initialize a AVIOContext for accessing the
resource indicated by url.
@note When the resource indicated by url has been opened in
read+write mode, the AVIOContext can be used only for writing.

@param s Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.
@param url resource to access
@param flags flags which control how the resource indicated by url
is to be opened
@param int_cb an interrupt callback to be used at the protocols level
@param options  A dictionary filled with protocol-private options. On return
this parameter will be destroyed and replaced with a dict containing options
that were not found. May be NULL.
@return >= 0 in case of success, a negative value corresponding to an
AVERROR code in case of failure

func AVIOOpenDir

func AVIOOpenDir(s **AVIODirContext, url *CStr, options **AVDictionary) (int, error)

AVIOOpenDir wraps avio_open_dir.

Open directory for reading.

@param s       directory read context. Pointer to a NULL pointer must be passed.
@param url     directory to be listed.
@param options A dictionary filled with protocol-private options. On return
               this parameter will be destroyed and replaced with a dictionary
               containing options that were not found. May be NULL.
@return >=0 on success or negative on error.

func AVIOOpenDynBuf

func AVIOOpenDynBuf(s **AVIOContext) (int, error)

AVIOOpenDynBuf wraps avio_open_dyn_buf.

Open a write only memory stream.

@param s new IO context
@return zero if no error.

func AVIOPause

func AVIOPause(h *AVIOContext, pause int) (int, error)

AVIOPause wraps avio_pause.

Pause and resume playing - only meaningful if using a network streaming
protocol (e.g. MMS).

@param h     IO context from which to call the read_pause function pointer
@param pause 1 for pause, 0 for resume

func AVIOPutStr

func AVIOPutStr(s *AVIOContext, str *CStr) (int, error)

AVIOPutStr wraps avio_put_str.

Write a NULL-terminated string.
@return number of bytes written.

func AVIOPutStr16Be

func AVIOPutStr16Be(s *AVIOContext, str *CStr) (int, error)

AVIOPutStr16Be wraps avio_put_str16be.

Convert an UTF-8 string to UTF-16BE and write it.
@param s the AVIOContext
@param str NULL-terminated UTF-8 string

@return number of bytes written.

func AVIOPutStr16Le

func AVIOPutStr16Le(s *AVIOContext, str *CStr) (int, error)

AVIOPutStr16Le wraps avio_put_str16le.

Convert an UTF-8 string to UTF-16LE and write it.
@param s the AVIOContext
@param str NULL-terminated UTF-8 string

@return number of bytes written.

func AVIOR8

func AVIOR8(s *AVIOContext) (int, error)

AVIOR8 wraps avio_r8.

@note return 0 if EOF, so you cannot use it if EOF handling is
      necessary

func AVIORb16

func AVIORb16(s *AVIOContext) uint

AVIORb16 wraps avio_rb16.

func AVIORb24

func AVIORb24(s *AVIOContext) uint

AVIORb24 wraps avio_rb24.

func AVIORb32

func AVIORb32(s *AVIOContext) uint

AVIORb32 wraps avio_rb32.

func AVIORb64

func AVIORb64(s *AVIOContext) uint64

AVIORb64 wraps avio_rb64.

func AVIORead

func AVIORead(s *AVIOContext, buf unsafe.Pointer, size int) (int, error)

AVIORead wraps avio_read.

Read size bytes from AVIOContext into buf.
@return number of bytes read or AVERROR

func AVIOReadDir

func AVIOReadDir(s *AVIODirContext, next **AVIODirEntry) (int, error)

AVIOReadDir wraps avio_read_dir.

Get next directory entry.

Returned entry must be freed with avio_free_directory_entry(). In particular
it may outlive AVIODirContext.

@param s         directory read context.
@param[out] next next entry or NULL when no more entries.
@return >=0 on success or negative on error. End of list is not considered an
            error.

func AVIOReadPartial

func AVIOReadPartial(s *AVIOContext, buf unsafe.Pointer, size int) (int, error)

AVIOReadPartial wraps avio_read_partial.

Read size bytes from AVIOContext into buf. Unlike avio_read(), this is allowed
to read fewer bytes than requested. The missing bytes can be read in the next
call. This always tries to read at least 1 byte.
Useful to reduce latency in certain cases.
@return number of bytes read or AVERROR

func AVIOReadToBprint

func AVIOReadToBprint(h *AVIOContext, pb *AVBPrint, maxSize uint64) (int, error)

AVIOReadToBprint wraps avio_read_to_bprint.

Read contents of h into print buffer, up to max_size bytes, or up to EOF.

@return 0 for success (max_size bytes read or EOF reached), negative error
code otherwise

func AVIORl16

func AVIORl16(s *AVIOContext) uint

AVIORl16 wraps avio_rl16.

func AVIORl24

func AVIORl24(s *AVIOContext) uint

AVIORl24 wraps avio_rl24.

func AVIORl32

func AVIORl32(s *AVIOContext) uint

AVIORl32 wraps avio_rl32.

func AVIORl64

func AVIORl64(s *AVIOContext) uint64

AVIORl64 wraps avio_rl64.

func AVIOSeek

func AVIOSeek(s *AVIOContext, offset int64, whence int) int64

AVIOSeek wraps avio_seek.

fseek() equivalent for AVIOContext.
@return new position or AVERROR.

func AVIOSeekTime

func AVIOSeekTime(h *AVIOContext, streamIndex int, timestamp int64, flags int) int64

AVIOSeekTime wraps avio_seek_time.

Seek to a given timestamp relative to some component stream.
Only meaningful if using a network streaming protocol (e.g. MMS.).

@param h IO context from which to call the seek function pointers
@param stream_index The stream index that the timestamp is relative to.
       If stream_index is (-1) the timestamp should be in AV_TIME_BASE
       units from the beginning of the presentation.
       If a stream_index >= 0 is used and the protocol does not support
       seeking based on component streams, the call will fail.
@param timestamp timestamp in AVStream.time_base units
       or if there is no stream specified then in AV_TIME_BASE units.
@param flags Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE
       and AVSEEK_FLAG_ANY. The protocol may silently ignore
       AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will
       fail if used and not supported.
@return >= 0 on success
@see AVInputFormat::read_seek

func AVIOSize

func AVIOSize(s *AVIOContext) int64

AVIOSize wraps avio_size.

Get the filesize.
@return filesize or AVERROR

func AVIOSkip

func AVIOSkip(s *AVIOContext, offset int64) int64

AVIOSkip wraps avio_skip.

Skip given number of bytes forward
@return new position or AVERROR.

func AVIOTell

func AVIOTell(s *AVIOContext) int64

AVIOTell wraps avio_tell.

ftell() equivalent for AVIOContext.
@return position or AVERROR.

func AVIOW8

func AVIOW8(s *AVIOContext, b int)

AVIOW8 wraps avio_w8.

func AVIOWb16

func AVIOWb16(s *AVIOContext, val uint)

AVIOWb16 wraps avio_wb16.

func AVIOWb24

func AVIOWb24(s *AVIOContext, val uint)

AVIOWb24 wraps avio_wb24.

func AVIOWb32

func AVIOWb32(s *AVIOContext, val uint)

AVIOWb32 wraps avio_wb32.

func AVIOWb64

func AVIOWb64(s *AVIOContext, val uint64)

AVIOWb64 wraps avio_wb64.

func AVIOWl16

func AVIOWl16(s *AVIOContext, val uint)

AVIOWl16 wraps avio_wl16.

func AVIOWl24

func AVIOWl24(s *AVIOContext, val uint)

AVIOWl24 wraps avio_wl24.

func AVIOWl32

func AVIOWl32(s *AVIOContext, val uint)

AVIOWl32 wraps avio_wl32.

func AVIOWl64

func AVIOWl64(s *AVIOContext, val uint64)

AVIOWl64 wraps avio_wl64.

func AVIOWrite

func AVIOWrite(s *AVIOContext, buf unsafe.Pointer, size int)

AVIOWrite wraps avio_write.

func AVIOWriteMarker

func AVIOWriteMarker(s *AVIOContext, time int64, _type AVIODataMarkerType)

AVIOWriteMarker wraps avio_write_marker.

Mark the written bytestream as a specific type.

Zero-length ranges are omitted from the output.

@param s    the AVIOContext
@param time the stream time the current bytestream pos corresponds to
            (in AV_TIME_BASE units), or AV_NOPTS_VALUE if unknown or not
            applicable
@param type the kind of data written starting at the current pos

func AVIamfAudioElementFree

func AVIamfAudioElementFree(audioElement **AVIAMFAudioElement)

AVIamfAudioElementFree wraps av_iamf_audio_element_free.

Free an AVIAMFAudioElement and all its contents.

@param audio_element pointer to pointer to an allocated AVIAMFAudioElement.
                     upon return, *audio_element will be set to NULL.

func AVIamfMixPresentationFree

func AVIamfMixPresentationFree(mixPresentation **AVIAMFMixPresentation)

AVIamfMixPresentationFree wraps av_iamf_mix_presentation_free.

Free an AVIAMFMixPresentation and all its contents.

@param mix_presentation pointer to pointer to an allocated AVIAMFMixPresentation.
                        upon return, *mix_presentation will be set to NULL.

func AVIamfParamDefinitionGetSubblock

func AVIamfParamDefinitionGetSubblock(par *AVIAMFParamDefinition, idx uint) unsafe.Pointer

AVIamfParamDefinitionGetSubblock wraps av_iamf_param_definition_get_subblock.

Get the subblock at the specified {@code idx}. Must be between 0 and nb_subblocks - 1.

The @ref AVIAMFParamDefinition.type "param definition type" defines
the struct type of the returned pointer.

func AVImageCheckSar

func AVImageCheckSar(w uint, h uint, sar *AVRational) (int, error)

AVImageCheckSar wraps av_image_check_sar.

Check if the given sample aspect ratio of an image is valid.

It is considered invalid if the denominator is 0 or if applying the ratio
to the image size would make the smaller dimension less than 1. If the
sar numerator is 0, it is considered unknown and will return as valid.

@param w width of the image
@param h height of the image
@param sar sample aspect ratio of the image
@return 0 if valid, a negative AVERROR code otherwise

func AVImageCheckSize

func AVImageCheckSize(w uint, h uint, logOffset int, logCtx unsafe.Pointer) (int, error)

AVImageCheckSize wraps av_image_check_size.

Check if the given dimension of an image is valid, meaning that all
bytes of the image can be addressed with a signed int.

@param w the width of the picture
@param h the height of the picture
@param log_offset the offset to sum to the log level for logging with log_ctx
@param log_ctx the parent logging context, it may be NULL
@return >= 0 if valid, a negative error code otherwise

func AVImageCheckSize2

func AVImageCheckSize2(w uint, h uint, maxPixels int64, pixFmt AVPixelFormat, logOffset int, logCtx unsafe.Pointer) (int, error)

AVImageCheckSize2 wraps av_image_check_size2.

Check if the given dimension of an image is valid, meaning that all
bytes of a plane of an image with the specified pix_fmt can be addressed
with a signed int.

@param w the width of the picture
@param h the height of the picture
@param max_pixels the maximum number of pixels the user wants to accept
@param pix_fmt the pixel format, can be AV_PIX_FMT_NONE if unknown.
@param log_offset the offset to sum to the log level for logging with log_ctx
@param log_ctx the parent logging context, it may be NULL
@return >= 0 if valid, a negative error code otherwise

func AVImageCopyPlane

func AVImageCopyPlane(dst unsafe.Pointer, dstLinesize int, src unsafe.Pointer, srcLinesize int, bytewidth int, height int)

AVImageCopyPlane wraps av_image_copy_plane.

Copy image plane from src to dst.
That is, copy "height" number of lines of "bytewidth" bytes each.
The first byte of each successive line is separated by *_linesize
bytes.

bytewidth must be contained by both absolute values of dst_linesize
and src_linesize, otherwise the function behavior is undefined.

@param dst          destination plane to copy to
@param dst_linesize linesize for the image plane in dst
@param src          source plane to copy from
@param src_linesize linesize for the image plane in src
@param height       height (number of lines) of the plane

func AVImageCopyPlaneUcFrom

func AVImageCopyPlaneUcFrom(dst unsafe.Pointer, dstLinesize int64, src unsafe.Pointer, srcLinesize int64, bytewidth int64, height int)

AVImageCopyPlaneUcFrom wraps av_image_copy_plane_uc_from.

Copy image data located in uncacheable (e.g. GPU mapped) memory. Where
available, this function will use special functionality for reading from such
memory, which may result in greatly improved performance compared to plain
av_image_copy_plane().

bytewidth must be contained by both absolute values of dst_linesize
and src_linesize, otherwise the function behavior is undefined.

@note The linesize parameters have the type ptrdiff_t here, while they are
      int for av_image_copy_plane().
@note On x86, the linesizes currently need to be aligned to the cacheline
      size (i.e. 64) to get improved performance.

func AVImageGetBufferSize

func AVImageGetBufferSize(pixFmt AVPixelFormat, width int, height int, align int) (int, error)

AVImageGetBufferSize wraps av_image_get_buffer_size.

Return the size in bytes of the amount of data required to store an
image with the given parameters.

@param pix_fmt  the pixel format of the image
@param width    the width of the image in pixels
@param height   the height of the image in pixels
@param align    the assumed linesize alignment
@return the buffer size in bytes, a negative error code in case of failure

func AVImageGetLinesize

func AVImageGetLinesize(pixFmt AVPixelFormat, width int, plane int) (int, error)

AVImageGetLinesize wraps av_image_get_linesize.

Compute the size of an image line with format pix_fmt and width
width for the plane plane.

@return the computed size in bytes

func AVIndexSearchTimestamp

func AVIndexSearchTimestamp(st *AVStream, timestamp int64, flags int) (int, error)

AVIndexSearchTimestamp wraps av_index_search_timestamp.

Get the index for a specific timestamp.

@param st        stream that the timestamp belongs to
@param timestamp timestamp to retrieve the index for
@param flags if AVSEEK_FLAG_BACKWARD then the returned index will correspond
                to the timestamp which is <= the requested one, if backward
                is 0, then it will be >=
             if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwise
@return < 0 if no such timestamp could be found

func AVInitPacket

func AVInitPacket(pkt *AVPacket)

AVInitPacket wraps av_init_packet.

Initialize optional fields of a packet with default values.

Note, this does not touch the data and size members, which have to be
initialized separately.

@param pkt packet

@see av_packet_alloc
@see av_packet_unref

@deprecated This function is deprecated. Once it's removed,
sizeof(AVPacket) will not be a part of the ABI anymore.

func AVInt2Double

func AVInt2Double(i uint64) float64

AVInt2Double wraps av_int2double.

Reinterpret a 64-bit integer as a double.

func AVInt2Float

func AVInt2Float(i uint32) float32

AVInt2Float wraps av_int2float.

Reinterpret a 32-bit integer as a float.

func AVIntListLengthForSize

func AVIntListLengthForSize(elsize uint, list unsafe.Pointer, term uint64) uint

AVIntListLengthForSize wraps av_int_list_length_for_size.

Compute the length of an integer list.

@param elsize  size in bytes of each list element (only 1, 2, 4 or 8)
@param term    list terminator (usually 0 or -1)
@param list    pointer to the list
@return  length of the list, in elements, not counting the terminator

func AVInterleavedWriteFrame

func AVInterleavedWriteFrame(s *AVFormatContext, pkt *AVPacket) (int, error)

AVInterleavedWriteFrame wraps av_interleaved_write_frame.

Write a packet to an output media file ensuring correct interleaving.

This function will buffer the packets internally as needed to make sure the
packets in the output file are properly interleaved, usually ordered by
increasing dts. Callers doing their own interleaving should call
av_write_frame() instead of this function.

Using this function instead of av_write_frame() can give muxers advance
knowledge of future packets, improving e.g. the behaviour of the mp4
muxer for VFR content in fragmenting mode.

@param s media file handle
@param pkt The packet containing the data to be written.
           <br>
           If the packet is reference-counted, this function will take
           ownership of this reference and unreference it later when it sees
           fit. If the packet is not reference-counted, libavformat will
           make a copy.
           The returned packet will be blank (as if returned from
           av_packet_alloc()), even on error.
           <br>
           This parameter can be NULL (at any time, not just at the end), to
           flush the interleaving queues.
           <br>
           Packet's @ref AVPacket.stream_index "stream_index" field must be
           set to the index of the corresponding stream in @ref
           AVFormatContext.streams "s->streams".
           <br>
           The timestamps (@ref AVPacket.pts "pts", @ref AVPacket.dts "dts")
           must be set to correct values in the stream's timebase (unless the
           output format is flagged with the AVFMT_NOTIMESTAMPS flag, then
           they can be set to AV_NOPTS_VALUE).
           The dts for subsequent packets in one stream must be strictly
           increasing (unless the output format is flagged with the
           AVFMT_TS_NONSTRICT, then they merely have to be nondecreasing).
           @ref AVPacket.duration "duration" should also be set if known.

@return 0 on success, a negative AVERROR on error.

@see av_write_frame(), AVFormatContext.max_interleave_delta

func AVInterleavedWriteUncodedFrame

func AVInterleavedWriteUncodedFrame(s *AVFormatContext, streamIndex int, frame *AVFrame) (int, error)

AVInterleavedWriteUncodedFrame wraps av_interleaved_write_uncoded_frame.

Write an uncoded frame to an output media file.

If the muxer supports it, this function makes it possible to write an AVFrame
structure directly, without encoding it into a packet.
It is mostly useful for devices and similar special muxers that use raw
video or PCM data and will not serialize it into a byte stream.

To test whether it is possible to use it with a given muxer and stream,
use av_write_uncoded_frame_query().

The caller gives up ownership of the frame and must not access it
afterwards.

@return  >=0 for success, a negative code on error

func AVIsdigit

func AVIsdigit(c int) (int, error)

AVIsdigit wraps av_isdigit.

Locale-independent conversion of ASCII isdigit.

func AVIsgraph

func AVIsgraph(c int) (int, error)

AVIsgraph wraps av_isgraph.

Locale-independent conversion of ASCII isgraph.

func AVIsspace

func AVIsspace(c int) (int, error)

AVIsspace wraps av_isspace.

Locale-independent conversion of ASCII isspace.

func AVIsxdigit

func AVIsxdigit(c int) (int, error)

AVIsxdigit wraps av_isxdigit.

Locale-independent conversion of ASCII isxdigit.

func AVLfgGet

func AVLfgGet(c *AVLFG) uint

AVLfgGet wraps av_lfg_get.

Get the next random unsigned 32-bit number using an ALFG.

Please also consider a simple LCG like state= state*1664525+1013904223,
it may be good enough and faster for your specific use case.

func AVLfgInit

func AVLfgInit(c *AVLFG, seed uint)

AVLfgInit wraps av_lfg_init.

func AVLfgInitFromData

func AVLfgInitFromData(c *AVLFG, data unsafe.Pointer, length uint) (int, error)

AVLfgInitFromData wraps av_lfg_init_from_data.

Seed the state of the ALFG using binary data.

@return 0 on success, negative value (AVERROR) on failure.

func AVLog2

func AVLog2(v uint) (int, error)

AVLog2 wraps av_log2.

func AVLog216Bit

func AVLog216Bit(v uint) (int, error)

AVLog216Bit wraps av_log2_16bit.

func AVLogGetFlags

func AVLogGetFlags() (int, error)

AVLogGetFlags wraps av_log_get_flags.

func AVLogGetLevel

func AVLogGetLevel() (int, error)

AVLogGetLevel wraps av_log_get_level.

Get the current log level

@see lavu_log_constants

@return Current log level

func AVLogSetCallback

func AVLogSetCallback(cb LogCallback)

AVLogSetCallback wraps av_log_set_callback.

Set the logging callback

@note The callback must be thread safe, even if the application does not use
      threads itself as some codecs are multithreaded.

@see av_log_default_callback

@param callback A logging function with a compatible signature.

func AVLogSetFlags

func AVLogSetFlags(arg int)

AVLogSetFlags wraps av_log_set_flags.

func AVLogSetLevel

func AVLogSetLevel(level int)

AVLogSetLevel wraps av_log_set_level.

Set the log level

@see lavu_log_constants

@param level Logging level

func AVMalloc

func AVMalloc(size uint64) unsafe.Pointer

AVMalloc wraps av_malloc.

Allocate a memory block with alignment suitable for all memory accesses
(including vectors if available on the CPU).

@param size Size in bytes for the memory block to be allocated
@return Pointer to the allocated block, or `NULL` if the block cannot
        be allocated
@see av_mallocz()

func AVMallocArray

func AVMallocArray(nmemb uint64, size uint64) unsafe.Pointer

AVMallocArray wraps av_malloc_array.

Allocate a memory block for an array with av_malloc().

The allocated memory will have size `size * nmemb` bytes.

@param nmemb Number of element
@param size  Size of a single element
@return Pointer to the allocated block, or `NULL` if the block cannot
        be allocated
@see av_malloc()

func AVMallocz

func AVMallocz(size uint64) unsafe.Pointer

AVMallocz wraps av_mallocz.

Allocate a memory block with alignment suitable for all memory accesses
(including vectors if available on the CPU) and zero all the bytes of the
block.

@param size Size in bytes for the memory block to be allocated
@return Pointer to the allocated block, or `NULL` if it cannot be allocated
@see av_malloc()

func AVMatchExt

func AVMatchExt(filename *CStr, extensions *CStr) (int, error)

AVMatchExt wraps av_match_ext.

Return a positive value if the given filename has one of the given
extensions, 0 otherwise.

@param filename   file name to check against the given extensions
@param extensions a comma-separated list of filename extensions

func AVMatchList

func AVMatchList(name *CStr, list *CStr, separator uint8) (int, error)

AVMatchList wraps av_match_list.

Check if a name is in a list.
@returns 0 if not found, or the 1 based index where it has been found in the
           list.

func AVMatchName

func AVMatchName(name *CStr, names *CStr) (int, error)

AVMatchName wraps av_match_name.

Match instances of a name in a comma-separated list of names.
List entries are checked from the start to the end of the names list,
the first match ends further processing. If an entry prefixed with '-'
matches, then 0 is returned. The "ALL" list entry is considered to
match all names.

@param name  Name to look for.
@param names List of names.
@return 1 on match, 0 otherwise.

func AVMaxAlloc

func AVMaxAlloc(max uint64)

AVMaxAlloc wraps av_max_alloc.

Set the maximum size that may be allocated in one block.

The value specified with this function is effective for all libavutil's @ref
lavu_mem_funcs "heap management functions."

By default, the max value is defined as `INT_MAX`.

@param max Value to be set as the new maximum size

@warning Exercise extreme caution when using this function. Don't touch
         this if you do not understand the full consequence of doing so.

func AVMemcpyBackptr

func AVMemcpyBackptr(dst unsafe.Pointer, back int, cnt int)

AVMemcpyBackptr wraps av_memcpy_backptr.

Overlapping memcpy() implementation.

@param dst  Destination buffer
@param back Number of bytes back to start copying (i.e. the initial size of
            the overlapping window); must be > 0
@param cnt  Number of bytes to copy; must be >= 0

@note `cnt > back` is valid, this will copy the bytes we just copied,
      thus creating a repeating pattern with a period length of `back`.

func AVMemdup

func AVMemdup(p unsafe.Pointer, size uint64) unsafe.Pointer

AVMemdup wraps av_memdup.

Duplicate a buffer with av_malloc().

@param p    Buffer to be duplicated
@param size Size in bytes of the buffer copied
@return Pointer to a newly allocated buffer containing a
        copy of `p` or `NULL` if the buffer cannot be allocated

func AVMlfgGet

func AVMlfgGet(c *AVLFG) uint

AVMlfgGet wraps av_mlfg_get.

Get the next random unsigned 32-bit number using a MLFG.

Please also consider av_lfg_get() above, it is faster.

func AVModUintp2C

func AVModUintp2C(a uint, p uint) uint

AVModUintp2C wraps av_mod_uintp2_c.

func AVMurmur3Init

func AVMurmur3Init(c *AVMurMur3)

AVMurmur3Init wraps av_murmur3_init.

Initialize or reinitialize an AVMurMur3 hash context.

Equivalent to av_murmur3_init_seeded() with a built-in seed.

@param[out] c    Hash context

@see av_murmur3_init_seeded()
@see @ref lavu_murmur3_seedinfo "Detailed description" on a discussion of
seeds for MurmurHash3.

func AVMurmur3InitSeeded

func AVMurmur3InitSeeded(c *AVMurMur3, seed uint64)

AVMurmur3InitSeeded wraps av_murmur3_init_seeded.

Initialize or reinitialize an AVMurMur3 hash context with a seed.

@param[out] c    Hash context
@param[in]  seed Random seed

@see av_murmur3_init()
@see @ref lavu_murmur3_seedinfo "Detailed description" on a discussion of
seeds for MurmurHash3.

func AVMurmur3Update

func AVMurmur3Update(c *AVMurMur3, src unsafe.Pointer, len uint64)

AVMurmur3Update wraps av_murmur3_update.

Update hash context with new data.

@param[out] c    Hash context
@param[in]  src  Input data to update hash with
@param[in]  len  Number of bytes to read from `src`

func AVNearerQ

func AVNearerQ(q *AVRational, q1 *AVRational, q2 *AVRational) (int, error)

AVNearerQ wraps av_nearer_q.

Find which of the two rationals is closer to another rational.

@param q     Rational to be compared against
@param q1    Rational to be tested
@param q2    Rational to be tested
@return One of the following values:
        - 1 if `q1` is nearer to `q` than `q2`
        - -1 if `q2` is nearer to `q` than `q1`
        - 0 if they have the same distance

func AVNewPacket

func AVNewPacket(pkt *AVPacket, size int) (int, error)

AVNewPacket wraps av_new_packet.

Allocate the payload of a packet and initialize its fields with
default values.

@param pkt packet
@param size wanted payload size
@return 0 if OK, AVERROR_xxx otherwise

func AVOptChildNext

func AVOptChildNext(obj unsafe.Pointer, prev unsafe.Pointer) unsafe.Pointer

AVOptChildNext wraps av_opt_child_next.

Iterate over AVOptions-enabled children of obj.

@param prev result of a previous call to this function or NULL
@return next AVOptions-enabled child or NULL

func AVOptCopy

func AVOptCopy(dest unsafe.Pointer, src unsafe.Pointer) (int, error)

AVOptCopy wraps av_opt_copy.

Copy options from src object into dest object.

The underlying AVClass of both src and dest must coincide. The guarantee
below does not apply if this is not fulfilled.

Options that require memory allocation (e.g. string or binary) are malloc'ed in dest object.
Original memory allocated for such options is freed unless both src and dest options points to the same memory.

Even on error it is guaranteed that allocated options from src and dest
no longer alias each other afterwards; in particular calling av_opt_free()
on both src and dest is safe afterwards if dest has been memdup'ed from src.

@param dest Object to copy from
@param src  Object to copy into
@return 0 on success, negative on error

func AVOptEvalDouble

func AVOptEvalDouble(obj unsafe.Pointer, o *AVOption, val *CStr, doubleOut *float64) (int, error)

AVOptEvalDouble wraps av_opt_eval_double.

func AVOptEvalFlags

func AVOptEvalFlags(obj unsafe.Pointer, o *AVOption, val *CStr, flagsOut *int) (int, error)

AVOptEvalFlags wraps av_opt_eval_flags.

This group of functions can be used to evaluate option strings
and get numbers out of them. They do the same thing as av_opt_set(),
except the result is written into the caller-supplied pointer.

@param obj a struct whose first element is a pointer to AVClass.
@param o an option for which the string is to be evaluated.
@param val string to be evaluated.
@param *_out value of the string will be written here.

@return 0 on success, a negative number on failure.

func AVOptEvalFloat

func AVOptEvalFloat(obj unsafe.Pointer, o *AVOption, val *CStr, floatOut *float32) (int, error)

AVOptEvalFloat wraps av_opt_eval_float.

func AVOptEvalInt

func AVOptEvalInt(obj unsafe.Pointer, o *AVOption, val *CStr, intOut *int) (int, error)

AVOptEvalInt wraps av_opt_eval_int.

func AVOptEvalInt64

func AVOptEvalInt64(obj unsafe.Pointer, o *AVOption, val *CStr, int64Out *int64) (int, error)

AVOptEvalInt64 wraps av_opt_eval_int64.

func AVOptEvalUint

func AVOptEvalUint(obj unsafe.Pointer, o *AVOption, val *CStr, uintOut *uint) (int, error)

AVOptEvalUint wraps av_opt_eval_uint.

func AVOptFlagIsSet

func AVOptFlagIsSet(obj unsafe.Pointer, fieldName *CStr, flagName *CStr) (int, error)

AVOptFlagIsSet wraps av_opt_flag_is_set.

Check whether a particular flag is set in a flags field.

@param field_name the name of the flag field option
@param flag_name the name of the flag to check
@return non-zero if the flag is set, zero if the flag isn't set,
        isn't of the right type, or the flags field doesn't exist.

func AVOptFree

func AVOptFree(obj unsafe.Pointer)

AVOptFree wraps av_opt_free.

Free all allocated objects in obj.

func AVOptFreepRanges

func AVOptFreepRanges(ranges **AVOptionRanges)

AVOptFreepRanges wraps av_opt_freep_ranges.

Free an AVOptionRanges struct and set it to NULL.

func AVOptGetArray

func AVOptGetArray(obj unsafe.Pointer, name *CStr, searchFlags int, startElem uint, nbElems uint, outType AVOptionType, outVal unsafe.Pointer) (int, error)

AVOptGetArray wraps av_opt_get_array.

For an array-type option, retrieve the values of one or more array elements.

@param start_elem index of the first array element to retrieve
@param nb_elems number of array elements to retrieve; start_elem+nb_elems
                must not be larger than array size as returned by
                av_opt_get_array_size()

@param out_type Option type corresponding to the desired output.

                The array elements produced by this function will
                will be as if av_opt_getX() was called for each element,
                where X is specified by out_type. E.g. AV_OPT_TYPE_STRING
                corresponds to av_opt_get().

                Typically this should be the same as the scalarized type of
                the AVOption being retrieved, but certain conversions are
                also possible - the same as those done by the corresponding
                av_opt_get*() function. E.g. any option type can be retrieved
                as a string, numeric types can be retrieved as int64, double,
                or rational, etc.

@param out_val  Array with nb_elems members into which the output will be
                written. The array type must match the underlying C type as
                documented for out_type, and be zeroed on entry to this
                function.

                For dynamically allocated types (strings, binary, dicts,
                etc.), the result is owned and freed by the caller.

func AVOptGetArraySize

func AVOptGetArraySize(obj unsafe.Pointer, name *CStr, searchFlags int, outVal *uint) (int, error)

AVOptGetArraySize wraps av_opt_get_array_size.

For an array-type option, get the number of elements in the array.

func AVOptGetChlayout

func AVOptGetChlayout(obj unsafe.Pointer, name *CStr, searchFlags int, layout *AVChannelLayout) (int, error)

AVOptGetChlayout wraps av_opt_get_chlayout.

@param[out] layout The returned layout is a copy of the actual value and must
be freed with av_channel_layout_uninit() by the caller

func AVOptGetDictVal

func AVOptGetDictVal(obj unsafe.Pointer, name *CStr, searchFlags int, outVal **AVDictionary) (int, error)

AVOptGetDictVal wraps av_opt_get_dict_val.

@param[out] out_val The returned dictionary is a copy of the actual value and must
be freed with av_dict_free() by the caller

func AVOptGetDouble

func AVOptGetDouble(obj unsafe.Pointer, name *CStr, searchFlags int, outVal *float64) (int, error)

AVOptGetDouble wraps av_opt_get_double.

func AVOptGetImageSize

func AVOptGetImageSize(obj unsafe.Pointer, name *CStr, searchFlags int, wOut *int, hOut *int) (int, error)

AVOptGetImageSize wraps av_opt_get_image_size.

func AVOptGetInt

func AVOptGetInt(obj unsafe.Pointer, name *CStr, searchFlags int, outVal *int64) (int, error)

AVOptGetInt wraps av_opt_get_int.

func AVOptGetPixelFmt

func AVOptGetPixelFmt(obj unsafe.Pointer, name *CStr, searchFlags int, outFmt *AVPixelFormat) (int, error)

AVOptGetPixelFmt wraps av_opt_get_pixel_fmt.

func AVOptGetSampleFmt

func AVOptGetSampleFmt(obj unsafe.Pointer, name *CStr, searchFlags int, outFmt *AVSampleFormat) (int, error)

AVOptGetSampleFmt wraps av_opt_get_sample_fmt.

func AVOptIsSetToDefault

func AVOptIsSetToDefault(obj unsafe.Pointer, o *AVOption) (int, error)

AVOptIsSetToDefault wraps av_opt_is_set_to_default.

Check if given option is set to its default value.

Options o must belong to the obj. This function must not be called to check child's options state.
@see av_opt_is_set_to_default_by_name().

@param obj  AVClass object to check option on
@param o    option to be checked
@return     >0 when option is set to its default,
             0 when option is not set its default,
            <0 on error

func AVOptIsSetToDefaultByName

func AVOptIsSetToDefaultByName(obj unsafe.Pointer, name *CStr, searchFlags int) (int, error)

AVOptIsSetToDefaultByName wraps av_opt_is_set_to_default_by_name.

Check if given option is set to its default value.

@param obj          AVClass object to check option on
@param name         option name
@param search_flags combination of AV_OPT_SEARCH_*
@return             >0 when option is set to its default,
                    0 when option is not set its default,
                    <0 on error

func AVOptPtr

func AVOptPtr(avclass *AVClass, obj unsafe.Pointer, name *CStr) unsafe.Pointer

AVOptPtr wraps av_opt_ptr.

Gets a pointer to the requested field in a struct.
This function allows accessing a struct even when its fields are moved or
renamed since the application making the access has been compiled,

@returns a pointer to the field, it can be cast to the correct type and read
         or written to.

@deprecated direct access to AVOption-exported fields is not supported

func AVOptQueryRanges

func AVOptQueryRanges(param0 **AVOptionRanges, obj unsafe.Pointer, key *CStr, flags int) (int, error)

AVOptQueryRanges wraps av_opt_query_ranges.

Get a list of allowed ranges for the given option.

The returned list may depend on other fields in obj like for example profile.

@param flags is a bitmask of flags, undefined flags should not be set and should be ignored
             AV_OPT_SEARCH_FAKE_OBJ indicates that the obj is a double pointer to a AVClass instead of a full instance
             AV_OPT_MULTI_COMPONENT_RANGE indicates that function may return more than one component, @see AVOptionRanges

The result must be freed with av_opt_freep_ranges.

@return number of components returned on success, a negative error code otherwise

func AVOptQueryRangesDefault

func AVOptQueryRangesDefault(param0 **AVOptionRanges, obj unsafe.Pointer, key *CStr, flags int) (int, error)

AVOptQueryRangesDefault wraps av_opt_query_ranges_default.

Get a default list of allowed ranges for the given option.

This list is constructed without using the AVClass.query_ranges() callback
and can be used as fallback from within the callback.

@param flags is a bitmask of flags, undefined flags should not be set and should be ignored
             AV_OPT_SEARCH_FAKE_OBJ indicates that the obj is a double pointer to a AVClass instead of a full instance
             AV_OPT_MULTI_COMPONENT_RANGE indicates that function may return more than one component, @see AVOptionRanges

The result must be freed with av_opt_free_ranges.

@return number of components returned on success, a negative error code otherwise

func AVOptSet

func AVOptSet(obj unsafe.Pointer, name *CStr, val *CStr, searchFlags int) (int, error)

AVOptSet wraps av_opt_set.

Those functions set the field of obj with the given name to value.

@param[in] obj A struct whose first element is a pointer to an AVClass.
@param[in] name the name of the field to set
@param[in] val The value to set. In case of av_opt_set() if the field is not
of a string type, then the given string is parsed.
SI postfixes and some named scalars are supported.
If the field is of a numeric type, it has to be a numeric or named
scalar. Behavior with more than one scalar and +- infix operators
is undefined.
If the field is of a flags type, it has to be a sequence of numeric
scalars or named flags separated by '+' or '-'. Prefixing a flag
with '+' causes it to be set without affecting the other flags;
similarly, '-' unsets a flag.
If the field is of a dictionary type, it has to be a ':' separated list of
key=value parameters. Values containing ':' special characters must be
escaped.
@param search_flags flags passed to av_opt_find2. I.e. if AV_OPT_SEARCH_CHILDREN
is passed here, then the option may be set on a child of obj.

@return 0 if the value has been set, or an AVERROR code in case of
error:
AVERROR_OPTION_NOT_FOUND if no matching option exists
AVERROR(ERANGE) if the value is out of range
AVERROR(EINVAL) if the value is not valid

func AVOptSetArray

func AVOptSetArray(obj unsafe.Pointer, name *CStr, searchFlags int, startElem uint, nbElems uint, valType AVOptionType, val unsafe.Pointer) (int, error)

AVOptSetArray wraps av_opt_set_array.

Add, replace, or remove elements for an array option. Which of these
operations is performed depends on the values of val and search_flags.

@param start_elem Index of the first array element to modify; must not be
                  larger than array size as returned by
                  av_opt_get_array_size().
@param nb_elems number of array elements to modify; when val is NULL,
                start_elem+nb_elems must not be larger than array size as
                returned by av_opt_get_array_size()

@param val_type Option type corresponding to the type of val, ignored when val is
                NULL.

                The effect of this function will will be as if av_opt_setX()
                was called for each element, where X is specified by type.
                E.g. AV_OPT_TYPE_STRING corresponds to av_opt_set().

                Typically this should be the same as the scalarized type of
                the AVOption being set, but certain conversions are also
                possible - the same as those done by the corresponding
                av_opt_set*() function. E.g. any option type can be set from
                a string, numeric types can be set from int64, double, or
                rational, etc.

@param val Array with nb_elems elements or NULL.

           When NULL, nb_elems array elements starting at start_elem are
           removed from the array. Any array elements remaining at the end
           are shifted by nb_elems towards the first element in order to keep
           the array contiguous.

           Otherwise (val is non-NULL), the type of val must match the
           underlying C type as documented for val_type.

           When AV_OPT_ARRAY_REPLACE is not set in search_flags, the array is
           enlarged by nb_elems, and the contents of val are inserted at
           start_elem. Previously existing array elements from start_elem
           onwards (if present) are shifted by nb_elems away from the first
           element in order to make space for the new elements.

           When AV_OPT_ARRAY_REPLACE is set in search_flags, the contents
           of val replace existing array elements from start_elem to
           start_elem+nb_elems (if present). New array size is
           max(start_elem + nb_elems, old array size).

func AVOptSetBin

func AVOptSetBin(obj unsafe.Pointer, name *CStr, val unsafe.Pointer, size int, searchFlags int) (int, error)

AVOptSetBin wraps av_opt_set_bin.

func AVOptSetChlayout

func AVOptSetChlayout(obj unsafe.Pointer, name *CStr, layout *AVChannelLayout, searchFlags int) (int, error)

AVOptSetChlayout wraps av_opt_set_chlayout.

@note Any old chlayout present is discarded and replaced with a copy of the new one. The
caller still owns layout and is responsible for uninitializing it.

func AVOptSetDefaults

func AVOptSetDefaults(s unsafe.Pointer)

AVOptSetDefaults wraps av_opt_set_defaults.

Set the values of all AVOption fields to their default values.

@param s an AVOption-enabled struct (its first member must be a pointer to AVClass)

func AVOptSetDefaults2

func AVOptSetDefaults2(s unsafe.Pointer, mask int, flags int)

AVOptSetDefaults2 wraps av_opt_set_defaults2.

Set the values of all AVOption fields to their default values. Only these
AVOption fields for which (opt->flags & mask) == flags will have their
default applied to s.

@param s an AVOption-enabled struct (its first member must be a pointer to AVClass)
@param mask combination of AV_OPT_FLAG_*
@param flags combination of AV_OPT_FLAG_*

func AVOptSetDict

func AVOptSetDict(obj unsafe.Pointer, options **AVDictionary) (int, error)

AVOptSetDict wraps av_opt_set_dict.

Set all the options from a given dictionary on an object.

@param obj a struct whose first element is a pointer to AVClass
@param options options to process. This dictionary will be freed and replaced
               by a new one containing all options not found in obj.
               Of course this new dictionary needs to be freed by caller
               with av_dict_free().

@return 0 on success, a negative AVERROR if some option was found in obj,
        but could not be set.

@see av_dict_copy()

func AVOptSetDict2

func AVOptSetDict2(obj unsafe.Pointer, options **AVDictionary, searchFlags int) (int, error)

AVOptSetDict2 wraps av_opt_set_dict2.

Set all the options from a given dictionary on an object.

@param obj a struct whose first element is a pointer to AVClass
@param options options to process. This dictionary will be freed and replaced
               by a new one containing all options not found in obj.
               Of course this new dictionary needs to be freed by caller
               with av_dict_free().
@param search_flags A combination of AV_OPT_SEARCH_*.

@return 0 on success, a negative AVERROR if some option was found in obj,
        but could not be set.

@see av_dict_copy()

func AVOptSetDictVal

func AVOptSetDictVal(obj unsafe.Pointer, name *CStr, val *AVDictionary, searchFlags int) (int, error)

AVOptSetDictVal wraps av_opt_set_dict_val.

@note Any old dictionary present is discarded and replaced with a copy of the new one. The
caller still owns val is and responsible for freeing it.

func AVOptSetDouble

func AVOptSetDouble(obj unsafe.Pointer, name *CStr, val float64, searchFlags int) (int, error)

AVOptSetDouble wraps av_opt_set_double.

func AVOptSetImageSize

func AVOptSetImageSize(obj unsafe.Pointer, name *CStr, w int, h int, searchFlags int) (int, error)

AVOptSetImageSize wraps av_opt_set_image_size.

func AVOptSetInt

func AVOptSetInt(obj unsafe.Pointer, name *CStr, val int64, searchFlags int) (int, error)

AVOptSetInt wraps av_opt_set_int.

func AVOptSetPixelFmt

func AVOptSetPixelFmt(obj unsafe.Pointer, name *CStr, fmt AVPixelFormat, searchFlags int) (int, error)

AVOptSetPixelFmt wraps av_opt_set_pixel_fmt.

func AVOptSetQ

func AVOptSetQ(obj unsafe.Pointer, name *CStr, val *AVRational, searchFlags int) (int, error)

AVOptSetQ wraps av_opt_set_q.

func AVOptSetSampleFmt

func AVOptSetSampleFmt(obj unsafe.Pointer, name *CStr, fmt AVSampleFormat, searchFlags int) (int, error)

AVOptSetSampleFmt wraps av_opt_set_sample_fmt.

func AVOptSetSlice

func AVOptSetSlice[T any](obj unsafe.Pointer, name *CStr, val []T, searchFlags int) (int, error)

AVOptSetSlice is a helper for storing a slice of primitive data to the named field. This function provides no guarantees for usage with Go wrapper types.

See AVOptSet for more information.

func AVOptSetVideoRate

func AVOptSetVideoRate(obj unsafe.Pointer, name *CStr, val *AVRational, searchFlags int) (int, error)

AVOptSetVideoRate wraps av_opt_set_video_rate.

func AVOptShow2

func AVOptShow2(obj unsafe.Pointer, avLogObj unsafe.Pointer, reqFlags int, rejFlags int) (int, error)

AVOptShow2 wraps av_opt_show2.

Show the obj options.

@param req_flags requested flags for the options to show. Show only the
options for which it is opt->flags & req_flags.
@param rej_flags rejected flags for the options to show. Show only the
options for which it is !(opt->flags & req_flags).
@param av_log_obj log context to use for showing the options

func AVPacketAddSideData

func AVPacketAddSideData(pkt *AVPacket, _type AVPacketSideDataType, data unsafe.Pointer, size uint64) (int, error)

AVPacketAddSideData wraps av_packet_add_side_data.

Wrap an existing array as a packet side data.

@param pkt packet
@param type side information type
@param data the side data array. It must be allocated with the av_malloc()
            family of functions. The ownership of the data is transferred to
            pkt.
@param size side information size
@return a non-negative number on success, a negative AVERROR code on
        failure. On failure, the packet is unchanged and the data remains
        owned by the caller.

func AVPacketCopyProps

func AVPacketCopyProps(dst *AVPacket, src *AVPacket) (int, error)

AVPacketCopyProps wraps av_packet_copy_props.

Copy only "properties" fields from src to dst.

Properties for the purpose of this function are all the fields
beside those related to the packet data (buf, data, size)

@param dst Destination packet
@param src Source packet

@return 0 on success AVERROR on failure.

func AVPacketFree

func AVPacketFree(pkt **AVPacket)

AVPacketFree wraps av_packet_free.

Free the packet, if the packet is reference counted, it will be
unreferenced first.

@param pkt packet to be freed. The pointer will be set to NULL.
@note passing NULL is a no-op.

func AVPacketFreeSideData

func AVPacketFreeSideData(pkt *AVPacket)

AVPacketFreeSideData wraps av_packet_free_side_data.

Convenience function to free all the side data stored.
All the other fields stay untouched.

@param pkt packet

func AVPacketFromData

func AVPacketFromData(pkt *AVPacket, data unsafe.Pointer, size int) (int, error)

AVPacketFromData wraps av_packet_from_data.

Initialize a reference-counted packet from av_malloc()ed data.

@param pkt packet to be initialized. This function will set the data, size,
       and buf fields, all others are left untouched.
@param data Data allocated by av_malloc() to be used as packet data. If this
       function returns successfully, the data is owned by the underlying AVBuffer.
       The caller may not access the data through other means.
@param size size of data in bytes, without the padding. I.e. the full buffer
       size is assumed to be size + AV_INPUT_BUFFER_PADDING_SIZE.

@return 0 on success, a negative AVERROR on error

func AVPacketGetSideData

func AVPacketGetSideData(pkt *AVPacket, _type AVPacketSideDataType, size *uint64) unsafe.Pointer

AVPacketGetSideData wraps av_packet_get_side_data.

Get side information from packet.

@param pkt packet
@param type desired side information type
@param size If supplied, *size will be set to the size of the side data
            or to zero if the desired side data is not present.
@return pointer to data if present or NULL otherwise

func AVPacketMakeRefcounted

func AVPacketMakeRefcounted(pkt *AVPacket) (int, error)

AVPacketMakeRefcounted wraps av_packet_make_refcounted.

Ensure the data described by a given packet is reference counted.

@note This function does not ensure that the reference will be writable.
      Use av_packet_make_writable instead for that purpose.

@see av_packet_ref
@see av_packet_make_writable

@param pkt packet whose data should be made reference counted.

@return 0 on success, a negative AVERROR on error. On failure, the
        packet is unchanged.

func AVPacketMakeWritable

func AVPacketMakeWritable(pkt *AVPacket) (int, error)

AVPacketMakeWritable wraps av_packet_make_writable.

Create a writable reference for the data described by a given packet,
avoiding data copy if possible.

@param pkt Packet whose data should be made writable.

@return 0 on success, a negative AVERROR on failure. On failure, the
        packet is unchanged.

func AVPacketMoveRef

func AVPacketMoveRef(dst *AVPacket, src *AVPacket)

AVPacketMoveRef wraps av_packet_move_ref.

Move every field in src to dst and reset src.

@see av_packet_unref

@param src Source packet, will be reset
@param dst Destination packet

func AVPacketNewSideData

func AVPacketNewSideData(pkt *AVPacket, _type AVPacketSideDataType, size uint64) unsafe.Pointer

AVPacketNewSideData wraps av_packet_new_side_data.

Allocate new information of a packet.

@param pkt packet
@param type side information type
@param size side information size
@return pointer to fresh allocated data or NULL otherwise

func AVPacketPackDictionary

func AVPacketPackDictionary(dict *AVDictionary, size *uint64) unsafe.Pointer

AVPacketPackDictionary wraps av_packet_pack_dictionary.

Pack a dictionary for use in side_data.

@param dict The dictionary to pack.
@param size pointer to store the size of the returned data
@return pointer to data if successful, NULL otherwise

func AVPacketRef

func AVPacketRef(dst *AVPacket, src *AVPacket) (int, error)

AVPacketRef wraps av_packet_ref.

Setup a new reference to the data described by a given packet

If src is reference-counted, setup dst as a new reference to the
buffer in src. Otherwise allocate a new buffer in dst and copy the
data from src into it.

All the other fields are copied from src.

@see av_packet_unref

@param dst Destination packet. Will be completely overwritten.
@param src Source packet

@return 0 on success, a negative AVERROR on error. On error, dst
        will be blank (as if returned by av_packet_alloc()).

func AVPacketRescaleTs

func AVPacketRescaleTs(pkt *AVPacket, tbSrc *AVRational, tbDst *AVRational)

AVPacketRescaleTs wraps av_packet_rescale_ts.

Convert valid timing fields (timestamps / durations) in a packet from one
timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE) will be
ignored.

@param pkt packet on which the conversion will be performed
@param tb_src source timebase, in which the timing fields in pkt are
              expressed
@param tb_dst destination timebase, to which the timing fields will be
              converted

func AVPacketShrinkSideData

func AVPacketShrinkSideData(pkt *AVPacket, _type AVPacketSideDataType, size uint64) (int, error)

AVPacketShrinkSideData wraps av_packet_shrink_side_data.

Shrink the already allocated side data buffer

@param pkt packet
@param type side information type
@param size new side information size
@return 0 on success, < 0 on failure

func AVPacketSideDataFree

func AVPacketSideDataFree(sd **AVPacketSideData, nbSd *int)

AVPacketSideDataFree wraps av_packet_side_data_free.

Convenience function to free all the side data stored in an array, and
the array itself.

@param sd    pointer to array of side data to free. Will be set to NULL
             upon return.
@param nb_sd pointer to an integer containing the number of entries in
             the array. Will be set to 0 upon return.

func AVPacketSideDataRemove

func AVPacketSideDataRemove(sd *AVPacketSideData, nbSd *int, _type AVPacketSideDataType)

AVPacketSideDataRemove wraps av_packet_side_data_remove.

Remove side data of the given type from a side data array.

@param sd    the array from which the side data should be removed
@param nb_sd pointer to an integer containing the number of entries in
             the array. Will be reduced by the amount of entries removed
             upon return
@param type  side information type

func AVPacketUnpackDictionary

func AVPacketUnpackDictionary(data unsafe.Pointer, size uint64, dict **AVDictionary) (int, error)

AVPacketUnpackDictionary wraps av_packet_unpack_dictionary.

Unpack a dictionary from side_data.

@param data data from side_data
@param size size of the data
@param dict the metadata storage dictionary
@return 0 on success, < 0 on failure

func AVPacketUnref

func AVPacketUnref(pkt *AVPacket)

AVPacketUnref wraps av_packet_unref.

Wipe the packet.

Unreference the buffer referenced by the packet and reset the
remaining packet fields to their default values.

@param pkt The packet to be unreferenced.

func AVParityC

func AVParityC(v uint32) (int, error)

AVParityC wraps av_parity_c.

func AVParseColor

func AVParseColor(rgbaColor unsafe.Pointer, colorString *CStr, slen int, logCtx unsafe.Pointer) (int, error)

AVParseColor wraps av_parse_color.

Put the RGBA values that correspond to color_string in rgba_color.

@param rgba_color 4-elements array of uint8_t values, where the respective
red, green, blue and alpha component values are written.
@param color_string a string specifying a color. It can be the name of
a color (case insensitive match) or a [0x|#]RRGGBB[AA] sequence,
possibly followed by "@" and a string representing the alpha
component.
The alpha component may be a string composed by "0x" followed by an
hexadecimal number or a decimal number between 0.0 and 1.0, which
represents the opacity value (0x00/0.0 means completely transparent,
0xff/1.0 completely opaque).
If the alpha component is not specified then 0xff is assumed.
The string "random" will result in a random color.
@param slen length of the initial part of color_string containing the
color. It can be set to -1 if color_string is a null terminated string
containing nothing else than the color.
@param log_ctx a pointer to an arbitrary struct of which the first field
is a pointer to an AVClass struct (used for av_log()). Can be NULL.
@return >= 0 in case of success, a negative value in case of
failure (for example if color_string cannot be parsed).

func AVParseVideoSize

func AVParseVideoSize(widthPtr *int, heightPtr *int, str *CStr) (int, error)

AVParseVideoSize wraps av_parse_video_size.

Parse str and put in width_ptr and height_ptr the detected values.

@param[in,out] width_ptr pointer to the variable which will contain the detected
width value
@param[in,out] height_ptr pointer to the variable which will contain the detected
height value
@param[in] str the string to parse: it has to be a string in the format
width x height or a valid video size abbreviation.
@return >= 0 on success, a negative error code otherwise

func AVParserClose

func AVParserClose(s *AVCodecParserContext)

AVParserClose wraps av_parser_close.

func AVPixFmtCountPlanes

func AVPixFmtCountPlanes(pixFmt AVPixelFormat) (int, error)

AVPixFmtCountPlanes wraps av_pix_fmt_count_planes.

@return number of planes in pix_fmt, a negative AVERROR if pix_fmt is not a
valid pixel format.

func AVPixFmtGetChromaSubSample

func AVPixFmtGetChromaSubSample(pixFmt AVPixelFormat, hShift *int, vShift *int) (int, error)

AVPixFmtGetChromaSubSample wraps av_pix_fmt_get_chroma_sub_sample.

Utility function to access log2_chroma_w log2_chroma_h from
the pixel format AVPixFmtDescriptor.

@param[in]  pix_fmt the pixel format
@param[out] h_shift store log2_chroma_w (horizontal/width shift)
@param[out] v_shift store log2_chroma_h (vertical/height shift)

@return 0 on success, AVERROR(ENOSYS) on invalid or unknown pixel format

func AVPktDumpLog2

func AVPktDumpLog2(avcl unsafe.Pointer, level int, pkt *AVPacket, dumpPayload int, st *AVStream)

AVPktDumpLog2 wraps av_pkt_dump_log2.

Send a nice dump of a packet to the log.

@param avcl A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.
@param level The importance level of the message, lower values signifying
higher importance.
@param pkt packet to dump
@param dump_payload True if the payload must be displayed, too.
@param st AVStream that the packet belongs to

func AVPopcount64C

func AVPopcount64C(x uint64) (int, error)

AVPopcount64C wraps av_popcount64_c.

Count number of bits set to one in x
@param x value to count bits of
@return the number of bits set to one in x

func AVPopcountC

func AVPopcountC(x uint32) (int, error)

AVPopcountC wraps av_popcount_c.

Count number of bits set to one in x
@param x value to count bits of
@return the number of bits set to one in x

func AVProbeInputBuffer

func AVProbeInputBuffer(pb *AVIOContext, fmt **AVInputFormat, url *CStr, logctx unsafe.Pointer, offset uint, maxProbeSize uint) (int, error)

AVProbeInputBuffer wraps av_probe_input_buffer.

Like av_probe_input_buffer2() but returns 0 on success

func AVProbeInputBuffer2

func AVProbeInputBuffer2(pb *AVIOContext, fmt **AVInputFormat, url *CStr, logctx unsafe.Pointer, offset uint, maxProbeSize uint) (int, error)

AVProbeInputBuffer2 wraps av_probe_input_buffer2.

Probe a bytestream to determine the input format. Each time a probe returns
with a score that is too low, the probe buffer size is increased and another
attempt is made. When the maximum probe size is reached, the input format
with the highest score is returned.

@param pb             the bytestream to probe
@param fmt            the input format is put here
@param url            the url of the stream
@param logctx         the log context
@param offset         the offset within the bytestream to probe from
@param max_probe_size the maximum probe buffer size (zero for default)

@return the score in case of success, a negative value corresponding to an
        the maximal score is AVPROBE_SCORE_MAX
        AVERROR code otherwise

func AVProgramAddStreamIndex

func AVProgramAddStreamIndex(ac *AVFormatContext, progid int, idx uint)

AVProgramAddStreamIndex wraps av_program_add_stream_index.

func AVQ2D

func AVQ2D(a *AVRational) float64

AVQ2D wraps av_q2d.

Convert an AVRational to a `double`.
@param a AVRational to convert
@return `a` in floating-point form
@see av_d2q()

func AVQ2Intfloat

func AVQ2Intfloat(q *AVRational) uint32

AVQ2Intfloat wraps av_q2intfloat.

Convert an AVRational to a IEEE 32-bit `float` expressed in fixed-point
format.

@param q Rational to be converted
@return Equivalent floating-point value, expressed as an unsigned 32-bit
        integer.
@note The returned value is platform-indepedant.

func AVRandomBytes

func AVRandomBytes(buf unsafe.Pointer, len uint64) (int, error)

AVRandomBytes wraps av_random_bytes.

Generate cryptographically secure random data, i.e. suitable for use as
encryption keys and similar.

@param buf buffer into which the random data will be written
@param len size of buf in bytes

@retval 0                         success, len bytes of random data was written
                                  into buf
@retval "a negative AVERROR code" random data could not be generated

func AVRc4Crypt

func AVRc4Crypt(d *AVRC4, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVRc4Crypt wraps av_rc4_crypt.

@brief Encrypts / decrypts using the RC4 algorithm.

@param d pointer to the AVRC4 context
@param count number of bytes
@param dst destination array, can be equal to src
@param src source array, can be equal to dst, may be NULL
@param iv not (yet) used for RC4, should be NULL
@param decrypt 0 for encryption, 1 for decryption, not (yet) used

func AVRc4Init

func AVRc4Init(d *AVRC4, key unsafe.Pointer, keyBits int, decrypt int) (int, error)

AVRc4Init wraps av_rc4_init.

@brief Initializes an AVRC4 context.

@param d pointer to the AVRC4 context
@param key buffer containing the key
@param key_bits must be a multiple of 8
@param decrypt 0 for encryption, 1 for decryption, currently has no effect
@return zero on success, negative value otherwise

func AVReadFrame

func AVReadFrame(s *AVFormatContext, pkt *AVPacket) (int, error)

AVReadFrame wraps av_read_frame.

Return the next frame of a stream.
This function returns what is stored in the file, and does not validate
that what is there are valid frames for the decoder. It will split what is
stored in the file into frames and return one for each call. It will not
omit invalid data between valid frames so as to give the decoder the maximum
information possible for decoding.

On success, the returned packet is reference-counted (pkt->buf is set) and
valid indefinitely. The packet must be freed with av_packet_unref() when
it is no longer needed. For video, the packet contains exactly one frame.
For audio, it contains an integer number of frames if each frame has
a known fixed size (e.g. PCM or ADPCM data). If the audio frames have
a variable size (e.g. MPEG audio), then it contains one frame.

pkt->pts, pkt->dts and pkt->duration are always set to correct
values in AVStream.time_base units (and guessed if the format cannot
provide them). pkt->pts can be AV_NOPTS_VALUE if the video format
has B-frames, so it is better to rely on pkt->dts if you do not
decompress the payload.

@return 0 if OK, < 0 on error or end of file. On error, pkt will be blank
        (as if it came from av_packet_alloc()).

@note pkt will be initialized, so it may be uninitialized, but it must not
      contain data that needs to be freed.

func AVReadPause

func AVReadPause(s *AVFormatContext) (int, error)

AVReadPause wraps av_read_pause.

Pause a network-based stream (e.g. RTSP stream).

Use av_read_play() to resume it.

func AVReadPlay

func AVReadPlay(s *AVFormatContext) (int, error)

AVReadPlay wraps av_read_play.

Start playing a network-based stream (e.g. RTSP stream) at the
current position.

func AVRealloc

func AVRealloc(ptr unsafe.Pointer, size uint64) unsafe.Pointer

AVRealloc wraps av_realloc.

Allocate, reallocate, or free a block of memory.

If `ptr` is `NULL` and `size` > 0, allocate a new block. Otherwise, expand or
shrink that block of memory according to `size`.

@param ptr  Pointer to a memory block already allocated with
            av_realloc() or `NULL`
@param size Size in bytes of the memory block to be allocated or
            reallocated

@return Pointer to a newly-reallocated block or `NULL` if the block
        cannot be reallocated

@warning Unlike av_malloc(), the returned pointer is not guaranteed to be
         correctly aligned. The returned pointer must be freed after even
         if size is zero.
@see av_fast_realloc()
@see av_reallocp()

func AVReallocArray

func AVReallocArray(ptr unsafe.Pointer, nmemb uint64, size uint64) unsafe.Pointer

AVReallocArray wraps av_realloc_array.

Allocate, reallocate, or free an array.

If `ptr` is `NULL` and `nmemb` > 0, allocate a new block.

@param ptr   Pointer to a memory block already allocated with
             av_realloc() or `NULL`
@param nmemb Number of elements in the array
@param size  Size of the single element of the array

@return Pointer to a newly-reallocated block or NULL if the block
        cannot be reallocated

@warning Unlike av_malloc(), the allocated memory is not guaranteed to be
         correctly aligned. The returned pointer must be freed after even if
         nmemb is zero.
@see av_reallocp_array()

func AVReallocF

func AVReallocF(ptr unsafe.Pointer, nelem uint64, elsize uint64) unsafe.Pointer

AVReallocF wraps av_realloc_f.

Allocate, reallocate, or free a block of memory.

This function does the same thing as av_realloc(), except:
- It takes two size arguments and allocates `nelem * elsize` bytes,
  after checking the result of the multiplication for integer overflow.
- It frees the input block in case of failure, thus avoiding the memory
  leak with the classic
  @code{.c}
  buf = realloc(buf);
  if (!buf)
      return -1;
  @endcode
  pattern.

func AVReallocp

func AVReallocp(ptr unsafe.Pointer, size uint64) (int, error)

AVReallocp wraps av_reallocp.

Allocate, reallocate, or free a block of memory through a pointer to a
pointer.

If `*ptr` is `NULL` and `size` > 0, allocate a new block. If `size` is
zero, free the memory block pointed to by `*ptr`. Otherwise, expand or
shrink that block of memory according to `size`.

@param[in,out] ptr  Pointer to a pointer to a memory block already allocated
                    with av_realloc(), or a pointer to `NULL`. The pointer
                    is updated on success, or freed on failure.
@param[in]     size Size in bytes for the memory block to be allocated or
                    reallocated

@return Zero on success, an AVERROR error code on failure

@warning Unlike av_malloc(), the allocated memory is not guaranteed to be
         correctly aligned.

func AVReallocpArray

func AVReallocpArray(ptr unsafe.Pointer, nmemb uint64, size uint64) (int, error)

AVReallocpArray wraps av_reallocp_array.

Allocate, reallocate an array through a pointer to a pointer.

If `*ptr` is `NULL` and `nmemb` > 0, allocate a new block.

@param[in,out] ptr   Pointer to a pointer to a memory block already
                     allocated with av_realloc(), or a pointer to `NULL`.
                     The pointer is updated on success, or freed on failure.
@param[in]     nmemb Number of elements
@param[in]     size  Size of the single element

@return Zero on success, an AVERROR error code on failure

@warning Unlike av_malloc(), the allocated memory is not guaranteed to be
         correctly aligned. *ptr must be freed after even if nmemb is zero.

func AVReduce

func AVReduce(dstNum *int, dstDen *int, num int64, den int64, max int64) (int, error)

AVReduce wraps av_reduce.

Reduce a fraction.

This is useful for framerate calculations.

@param[out] dst_num Destination numerator
@param[out] dst_den Destination denominator
@param[in]      num Source numerator
@param[in]      den Source denominator
@param[in]      max Maximum allowed values for `dst_num` & `dst_den`
@return 1 if the operation is exact, 0 otherwise

func AVRescale

func AVRescale(a int64, b int64, c int64) int64

AVRescale wraps av_rescale.

Rescale a 64-bit integer with rounding to nearest.

The operation is mathematically equivalent to `a * b / c`, but writing that
directly can overflow.

This function is equivalent to av_rescale_rnd() with #AV_ROUND_NEAR_INF.

@see av_rescale_rnd(), av_rescale_q(), av_rescale_q_rnd()

func AVRescaleQ

func AVRescaleQ(a int64, bq *AVRational, cq *AVRational) int64

AVRescaleQ wraps av_rescale_q.

Rescale a 64-bit integer by 2 rational numbers.

The operation is mathematically equivalent to `a * bq / cq`.

This function is equivalent to av_rescale_q_rnd() with #AV_ROUND_NEAR_INF.

@see av_rescale(), av_rescale_rnd(), av_rescale_q_rnd()

func AVRescaleQRnd

func AVRescaleQRnd(a int64, bq *AVRational, cq *AVRational, rnd AVRounding) int64

AVRescaleQRnd wraps av_rescale_q_rnd.

Rescale a 64-bit integer by 2 rational numbers with specified rounding.

The operation is mathematically equivalent to `a * bq / cq`.

@see av_rescale(), av_rescale_rnd(), av_rescale_q()

func AVRescaleRnd

func AVRescaleRnd(a int64, b int64, c int64, rnd AVRounding) int64

AVRescaleRnd wraps av_rescale_rnd.

Rescale a 64-bit integer with specified rounding.

The operation is mathematically equivalent to `a * b / c`, but writing that
directly can overflow, and does not support different rounding methods.
If the result is not representable then INT64_MIN is returned.

@see av_rescale(), av_rescale_q(), av_rescale_q_rnd()

func AVRipemdFinal

func AVRipemdFinal(context *AVRIPEMD, digest unsafe.Pointer)

AVRipemdFinal wraps av_ripemd_final.

Finish hashing and output digest value.

@param context hash function context
@param digest  buffer where output digest value is stored

func AVRipemdInit

func AVRipemdInit(context *AVRIPEMD, bits int) (int, error)

AVRipemdInit wraps av_ripemd_init.

Initialize RIPEMD hashing.

@param context pointer to the function context (of size av_ripemd_size)
@param bits    number of bits in digest (128, 160, 256 or 320 bits)
@return        zero if initialization succeeded, -1 otherwise

func AVRipemdUpdate

func AVRipemdUpdate(context *AVRIPEMD, data unsafe.Pointer, len uint64)

AVRipemdUpdate wraps av_ripemd_update.

Update hash value.

@param context hash function context
@param data    input data to update hash with
@param len     input data length

func AVSampleFmtIsPlanar

func AVSampleFmtIsPlanar(sampleFmt AVSampleFormat) (int, error)

AVSampleFmtIsPlanar wraps av_sample_fmt_is_planar.

Check if the sample format is planar.

@param sample_fmt the sample format to inspect
@return 1 if the sample format is planar, 0 if it is interleaved

func AVSamplesGetBufferSize

func AVSamplesGetBufferSize(linesize *int, nbChannels int, nbSamples int, sampleFmt AVSampleFormat, align int) (int, error)

AVSamplesGetBufferSize wraps av_samples_get_buffer_size.

Get the required buffer size for the given audio parameters.

@param[out] linesize calculated linesize, may be NULL
@param nb_channels   the number of channels
@param nb_samples    the number of samples in a single channel
@param sample_fmt    the sample format
@param align         buffer size alignment (0 = default, 1 = no alignment)
@return              required buffer size, or negative error code on failure

func AVSatAdd32C

func AVSatAdd32C(a int, b int) (int, error)

AVSatAdd32C wraps av_sat_add32_c.

Add two signed 32-bit values with saturation.

@param  a one value
@param  b another value
@return sum with signed saturation

func AVSatAdd64C

func AVSatAdd64C(a int64, b int64) int64

AVSatAdd64C wraps av_sat_add64_c.

Add two signed 64-bit values with saturation.

@param  a one value
@param  b another value
@return sum with signed saturation

func AVSatDadd32C

func AVSatDadd32C(a int, b int) (int, error)

AVSatDadd32C wraps av_sat_dadd32_c.

Add a doubled value to another value with saturation at both stages.

@param  a first value
@param  b value doubled and added to a
@return sum sat(a + sat(2*b)) with signed saturation

func AVSatDsub32C

func AVSatDsub32C(a int, b int) (int, error)

AVSatDsub32C wraps av_sat_dsub32_c.

Subtract a doubled value from another value with saturation at both stages.

@param  a first value
@param  b value doubled and subtracted from a
@return difference sat(a - sat(2*b)) with signed saturation

func AVSatSub32C

func AVSatSub32C(a int, b int) (int, error)

AVSatSub32C wraps av_sat_sub32_c.

Subtract two signed 32-bit values with saturation.

@param  a one value
@param  b another value
@return difference with signed saturation

func AVSatSub64C

func AVSatSub64C(a int64, b int64) int64

AVSatSub64C wraps av_sat_sub64_c.

Subtract two signed 64-bit values with saturation.

@param  a one value
@param  b another value
@return difference with signed saturation

func AVSeekFrame

func AVSeekFrame(s *AVFormatContext, streamIndex int, timestamp int64, flags int) (int, error)

AVSeekFrame wraps av_seek_frame.

Seek to the keyframe at timestamp.
'timestamp' in 'stream_index'.

@param s            media file handle
@param stream_index If stream_index is (-1), a default stream is selected,
                    and timestamp is automatically converted from
                    AV_TIME_BASE units to the stream specific time_base.
@param timestamp    Timestamp in AVStream.time_base units or, if no stream
                    is specified, in AV_TIME_BASE units.
@param flags        flags which select direction and seeking mode

@return >= 0 on success

func AVSetOptionsString

func AVSetOptionsString(ctx unsafe.Pointer, opts *CStr, keyValSep *CStr, pairsSep *CStr) (int, error)

AVSetOptionsString wraps av_set_options_string.

Parse the key/value pairs list in opts. For each key/value pair
found, stores the value in the field in ctx that is named like the
key. ctx must be an AVClass context, storing is done using
AVOptions.

@param opts options string to parse, may be NULL
@param key_val_sep a 0-terminated list of characters used to
separate key from value
@param pairs_sep a 0-terminated list of characters used to separate
two pairs from each other
@return the number of successfully set key/value pairs, or a negative
value corresponding to an AVERROR code in case of error:
AVERROR(EINVAL) if opts cannot be parsed,
the error code issued by av_opt_set() if a key/value pair
cannot be set

func AVSha512Final

func AVSha512Final(context *AVSHA512, digest unsafe.Pointer)

AVSha512Final wraps av_sha512_final.

Finish hashing and output digest value.

@param context hash function context
@param digest  buffer where output digest value is stored

func AVSha512Init

func AVSha512Init(context *AVSHA512, bits int) (int, error)

AVSha512Init wraps av_sha512_init.

Initialize SHA-2 512 hashing.

@param context pointer to the function context (of size av_sha512_size)
@param bits    number of bits in digest (224, 256, 384 or 512 bits)
@return        zero if initialization succeeded, -1 otherwise

func AVSha512Update

func AVSha512Update(context *AVSHA512, data unsafe.Pointer, len uint64)

AVSha512Update wraps av_sha512_update.

Update hash value.

@param context hash function context
@param data    input data to update hash with
@param len     input data length

func AVShaFinal

func AVShaFinal(context *AVSHA, digest unsafe.Pointer)

AVShaFinal wraps av_sha_final.

Finish hashing and output digest value.

@param context hash function context
@param digest  buffer where output digest value is stored

func AVShaInit

func AVShaInit(context *AVSHA, bits int) (int, error)

AVShaInit wraps av_sha_init.

Initialize SHA-1 or SHA-2 hashing.

@param context pointer to the function context (of size av_sha_size)
@param bits    number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)
@return        zero if initialization succeeded, -1 otherwise

func AVShaUpdate

func AVShaUpdate(ctx *AVSHA, data unsafe.Pointer, len uint64)

AVShaUpdate wraps av_sha_update.

Update hash value.

@param ctx     hash function context
@param data    input data to update hash with
@param len     input data length

func AVShrinkPacket

func AVShrinkPacket(pkt *AVPacket, size int)

AVShrinkPacket wraps av_shrink_packet.

Reduce packet size, correctly zeroing padding

@param pkt packet
@param size new size

func AVSphericalFromName

func AVSphericalFromName(name *CStr) (int, error)

AVSphericalFromName wraps av_spherical_from_name.

Get the AVSphericalProjection form a human-readable name.

@param name The input string.

@return The AVSphericalProjection value, or -1 if not found.

func AVStereo3DFromName

func AVStereo3DFromName(name *CStr) (int, error)

AVStereo3DFromName wraps av_stereo3d_from_name.

Get the AVStereo3DType form a human-readable name.

@param name The input string.

@return The AVStereo3DType value, or -1 if not found.

func AVStereo3DPrimaryEyeFromName

func AVStereo3DPrimaryEyeFromName(name *CStr) (int, error)

AVStereo3DPrimaryEyeFromName wraps av_stereo3d_primary_eye_from_name.

Get the AVStereo3DPrimaryEye form a human-readable name.

@param name The input string.

@return The AVStereo3DPrimaryEye value, or -1 if not found.

func AVStereo3DViewFromName

func AVStereo3DViewFromName(name *CStr) (int, error)

AVStereo3DViewFromName wraps av_stereo3d_view_from_name.

Get the AVStereo3DView form a human-readable name.

@param name The input string.

@return The AVStereo3DView value, or -1 if not found.

func AVStrcasecmp

func AVStrcasecmp(a *CStr, b *CStr) (int, error)

AVStrcasecmp wraps av_strcasecmp.

Locale-independent case-insensitive compare.
@note This means only ASCII-range characters are case-insensitive

func AVStrerror

func AVStrerror(errnum int, errbuf *CStr, errbufSize uint64) (int, error)

AVStrerror wraps av_strerror.

Put a description of the AVERROR code errnum in errbuf.
In case of failure the global variable errno is set to indicate the
error. Even in case of failure av_strerror() will print a generic
error message indicating the errnum provided to errbuf.

@param errnum      error code to describe
@param errbuf      buffer to which description is written
@param errbuf_size the size in bytes of errbuf
@return 0 on success, a negative value if a description for errnum
cannot be found

func AVStrlcat

func AVStrlcat(dst *CStr, src *CStr, size uint64) uint64

AVStrlcat wraps av_strlcat.

Append the string src to the string dst, but to a total length of
no more than size - 1 bytes, and null-terminate dst.

This function is similar to BSD strlcat(), but differs when
size <= strlen(dst).

@param dst destination buffer
@param src source string
@param size size of destination buffer
@return the total length of src and dst

@warning since the return value use the length of src and dst, these
absolutely _must_ be a properly 0-terminated strings, otherwise this
will read beyond the end of the buffer and possibly crash.

func AVStrlcpy

func AVStrlcpy(dst *CStr, src *CStr, size uint64) uint64

AVStrlcpy wraps av_strlcpy.

Copy the string src to dst, but no more than size - 1 bytes, and
null-terminate dst.

This function is the same as BSD strlcpy().

@param dst destination buffer
@param src source string
@param size size of destination buffer
@return the length of src

@warning since the return value is the length of src, src absolutely
_must_ be a properly 0-terminated string, otherwise this will read beyond
the end of the buffer and possibly crash.

func AVStrncasecmp

func AVStrncasecmp(a *CStr, b *CStr, n uint64) (int, error)

AVStrncasecmp wraps av_strncasecmp.

Locale-independent case-insensitive compare.
@note This means only ASCII-range characters are case-insensitive

func AVStrnlen

func AVStrnlen(s *CStr, len uint64) uint64

AVStrnlen wraps av_strnlen.

Get the count of continuous non zero chars starting from the beginning.

@param s   the string whose length to count
@param len maximum number of characters to check in the string, that
           is the maximum value which is returned by the function

func AVSubtitleFree

func AVSubtitleFree(sub *AVSubtitle)

AVSubtitleFree wraps avsubtitle_free.

Free all allocated data in the given subtitle struct.

@param sub AVSubtitle to free.

func AVTeaCrypt

func AVTeaCrypt(ctx *AVTEA, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVTeaCrypt wraps av_tea_crypt.

Encrypt or decrypt a buffer using a previously initialized context.

@param ctx an AVTEA context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, if NULL then ECB will be used
@param decrypt 0 for encryption, 1 for decryption

func AVThreadMessageFlush

func AVThreadMessageFlush(mq *AVThreadMessageQueue)

AVThreadMessageFlush wraps av_thread_message_flush.

Flush the message queue

This function is mostly equivalent to reading and free-ing every message
except that it will be done in a single operation (no lock/unlock between
reads).

func AVThreadMessageQueueAlloc

func AVThreadMessageQueueAlloc(mq **AVThreadMessageQueue, nelem uint, elsize uint) (int, error)

AVThreadMessageQueueAlloc wraps av_thread_message_queue_alloc.

Allocate a new message queue.

@param mq      pointer to the message queue
@param nelem   maximum number of elements in the queue
@param elsize  size of each element in the queue
@return  >=0 for success; <0 for error, in particular AVERROR(ENOSYS) if
         lavu was built without thread support

func AVThreadMessageQueueFree

func AVThreadMessageQueueFree(mq **AVThreadMessageQueue)

AVThreadMessageQueueFree wraps av_thread_message_queue_free.

Free a message queue.

The message queue must no longer be in use by another thread.

func AVThreadMessageQueueNbElems

func AVThreadMessageQueueNbElems(mq *AVThreadMessageQueue) (int, error)

AVThreadMessageQueueNbElems wraps av_thread_message_queue_nb_elems.

Return the current number of messages in the queue.

@return the current number of messages or AVERROR(ENOSYS) if lavu was built
        without thread support

func AVThreadMessageQueueRecv

func AVThreadMessageQueueRecv(mq *AVThreadMessageQueue, msg unsafe.Pointer, flags uint) (int, error)

AVThreadMessageQueueRecv wraps av_thread_message_queue_recv.

Receive a message from the queue.

func AVThreadMessageQueueSend

func AVThreadMessageQueueSend(mq *AVThreadMessageQueue, msg unsafe.Pointer, flags uint) (int, error)

AVThreadMessageQueueSend wraps av_thread_message_queue_send.

Send a message on the queue.

func AVThreadMessageQueueSetErrRecv

func AVThreadMessageQueueSetErrRecv(mq *AVThreadMessageQueue, err int)

AVThreadMessageQueueSetErrRecv wraps av_thread_message_queue_set_err_recv.

Set the receiving error code.

If the error code is set to non-zero, av_thread_message_queue_recv() will
return it immediately when there are no longer available messages.
Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used
to cause the receiving thread to stop or suspend its operation.

func AVThreadMessageQueueSetErrSend

func AVThreadMessageQueueSetErrSend(mq *AVThreadMessageQueue, err int)

AVThreadMessageQueueSetErrSend wraps av_thread_message_queue_set_err_send.

Set the sending error code.

If the error code is set to non-zero, av_thread_message_queue_send() will
return it immediately. Conventional values, such as AVERROR_EOF or
AVERROR(EAGAIN), can be used to cause the sending thread to stop or
suspend its operation.

func AVTimecodeAdjustNtscFramenum2

func AVTimecodeAdjustNtscFramenum2(framenum int, fps int) (int, error)

AVTimecodeAdjustNtscFramenum2 wraps av_timecode_adjust_ntsc_framenum2.

Adjust frame number for NTSC drop frame time code.

@param framenum frame number to adjust
@param fps      frame per second, multiples of 30
@return         adjusted frame number
@warning        adjustment is only valid for multiples of NTSC 29.97

func AVTimecodeCheckFrameRate

func AVTimecodeCheckFrameRate(rate *AVRational) (int, error)

AVTimecodeCheckFrameRate wraps av_timecode_check_frame_rate.

Check if the timecode feature is available for the given frame rate

@return 0 if supported, <0 otherwise

func AVTimecodeGetSmpte

func AVTimecodeGetSmpte(rate *AVRational, drop int, hh int, mm int, ss int, ff int) uint32

AVTimecodeGetSmpte wraps av_timecode_get_smpte.

Convert sei info to SMPTE 12M binary representation.

@param rate     frame rate in rational form
@param drop     drop flag
@param hh       hour
@param mm       minute
@param ss       second
@param ff       frame number
@return         the SMPTE binary representation

func AVTimecodeGetSmpteFromFramenum

func AVTimecodeGetSmpteFromFramenum(tc *AVTimecode, framenum int) uint32

AVTimecodeGetSmpteFromFramenum wraps av_timecode_get_smpte_from_framenum.

Convert frame number to SMPTE 12M binary representation.

@param tc       timecode data correctly initialized
@param framenum frame number
@return         the SMPTE binary representation

See SMPTE ST 314M-2005 Sec 4.4.2.2.1 "Time code pack (TC)"
the format description as follows:
bits 0-5:   hours, in BCD(6bits)
bits 6:     BGF1
bits 7:     BGF2 (NTSC) or FIELD (PAL)
bits 8-14:  minutes, in BCD(7bits)
bits 15:    BGF0 (NTSC) or BGF2 (PAL)
bits 16-22: seconds, in BCD(7bits)
bits 23:    FIELD (NTSC) or BGF0 (PAL)
bits 24-29: frames, in BCD(6bits)
bits 30:    drop  frame flag (0: non drop,    1: drop)
bits 31:    color frame flag (0: unsync mode, 1: sync mode)
@note BCD numbers (6 or 7 bits): 4 or 5 lower bits for units, 2 higher bits for tens.
@note Frame number adjustment is automatically done in case of drop timecode,
      you do NOT have to call av_timecode_adjust_ntsc_framenum2().
@note The frame number is relative to tc->start.
@note Color frame (CF) and binary group flags (BGF) bits are set to zero.

func AVTimecodeInit

func AVTimecodeInit(tc *AVTimecode, rate *AVRational, flags int, frameStart int, logCtx unsafe.Pointer) (int, error)

AVTimecodeInit wraps av_timecode_init.

Init a timecode struct with the passed parameters.

@param tc          pointer to an allocated AVTimecode
@param rate        frame rate in rational form
@param flags       miscellaneous flags such as drop frame, +24 hours, ...
                   (see AVTimecodeFlag)
@param frame_start the first frame number
@param log_ctx     a pointer to an arbitrary struct of which the first field
                   is a pointer to an AVClass struct (used for av_log)
@return            0 on success, AVERROR otherwise

func AVTimecodeInitFromComponents

func AVTimecodeInitFromComponents(tc *AVTimecode, rate *AVRational, flags int, hh int, mm int, ss int, ff int, logCtx unsafe.Pointer) (int, error)

AVTimecodeInitFromComponents wraps av_timecode_init_from_components.

Init a timecode struct from the passed timecode components.

@param tc          pointer to an allocated AVTimecode
@param rate        frame rate in rational form
@param flags       miscellaneous flags such as drop frame, +24 hours, ...
                   (see AVTimecodeFlag)
@param hh          hours
@param mm          minutes
@param ss          seconds
@param ff          frames
@param log_ctx     a pointer to an arbitrary struct of which the first field
                   is a pointer to an AVClass struct (used for av_log)
@return            0 on success, AVERROR otherwise

func AVTimecodeInitFromString

func AVTimecodeInitFromString(tc *AVTimecode, rate *AVRational, str *CStr, logCtx unsafe.Pointer) (int, error)

AVTimecodeInitFromString wraps av_timecode_init_from_string.

Parse timecode representation (hh:mm:ss[:;.]ff).

@param tc      pointer to an allocated AVTimecode
@param rate    frame rate in rational form
@param str     timecode string which will determine the frame start
@param log_ctx a pointer to an arbitrary struct of which the first field is a
               pointer to an AVClass struct (used for av_log).
@return        0 on success, AVERROR otherwise

func AVTolower

func AVTolower(c int) (int, error)

AVTolower wraps av_tolower.

Locale-independent conversion of ASCII characters to lowercase.

func AVToupper

func AVToupper(c int) (int, error)

AVToupper wraps av_toupper.

Locale-independent conversion of ASCII characters to uppercase.

func AVTreeDestroy

func AVTreeDestroy(t *AVTreeNode)

AVTreeDestroy wraps av_tree_destroy.

func AVTwofishCrypt

func AVTwofishCrypt(ctx *AVTWOFISH, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVTwofishCrypt wraps av_twofish_crypt.

Encrypt or decrypt a buffer using a previously initialized context

@param ctx an AVTWOFISH context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 16 byte blocks
@param iv initialization vector for CBC mode, NULL for ECB mode
@param decrypt 0 for encryption, 1 for decryption

func AVTwofishInit

func AVTwofishInit(ctx *AVTWOFISH, key unsafe.Pointer, keyBits int) (int, error)

AVTwofishInit wraps av_twofish_init.

Initialize an AVTWOFISH context.

@param ctx an AVTWOFISH context
@param key a key of size ranging from 1 to 32 bytes used for encryption/decryption
@param key_bits number of keybits: 128, 192, 256 If less than the required, padded with zeroes to nearest valid value; return value is 0 if key_bits is 128/192/256, -1 if less than 0, 1 otherwise

func AVTxInit

func AVTxInit(ctx **AVTXContext, tx *AVTxFn, _type AVTXType, inv int, len int, scale unsafe.Pointer, flags uint64) (int, error)

AVTxInit wraps av_tx_init.

Initialize a transform context with the given configuration
(i)MDCTs with an odd length are currently not supported.

@param ctx the context to allocate, will be NULL on error
@param tx pointer to the transform function pointer to set
@param type type the type of transform
@param inv whether to do an inverse or a forward transform
@param len the size of the transform in samples
@param scale pointer to the value to scale the output if supported by type
@param flags a bitmask of AVTXFlags or 0

@return 0 on success, negative error code on failure

func AVTxUninit

func AVTxUninit(ctx **AVTXContext)

AVTxUninit wraps av_tx_uninit.

Frees a context and sets *ctx to NULL, does nothing when *ctx == NULL.

func AVUrlSplit

func AVUrlSplit(proto *CStr, protoSize int, authorization *CStr, authorizationSize int, hostname *CStr, hostnameSize int, portPtr *int, path *CStr, pathSize int, url *CStr)

AVUrlSplit wraps av_url_split.

Split a URL string into components.

The pointers to buffers for storing individual components may be null,
in order to ignore that component. Buffers for components not found are
set to empty strings. If the port is not found, it is set to a negative
value.

@param proto the buffer for the protocol
@param proto_size the size of the proto buffer
@param authorization the buffer for the authorization
@param authorization_size the size of the authorization buffer
@param hostname the buffer for the host name
@param hostname_size the size of the hostname buffer
@param port_ptr a pointer to store the port number in
@param path the buffer for the path
@param path_size the size of the path buffer
@param url the URL to split

func AVUsleep

func AVUsleep(usec uint) (int, error)

AVUsleep wraps av_usleep.

Sleep for a period of time.  Although the duration is expressed in
microseconds, the actual delay may be rounded to the precision of the
system timer.

@param  usec Number of microseconds to sleep.
@return zero on success or (negative) error code.

func AVUtilVersion

func AVUtilVersion() uint

AVUtilVersion wraps avutil_version.

Return the LIBAVUTIL_VERSION_INT constant.

func AVUuidCopy

func AVUuidCopy(dest *AVUUID, src *AVUUID)

AVUuidCopy copies the bytes of src into dest.

@param[out] dest AVUUID
@param[in]  src  AVUUID

func AVUuidEqual

func AVUuidEqual(uu1 *AVUUID, uu2 *AVUUID) (int, error)

AVUuidEqual compares two UUIDs for equality.

@param[in] uu1 AVUUID
@param[in] uu2 AVUUID
@return        Nonzero if uu1 and uu2 are equal, 0 otherwise.

func AVUuidNil

func AVUuidNil(uu *AVUUID)

AVUuidNil sets a UUID to the nil UUID, i.e. a UUID with have all its 128 bits set to zero.

@param[out] uu AVUUID

func AVUuidParse

func AVUuidParse(in *CStr, uu *AVUUID) (int, error)

AVUuidParse parses a string representation of a UUID formatted according to IETF RFC 4122 into an AVUUID. The parsing is case-insensitive. The string must be 37 characters long, including the terminating NUL character.

Example string representation: "2fceebd0-7017-433d-bafb-d073a7116696"

@param[in]  in  String representation of a UUID
@param[out] uu  AVUUID
@return         A non-zero value in case of an error.

func AVUuidParseRange

func AVUuidParseRange(inStart *CStr, inEnd *CStr, uu *AVUUID) (int, error)

AVUuidParseRange parses a string representation of a UUID formatted according to IETF RFC 4122 into an AVUUID. The parsing is case-insensitive.

@param[in]  inStart Pointer to the first character of the string representation
@param[in]  inEnd   Pointer to the character after the last character of the
                    string representation. That memory location is never
                    accessed. It is an error if `inEnd - inStart != 36`.
@param[out] uu      AVUUID
@return             A non-zero value in case of an error.

func AVUuidUnparse

func AVUuidUnparse(uu *AVUUID, out *CStr)

AVUuidUnparse serializes a AVUUID into a string representation according to IETF RFC 4122. The string is lowercase and always 37 characters long, including the terminating NUL character.

@param[in]  uu  AVUUID
@param[out] out Pointer to an array of no less than 37 characters.

func AVUuidUrnParse

func AVUuidUrnParse(in *CStr, uu *AVUUID) (int, error)

AVUuidUrnParse parses a URN representation of a UUID, as specified at IETF RFC 4122, into an AVUUID. The parsing is case-insensitive. The string must be 46 characters long, including the terminating NUL character.

Example string representation: "urn:uuid:2fceebd0-7017-433d-bafb-d073a7116696"

@param[in]  in  URN UUID
@param[out] uu  AVUUID
@return         A non-zero value in case of an error.

func AVWriteFrame

func AVWriteFrame(s *AVFormatContext, pkt *AVPacket) (int, error)

AVWriteFrame wraps av_write_frame.

Write a packet to an output media file.

This function passes the packet directly to the muxer, without any buffering
or reordering. The caller is responsible for correctly interleaving the
packets if the format requires it. Callers that want libavformat to handle
the interleaving should call av_interleaved_write_frame() instead of this
function.

@param s media file handle
@param pkt The packet containing the data to be written. Note that unlike
           av_interleaved_write_frame(), this function does not take
           ownership of the packet passed to it (though some muxers may make
           an internal reference to the input packet).
           <br>
           This parameter can be NULL (at any time, not just at the end), in
           order to immediately flush data buffered within the muxer, for
           muxers that buffer up data internally before writing it to the
           output.
           <br>
           Packet's @ref AVPacket.stream_index "stream_index" field must be
           set to the index of the corresponding stream in @ref
           AVFormatContext.streams "s->streams".
           <br>
           The timestamps (@ref AVPacket.pts "pts", @ref AVPacket.dts "dts")
           must be set to correct values in the stream's timebase (unless the
           output format is flagged with the AVFMT_NOTIMESTAMPS flag, then
           they can be set to AV_NOPTS_VALUE).
           The dts for subsequent packets passed to this function must be strictly
           increasing when compared in their respective timebases (unless the
           output format is flagged with the AVFMT_TS_NONSTRICT, then they
           merely have to be nondecreasing).  @ref AVPacket.duration
           "duration") should also be set if known.
@return < 0 on error, = 0 if OK, 1 if flushed and there is no more data to flush

@see av_interleaved_write_frame()

func AVWriteTrailer

func AVWriteTrailer(s *AVFormatContext) (int, error)

AVWriteTrailer wraps av_write_trailer.

Write the stream trailer to an output media file and free the
file private data.

May only be called after a successful call to avformat_write_header.

@param s media file handle
@return 0 if OK, AVERROR_xxx on error

func AVWriteUncodedFrame

func AVWriteUncodedFrame(s *AVFormatContext, streamIndex int, frame *AVFrame) (int, error)

AVWriteUncodedFrame wraps av_write_uncoded_frame.

Write an uncoded frame to an output media file.

The frame must be correctly interleaved according to the container
specification; if not, av_interleaved_write_uncoded_frame() must be used.

See av_interleaved_write_uncoded_frame() for details.

func AVWriteUncodedFrameQuery

func AVWriteUncodedFrameQuery(s *AVFormatContext, streamIndex int) (int, error)

AVWriteUncodedFrameQuery wraps av_write_uncoded_frame_query.

Test whether a muxer supports uncoded frame.

@return  >=0 if an uncoded frame can be written to that muxer and stream,
         <0 if not

func AVXIfNull

func AVXIfNull(p unsafe.Pointer, x unsafe.Pointer) unsafe.Pointer

AVXIfNull wraps av_x_if_null.

Return x default pointer in case p is NULL.

func AVXiphlacing

func AVXiphlacing(s unsafe.Pointer, v uint) uint

AVXiphlacing wraps av_xiphlacing.

Encode extradata length to a buffer. Used by xiph codecs.

@param s buffer to write to; must be at least (v/255+1) bytes long
@param v size of extradata in bytes
@return number of bytes written to the buffer.

func AVXteaCrypt

func AVXteaCrypt(ctx *AVXTEA, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVXteaCrypt wraps av_xtea_crypt.

Encrypt or decrypt a buffer using a previously initialized context,
in big endian format.

@param ctx an AVXTEA context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, if NULL then ECB will be used
@param decrypt 0 for encryption, 1 for decryption

func AVXteaLeCrypt

func AVXteaLeCrypt(ctx *AVXTEA, dst unsafe.Pointer, src unsafe.Pointer, count int, iv unsafe.Pointer, decrypt int)

AVXteaLeCrypt wraps av_xtea_le_crypt.

Encrypt or decrypt a buffer using a previously initialized context,
in little endian format.

@param ctx an AVXTEA context
@param dst destination array, can be equal to src
@param src source array, can be equal to dst
@param count number of 8 byte blocks
@param iv initialization vector for CBC mode, if NULL then ECB will be used
@param decrypt 0 for encryption, 1 for decryption

func AVZeroExtendC

func AVZeroExtendC(a uint, p uint) uint

AVZeroExtendC wraps av_zero_extend_c.

Clear high bits from an unsigned integer starting with specific bit position
@param  a value to clip
@param  p bit position to clip at. Must be between 0 and 31.
@return clipped value

func FFIOWFourCC

func FFIOWFourCC(s *AVIOContext, a uint8, b uint8, c uint8, d uint8)

func SwrAllocSetOpts2

func SwrAllocSetOpts2(ps **SwrContext, outChLayout *AVChannelLayout, outSampleFmt AVSampleFormat, outSampleRate int, inChLayout *AVChannelLayout, inSampleFmt AVSampleFormat, inSampleRate int, logOffset int, logCtx unsafe.Pointer) (int, error)

SwrAllocSetOpts2 wraps swr_alloc_set_opts2.

Allocate SwrContext if needed and set/reset common parameters.

This function does not require *ps to be allocated with swr_alloc(). On the
other hand, swr_alloc() can use swr_alloc_set_opts2() to set the parameters
on the allocated context.

@param ps              Pointer to an existing Swr context if available, or to NULL if not.
                       On success, *ps will be set to the allocated context.
@param out_ch_layout   output channel layout (e.g. AV_CHANNEL_LAYOUT_*)
@param out_sample_fmt  output sample format (AV_SAMPLE_FMT_*).
@param out_sample_rate output sample rate (frequency in Hz)
@param in_ch_layout    input channel layout (e.g. AV_CHANNEL_LAYOUT_*)
@param in_sample_fmt   input sample format (AV_SAMPLE_FMT_*).
@param in_sample_rate  input sample rate (frequency in Hz)
@param log_offset      logging level offset
@param log_ctx         parent logging context, can be NULL

@see swr_init(), swr_free()
@return 0 on success, a negative AVERROR code on error.
        On error, the Swr context is freed and *ps set to NULL.

func SwrClose

func SwrClose(s *SwrContext)

SwrClose wraps swr_close.

Closes the context so that swr_is_initialized() returns 0.

The context can be brought back to life by running swr_init(),
swr_init() can also be used without swr_close().
This function is mainly provided for simplifying the usecase
where one tries to support libavresample and libswresample.

@param[in,out] s Swr context to be closed

func SwrConfigFrame

func SwrConfigFrame(swr *SwrContext, out *AVFrame, in *AVFrame) (int, error)

SwrConfigFrame wraps swr_config_frame.

Configure or reconfigure the SwrContext using the information
provided by the AVFrames.

The original resampling context is reset even on failure.
The function calls swr_close() internally if the context is open.

@see swr_close();

@param swr             audio resample context
@param out             output AVFrame
@param in              input AVFrame
@return                0 on success, AVERROR on failure.

func SwrConvertFrame

func SwrConvertFrame(swr *SwrContext, output *AVFrame, input *AVFrame) (int, error)

SwrConvertFrame wraps swr_convert_frame.

Convert the samples in the input AVFrame and write them to the output AVFrame.

Input and output AVFrames must have channel_layout, sample_rate and format set.

If the output AVFrame does not have the data pointers allocated the nb_samples
field will be set using av_frame_get_buffer()
is called to allocate the frame.

The output AVFrame can be NULL or have fewer allocated samples than required.
In this case, any remaining samples not written to the output will be added
to an internal FIFO buffer, to be returned at the next call to this function
or to swr_convert().

If converting sample rate, there may be data remaining in the internal
resampling delay buffer. swr_get_delay() tells the number of
remaining samples. To get this data as output, call this function or
swr_convert() with NULL input.

If the SwrContext configuration does not match the output and
input AVFrame settings the conversion does not take place and depending on
which AVFrame is not matching AVERROR_OUTPUT_CHANGED, AVERROR_INPUT_CHANGED
or the result of a bitwise-OR of them is returned.

@see swr_delay()
@see swr_convert()
@see swr_get_delay()

@param swr             audio resample context
@param output          output AVFrame
@param input           input AVFrame
@return                0 on success, AVERROR on failure or nonmatching
                       configuration.

func SwrDropOutput

func SwrDropOutput(s *SwrContext, count int) (int, error)

SwrDropOutput wraps swr_drop_output.

Drops the specified number of output samples.

This function, along with swr_inject_silence(), is called by swr_next_pts()
if needed for "hard" compensation.

@param s     allocated Swr context
@param count number of samples to be dropped

@return >= 0 on success, or a negative AVERROR code on failure

func SwrFree

func SwrFree(s **SwrContext)

SwrFree wraps swr_free.

Free the given SwrContext and set the pointer to NULL.

@param[in] s a pointer to a pointer to Swr context

func SwrGetDelay

func SwrGetDelay(s *SwrContext, base int64) int64

SwrGetDelay wraps swr_get_delay.

Gets the delay the next input sample will experience relative to the next output sample.

Swresample can buffer data if more input has been provided than available
output space, also converting between sample rates needs a delay.
This function returns the sum of all such delays.
The exact delay is not necessarily an integer value in either input or
output sample rate. Especially when downsampling by a large value, the
output sample rate may be a poor choice to represent the delay, similarly
for upsampling and the input sample rate.

@param s     swr context
@param base  timebase in which the returned delay will be:
             @li if it's set to 1 the returned delay is in seconds
             @li if it's set to 1000 the returned delay is in milliseconds
             @li if it's set to the input sample rate then the returned
                 delay is in input samples
             @li if it's set to the output sample rate then the returned
                 delay is in output samples
             @li if it's the least common multiple of in_sample_rate and
                 out_sample_rate then an exact rounding-free delay will be
                 returned
@returns     the delay in 1 / @c base units.

func SwrGetOutSamples

func SwrGetOutSamples(s *SwrContext, inSamples int) (int, error)

SwrGetOutSamples wraps swr_get_out_samples.

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. This
depends on the internal state, and anything changing the internal state
(like further swr_convert() calls) will may change the number of samples
swr_get_out_samples() returns for the same number of input samples.

@param in_samples    number of input samples.
@note any call to swr_inject_silence(), swr_convert(), swr_next_pts()
      or swr_set_compensation() invalidates this limit
@note it is recommended to pass the correct available buffer size
      to all functions like swr_convert() even if swr_get_out_samples()
      indicates that less would be used.
@returns an upper bound on the number of samples that the next swr_convert
         will output or a negative value to indicate an error

func SwrInit

func SwrInit(s *SwrContext) (int, error)

SwrInit wraps swr_init.

Initialize context after user parameters have been set.
@note The context must be configured using the AVOption API.

@see av_opt_set_int()
@see av_opt_set_dict()

@param[in,out]   s Swr context to initialize
@return AVERROR error code in case of failure.

func SwrInjectSilence

func SwrInjectSilence(s *SwrContext, count int) (int, error)

SwrInjectSilence wraps swr_inject_silence.

Injects the specified number of silence samples.

This function, along with swr_drop_output(), is called by swr_next_pts()
if needed for "hard" compensation.

@param s     allocated Swr context
@param count number of samples to be dropped

@return >= 0 on success, or a negative AVERROR code on failure

func SwrIsInitialized

func SwrIsInitialized(s *SwrContext) (int, error)

SwrIsInitialized wraps swr_is_initialized.

Check whether an swr context has been initialized or not.

@param[in]       s Swr context to check
@see swr_init()
@return positive if it has been initialized, 0 if not initialized

func SwrNextPts

func SwrNextPts(s *SwrContext, pts int64) int64

SwrNextPts wraps swr_next_pts.

Convert the next timestamp from input to output
timestamps are in 1/(in_sample_rate * out_sample_rate) units.

@note There are 2 slightly differently behaving modes.
      @li When automatic timestamp compensation is not used, (min_compensation >= FLT_MAX)
             in this case timestamps will be passed through with delays compensated
      @li When automatic timestamp compensation is used, (min_compensation < FLT_MAX)
             in this case the output timestamps will match output sample numbers.
             See ffmpeg-resampler(1) for the two modes of compensation.

@param[in] s     initialized Swr context
@param[in] pts   timestamp for the next input sample, INT64_MIN if unknown
@see swr_set_compensation(), swr_drop_output(), and swr_inject_silence() are
     function used internally for timestamp compensation.
@return the output timestamp for the next output sample

func SwrSetChannelMapping

func SwrSetChannelMapping(s *SwrContext, channelMap *int) (int, error)

SwrSetChannelMapping wraps swr_set_channel_mapping.

Set a customized input channel mapping.

@param[in,out] s           allocated Swr context, not yet initialized
@param[in]     channel_map customized input channel mapping (array of channel
                           indexes, -1 for a muted channel)
@return >= 0 on success, or AVERROR error code in case of failure.

func SwrSetCompensation

func SwrSetCompensation(s *SwrContext, sampleDelta int, compensationDistance int) (int, error)

SwrSetCompensation wraps swr_set_compensation.

Activate resampling compensation ("soft" compensation). This function is
internally called when needed in swr_next_pts().

@param[in,out] s             allocated Swr context. If it is not initialized,
                             or SWR_FLAG_RESAMPLE is not set, swr_init() is
                             called with the flag set.
@param[in]     sample_delta  delta in PTS per sample
@param[in]     compensation_distance number of samples to compensate for
@return    >= 0 on success, AVERROR error codes if:
           @li @c s is NULL,
           @li @c compensation_distance is less than 0,
           @li @c compensation_distance is 0 but sample_delta is not,
           @li compensation unsupported by resampler, or
           @li swr_init() fails when called.

func SwresampleVersion

func SwresampleVersion() uint

SwresampleVersion wraps swresample_version.

Return the @ref LIBSWRESAMPLE_VERSION_INT constant.

This is useful to check if the build-time libswresample has the same version
as the run-time one.

@returns     the unsigned int-typed version

func SwsConvertpalette8Topacked24

func SwsConvertpalette8Topacked24(src unsafe.Pointer, dst unsafe.Pointer, numPixels int, palette unsafe.Pointer)

SwsConvertpalette8Topacked24 wraps sws_convertPalette8ToPacked24.

Convert an 8-bit paletted frame into a frame with a color depth of 24 bits.

With the palette format "ABCD", the destination frame ends up with the format "ABC".

@param src        source frame buffer
@param dst        destination frame buffer
@param num_pixels number of pixels to convert
@param palette    array with [256] entries, which must match color arrangement (RGB or BGR) of src

func SwsConvertpalette8Topacked32

func SwsConvertpalette8Topacked32(src unsafe.Pointer, dst unsafe.Pointer, numPixels int, palette unsafe.Pointer)

SwsConvertpalette8Topacked32 wraps sws_convertPalette8ToPacked32.

Convert an 8-bit paletted frame into a frame with a color depth of 32 bits.

The output frame will have the same packed format as the palette.

@param src        source frame buffer
@param dst        destination frame buffer
@param num_pixels number of pixels to convert
@param palette    array with [256] entries, which must match color arrangement (RGB or BGR) of src

func SwsFrameEnd

func SwsFrameEnd(c *SwsContext)

SwsFrameEnd wraps sws_frame_end.

Finish the scaling process for a pair of source/destination frames previously
submitted with sws_frame_start(). Must be called after all sws_send_slice()
and sws_receive_slice() calls are done, before any new sws_frame_start()
calls.

@param c   The scaling context

func SwsFrameSetup

func SwsFrameSetup(ctx *SwsContext, dst *AVFrame, src *AVFrame) (int, error)

SwsFrameSetup wraps sws_frame_setup.

Like `sws_scale_frame`, but without actually scaling. It will instead
merely initialize internal state that *would* be required to perform the
operation, as well as returning the correct error code for unsupported
frame combinations.

@param ctx   The scaling context.
@param dst   The destination frame to consider.
@param src   The source frame to consider.
@return 0 on success, a negative AVERROR code on failure.

func SwsFrameStart

func SwsFrameStart(c *SwsContext, dst *AVFrame, src *AVFrame) (int, error)

SwsFrameStart wraps sws_frame_start.

Initialize the scaling process for a given pair of source/destination frames.
Must be called before any calls to sws_send_slice() and sws_receive_slice().
Requires a context that has been previously been initialized with
sws_init_context().

This function will retain references to src and dst, so they must both use
refcounted buffers (if allocated by the caller, in case of dst).

@param c   The scaling context
@param dst The destination frame.

           The data buffers may either be already allocated by the caller or
           left clear, in which case they will be allocated by the scaler.
           The latter may have performance advantages - e.g. in certain cases
           some output planes may be references to input planes, rather than
           copies.

           Output data will be written into this frame in successful
           sws_receive_slice() calls.
@param src The source frame. The data buffers must be allocated, but the
           frame data does not have to be ready at this point. Data
           availability is then signalled by sws_send_slice().
@return 0 on success, a negative AVERROR code on failure

@see sws_frame_end()

func SwsFreeContext

func SwsFreeContext(ctx **SwsContext)

SwsFreeContext wraps sws_free_context.

Free the context and everything associated with it, and write NULL
to the provided pointer.

func SwsFreecontext

func SwsFreecontext(swsContext *SwsContext)

SwsFreecontext wraps sws_freeContext.

Free the swscaler context swsContext.
If swsContext is NULL, then does nothing.

func SwsFreefilter

func SwsFreefilter(filter *SwsFilter)

SwsFreefilter wraps sws_freeFilter.

func SwsFreevec

func SwsFreevec(a *SwsVector)

SwsFreevec wraps sws_freeVec.

func SwsGetcoefficients

func SwsGetcoefficients(colorspace int) *int

SwsGetcoefficients wraps sws_getCoefficients.

Return a pointer to yuv<->rgb coefficients for the given colorspace
suitable for sws_setColorspaceDetails().

@param colorspace One of the SWS_CS_* macros. If invalid,
SWS_CS_DEFAULT is used.

func SwsInitContext

func SwsInitContext(swsContext *SwsContext, srcFilter *SwsFilter, dstFilter *SwsFilter) (int, error)

SwsInitContext wraps sws_init_context.

Initialize the swscaler context sws_context.

This function is considered deprecated, and provided only for backwards
compatibility with sws_scale() and sws_start_frame(). The preferred way to
use libswscale is to set all frame properties correctly and call
sws_scale_frame() directly, without explicitly initializing the context.

@return zero or positive value on success, a negative value on
error

func SwsIsNoop

func SwsIsNoop(dst *AVFrame, src *AVFrame) (int, error)

SwsIsNoop wraps sws_is_noop.

Check if a given conversion is a noop. Returns a positive integer if
no operation needs to be performed, 0 otherwise.

func SwsIssupportedendiannessconversion

func SwsIssupportedendiannessconversion(pixFmt AVPixelFormat) (int, error)

SwsIssupportedendiannessconversion wraps sws_isSupportedEndiannessConversion.

@param[in]  pix_fmt the pixel format
@return a positive value if an endianness conversion for pix_fmt is
supported, 0 otherwise.

func SwsIssupportedinput

func SwsIssupportedinput(pixFmt AVPixelFormat) (int, error)

SwsIssupportedinput wraps sws_isSupportedInput.

Return a positive value if pix_fmt is a supported input format, 0
otherwise.

func SwsIssupportedoutput

func SwsIssupportedoutput(pixFmt AVPixelFormat) (int, error)

SwsIssupportedoutput wraps sws_isSupportedOutput.

Return a positive value if pix_fmt is a supported output format, 0
otherwise.

func SwsNormalizevec

func SwsNormalizevec(a *SwsVector, height float64)

SwsNormalizevec wraps sws_normalizeVec.

Scale all the coefficients of a so that their sum equals height.

func SwsReceiveSlice

func SwsReceiveSlice(c *SwsContext, sliceStart uint, sliceHeight uint) (int, error)

SwsReceiveSlice wraps sws_receive_slice.

Request a horizontal slice of the output data to be written into the frame
previously provided to sws_frame_start().

@param c   The scaling context
@param slice_start first row of the slice; must be a multiple of
                   sws_receive_slice_alignment()
@param slice_height number of rows in the slice; must be a multiple of
                    sws_receive_slice_alignment(), except for the last slice
                    (i.e. when slice_start+slice_height is equal to output
                    frame height)

@return a non-negative number if the data was successfully written into the output
        AVERROR(EAGAIN) if more input data needs to be provided before the
                        output can be produced
        another negative AVERROR code on other kinds of scaling failure

func SwsReceiveSliceAlignment

func SwsReceiveSliceAlignment(c *SwsContext) uint

SwsReceiveSliceAlignment wraps sws_receive_slice_alignment.

Get the alignment required for slices. Requires a context that has been
previously been initialized with sws_init_context().

@param c   The scaling context
@return alignment required for output slices requested with sws_receive_slice().
        Slice offsets and sizes passed to sws_receive_slice() must be
        multiples of the value returned from this function.

func SwsScaleFrame

func SwsScaleFrame(c *SwsContext, dst *AVFrame, src *AVFrame) (int, error)

SwsScaleFrame wraps sws_scale_frame.

Scale source data from `src` and write the output to `dst`.

This function can be used directly on an allocated context, without setting
up any frame properties or calling `sws_init_context()`. Such usage is fully
dynamic and does not require reallocation if the frame properties change.

Alternatively, this function can be called on a context that has been
explicitly initialized. However, this is provided only for backwards
compatibility. In this usage mode, all frame properties must be correctly
set at init time, and may no longer change after initialization.

@param ctx   The scaling context.
@param dst   The destination frame. The data buffers may either be already
             allocated by the caller or left clear, in which case they will
             be allocated by the scaler. The latter may have performance
             advantages - e.g. in certain cases some (or all) output planes
             may be references to input planes, rather than copies.
@param src   The source frame. If the data buffers are set to NULL, then
             this function behaves identically to `sws_frame_setup`.
@return >= 0 on success, a negative AVERROR code on failure.

func SwsScalevec

func SwsScalevec(a *SwsVector, scalar float64)

SwsScalevec wraps sws_scaleVec.

Scale all the coefficients of a by the scalar value.

func SwsSendSlice

func SwsSendSlice(c *SwsContext, sliceStart uint, sliceHeight uint) (int, error)

SwsSendSlice wraps sws_send_slice.

Indicate that a horizontal slice of input data is available in the source
frame previously provided to sws_frame_start(). The slices may be provided in
any order, but may not overlap. For vertically subsampled pixel formats, the
slices must be aligned according to subsampling.

@param c   The scaling context
@param slice_start first row of the slice
@param slice_height number of rows in the slice

@return a non-negative number on success, a negative AVERROR code on failure.

func SwsTestColorspace

func SwsTestColorspace(colorspace AVColorSpace, output int) (int, error)

SwsTestColorspace wraps sws_test_colorspace.

Test if a given color space is supported.

@param output  If 0, test if compatible with the source/input frame;
               otherwise, with the destination/output frame.
@param colorspace The colorspace to check.

@return A positive integer if supported, 0 otherwise.

func SwsTestFormat

func SwsTestFormat(format AVPixelFormat, output int) (int, error)

SwsTestFormat wraps sws_test_format.

Test if a given pixel format is supported.

@param output  If 0, test if compatible with the source/input frame;
               otherwise, with the destination/output frame.
@param format  The format to check.

@return A positive integer if supported, 0 otherwise.

func SwsTestFrame

func SwsTestFrame(frame *AVFrame, output int) (int, error)

SwsTestFrame wraps sws_test_frame.

Helper function to run all sws_test_* against a frame, as well as testing
the basic frame properties for sanity. Ignores irrelevant properties - for
example, AVColorSpace is not checked for RGB frames.

func SwsTestPrimaries

func SwsTestPrimaries(primaries AVColorPrimaries, output int) (int, error)

SwsTestPrimaries wraps sws_test_primaries.

Test if a given set of color primaries is supported.

@param output  If 0, test if compatible with the source/input frame;
               otherwise, with the destination/output frame.
@param primaries The color primaries to check.

@return A positive integer if supported, 0 otherwise.

func SwsTestTransfer

func SwsTestTransfer(trc AVColorTransferCharacteristic, output int) (int, error)

SwsTestTransfer wraps sws_test_transfer.

Test if a given color transfer function is supported.

@param output  If 0, test if compatible with the source/input frame;
               otherwise, with the destination/output frame.
@param trc     The color transfer function to check.

@return A positive integer if supported, 0 otherwise.

func SwscaleVersion

func SwscaleVersion() uint

SwscaleVersion wraps swscale_version.

Return the LIBSWSCALE_VERSION_INT constant.

func WrapErr

func WrapErr(code int) error

WrapErr returns a AVError if the code is less than zero, otherwise nil.

Types

type AV3DReferenceDisplay

type AV3DReferenceDisplay struct {
	// contains filtered or unexported fields
}

AV3DReferenceDisplay wraps AV3DReferenceDisplay.

Data structure for single deference display information.
It is allocated as a part of AV3DReferenceDisplaysInfo and should be retrieved with
av_tdrdi_get_display().

sizeof(AV3DReferenceDisplay) is not a part of the ABI and new fields may be
added to it.

func AVTdrdiGetDisplay

func AVTdrdiGetDisplay(tdrdi *AV3DReferenceDisplaysInfo, idx uint) *AV3DReferenceDisplay

AVTdrdiGetDisplay wraps av_tdrdi_get_display.

func (*AV3DReferenceDisplay) AdditionalShiftPresentFlag

func (s *AV3DReferenceDisplay) AdditionalShiftPresentFlag() uint8

AdditionalShiftPresentFlag gets the additional_shift_present_flag field.

An array of flags to indicates that the information about additional horizontal shift of
the left and right views for the n-th reference display is present.

func (*AV3DReferenceDisplay) ExponentRefDisplayWidth

func (s *AV3DReferenceDisplay) ExponentRefDisplayWidth() uint8

ExponentRefDisplayWidth gets the exponent_ref_display_width field.

The exponent part of the reference display width of the n-th reference display.

func (*AV3DReferenceDisplay) ExponentRefViewingDistance

func (s *AV3DReferenceDisplay) ExponentRefViewingDistance() uint8

ExponentRefViewingDistance gets the exponent_ref_viewing_distance field.

The exponent part of the reference viewing distance of the n-th reference display.

func (*AV3DReferenceDisplay) LeftViewId

func (s *AV3DReferenceDisplay) LeftViewId() uint16

LeftViewId gets the left_view_id field.

The ViewId of the left view of a stereo pair corresponding to the n-th reference display.

func (*AV3DReferenceDisplay) MantissaRefDisplayWidth

func (s *AV3DReferenceDisplay) MantissaRefDisplayWidth() uint8

MantissaRefDisplayWidth gets the mantissa_ref_display_width field.

The mantissa part of the reference display width of the n-th reference display.

func (*AV3DReferenceDisplay) MantissaRefViewingDistance

func (s *AV3DReferenceDisplay) MantissaRefViewingDistance() uint8

MantissaRefViewingDistance gets the mantissa_ref_viewing_distance field.

The mantissa part of the reference viewing distance of the n-th reference display.

func (*AV3DReferenceDisplay) NumSampleShift

func (s *AV3DReferenceDisplay) NumSampleShift() int16

NumSampleShift gets the num_sample_shift field.

The recommended additional horizontal shift for a stereo pair corresponding to the n-th
reference baseline and the n-th reference display.

func (*AV3DReferenceDisplay) RawPtr

func (s *AV3DReferenceDisplay) RawPtr() unsafe.Pointer

func (*AV3DReferenceDisplay) RightViewId

func (s *AV3DReferenceDisplay) RightViewId() uint16

RightViewId gets the right_view_id field.

The ViewId of the left view of a stereo pair corresponding to the n-th reference display.

func (*AV3DReferenceDisplay) SetAdditionalShiftPresentFlag

func (s *AV3DReferenceDisplay) SetAdditionalShiftPresentFlag(value uint8)

SetAdditionalShiftPresentFlag sets the additional_shift_present_flag field.

An array of flags to indicates that the information about additional horizontal shift of
the left and right views for the n-th reference display is present.

func (*AV3DReferenceDisplay) SetExponentRefDisplayWidth

func (s *AV3DReferenceDisplay) SetExponentRefDisplayWidth(value uint8)

SetExponentRefDisplayWidth sets the exponent_ref_display_width field.

The exponent part of the reference display width of the n-th reference display.

func (*AV3DReferenceDisplay) SetExponentRefViewingDistance

func (s *AV3DReferenceDisplay) SetExponentRefViewingDistance(value uint8)

SetExponentRefViewingDistance sets the exponent_ref_viewing_distance field.

The exponent part of the reference viewing distance of the n-th reference display.

func (*AV3DReferenceDisplay) SetLeftViewId

func (s *AV3DReferenceDisplay) SetLeftViewId(value uint16)

SetLeftViewId sets the left_view_id field.

The ViewId of the left view of a stereo pair corresponding to the n-th reference display.

func (*AV3DReferenceDisplay) SetMantissaRefDisplayWidth

func (s *AV3DReferenceDisplay) SetMantissaRefDisplayWidth(value uint8)

SetMantissaRefDisplayWidth sets the mantissa_ref_display_width field.

The mantissa part of the reference display width of the n-th reference display.

func (*AV3DReferenceDisplay) SetMantissaRefViewingDistance

func (s *AV3DReferenceDisplay) SetMantissaRefViewingDistance(value uint8)

SetMantissaRefViewingDistance sets the mantissa_ref_viewing_distance field.

The mantissa part of the reference viewing distance of the n-th reference display.

func (*AV3DReferenceDisplay) SetNumSampleShift

func (s *AV3DReferenceDisplay) SetNumSampleShift(value int16)

SetNumSampleShift sets the num_sample_shift field.

The recommended additional horizontal shift for a stereo pair corresponding to the n-th
reference baseline and the n-th reference display.

func (*AV3DReferenceDisplay) SetRightViewId

func (s *AV3DReferenceDisplay) SetRightViewId(value uint16)

SetRightViewId sets the right_view_id field.

The ViewId of the left view of a stereo pair corresponding to the n-th reference display.

type AV3DReferenceDisplaysInfo

type AV3DReferenceDisplaysInfo struct {
	// contains filtered or unexported fields
}

AV3DReferenceDisplaysInfo wraps AV3DReferenceDisplaysInfo.

This structure describes information about the reference display width(s) and reference
viewing distance(s) as well as information about the corresponding reference stereo pair(s).
See section G.14.3.2.3 of ITU-T H.265 for more information.

@note The struct must be allocated with av_tdrdi_alloc() and
      its size is not a part of the public ABI.

func AVTdrdiAlloc

func AVTdrdiAlloc(nbDisplays uint, size *uint64) *AV3DReferenceDisplaysInfo

AVTdrdiAlloc wraps av_tdrdi_alloc.

Allocate a AV3DReferenceDisplaysInfo structure and initialize its fields to default
values.

@return the newly allocated struct or NULL on failure

func (*AV3DReferenceDisplaysInfo) EntriesOffset

func (s *AV3DReferenceDisplaysInfo) EntriesOffset() uint64

EntriesOffset gets the entries_offset field.

Offset in bytes from the beginning of this structure at which the array
of reference displays starts.

func (*AV3DReferenceDisplaysInfo) EntrySize

func (s *AV3DReferenceDisplaysInfo) EntrySize() uint64

EntrySize gets the entry_size field.

Size of each entry in bytes. May not match sizeof(AV3DReferenceDisplay).

func (*AV3DReferenceDisplaysInfo) NumRefDisplays

func (s *AV3DReferenceDisplaysInfo) NumRefDisplays() uint8

NumRefDisplays gets the num_ref_displays field.

The number of reference displays that are signalled in this struct.
Allowed range is 1 to 32, inclusive.

func (*AV3DReferenceDisplaysInfo) PrecRefDisplayWidth

func (s *AV3DReferenceDisplaysInfo) PrecRefDisplayWidth() uint8

PrecRefDisplayWidth gets the prec_ref_display_width field.

The exponent of the maximum allowable truncation error for
{exponent,mantissa}_ref_display_width as given by 2<sup>(-prec_ref_display_width)</sup>.

func (*AV3DReferenceDisplaysInfo) PrecRefViewingDist

func (s *AV3DReferenceDisplaysInfo) PrecRefViewingDist() uint8

PrecRefViewingDist gets the prec_ref_viewing_dist field.

The exponent of the maximum allowable truncation error for
{exponent,mantissa}_ref_viewing_distance as given by 2<sup>^(-prec_ref_viewing_dist)</sup>.
The value of prec_ref_viewing_dist shall be in the range of 0 to 31, inclusive.

func (*AV3DReferenceDisplaysInfo) RawPtr

func (*AV3DReferenceDisplaysInfo) RefViewingDistanceFlag

func (s *AV3DReferenceDisplaysInfo) RefViewingDistanceFlag() uint8

RefViewingDistanceFlag gets the ref_viewing_distance_flag field.

A flag to indicate the presence of reference viewing distance.
If false, the values of prec_ref_viewing_dist, exponent_ref_viewing_distance,
and mantissa_ref_viewing_distance are undefined.

func (*AV3DReferenceDisplaysInfo) SetEntriesOffset

func (s *AV3DReferenceDisplaysInfo) SetEntriesOffset(value uint64)

SetEntriesOffset sets the entries_offset field.

Offset in bytes from the beginning of this structure at which the array
of reference displays starts.

func (*AV3DReferenceDisplaysInfo) SetEntrySize

func (s *AV3DReferenceDisplaysInfo) SetEntrySize(value uint64)

SetEntrySize sets the entry_size field.

Size of each entry in bytes. May not match sizeof(AV3DReferenceDisplay).

func (*AV3DReferenceDisplaysInfo) SetNumRefDisplays

func (s *AV3DReferenceDisplaysInfo) SetNumRefDisplays(value uint8)

SetNumRefDisplays sets the num_ref_displays field.

The number of reference displays that are signalled in this struct.
Allowed range is 1 to 32, inclusive.

func (*AV3DReferenceDisplaysInfo) SetPrecRefDisplayWidth

func (s *AV3DReferenceDisplaysInfo) SetPrecRefDisplayWidth(value uint8)

SetPrecRefDisplayWidth sets the prec_ref_display_width field.

The exponent of the maximum allowable truncation error for
{exponent,mantissa}_ref_display_width as given by 2<sup>(-prec_ref_display_width)</sup>.

func (*AV3DReferenceDisplaysInfo) SetPrecRefViewingDist

func (s *AV3DReferenceDisplaysInfo) SetPrecRefViewingDist(value uint8)

SetPrecRefViewingDist sets the prec_ref_viewing_dist field.

The exponent of the maximum allowable truncation error for
{exponent,mantissa}_ref_viewing_distance as given by 2<sup>^(-prec_ref_viewing_dist)</sup>.
The value of prec_ref_viewing_dist shall be in the range of 0 to 31, inclusive.

func (*AV3DReferenceDisplaysInfo) SetRefViewingDistanceFlag

func (s *AV3DReferenceDisplaysInfo) SetRefViewingDistanceFlag(value uint8)

SetRefViewingDistanceFlag sets the ref_viewing_distance_flag field.

A flag to indicate the presence of reference viewing distance.
If false, the values of prec_ref_viewing_dist, exponent_ref_viewing_distance,
and mantissa_ref_viewing_distance are undefined.

type AVAES

type AVAES struct {
	// contains filtered or unexported fields
}

AVAES wraps AVAES.

func AVAesAlloc

func AVAesAlloc() *AVAES

AVAesAlloc wraps av_aes_alloc.

Allocate an AVAES context.

func (*AVAES) RawPtr

func (s *AVAES) RawPtr() unsafe.Pointer

type AVAESCTR

type AVAESCTR struct {
	// contains filtered or unexported fields
}

AVAESCTR wraps AVAESCTR.

func AVAesCtrAlloc

func AVAesCtrAlloc() *AVAESCTR

AVAesCtrAlloc wraps av_aes_ctr_alloc.

Allocate an AVAESCTR context.

func (*AVAESCTR) RawPtr

func (s *AVAESCTR) RawPtr() unsafe.Pointer

type AVActiveFormatDescription

type AVActiveFormatDescription C.enum_AVActiveFormatDescription

AVActiveFormatDescription wraps AVActiveFormatDescription.

const (
	// AVAfdSame wraps AV_AFD_SAME.
	AVAfdSame AVActiveFormatDescription = C.AV_AFD_SAME
	// AVAfd43 wraps AV_AFD_4_3.
	AVAfd43 AVActiveFormatDescription = C.AV_AFD_4_3
	// AVAfd169 wraps AV_AFD_16_9.
	AVAfd169 AVActiveFormatDescription = C.AV_AFD_16_9
	// AVAfd149 wraps AV_AFD_14_9.
	AVAfd149 AVActiveFormatDescription = C.AV_AFD_14_9
	// AVAfd43Sp149 wraps AV_AFD_4_3_SP_14_9.
	AVAfd43Sp149 AVActiveFormatDescription = C.AV_AFD_4_3_SP_14_9
	// AVAfd169Sp149 wraps AV_AFD_16_9_SP_14_9.
	AVAfd169Sp149 AVActiveFormatDescription = C.AV_AFD_16_9_SP_14_9
	// AVAfdSp43 wraps AV_AFD_SP_4_3.
	AVAfdSp43 AVActiveFormatDescription = C.AV_AFD_SP_4_3
)

type AVAdler

type AVAdler = uint32

AVAdler is a typedef alias for uint32_t in FFmpeg. This represents an Adler-32 checksum value.

func AVAdler32Update

func AVAdler32Update(adler AVAdler, buf unsafe.Pointer, len uint64) AVAdler

AVAdler32Update wraps av_adler32_update.

Calculate the Adler32 checksum of a buffer.

Passing the return value to a subsequent av_adler32_update() call
allows the checksum of multiple buffers to be calculated as though
they were concatenated.

@param adler initial checksum value
@param buf   pointer to input buffer
@param len   size of input buffer
@return      updated checksum

type AVAmbientViewingEnvironment

type AVAmbientViewingEnvironment struct {
	// contains filtered or unexported fields
}

AVAmbientViewingEnvironment wraps AVAmbientViewingEnvironment.

Ambient viewing environment metadata as defined by H.274. The values are
saved in AVRationals so that they keep their exactness, while allowing for
easy access to a double value with f.ex. av_q2d.

@note sizeof(AVAmbientViewingEnvironment) is not part of the public ABI, and
      it must be allocated using av_ambient_viewing_environment_alloc.

func AVAmbientViewingEnvironmentAlloc

func AVAmbientViewingEnvironmentAlloc(size *uint64) *AVAmbientViewingEnvironment

AVAmbientViewingEnvironmentAlloc wraps av_ambient_viewing_environment_alloc.

Allocate an AVAmbientViewingEnvironment structure.

@return the newly allocated struct or NULL on failure

func AVAmbientViewingEnvironmentCreateSideData

func AVAmbientViewingEnvironmentCreateSideData(frame *AVFrame) *AVAmbientViewingEnvironment

AVAmbientViewingEnvironmentCreateSideData wraps av_ambient_viewing_environment_create_side_data.

Allocate and add an AVAmbientViewingEnvironment structure to an existing
AVFrame as side data.

@return the newly allocated struct, or NULL on failure

func (*AVAmbientViewingEnvironment) AmbientIlluminance

func (s *AVAmbientViewingEnvironment) AmbientIlluminance() *AVRational

AmbientIlluminance gets the ambient_illuminance field.

Environmental illuminance of the ambient viewing environment in lux.

func (*AVAmbientViewingEnvironment) AmbientLightX

func (s *AVAmbientViewingEnvironment) AmbientLightX() *AVRational

AmbientLightX gets the ambient_light_x field.

Normalized x chromaticity coordinate of the environmental ambient light
in the nominal viewing environment according to the CIE 1931 definition
of x and y as specified in ISO/CIE 11664-1.

func (*AVAmbientViewingEnvironment) AmbientLightY

func (s *AVAmbientViewingEnvironment) AmbientLightY() *AVRational

AmbientLightY gets the ambient_light_y field.

Normalized y chromaticity coordinate of the environmental ambient light
in the nominal viewing environment according to the CIE 1931 definition
of x and y as specified in ISO/CIE 11664-1.

func (*AVAmbientViewingEnvironment) RawPtr

func (*AVAmbientViewingEnvironment) SetAmbientIlluminance

func (s *AVAmbientViewingEnvironment) SetAmbientIlluminance(value *AVRational)

SetAmbientIlluminance sets the ambient_illuminance field.

Environmental illuminance of the ambient viewing environment in lux.

func (*AVAmbientViewingEnvironment) SetAmbientLightX

func (s *AVAmbientViewingEnvironment) SetAmbientLightX(value *AVRational)

SetAmbientLightX sets the ambient_light_x field.

Normalized x chromaticity coordinate of the environmental ambient light
in the nominal viewing environment according to the CIE 1931 definition
of x and y as specified in ISO/CIE 11664-1.

func (*AVAmbientViewingEnvironment) SetAmbientLightY

func (s *AVAmbientViewingEnvironment) SetAmbientLightY(value *AVRational)

SetAmbientLightY sets the ambient_light_y field.

Normalized y chromaticity coordinate of the environmental ambient light
in the nominal viewing environment according to the CIE 1931 definition
of x and y as specified in ISO/CIE 11664-1.

type AVAppToDevMessageType

type AVAppToDevMessageType C.enum_AVAppToDevMessageType

AVAppToDevMessageType wraps AVAppToDevMessageType.

Message types used by avdevice_app_to_dev_control_message().
const (
	// AVAppToDevNone wraps AV_APP_TO_DEV_NONE.
	//
	//	Dummy message.
	AVAppToDevNone AVAppToDevMessageType = C.AV_APP_TO_DEV_NONE
	// AVAppToDevWindowSize wraps AV_APP_TO_DEV_WINDOW_SIZE.
	/*
	   Window size change message.

	   Message is sent to the device every time the application changes the size
	   of the window device renders to.
	   Message should also be sent right after window is created.

	   data: AVDeviceRect: new window size.
	*/
	AVAppToDevWindowSize AVAppToDevMessageType = C.AV_APP_TO_DEV_WINDOW_SIZE
	// AVAppToDevWindowRepaint wraps AV_APP_TO_DEV_WINDOW_REPAINT.
	/*
	   Repaint request message.

	   Message is sent to the device when window has to be repainted.

	   data: AVDeviceRect: area required to be repainted.
	         NULL: whole area is required to be repainted.
	*/
	AVAppToDevWindowRepaint AVAppToDevMessageType = C.AV_APP_TO_DEV_WINDOW_REPAINT
	// AVAppToDevPause wraps AV_APP_TO_DEV_PAUSE.
	/*
	   Request pause/play.

	   Application requests pause/unpause playback.
	   Mostly usable with devices that have internal buffer.
	   By default devices are not paused.

	   data: NULL
	*/
	AVAppToDevPause AVAppToDevMessageType = C.AV_APP_TO_DEV_PAUSE
	// AVAppToDevPlay wraps AV_APP_TO_DEV_PLAY.
	/*
	   Request pause/play.

	   Application requests pause/unpause playback.
	   Mostly usable with devices that have internal buffer.
	   By default devices are not paused.

	   data: NULL
	*/
	AVAppToDevPlay AVAppToDevMessageType = C.AV_APP_TO_DEV_PLAY
	// AVAppToDevTogglePause wraps AV_APP_TO_DEV_TOGGLE_PAUSE.
	/*
	   Request pause/play.

	   Application requests pause/unpause playback.
	   Mostly usable with devices that have internal buffer.
	   By default devices are not paused.

	   data: NULL
	*/
	AVAppToDevTogglePause AVAppToDevMessageType = C.AV_APP_TO_DEV_TOGGLE_PAUSE
	// AVAppToDevSetVolume wraps AV_APP_TO_DEV_SET_VOLUME.
	/*
	   Volume control message.

	   Set volume level. It may be device-dependent if volume
	   is changed per stream or system wide. Per stream volume
	   change is expected when possible.

	   data: double: new volume with range of 0.0 - 1.0.
	*/
	AVAppToDevSetVolume AVAppToDevMessageType = C.AV_APP_TO_DEV_SET_VOLUME
	// AVAppToDevMute wraps AV_APP_TO_DEV_MUTE.
	/*
	   Mute control messages.

	   Change mute state. It may be device-dependent if mute status
	   is changed per stream or system wide. Per stream mute status
	   change is expected when possible.

	   data: NULL.
	*/
	AVAppToDevMute AVAppToDevMessageType = C.AV_APP_TO_DEV_MUTE
	// AVAppToDevUnmute wraps AV_APP_TO_DEV_UNMUTE.
	/*
	   Mute control messages.

	   Change mute state. It may be device-dependent if mute status
	   is changed per stream or system wide. Per stream mute status
	   change is expected when possible.

	   data: NULL.
	*/
	AVAppToDevUnmute AVAppToDevMessageType = C.AV_APP_TO_DEV_UNMUTE
	// AVAppToDevToggleMute wraps AV_APP_TO_DEV_TOGGLE_MUTE.
	/*
	   Mute control messages.

	   Change mute state. It may be device-dependent if mute status
	   is changed per stream or system wide. Per stream mute status
	   change is expected when possible.

	   data: NULL.
	*/
	AVAppToDevToggleMute AVAppToDevMessageType = C.AV_APP_TO_DEV_TOGGLE_MUTE
	// AVAppToDevGetVolume wraps AV_APP_TO_DEV_GET_VOLUME.
	/*
	   Get volume/mute messages.

	   Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or
	   AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.

	   data: NULL.
	*/
	AVAppToDevGetVolume AVAppToDevMessageType = C.AV_APP_TO_DEV_GET_VOLUME
	// AVAppToDevGetMute wraps AV_APP_TO_DEV_GET_MUTE.
	/*
	   Get volume/mute messages.

	   Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or
	   AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.

	   data: NULL.
	*/
	AVAppToDevGetMute AVAppToDevMessageType = C.AV_APP_TO_DEV_GET_MUTE
)

type AVAudioFifo

type AVAudioFifo struct {
	// contains filtered or unexported fields
}

AVAudioFifo wraps AVAudioFifo.

func AVAudioFifoAlloc

func AVAudioFifoAlloc(sampleFmt AVSampleFormat, channels int, nbSamples int) *AVAudioFifo

AVAudioFifoAlloc wraps av_audio_fifo_alloc.

Allocate an AVAudioFifo.

@param sample_fmt  sample format
@param channels    number of channels
@param nb_samples  initial allocation size, in samples
@return            newly allocated AVAudioFifo, or NULL on error

func (*AVAudioFifo) RawPtr

func (s *AVAudioFifo) RawPtr() unsafe.Pointer

type AVAudioServiceType

type AVAudioServiceType C.enum_AVAudioServiceType

AVAudioServiceType wraps AVAudioServiceType.

const (
	// AVAudioServiceTypeMain wraps AV_AUDIO_SERVICE_TYPE_MAIN.
	AVAudioServiceTypeMain AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_MAIN
	// AVAudioServiceTypeEffects wraps AV_AUDIO_SERVICE_TYPE_EFFECTS.
	AVAudioServiceTypeEffects AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_EFFECTS
	// AVAudioServiceTypeVisuallyImpaired wraps AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED.
	AVAudioServiceTypeVisuallyImpaired AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED
	// AVAudioServiceTypeHearingImpaired wraps AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED.
	AVAudioServiceTypeHearingImpaired AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED
	// AVAudioServiceTypeDialogue wraps AV_AUDIO_SERVICE_TYPE_DIALOGUE.
	AVAudioServiceTypeDialogue AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_DIALOGUE
	// AVAudioServiceTypeCommentary wraps AV_AUDIO_SERVICE_TYPE_COMMENTARY.
	AVAudioServiceTypeCommentary AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_COMMENTARY
	// AVAudioServiceTypeEmergency wraps AV_AUDIO_SERVICE_TYPE_EMERGENCY.
	AVAudioServiceTypeEmergency AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_EMERGENCY
	// AVAudioServiceTypeVoiceOver wraps AV_AUDIO_SERVICE_TYPE_VOICE_OVER.
	AVAudioServiceTypeVoiceOver AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_VOICE_OVER
	// AVAudioServiceTypeKaraoke wraps AV_AUDIO_SERVICE_TYPE_KARAOKE.
	AVAudioServiceTypeKaraoke AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_KARAOKE
	// AVAudioServiceTypeNb wraps AV_AUDIO_SERVICE_TYPE_NB.
	//
	//	Not part of ABI
	AVAudioServiceTypeNb AVAudioServiceType = C.AV_AUDIO_SERVICE_TYPE_NB
)

type AVBPrint

type AVBPrint struct {
	// contains filtered or unexported fields
}

AVBPrint wraps AVBPrint.

Buffer to print data progressively

The string buffer grows as necessary and is always 0-terminated.
The content of the string is never accessed, and thus is
encoding-agnostic and can even hold binary data.

Small buffers are kept in the structure itself, and thus require no
memory allocation at all (unless the contents of the buffer is needed
after the structure goes out of scope). This is almost as lightweight as
declaring a local `char buf[512]`.

The length of the string can go beyond the allocated size: the buffer is
then truncated, but the functions still keep account of the actual total
length.

In other words, AVBPrint.len can be greater than AVBPrint.size and records
the total length of what would have been to the buffer if there had been
enough memory.

Append operations do not need to be tested for failure: if a memory
allocation fails, data stop being appended to the buffer, but the length
is still updated. This situation can be tested with
av_bprint_is_complete().

The AVBPrint.size_max field determines several possible behaviours:
- `size_max = -1` (= `UINT_MAX`) or any large value will let the buffer be
  reallocated as necessary, with an amortized linear cost.
- `size_max = 0` prevents writing anything to the buffer: only the total
  length is computed. The write operations can then possibly be repeated in
  a buffer with exactly the necessary size
  (using `size_init = size_max = len + 1`).
- `size_max = 1` is automatically replaced by the exact size available in the
  structure itself, thus ensuring no dynamic memory allocation. The
  internal buffer is large enough to hold a reasonable paragraph of text,
  such as the current paragraph.

func (*AVBPrint) Len

func (s *AVBPrint) Len() uint

Len gets the len field.

length so far

func (*AVBPrint) RawPtr

func (s *AVBPrint) RawPtr() unsafe.Pointer

func (*AVBPrint) ReservedInternalBuffer

func (s *AVBPrint) ReservedInternalBuffer() *Array[uint8]

ReservedInternalBuffer gets the reserved_internal_buffer field.

func (*AVBPrint) ReservedPadding

func (s *AVBPrint) ReservedPadding() *Array[uint8]

ReservedPadding gets the reserved_padding field.

func (*AVBPrint) SetLen

func (s *AVBPrint) SetLen(value uint)

SetLen sets the len field.

length so far

func (*AVBPrint) SetSize

func (s *AVBPrint) SetSize(value uint)

SetSize sets the size field.

allocated memory

func (*AVBPrint) SetSizeMax

func (s *AVBPrint) SetSizeMax(value uint)

SetSizeMax sets the size_max field.

maximum allocated memory

func (*AVBPrint) SetStr

func (s *AVBPrint) SetStr(value *CStr)

SetStr sets the str field.

string so far

func (*AVBPrint) Size

func (s *AVBPrint) Size() uint

Size gets the size field.

allocated memory

func (*AVBPrint) SizeMax

func (s *AVBPrint) SizeMax() uint

SizeMax gets the size_max field.

maximum allocated memory

func (*AVBPrint) Str

func (s *AVBPrint) Str() *CStr

Str gets the str field.

string so far

type AVBSFContext

type AVBSFContext struct {
	// contains filtered or unexported fields
}

AVBSFContext wraps AVBSFContext.

The bitstream filter state.

This struct must be allocated with av_bsf_alloc() and freed with
av_bsf_free().

The fields in the struct will only be changed (by the caller or by the
filter) as described in their documentation, and are to be considered
immutable otherwise.

func (*AVBSFContext) AvClass

func (s *AVBSFContext) AvClass() *AVClass

AvClass gets the av_class field.

A class for logging and AVOptions

func (*AVBSFContext) Filter

func (s *AVBSFContext) Filter() *AVBitStreamFilter

Filter gets the filter field.

The bitstream filter this context is an instance of.

func (*AVBSFContext) ParIn

func (s *AVBSFContext) ParIn() *AVCodecParameters

ParIn gets the par_in field.

Parameters of the input stream. This field is allocated in
av_bsf_alloc(), it needs to be filled by the caller before
av_bsf_init().

func (*AVBSFContext) ParOut

func (s *AVBSFContext) ParOut() *AVCodecParameters

ParOut gets the par_out field.

Parameters of the output stream. This field is allocated in
av_bsf_alloc(), it is set by the filter in av_bsf_init().

func (*AVBSFContext) PrivData

func (s *AVBSFContext) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

Opaque filter-specific private data. If filter->priv_class is non-NULL,
this is an AVOptions-enabled struct.

func (*AVBSFContext) RawPtr

func (s *AVBSFContext) RawPtr() unsafe.Pointer

func (*AVBSFContext) SetAvClass

func (s *AVBSFContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for logging and AVOptions

func (*AVBSFContext) SetFilter

func (s *AVBSFContext) SetFilter(value *AVBitStreamFilter)

SetFilter sets the filter field.

The bitstream filter this context is an instance of.

func (*AVBSFContext) SetParIn

func (s *AVBSFContext) SetParIn(value *AVCodecParameters)

SetParIn sets the par_in field.

Parameters of the input stream. This field is allocated in
av_bsf_alloc(), it needs to be filled by the caller before
av_bsf_init().

func (*AVBSFContext) SetParOut

func (s *AVBSFContext) SetParOut(value *AVCodecParameters)

SetParOut sets the par_out field.

Parameters of the output stream. This field is allocated in
av_bsf_alloc(), it is set by the filter in av_bsf_init().

func (*AVBSFContext) SetPrivData

func (s *AVBSFContext) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

Opaque filter-specific private data. If filter->priv_class is non-NULL,
this is an AVOptions-enabled struct.

func (*AVBSFContext) SetTimeBaseIn

func (s *AVBSFContext) SetTimeBaseIn(value *AVRational)

SetTimeBaseIn sets the time_base_in field.

The timebase used for the timestamps of the input packets. Set by the
caller before av_bsf_init().

func (*AVBSFContext) SetTimeBaseOut

func (s *AVBSFContext) SetTimeBaseOut(value *AVRational)

SetTimeBaseOut sets the time_base_out field.

The timebase used for the timestamps of the output packets. Set by the
filter in av_bsf_init().

func (*AVBSFContext) TimeBaseIn

func (s *AVBSFContext) TimeBaseIn() *AVRational

TimeBaseIn gets the time_base_in field.

The timebase used for the timestamps of the input packets. Set by the
caller before av_bsf_init().

func (*AVBSFContext) TimeBaseOut

func (s *AVBSFContext) TimeBaseOut() *AVRational

TimeBaseOut gets the time_base_out field.

The timebase used for the timestamps of the output packets. Set by the
filter in av_bsf_init().

type AVBSFList

type AVBSFList struct {
	// contains filtered or unexported fields
}

AVBSFList wraps AVBSFList.

func AVBsfListAlloc

func AVBsfListAlloc() *AVBSFList

AVBsfListAlloc wraps av_bsf_list_alloc.

Allocate empty list of bitstream filters.
The list must be later freed by av_bsf_list_free()
or finalized by av_bsf_list_finalize().

@return Pointer to @ref AVBSFList on success, NULL in case of failure

func (*AVBSFList) RawPtr

func (s *AVBSFList) RawPtr() unsafe.Pointer

type AVBitStreamFilter

type AVBitStreamFilter struct {
	// contains filtered or unexported fields
}

AVBitStreamFilter wraps AVBitStreamFilter.

func AVBSFIterate

func AVBSFIterate(opaque *unsafe.Pointer) *AVBitStreamFilter

AVBSFIterate iterates over all registered bitstream filters.

@param opaque a pointer where libavcodec will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered bitstream filter or NULL when the iteration is finished

func AVBsfGetByName

func AVBsfGetByName(name *CStr) *AVBitStreamFilter

AVBsfGetByName wraps av_bsf_get_by_name.

@return a bitstream filter with the specified name or NULL if no such
        bitstream filter exists.

func (*AVBitStreamFilter) CodecIds

func (s *AVBitStreamFilter) CodecIds() *Array[AVCodecID]

CodecIds gets the codec_ids field.

A list of codec ids supported by the filter, terminated by
AV_CODEC_ID_NONE.
May be NULL, in that case the bitstream filter works with any codec id.

func (*AVBitStreamFilter) Name

func (s *AVBitStreamFilter) Name() *CStr

Name gets the name field.

func (*AVBitStreamFilter) PrivClass

func (s *AVBitStreamFilter) PrivClass() *AVClass

PrivClass gets the priv_class field.

A class for the private data, used to declare bitstream filter private
AVOptions. This field is NULL for bitstream filters that do not declare
any options.

If this field is non-NULL, the first member of the filter private data
must be a pointer to AVClass, which will be set by libavcodec generic
code to this class.

func (*AVBitStreamFilter) RawPtr

func (s *AVBitStreamFilter) RawPtr() unsafe.Pointer

func (*AVBitStreamFilter) SetCodecIds

func (s *AVBitStreamFilter) SetCodecIds(value *Array[AVCodecID])

SetCodecIds sets the codec_ids field.

A list of codec ids supported by the filter, terminated by
AV_CODEC_ID_NONE.
May be NULL, in that case the bitstream filter works with any codec id.

func (*AVBitStreamFilter) SetName

func (s *AVBitStreamFilter) SetName(value *CStr)

SetName sets the name field.

func (*AVBitStreamFilter) SetPrivClass

func (s *AVBitStreamFilter) SetPrivClass(value *AVClass)

SetPrivClass sets the priv_class field.

A class for the private data, used to declare bitstream filter private
AVOptions. This field is NULL for bitstream filters that do not declare
any options.

If this field is non-NULL, the first member of the filter private data
must be a pointer to AVClass, which will be set by libavcodec generic
code to this class.

type AVBlowfish

type AVBlowfish struct {
	// contains filtered or unexported fields
}

AVBlowfish wraps AVBlowfish.

func AVBlowfishAlloc

func AVBlowfishAlloc() *AVBlowfish

AVBlowfishAlloc wraps av_blowfish_alloc.

Allocate an AVBlowfish context.

func (*AVBlowfish) P

func (s *AVBlowfish) P() *Array[uint32]

P gets the p field.

func (*AVBlowfish) RawPtr

func (s *AVBlowfish) RawPtr() unsafe.Pointer

type AVBuffer

type AVBuffer struct {
	// contains filtered or unexported fields
}

AVBuffer wraps AVBuffer.

func (*AVBuffer) RawPtr

func (s *AVBuffer) RawPtr() unsafe.Pointer

type AVBufferPool

type AVBufferPool struct {
	// contains filtered or unexported fields
}

AVBufferPool wraps AVBufferPool.

func (*AVBufferPool) RawPtr

func (s *AVBufferPool) RawPtr() unsafe.Pointer

type AVBufferRef

type AVBufferRef struct {
	// contains filtered or unexported fields
}

AVBufferRef wraps AVBufferRef.

A reference to a data buffer.

The size of this struct is not a part of the public ABI and it is not meant
to be allocated directly.

func AVBufferAlloc

func AVBufferAlloc(size uint64) *AVBufferRef

AVBufferAlloc wraps av_buffer_alloc.

Allocate an AVBuffer of the given size using av_malloc().

@return an AVBufferRef of given size or NULL when out of memory

func AVBufferAllocz

func AVBufferAllocz(size uint64) *AVBufferRef

AVBufferAllocz wraps av_buffer_allocz.

Same as av_buffer_alloc(), except the returned buffer will be initialized
to zero.

func AVBufferPoolGet

func AVBufferPoolGet(pool *AVBufferPool) *AVBufferRef

AVBufferPoolGet wraps av_buffer_pool_get.

Allocate a new AVBuffer, reusing an old buffer from the pool when available.
This function may be called simultaneously from multiple threads.

@return a reference to the new buffer on success, NULL on error.

func AVBufferRef_

func AVBufferRef_(buf *AVBufferRef) *AVBufferRef

AVBufferRef_ wraps av_buffer_ref.

Create a new reference to an AVBuffer.

@return a new AVBufferRef referring to the same AVBuffer as buf or NULL on
failure.

func AVBuffersinkGetHWFramesCtx

func AVBuffersinkGetHWFramesCtx(ctx *AVFilterContext) *AVBufferRef

AVBuffersinkGetHWFramesCtx wraps av_buffersink_get_hw_frames_ctx.

func AVFilterLinkGetHWFramesCtx

func AVFilterLinkGetHWFramesCtx(link *AVFilterLink) *AVBufferRef

AVFilterLinkGetHWFramesCtx wraps avfilter_link_get_hw_frames_ctx.

Get the hardware frames context of a filter link.

@param link an AVFilterLink

@return a ref-counted copy of the link's hw_frames_ctx field if there is
        a hardware frames context associated with the link or NULL otherwise.
        The returned AVBufferRef needs to be released with av_buffer_unref()
        when it is no longer used.

func AVFrameGetPlaneBuffer

func AVFrameGetPlaneBuffer(frame *AVFrame, plane int) *AVBufferRef

AVFrameGetPlaneBuffer wraps av_frame_get_plane_buffer.

Get the buffer reference a given data plane is stored in.

@param frame the frame to get the plane's buffer from
@param plane index of the data plane of interest in frame->extended_data.

@return the buffer reference that contains the plane or NULL if the input
frame is not valid.

func AVHWDeviceCtxAlloc

func AVHWDeviceCtxAlloc(_type AVHWDeviceType) *AVBufferRef

AVHWDeviceCtxAlloc wraps av_hwdevice_ctx_alloc.

Allocate an AVHWDeviceContext for a given hardware type.

@param type the type of the hardware device to allocate.
@return a reference to the newly created AVHWDeviceContext on success or NULL
        on failure.

func AVHWFrameCtxAlloc

func AVHWFrameCtxAlloc(deviceCtx *AVBufferRef) *AVBufferRef

AVHWFrameCtxAlloc wraps av_hwframe_ctx_alloc.

Allocate an AVHWFramesContext tied to a given device context.

@param device_ctx a reference to a AVHWDeviceContext. This function will make
                  a new reference for internal use, the one passed to the
                  function remains owned by the caller.
@return a reference to the newly created AVHWFramesContext on success or NULL
        on failure.

func (*AVBufferRef) Buffer

func (s *AVBufferRef) Buffer() *AVBuffer

Buffer gets the buffer field.

func (*AVBufferRef) Data

func (s *AVBufferRef) Data() unsafe.Pointer

Data gets the data field.

The data buffer. It is considered writable if and only if
this is the only reference to the buffer, in which case
av_buffer_is_writable() returns 1.

func (*AVBufferRef) RawPtr

func (s *AVBufferRef) RawPtr() unsafe.Pointer

func (*AVBufferRef) SetBuffer

func (s *AVBufferRef) SetBuffer(value *AVBuffer)

SetBuffer sets the buffer field.

func (*AVBufferRef) SetData

func (s *AVBufferRef) SetData(value unsafe.Pointer)

SetData sets the data field.

The data buffer. It is considered writable if and only if
this is the only reference to the buffer, in which case
av_buffer_is_writable() returns 1.

func (*AVBufferRef) SetSize

func (s *AVBufferRef) SetSize(value uint64)

SetSize sets the size field.

Size of data in bytes.

func (*AVBufferRef) Size

func (s *AVBufferRef) Size() uint64

Size gets the size field.

Size of data in bytes.

type AVBufferSrcParameters

type AVBufferSrcParameters struct {
	// contains filtered or unexported fields
}

AVBufferSrcParameters wraps AVBufferSrcParameters.

This structure contains the parameters describing the frames that will be
passed to this filter.

It should be allocated with av_buffersrc_parameters_alloc() and freed with
av_free(). All the allocated fields in it remain owned by the caller.

func AVBuffersrcParametersAlloc

func AVBuffersrcParametersAlloc() *AVBufferSrcParameters

AVBuffersrcParametersAlloc wraps av_buffersrc_parameters_alloc.

Allocate a new AVBufferSrcParameters instance. It should be freed by the
caller with av_free().

func (*AVBufferSrcParameters) ChLayout

func (s *AVBufferSrcParameters) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

Audio only, the audio channel layout

func (*AVBufferSrcParameters) ColorRange

func (s *AVBufferSrcParameters) ColorRange() AVColorRange

ColorRange gets the color_range field.

func (*AVBufferSrcParameters) ColorSpace

func (s *AVBufferSrcParameters) ColorSpace() AVColorSpace

ColorSpace gets the color_space field.

Video only, the YUV colorspace and range.

func (*AVBufferSrcParameters) Format

func (s *AVBufferSrcParameters) Format() int

Format gets the format field.

video: the pixel format, value corresponds to enum AVPixelFormat
audio: the sample format, value corresponds to enum AVSampleFormat

func (*AVBufferSrcParameters) FrameRate

func (s *AVBufferSrcParameters) FrameRate() *AVRational

FrameRate gets the frame_rate field.

Video only, the frame rate of the input video. This field must only be
set to a non-zero value if input stream has a known constant framerate
and should be left at its initial value if the framerate is variable or
unknown.

func (*AVBufferSrcParameters) Height

func (s *AVBufferSrcParameters) Height() int

Height gets the height field.

Video only, the display dimensions of the input frames.

func (*AVBufferSrcParameters) HwFramesCtx

func (s *AVBufferSrcParameters) HwFramesCtx() *AVBufferRef

HwFramesCtx gets the hw_frames_ctx field.

Video with a hwaccel pixel format only. This should be a reference to an
AVHWFramesContext instance describing the input frames.

func (*AVBufferSrcParameters) NbSideData

func (s *AVBufferSrcParameters) NbSideData() int

NbSideData gets the nb_side_data field.

func (*AVBufferSrcParameters) RawPtr

func (s *AVBufferSrcParameters) RawPtr() unsafe.Pointer

func (*AVBufferSrcParameters) SampleAspectRatio

func (s *AVBufferSrcParameters) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

Video only, the sample (pixel) aspect ratio.

func (*AVBufferSrcParameters) SampleRate

func (s *AVBufferSrcParameters) SampleRate() int

SampleRate gets the sample_rate field.

Audio only, the audio sampling rate in samples per second.

func (*AVBufferSrcParameters) SetColorRange

func (s *AVBufferSrcParameters) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

func (*AVBufferSrcParameters) SetColorSpace

func (s *AVBufferSrcParameters) SetColorSpace(value AVColorSpace)

SetColorSpace sets the color_space field.

Video only, the YUV colorspace and range.

func (*AVBufferSrcParameters) SetFormat

func (s *AVBufferSrcParameters) SetFormat(value int)

SetFormat sets the format field.

video: the pixel format, value corresponds to enum AVPixelFormat
audio: the sample format, value corresponds to enum AVSampleFormat

func (*AVBufferSrcParameters) SetFrameRate

func (s *AVBufferSrcParameters) SetFrameRate(value *AVRational)

SetFrameRate sets the frame_rate field.

Video only, the frame rate of the input video. This field must only be
set to a non-zero value if input stream has a known constant framerate
and should be left at its initial value if the framerate is variable or
unknown.

func (*AVBufferSrcParameters) SetHeight

func (s *AVBufferSrcParameters) SetHeight(value int)

SetHeight sets the height field.

Video only, the display dimensions of the input frames.

func (*AVBufferSrcParameters) SetHwFramesCtx

func (s *AVBufferSrcParameters) SetHwFramesCtx(value *AVBufferRef)

SetHwFramesCtx sets the hw_frames_ctx field.

Video with a hwaccel pixel format only. This should be a reference to an
AVHWFramesContext instance describing the input frames.

func (*AVBufferSrcParameters) SetNbSideData

func (s *AVBufferSrcParameters) SetNbSideData(value int)

SetNbSideData sets the nb_side_data field.

func (*AVBufferSrcParameters) SetSampleAspectRatio

func (s *AVBufferSrcParameters) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

Video only, the sample (pixel) aspect ratio.

func (*AVBufferSrcParameters) SetSampleRate

func (s *AVBufferSrcParameters) SetSampleRate(value int)

SetSampleRate sets the sample_rate field.

Audio only, the audio sampling rate in samples per second.

func (*AVBufferSrcParameters) SetSideData

func (s *AVBufferSrcParameters) SetSideData(value *Array[AVFrameSideData])

SetSideData sets the side_data field.

func (*AVBufferSrcParameters) SetTimeBase

func (s *AVBufferSrcParameters) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

The timebase to be used for the timestamps on the input frames.

func (*AVBufferSrcParameters) SetWidth

func (s *AVBufferSrcParameters) SetWidth(value int)

SetWidth sets the width field.

Video only, the display dimensions of the input frames.

func (*AVBufferSrcParameters) SideData

func (s *AVBufferSrcParameters) SideData() *Array[*AVFrameSideData]

SideData gets the side_data field.

func (*AVBufferSrcParameters) TimeBase

func (s *AVBufferSrcParameters) TimeBase() *AVRational

TimeBase gets the time_base field.

The timebase to be used for the timestamps on the input frames.

func (*AVBufferSrcParameters) Width

func (s *AVBufferSrcParameters) Width() int

Width gets the width field.

Video only, the display dimensions of the input frames.

type AVCAMELLIA

type AVCAMELLIA struct {
	// contains filtered or unexported fields
}

AVCAMELLIA wraps AVCAMELLIA.

func AVCamelliaAlloc

func AVCamelliaAlloc() *AVCAMELLIA

AVCamelliaAlloc wraps av_camellia_alloc.

Allocate an AVCAMELLIA context
To free the struct: av_free(ptr)

func (*AVCAMELLIA) RawPtr

func (s *AVCAMELLIA) RawPtr() unsafe.Pointer

type AVCAST5

type AVCAST5 struct {
	// contains filtered or unexported fields
}

AVCAST5 wraps AVCAST5.

func AVCast5Alloc

func AVCast5Alloc() *AVCAST5

AVCast5Alloc wraps av_cast5_alloc.

Allocate an AVCAST5 context
To free the struct: av_free(ptr)

func (*AVCAST5) RawPtr

func (s *AVCAST5) RawPtr() unsafe.Pointer

type AVCIExy

type AVCIExy struct {
	// contains filtered or unexported fields
}

AVCIExy wraps AVCIExy.

Struct containing chromaticity x and y values for the standard CIE 1931
chromaticity definition.

func (*AVCIExy) RawPtr

func (s *AVCIExy) RawPtr() unsafe.Pointer

func (*AVCIExy) SetX

func (s *AVCIExy) SetX(value *AVRational)

SetX sets the x field.

func (*AVCIExy) SetY

func (s *AVCIExy) SetY(value *AVRational)

SetY sets the y field.

func (*AVCIExy) X

func (s *AVCIExy) X() *AVRational

X gets the x field.

func (*AVCIExy) Y

func (s *AVCIExy) Y() *AVRational

Y gets the y field.

type AVCPBProperties

type AVCPBProperties struct {
	// contains filtered or unexported fields
}

AVCPBProperties wraps AVCPBProperties.

This structure describes the bitrate properties of an encoded bitstream. It
roughly corresponds to a subset the VBV parameters for MPEG-2 or HRD
parameters for H.264/HEVC.

func AVCpbPropertiesAlloc

func AVCpbPropertiesAlloc(size *uint64) *AVCPBProperties

AVCpbPropertiesAlloc wraps av_cpb_properties_alloc.

Allocate a CPB properties structure and initialize its fields to default
values.

@param size if non-NULL, the size of the allocated struct will be written
            here. This is useful for embedding it in side data.

@return the newly allocated struct or NULL on failure

func (*AVCPBProperties) AvgBitrate

func (s *AVCPBProperties) AvgBitrate() int64

AvgBitrate gets the avg_bitrate field.

Average bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) BufferSize

func (s *AVCPBProperties) BufferSize() int64

BufferSize gets the buffer_size field.

The size of the buffer to which the ratecontrol is applied, in bits.
Zero if unknown or unspecified.

func (*AVCPBProperties) MaxBitrate

func (s *AVCPBProperties) MaxBitrate() int64

MaxBitrate gets the max_bitrate field.

Maximum bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) MinBitrate

func (s *AVCPBProperties) MinBitrate() int64

MinBitrate gets the min_bitrate field.

Minimum bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) RawPtr

func (s *AVCPBProperties) RawPtr() unsafe.Pointer

func (*AVCPBProperties) SetAvgBitrate

func (s *AVCPBProperties) SetAvgBitrate(value int64)

SetAvgBitrate sets the avg_bitrate field.

Average bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) SetBufferSize

func (s *AVCPBProperties) SetBufferSize(value int64)

SetBufferSize sets the buffer_size field.

The size of the buffer to which the ratecontrol is applied, in bits.
Zero if unknown or unspecified.

func (*AVCPBProperties) SetMaxBitrate

func (s *AVCPBProperties) SetMaxBitrate(value int64)

SetMaxBitrate sets the max_bitrate field.

Maximum bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) SetMinBitrate

func (s *AVCPBProperties) SetMinBitrate(value int64)

SetMinBitrate sets the min_bitrate field.

Minimum bitrate of the stream, in bits per second.
Zero if unknown or unspecified.

func (*AVCPBProperties) SetVbvDelay

func (s *AVCPBProperties) SetVbvDelay(value uint64)

SetVbvDelay sets the vbv_delay field.

The delay between the time the packet this structure is associated with
is received and the time when it should be decoded, in periods of a 27MHz
clock.

UINT64_MAX when unknown or unspecified.

func (*AVCPBProperties) VbvDelay

func (s *AVCPBProperties) VbvDelay() uint64

VbvDelay gets the vbv_delay field.

The delay between the time the packet this structure is associated with
is received and the time when it should be decoded, in periods of a 27MHz
clock.

UINT64_MAX when unknown or unspecified.

type AVCRC

type AVCRC = uint32

AVCRC is a typedef alias for uint32_t in FFmpeg. This represents a CRC (Cyclic Redundancy Check) value.

func AVCrcGetTable

func AVCrcGetTable(crcId AVCRCId) *AVCRC

AVCrcGetTable wraps av_crc_get_table.

Get an initialized standard CRC table.
@param crc_id ID of a standard CRC
@return a pointer to the CRC table or NULL on failure

type AVCRCId

type AVCRCId C.AVCRCId

AVCRCId wraps AVCRCId.

const (
	// AVCrc8Atm wraps AV_CRC_8_ATM.
	AVCrc8Atm AVCRCId = C.AV_CRC_8_ATM
	// AVCrc16Ansi wraps AV_CRC_16_ANSI.
	AVCrc16Ansi AVCRCId = C.AV_CRC_16_ANSI
	// AVCrc16Ccitt wraps AV_CRC_16_CCITT.
	AVCrc16Ccitt AVCRCId = C.AV_CRC_16_CCITT
	// AVCrc32Ieee wraps AV_CRC_32_IEEE.
	AVCrc32Ieee AVCRCId = C.AV_CRC_32_IEEE
	// AVCrc32IeeeLe wraps AV_CRC_32_IEEE_LE.
	//
	//	reversed bitorder version of AV_CRC_32_IEEE
	AVCrc32IeeeLe AVCRCId = C.AV_CRC_32_IEEE_LE
	// AVCrc16AnsiLe wraps AV_CRC_16_ANSI_LE.
	//
	//	reversed bitorder version of AV_CRC_16_ANSI
	AVCrc16AnsiLe AVCRCId = C.AV_CRC_16_ANSI_LE
	// AVCrc24Ieee wraps AV_CRC_24_IEEE.
	AVCrc24Ieee AVCRCId = C.AV_CRC_24_IEEE
	// AVCrc8Ebu wraps AV_CRC_8_EBU.
	AVCrc8Ebu AVCRCId = C.AV_CRC_8_EBU
	// AVCrcMax wraps AV_CRC_MAX.
	//
	//	Not part of public API! Do not use outside libavutil.
	AVCrcMax AVCRCId = C.AV_CRC_MAX
)

type AVChannel

type AVChannel C.enum_AVChannel

AVChannel wraps AVChannel.

const (
	// AVChanNone wraps AV_CHAN_NONE.
	//
	//	Invalid channel index
	AVChanNone AVChannel = C.AV_CHAN_NONE
	// AVChanFrontLeft wraps AV_CHAN_FRONT_LEFT.
	//
	//	Invalid channel index
	AVChanFrontLeft AVChannel = C.AV_CHAN_FRONT_LEFT
	// AVChanFrontRight wraps AV_CHAN_FRONT_RIGHT.
	//
	//	Invalid channel index
	AVChanFrontRight AVChannel = C.AV_CHAN_FRONT_RIGHT
	// AVChanFrontCenter wraps AV_CHAN_FRONT_CENTER.
	//
	//	Invalid channel index
	AVChanFrontCenter AVChannel = C.AV_CHAN_FRONT_CENTER
	// AVChanLowFrequency wraps AV_CHAN_LOW_FREQUENCY.
	//
	//	Invalid channel index
	AVChanLowFrequency AVChannel = C.AV_CHAN_LOW_FREQUENCY
	// AVChanBackLeft wraps AV_CHAN_BACK_LEFT.
	//
	//	Invalid channel index
	AVChanBackLeft AVChannel = C.AV_CHAN_BACK_LEFT
	// AVChanBackRight wraps AV_CHAN_BACK_RIGHT.
	//
	//	Invalid channel index
	AVChanBackRight AVChannel = C.AV_CHAN_BACK_RIGHT
	// AVChanFrontLeftOfCenter wraps AV_CHAN_FRONT_LEFT_OF_CENTER.
	//
	//	Invalid channel index
	AVChanFrontLeftOfCenter AVChannel = C.AV_CHAN_FRONT_LEFT_OF_CENTER
	// AVChanFrontRightOfCenter wraps AV_CHAN_FRONT_RIGHT_OF_CENTER.
	//
	//	Invalid channel index
	AVChanFrontRightOfCenter AVChannel = C.AV_CHAN_FRONT_RIGHT_OF_CENTER
	// AVChanBackCenter wraps AV_CHAN_BACK_CENTER.
	//
	//	Invalid channel index
	AVChanBackCenter AVChannel = C.AV_CHAN_BACK_CENTER
	// AVChanSideLeft wraps AV_CHAN_SIDE_LEFT.
	//
	//	Invalid channel index
	AVChanSideLeft AVChannel = C.AV_CHAN_SIDE_LEFT
	// AVChanSideRight wraps AV_CHAN_SIDE_RIGHT.
	//
	//	Invalid channel index
	AVChanSideRight AVChannel = C.AV_CHAN_SIDE_RIGHT
	// AVChanTopCenter wraps AV_CHAN_TOP_CENTER.
	//
	//	Invalid channel index
	AVChanTopCenter AVChannel = C.AV_CHAN_TOP_CENTER
	// AVChanTopFrontLeft wraps AV_CHAN_TOP_FRONT_LEFT.
	//
	//	Invalid channel index
	AVChanTopFrontLeft AVChannel = C.AV_CHAN_TOP_FRONT_LEFT
	// AVChanTopFrontCenter wraps AV_CHAN_TOP_FRONT_CENTER.
	//
	//	Invalid channel index
	AVChanTopFrontCenter AVChannel = C.AV_CHAN_TOP_FRONT_CENTER
	// AVChanTopFrontRight wraps AV_CHAN_TOP_FRONT_RIGHT.
	//
	//	Invalid channel index
	AVChanTopFrontRight AVChannel = C.AV_CHAN_TOP_FRONT_RIGHT
	// AVChanTopBackLeft wraps AV_CHAN_TOP_BACK_LEFT.
	//
	//	Invalid channel index
	AVChanTopBackLeft AVChannel = C.AV_CHAN_TOP_BACK_LEFT
	// AVChanTopBackCenter wraps AV_CHAN_TOP_BACK_CENTER.
	//
	//	Invalid channel index
	AVChanTopBackCenter AVChannel = C.AV_CHAN_TOP_BACK_CENTER
	// AVChanTopBackRight wraps AV_CHAN_TOP_BACK_RIGHT.
	//
	//	Invalid channel index
	AVChanTopBackRight AVChannel = C.AV_CHAN_TOP_BACK_RIGHT
	// AVChanStereoLeft wraps AV_CHAN_STEREO_LEFT.
	//
	//	Stereo downmix.
	AVChanStereoLeft AVChannel = C.AV_CHAN_STEREO_LEFT
	// AVChanStereoRight wraps AV_CHAN_STEREO_RIGHT.
	//
	//	See above.
	AVChanStereoRight AVChannel = C.AV_CHAN_STEREO_RIGHT
	// AVChanWideLeft wraps AV_CHAN_WIDE_LEFT.
	//
	//	See above.
	AVChanWideLeft AVChannel = C.AV_CHAN_WIDE_LEFT
	// AVChanWideRight wraps AV_CHAN_WIDE_RIGHT.
	//
	//	See above.
	AVChanWideRight AVChannel = C.AV_CHAN_WIDE_RIGHT
	// AVChanSurroundDirectLeft wraps AV_CHAN_SURROUND_DIRECT_LEFT.
	//
	//	See above.
	AVChanSurroundDirectLeft AVChannel = C.AV_CHAN_SURROUND_DIRECT_LEFT
	// AVChanSurroundDirectRight wraps AV_CHAN_SURROUND_DIRECT_RIGHT.
	//
	//	See above.
	AVChanSurroundDirectRight AVChannel = C.AV_CHAN_SURROUND_DIRECT_RIGHT
	// AVChanLowFrequency2 wraps AV_CHAN_LOW_FREQUENCY_2.
	//
	//	See above.
	AVChanLowFrequency2 AVChannel = C.AV_CHAN_LOW_FREQUENCY_2
	// AVChanTopSideLeft wraps AV_CHAN_TOP_SIDE_LEFT.
	//
	//	See above.
	AVChanTopSideLeft AVChannel = C.AV_CHAN_TOP_SIDE_LEFT
	// AVChanTopSideRight wraps AV_CHAN_TOP_SIDE_RIGHT.
	//
	//	See above.
	AVChanTopSideRight AVChannel = C.AV_CHAN_TOP_SIDE_RIGHT
	// AVChanBottomFrontCenter wraps AV_CHAN_BOTTOM_FRONT_CENTER.
	//
	//	See above.
	AVChanBottomFrontCenter AVChannel = C.AV_CHAN_BOTTOM_FRONT_CENTER
	// AVChanBottomFrontLeft wraps AV_CHAN_BOTTOM_FRONT_LEFT.
	//
	//	See above.
	AVChanBottomFrontLeft AVChannel = C.AV_CHAN_BOTTOM_FRONT_LEFT
	// AVChanBottomFrontRight wraps AV_CHAN_BOTTOM_FRONT_RIGHT.
	//
	//	See above.
	AVChanBottomFrontRight AVChannel = C.AV_CHAN_BOTTOM_FRONT_RIGHT
	// AVChanSideSurroundLeft wraps AV_CHAN_SIDE_SURROUND_LEFT.
	//
	//	+90 degrees, Lss, SiL
	AVChanSideSurroundLeft AVChannel = C.AV_CHAN_SIDE_SURROUND_LEFT
	// AVChanSideSurroundRight wraps AV_CHAN_SIDE_SURROUND_RIGHT.
	//
	//	-90 degrees, Rss, SiR
	AVChanSideSurroundRight AVChannel = C.AV_CHAN_SIDE_SURROUND_RIGHT
	// AVChanTopSurroundLeft wraps AV_CHAN_TOP_SURROUND_LEFT.
	//
	//	+110 degrees, Lvs, TpLS
	AVChanTopSurroundLeft AVChannel = C.AV_CHAN_TOP_SURROUND_LEFT
	// AVChanTopSurroundRight wraps AV_CHAN_TOP_SURROUND_RIGHT.
	//
	//	-110 degrees, Rvs, TpRS
	AVChanTopSurroundRight AVChannel = C.AV_CHAN_TOP_SURROUND_RIGHT
	// AVChanBinauralLeft wraps AV_CHAN_BINAURAL_LEFT.
	AVChanBinauralLeft AVChannel = C.AV_CHAN_BINAURAL_LEFT
	// AVChanBinauralRight wraps AV_CHAN_BINAURAL_RIGHT.
	AVChanBinauralRight AVChannel = C.AV_CHAN_BINAURAL_RIGHT
	// AVChanUnused wraps AV_CHAN_UNUSED.
	//
	//	Channel is empty can be safely skipped.
	AVChanUnused AVChannel = C.AV_CHAN_UNUSED
	// AVChanUnknown wraps AV_CHAN_UNKNOWN.
	//
	//	Channel contains data, but its position is unknown.
	AVChanUnknown AVChannel = C.AV_CHAN_UNKNOWN
	// AVChanAmbisonicBase wraps AV_CHAN_AMBISONIC_BASE.
	/*
	   Range of channels between AV_CHAN_AMBISONIC_BASE and
	   AV_CHAN_AMBISONIC_END represent Ambisonic components using the ACN system.

	   Given a channel id `<i>` between AV_CHAN_AMBISONIC_BASE and
	   AV_CHAN_AMBISONIC_END (inclusive), the ACN index of the channel `<n>` is
	   `<n> = <i> - AV_CHAN_AMBISONIC_BASE`.

	   @note these values are only used for AV_CHANNEL_ORDER_CUSTOM channel
	   orderings, the AV_CHANNEL_ORDER_AMBISONIC ordering orders the channels
	   implicitly by their position in the stream.
	*/
	AVChanAmbisonicBase AVChannel = C.AV_CHAN_AMBISONIC_BASE
	// AVChanAmbisonicEnd wraps AV_CHAN_AMBISONIC_END.
	/*
	   leave space for 1024 ids, which correspond to maximum order-32 harmonics,
	   which should be enough for the foreseeable use cases
	*/
	AVChanAmbisonicEnd AVChannel = C.AV_CHAN_AMBISONIC_END
)

func AVChannelFromString

func AVChannelFromString(name *CStr) AVChannel

AVChannelFromString wraps av_channel_from_string.

This is the inverse function of @ref av_channel_name().

@return the channel with the given name
        AV_CHAN_NONE when name does not identify a known channel

func AVChannelLayoutChannelFromIndex

func AVChannelLayoutChannelFromIndex(channelLayout *AVChannelLayout, idx uint) AVChannel

AVChannelLayoutChannelFromIndex wraps av_channel_layout_channel_from_index.

Get the channel with the given index in a channel layout.

@param channel_layout input channel layout
@param idx index of the channel
@return channel with the index idx in channel_layout on success or
        AV_CHAN_NONE on failure (if idx is not valid or the channel order is
        unspecified)

func AVChannelLayoutChannelFromString

func AVChannelLayoutChannelFromString(channelLayout *AVChannelLayout, name *CStr) AVChannel

AVChannelLayoutChannelFromString wraps av_channel_layout_channel_from_string.

Get a channel described by the given string.

This function accepts channel names in the same format as
@ref av_channel_from_string().

@param channel_layout input channel layout
@param name string describing the channel to obtain
@return a channel described by the given string in channel_layout on success
        or AV_CHAN_NONE on failure (if the string is not valid or the channel
        order is unspecified)

type AVChannelCustom

type AVChannelCustom struct {
	// contains filtered or unexported fields
}

AVChannelCustom wraps AVChannelCustom.

An AVChannelCustom defines a single channel within a custom order layout

Unlike most structures in FFmpeg, sizeof(AVChannelCustom) is a part of the
public ABI.

No new fields may be added to it without a major version bump.

func (*AVChannelCustom) Id

func (s *AVChannelCustom) Id() AVChannel

Id gets the id field.

func (*AVChannelCustom) Name

func (s *AVChannelCustom) Name() *Array[uint8]

Name gets the name field.

func (*AVChannelCustom) Opaque

func (s *AVChannelCustom) Opaque() unsafe.Pointer

Opaque gets the opaque field.

func (*AVChannelCustom) RawPtr

func (s *AVChannelCustom) RawPtr() unsafe.Pointer

func (*AVChannelCustom) SetId

func (s *AVChannelCustom) SetId(value AVChannel)

SetId sets the id field.

func (*AVChannelCustom) SetOpaque

func (s *AVChannelCustom) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

type AVChannelLayout

type AVChannelLayout struct {
	// contains filtered or unexported fields
}

AVChannelLayout wraps AVChannelLayout.

An AVChannelLayout holds information about the channel layout of audio data.

A channel layout here is defined as a set of channels ordered in a specific
way (unless the channel order is AV_CHANNEL_ORDER_UNSPEC, in which case an
AVChannelLayout carries only the channel count).
All orders may be treated as if they were AV_CHANNEL_ORDER_UNSPEC by
ignoring everything but the channel count, as long as av_channel_layout_check()
considers they are valid.

Unlike most structures in FFmpeg, sizeof(AVChannelLayout) is a part of the
public ABI and may be used by the caller. E.g. it may be allocated on stack
or embedded in caller-defined structs.

AVChannelLayout can be initialized as follows:
- default initialization with {0}, followed by setting all used fields
  correctly;
- by assigning one of the predefined AV_CHANNEL_LAYOUT_* initializers;
- with a constructor function, such as av_channel_layout_default(),
  av_channel_layout_from_mask() or av_channel_layout_from_string().

The channel layout must be uninitialized with av_channel_layout_uninit()

Copying an AVChannelLayout via assigning is forbidden,
av_channel_layout_copy() must be used instead (and its return value should
be checked)

No new fields may be added to it without a major version bump, except for
new elements of the union fitting in sizeof(uint64_t).

func (*AVChannelLayout) NbChannels

func (s *AVChannelLayout) NbChannels() int

NbChannels gets the nb_channels field.

Number of channels in this layout. Mandatory field.

func (*AVChannelLayout) Opaque

func (s *AVChannelLayout) Opaque() unsafe.Pointer

Opaque gets the opaque field.

For some private data of the user.

func (*AVChannelLayout) Order

func (s *AVChannelLayout) Order() AVChannelOrder

Order gets the order field.

Channel order used in this layout.
This is a mandatory field.

func (*AVChannelLayout) RawPtr

func (s *AVChannelLayout) RawPtr() unsafe.Pointer

func (*AVChannelLayout) SetNbChannels

func (s *AVChannelLayout) SetNbChannels(value int)

SetNbChannels sets the nb_channels field.

Number of channels in this layout. Mandatory field.

func (*AVChannelLayout) SetOpaque

func (s *AVChannelLayout) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

For some private data of the user.

func (*AVChannelLayout) SetOrder

func (s *AVChannelLayout) SetOrder(value AVChannelOrder)

SetOrder sets the order field.

Channel order used in this layout.
This is a mandatory field.

type AVChannelOrder

type AVChannelOrder C.enum_AVChannelOrder

AVChannelOrder wraps AVChannelOrder.

const (
	// AVChannelOrderUnspec wraps AV_CHANNEL_ORDER_UNSPEC.
	/*
	   Only the channel count is specified, without any further information
	   about the channel order.
	*/
	AVChannelOrderUnspec AVChannelOrder = C.AV_CHANNEL_ORDER_UNSPEC
	// AVChannelOrderNative wraps AV_CHANNEL_ORDER_NATIVE.
	/*
	   The native channel order, i.e. the channels are in the same order in
	   which they are defined in the AVChannel enum. This supports up to 63
	   different channels.
	*/
	AVChannelOrderNative AVChannelOrder = C.AV_CHANNEL_ORDER_NATIVE
	// AVChannelOrderCustom wraps AV_CHANNEL_ORDER_CUSTOM.
	/*
	   The channel order does not correspond to any other predefined order and
	   is stored as an explicit map. For example, this could be used to support
	   layouts with 64 or more channels, or with empty/skipped (AV_CHAN_UNUSED)
	   channels at arbitrary positions.
	*/
	AVChannelOrderCustom AVChannelOrder = C.AV_CHANNEL_ORDER_CUSTOM
	// AVChannelOrderAmbisonic wraps AV_CHANNEL_ORDER_AMBISONIC.
	/*
	   The audio is represented as the decomposition of the sound field into
	   spherical harmonics. Each channel corresponds to a single expansion
	   component. Channels are ordered according to ACN (Ambisonic Channel
	   Number).

	   The channel with the index n in the stream contains the spherical
	   harmonic of degree l and order m given by
	   @code{.unparsed}
	     l   = floor(sqrt(n)),
	     m   = n - l * (l + 1).
	   @endcode

	   Conversely given a spherical harmonic of degree l and order m, the
	   corresponding channel index n is given by
	   @code{.unparsed}
	     n = l * (l + 1) + m.
	   @endcode

	   Normalization is assumed to be SN3D (Schmidt Semi-Normalization)
	   as defined in AmbiX format $ 2.1.
	*/
	AVChannelOrderAmbisonic AVChannelOrder = C.AV_CHANNEL_ORDER_AMBISONIC
	// FFChannelOrderNb wraps FF_CHANNEL_ORDER_NB.
	//
	//	Number of channel orders, not part of ABI/API
	FFChannelOrderNb AVChannelOrder = C.FF_CHANNEL_ORDER_NB
)

type AVChapter

type AVChapter struct {
	// contains filtered or unexported fields
}

AVChapter wraps AVChapter.

func (*AVChapter) End

func (s *AVChapter) End() int64

End gets the end field.

chapter start/end time in time_base units

func (*AVChapter) Id

func (s *AVChapter) Id() int64

Id gets the id field.

unique ID to identify the chapter

func (*AVChapter) Metadata

func (s *AVChapter) Metadata() *AVDictionary

Metadata gets the metadata field.

func (*AVChapter) RawPtr

func (s *AVChapter) RawPtr() unsafe.Pointer

func (*AVChapter) SetEnd

func (s *AVChapter) SetEnd(value int64)

SetEnd sets the end field.

chapter start/end time in time_base units

func (*AVChapter) SetId

func (s *AVChapter) SetId(value int64)

SetId sets the id field.

unique ID to identify the chapter

func (*AVChapter) SetMetadata

func (s *AVChapter) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

func (*AVChapter) SetStart

func (s *AVChapter) SetStart(value int64)

SetStart sets the start field.

chapter start/end time in time_base units

func (*AVChapter) SetTimeBase

func (s *AVChapter) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

time base in which the start/end timestamps are specified

func (*AVChapter) Start

func (s *AVChapter) Start() int64

Start gets the start field.

chapter start/end time in time_base units

func (*AVChapter) TimeBase

func (s *AVChapter) TimeBase() *AVRational

TimeBase gets the time_base field.

time base in which the start/end timestamps are specified

type AVChromaLocation

type AVChromaLocation C.enum_AVChromaLocation

AVChromaLocation wraps AVChromaLocation.

Location of chroma samples.

Illustration showing the location of the first (top left) chroma sample of the
image, the left shows only luma, the right
shows the location of the chroma sample, the 2 could be imagined to overlay
each other but are drawn separately due to limitations of ASCII

               1st 2nd       1st 2nd horizontal luma sample positions
                v   v         v   v
                ______        ______
*1st luma line > |X   X ...    |3 4 X ...     X are luma samples,
               |             |1 2           1-6 are possible chroma positions
*2nd luma line > |X   X ...    |5 6 X ...     0 is undefined/unknown position
const (
	// AVChromaLocUnspecified wraps AVCHROMA_LOC_UNSPECIFIED.
	AVChromaLocUnspecified AVChromaLocation = C.AVCHROMA_LOC_UNSPECIFIED
	// AVChromaLocLeft wraps AVCHROMA_LOC_LEFT.
	//
	//	MPEG-2/4 4:2:0, H.264 default for 4:2:0
	AVChromaLocLeft AVChromaLocation = C.AVCHROMA_LOC_LEFT
	// AVChromaLocCenter wraps AVCHROMA_LOC_CENTER.
	//
	//	MPEG-1 4:2:0, JPEG 4:2:0, H.263 4:2:0
	AVChromaLocCenter AVChromaLocation = C.AVCHROMA_LOC_CENTER
	// AVChromaLocTopleft wraps AVCHROMA_LOC_TOPLEFT.
	//
	//	ITU-R 601, SMPTE 274M 296M S314M(DV 4:1:1), mpeg2 4:2:2
	AVChromaLocTopleft AVChromaLocation = C.AVCHROMA_LOC_TOPLEFT
	// AVChromaLocTop wraps AVCHROMA_LOC_TOP.
	AVChromaLocTop AVChromaLocation = C.AVCHROMA_LOC_TOP
	// AVChromaLocBottomleft wraps AVCHROMA_LOC_BOTTOMLEFT.
	AVChromaLocBottomleft AVChromaLocation = C.AVCHROMA_LOC_BOTTOMLEFT
	// AVChromaLocBottom wraps AVCHROMA_LOC_BOTTOM.
	AVChromaLocBottom AVChromaLocation = C.AVCHROMA_LOC_BOTTOM
	// AVChromaLocNb wraps AVCHROMA_LOC_NB.
	//
	//	Not part of ABI
	AVChromaLocNb AVChromaLocation = C.AVCHROMA_LOC_NB
)

func AVChromaLocationPosToEnum

func AVChromaLocationPosToEnum(xpos int, ypos int) AVChromaLocation

AVChromaLocationPosToEnum wraps av_chroma_location_pos_to_enum.

Converts swscale x/y chroma position to AVChromaLocation.

The positions represent the chroma (0,0) position in a coordinates system
with luma (0,0) representing the origin and luma(1,1) representing 256,256

@param xpos  horizontal chroma sample position
@param ypos  vertical   chroma sample position

type AVClass

type AVClass struct {
	// contains filtered or unexported fields
}

AVClass wraps AVClass.

Describe the class of an AVClass context structure. That is an
arbitrary struct of which the first field is a pointer to an
AVClass struct (e.g. AVCodecContext, AVFormatContext etc.).

func AVBsfGetClass

func AVBsfGetClass() *AVClass

AVBsfGetClass wraps av_bsf_get_class.

Get the AVClass for AVBSFContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func AVCodecGetClass

func AVCodecGetClass() *AVClass

AVCodecGetClass wraps avcodec_get_class.

Get the AVClass for AVCodecContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func AVCodecGetSubtitleRectClass

func AVCodecGetSubtitleRectClass() *AVClass

AVCodecGetSubtitleRectClass wraps avcodec_get_subtitle_rect_class.

Get the AVClass for AVSubtitleRect. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func AVFilterGetClass

func AVFilterGetClass() *AVClass

AVFilterGetClass wraps avfilter_get_class.

@return AVClass for AVFilterContext.

@see av_opt_find().

func AVFormatGetClass

func AVFormatGetClass() *AVClass

AVFormatGetClass wraps avformat_get_class.

Get the AVClass for AVFormatContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func AVIOProtocolGetClass

func AVIOProtocolGetClass(name *CStr) *AVClass

AVIOProtocolGetClass wraps avio_protocol_get_class.

Get AVClass by names of available protocols.

@return A AVClass of input protocol name or NULL

func AVIamfAudioElementGetClass

func AVIamfAudioElementGetClass() *AVClass

AVIamfAudioElementGetClass wraps av_iamf_audio_element_get_class.

func AVIamfMixPresentationGetClass

func AVIamfMixPresentationGetClass() *AVClass

AVIamfMixPresentationGetClass wraps av_iamf_mix_presentation_get_class.

func AVIamfParamDefinitionGetClass

func AVIamfParamDefinitionGetClass() *AVClass

AVIamfParamDefinitionGetClass wraps av_iamf_param_definition_get_class.

func AVStreamGetClass

func AVStreamGetClass() *AVClass

AVStreamGetClass wraps av_stream_get_class.

Get the AVClass for AVStream. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func AVStreamGroupGetClass

func AVStreamGroupGetClass() *AVClass

AVStreamGroupGetClass wraps av_stream_group_get_class.

Get the AVClass for AVStreamGroup. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func SwrGetClass

func SwrGetClass() *AVClass

SwrGetClass wraps swr_get_class.

Get the AVClass for SwrContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().
@return the AVClass of SwrContext

func SwsGetClass

func SwsGetClass() *AVClass

SwsGetClass wraps sws_get_class.

Get the AVClass for SwsContext. It can be used in combination with
AV_OPT_SEARCH_FAKE_OBJ for examining options.

@see av_opt_find().

func (*AVClass) Category

func (s *AVClass) Category() AVClassCategory

Category gets the category field.

Category used for visualization (like color).

Only used when ::get_category() is NULL. Use this field when all
instances of this class have the same category, use ::get_category()
otherwise.

func (*AVClass) ClassName

func (s *AVClass) ClassName() *CStr

ClassName gets the class_name field.

The name of the class; usually it is the same name as the
context structure type to which the AVClass is associated.

func (*AVClass) ItemName

func (s *AVClass) ItemName() func(pointer unsafe.Pointer) *CStr

ItemName gets the item_name field.

func (*AVClass) LogLevelOffsetOffset

func (s *AVClass) LogLevelOffsetOffset() int

LogLevelOffsetOffset gets the log_level_offset_offset field.

Offset in the structure where the log level offset is stored. The log
level offset is an int added to the log level for logging with this
object as the context.

0 means there is no such variable.

func (*AVClass) Option

func (s *AVClass) Option() *AVOption

Option gets the option field.

An array of options for the structure or NULL.
When non-NULL, the array must be terminated by an option with a NULL
name.

@see av_set_default_options()

func (*AVClass) ParentLogContextOffset

func (s *AVClass) ParentLogContextOffset() int

ParentLogContextOffset gets the parent_log_context_offset field.

Offset in the structure where a pointer to the parent context for
logging is stored. For example a decoder could pass its AVCodecContext
to eval as such a parent context, which an ::av_log() implementation
could then leverage to display the parent context.

When the pointer is NULL, or this offset is zero, the object is assumed
to have no parent.

func (*AVClass) RawPtr

func (s *AVClass) RawPtr() unsafe.Pointer

func (*AVClass) SetCategory

func (s *AVClass) SetCategory(value AVClassCategory)

SetCategory sets the category field.

Category used for visualization (like color).

Only used when ::get_category() is NULL. Use this field when all
instances of this class have the same category, use ::get_category()
otherwise.

func (*AVClass) SetClassName

func (s *AVClass) SetClassName(value *CStr)

SetClassName sets the class_name field.

The name of the class; usually it is the same name as the
context structure type to which the AVClass is associated.

func (*AVClass) SetLogLevelOffsetOffset

func (s *AVClass) SetLogLevelOffsetOffset(value int)

SetLogLevelOffsetOffset sets the log_level_offset_offset field.

Offset in the structure where the log level offset is stored. The log
level offset is an int added to the log level for logging with this
object as the context.

0 means there is no such variable.

func (*AVClass) SetOption

func (s *AVClass) SetOption(value *AVOption)

SetOption sets the option field.

An array of options for the structure or NULL.
When non-NULL, the array must be terminated by an option with a NULL
name.

@see av_set_default_options()

func (*AVClass) SetParentLogContextOffset

func (s *AVClass) SetParentLogContextOffset(value int)

SetParentLogContextOffset sets the parent_log_context_offset field.

Offset in the structure where a pointer to the parent context for
logging is stored. For example a decoder could pass its AVCodecContext
to eval as such a parent context, which an ::av_log() implementation
could then leverage to display the parent context.

When the pointer is NULL, or this offset is zero, the object is assumed
to have no parent.

func (*AVClass) SetStateFlagsOffset

func (s *AVClass) SetStateFlagsOffset(value int)

SetStateFlagsOffset sets the state_flags_offset field.

When non-zero, offset in the object to an unsigned int holding object
state flags, a combination of AVClassStateFlags values. The flags are
updated by the object to signal its state to the generic code.

Added in version 59.41.100.

func (*AVClass) SetVersion

func (s *AVClass) SetVersion(value int)

SetVersion sets the version field.

LIBAVUTIL_VERSION with which this structure was created.
This is used to allow fields to be added to AVClass without requiring
major version bumps everywhere.

func (*AVClass) StateFlagsOffset

func (s *AVClass) StateFlagsOffset() int

StateFlagsOffset gets the state_flags_offset field.

When non-zero, offset in the object to an unsigned int holding object
state flags, a combination of AVClassStateFlags values. The flags are
updated by the object to signal its state to the generic code.

Added in version 59.41.100.

func (*AVClass) Version

func (s *AVClass) Version() int

Version gets the version field.

LIBAVUTIL_VERSION with which this structure was created.
This is used to allow fields to be added to AVClass without requiring
major version bumps everywhere.

type AVClassCategory

type AVClassCategory C.AVClassCategory

AVClassCategory wraps AVClassCategory.

const (
	// AVClassCategoryNa wraps AV_CLASS_CATEGORY_NA.
	AVClassCategoryNa AVClassCategory = C.AV_CLASS_CATEGORY_NA
	// AVClassCategoryInput wraps AV_CLASS_CATEGORY_INPUT.
	AVClassCategoryInput AVClassCategory = C.AV_CLASS_CATEGORY_INPUT
	// AVClassCategoryOutput wraps AV_CLASS_CATEGORY_OUTPUT.
	AVClassCategoryOutput AVClassCategory = C.AV_CLASS_CATEGORY_OUTPUT
	// AVClassCategoryMuxer wraps AV_CLASS_CATEGORY_MUXER.
	AVClassCategoryMuxer AVClassCategory = C.AV_CLASS_CATEGORY_MUXER
	// AVClassCategoryDemuxer wraps AV_CLASS_CATEGORY_DEMUXER.
	AVClassCategoryDemuxer AVClassCategory = C.AV_CLASS_CATEGORY_DEMUXER
	// AVClassCategoryEncoder wraps AV_CLASS_CATEGORY_ENCODER.
	AVClassCategoryEncoder AVClassCategory = C.AV_CLASS_CATEGORY_ENCODER
	// AVClassCategoryDecoder wraps AV_CLASS_CATEGORY_DECODER.
	AVClassCategoryDecoder AVClassCategory = C.AV_CLASS_CATEGORY_DECODER
	// AVClassCategoryFilter wraps AV_CLASS_CATEGORY_FILTER.
	AVClassCategoryFilter AVClassCategory = C.AV_CLASS_CATEGORY_FILTER
	// AVClassCategoryBitstreamFilter wraps AV_CLASS_CATEGORY_BITSTREAM_FILTER.
	AVClassCategoryBitstreamFilter AVClassCategory = C.AV_CLASS_CATEGORY_BITSTREAM_FILTER
	// AVClassCategorySwscaler wraps AV_CLASS_CATEGORY_SWSCALER.
	AVClassCategorySwscaler AVClassCategory = C.AV_CLASS_CATEGORY_SWSCALER
	// AVClassCategorySwresampler wraps AV_CLASS_CATEGORY_SWRESAMPLER.
	AVClassCategorySwresampler AVClassCategory = C.AV_CLASS_CATEGORY_SWRESAMPLER
	// AVClassCategoryHWDevice wraps AV_CLASS_CATEGORY_HWDEVICE.
	AVClassCategoryHWDevice AVClassCategory = C.AV_CLASS_CATEGORY_HWDEVICE
	// AVClassCategoryDeviceVideoOutput wraps AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT.
	AVClassCategoryDeviceVideoOutput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
	// AVClassCategoryDeviceVideoInput wraps AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT.
	AVClassCategoryDeviceVideoInput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
	// AVClassCategoryDeviceAudioOutput wraps AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT.
	AVClassCategoryDeviceAudioOutput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
	// AVClassCategoryDeviceAudioInput wraps AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT.
	AVClassCategoryDeviceAudioInput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT
	// AVClassCategoryDeviceOutput wraps AV_CLASS_CATEGORY_DEVICE_OUTPUT.
	AVClassCategoryDeviceOutput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_OUTPUT
	// AVClassCategoryDeviceInput wraps AV_CLASS_CATEGORY_DEVICE_INPUT.
	AVClassCategoryDeviceInput AVClassCategory = C.AV_CLASS_CATEGORY_DEVICE_INPUT
	// AVClassCategoryNb wraps AV_CLASS_CATEGORY_NB.
	//
	//	not part of ABI/API
	AVClassCategoryNb AVClassCategory = C.AV_CLASS_CATEGORY_NB
)

func AVDefaultGetCategory

func AVDefaultGetCategory(ptr unsafe.Pointer) AVClassCategory

AVDefaultGetCategory wraps av_default_get_category.

type AVClassStateFlags

type AVClassStateFlags C.enum_AVClassStateFlags

AVClassStateFlags wraps AVClassStateFlags.

const (
	// AVClassStateInitialized wraps AV_CLASS_STATE_INITIALIZED.
	/*
	   Object initialization has finished and it is now in the 'runtime' stage.
	   This affects e.g. what options can be set on the object (only
	   AV_OPT_FLAG_RUNTIME_PARAM options can be set on initialized objects).
	*/
	AVClassStateInitialized AVClassStateFlags = C.AV_CLASS_STATE_INITIALIZED
)

type AVCodec

type AVCodec struct {
	// contains filtered or unexported fields
}

AVCodec wraps AVCodec.

AVCodec.

func AVCodecFindDecoder

func AVCodecFindDecoder(id AVCodecID) *AVCodec

AVCodecFindDecoder wraps avcodec_find_decoder.

Find a registered decoder with a matching codec ID.

@param id AVCodecID of the requested decoder
@return A decoder if one was found, NULL otherwise.

func AVCodecFindDecoderByName

func AVCodecFindDecoderByName(name *CStr) *AVCodec

AVCodecFindDecoderByName wraps avcodec_find_decoder_by_name.

Find a registered decoder with the specified name.

@param name name of the requested decoder
@return A decoder if one was found, NULL otherwise.

func AVCodecFindEncoder

func AVCodecFindEncoder(id AVCodecID) *AVCodec

AVCodecFindEncoder wraps avcodec_find_encoder.

Find a registered encoder with a matching codec ID.

@param id AVCodecID of the requested encoder
@return An encoder if one was found, NULL otherwise.

func AVCodecFindEncoderByName

func AVCodecFindEncoderByName(name *CStr) *AVCodec

AVCodecFindEncoderByName wraps avcodec_find_encoder_by_name.

Find a registered encoder with the specified name.

@param name name of the requested encoder
@return An encoder if one was found, NULL otherwise.

func AVCodecIterate

func AVCodecIterate(opaque *unsafe.Pointer) *AVCodec

AVCodecIterate iterates over all registered codecs.

@param opaque a pointer where libavcodec will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered codec or NULL when the iteration is finished

func (*AVCodec) Capabilities

func (s *AVCodec) Capabilities() int

Capabilities gets the capabilities field.

Codec capabilities.
see AV_CODEC_CAP_*

func (*AVCodec) ChLayouts

func (s *AVCodec) ChLayouts() *AVChannelLayout

ChLayouts gets the ch_layouts field.

Array of supported channel layouts, terminated with a zeroed layout.
@deprecated use avcodec_get_supported_config()

func (*AVCodec) Id

func (s *AVCodec) Id() AVCodecID

Id gets the id field.

func (*AVCodec) LongName

func (s *AVCodec) LongName() *CStr

LongName gets the long_name field.

Descriptive name for the codec, meant to be more human readable than name.
You should use the NULL_IF_CONFIG_SMALL() macro to define it.

func (*AVCodec) MaxLowres

func (s *AVCodec) MaxLowres() uint8

MaxLowres gets the max_lowres field.

maximum value for lowres supported by the decoder

func (*AVCodec) Name

func (s *AVCodec) Name() *CStr

Name gets the name field.

Name of the codec implementation.
The name is globally unique among encoders and among decoders (but an
encoder and a decoder can share the same name).
This is the primary way to find a codec from the user perspective.

func (*AVCodec) PixFmts

func (s *AVCodec) PixFmts() *Array[AVPixelFormat]

PixFmts gets the pix_fmts field.

@deprecated use avcodec_get_supported_config()

func (*AVCodec) PrivClass

func (s *AVCodec) PrivClass() *AVClass

PrivClass gets the priv_class field.

AVClass for the private context

func (*AVCodec) Profiles

func (s *AVCodec) Profiles() *AVProfile

Profiles gets the profiles field.

array of recognized profiles, or NULL if unknown, array is terminated by {AV_PROFILE_UNKNOWN}

func (*AVCodec) RawPtr

func (s *AVCodec) RawPtr() unsafe.Pointer

func (*AVCodec) SampleFmts

func (s *AVCodec) SampleFmts() *Array[AVSampleFormat]

SampleFmts gets the sample_fmts field.

@deprecated use avcodec_get_supported_config()

func (*AVCodec) SetCapabilities

func (s *AVCodec) SetCapabilities(value int)

SetCapabilities sets the capabilities field.

Codec capabilities.
see AV_CODEC_CAP_*

func (*AVCodec) SetChLayouts

func (s *AVCodec) SetChLayouts(value *AVChannelLayout)

SetChLayouts sets the ch_layouts field.

Array of supported channel layouts, terminated with a zeroed layout.
@deprecated use avcodec_get_supported_config()

func (*AVCodec) SetId

func (s *AVCodec) SetId(value AVCodecID)

SetId sets the id field.

func (*AVCodec) SetLongName

func (s *AVCodec) SetLongName(value *CStr)

SetLongName sets the long_name field.

Descriptive name for the codec, meant to be more human readable than name.
You should use the NULL_IF_CONFIG_SMALL() macro to define it.

func (*AVCodec) SetMaxLowres

func (s *AVCodec) SetMaxLowres(value uint8)

SetMaxLowres sets the max_lowres field.

maximum value for lowres supported by the decoder

func (*AVCodec) SetName

func (s *AVCodec) SetName(value *CStr)

SetName sets the name field.

Name of the codec implementation.
The name is globally unique among encoders and among decoders (but an
encoder and a decoder can share the same name).
This is the primary way to find a codec from the user perspective.

func (*AVCodec) SetPixFmts

func (s *AVCodec) SetPixFmts(value *Array[AVPixelFormat])

SetPixFmts sets the pix_fmts field.

@deprecated use avcodec_get_supported_config()

func (*AVCodec) SetPrivClass

func (s *AVCodec) SetPrivClass(value *AVClass)

SetPrivClass sets the priv_class field.

AVClass for the private context

func (*AVCodec) SetProfiles

func (s *AVCodec) SetProfiles(value *AVProfile)

SetProfiles sets the profiles field.

array of recognized profiles, or NULL if unknown, array is terminated by {AV_PROFILE_UNKNOWN}

func (*AVCodec) SetSampleFmts

func (s *AVCodec) SetSampleFmts(value *Array[AVSampleFormat])

SetSampleFmts sets the sample_fmts field.

@deprecated use avcodec_get_supported_config()

func (*AVCodec) SetType

func (s *AVCodec) SetType(value AVMediaType)

SetType sets the type field.

func (*AVCodec) SetWrapperName

func (s *AVCodec) SetWrapperName(value *CStr)

SetWrapperName sets the wrapper_name field.

Group name of the codec implementation.
This is a short symbolic name of the wrapper backing this codec. A
wrapper uses some kind of external implementation for the codec, such
as an external library, or a codec implementation provided by the OS or
the hardware.
If this field is NULL, this is a builtin, libavcodec native codec.
If non-NULL, this will be the suffix in AVCodec.name in most cases
(usually AVCodec.name will be of the form "<codec_name>_<wrapper_name>").

func (*AVCodec) Type

func (s *AVCodec) Type() AVMediaType

Type gets the type field.

func (*AVCodec) WrapperName

func (s *AVCodec) WrapperName() *CStr

WrapperName gets the wrapper_name field.

Group name of the codec implementation.
This is a short symbolic name of the wrapper backing this codec. A
wrapper uses some kind of external implementation for the codec, such
as an external library, or a codec implementation provided by the OS or
the hardware.
If this field is NULL, this is a builtin, libavcodec native codec.
If non-NULL, this will be the suffix in AVCodec.name in most cases
(usually AVCodec.name will be of the form "<codec_name>_<wrapper_name>").

type AVCodecConfig

type AVCodecConfig C.enum_AVCodecConfig

AVCodecConfig wraps AVCodecConfig.

const (
	// AVCodecConfigPixFormat wraps AV_CODEC_CONFIG_PIX_FORMAT.
	//
	//	AVPixelFormat, terminated by AV_PIX_FMT_NONE
	AVCodecConfigPixFormat AVCodecConfig = C.AV_CODEC_CONFIG_PIX_FORMAT
	// AVCodecConfigFrameRate wraps AV_CODEC_CONFIG_FRAME_RATE.
	//
	//	AVRational, terminated by {0, 0}
	AVCodecConfigFrameRate AVCodecConfig = C.AV_CODEC_CONFIG_FRAME_RATE
	// AVCodecConfigSampleRate wraps AV_CODEC_CONFIG_SAMPLE_RATE.
	//
	//	int, terminated by 0
	AVCodecConfigSampleRate AVCodecConfig = C.AV_CODEC_CONFIG_SAMPLE_RATE
	// AVCodecConfigSampleFormat wraps AV_CODEC_CONFIG_SAMPLE_FORMAT.
	//
	//	AVSampleFormat, terminated by AV_SAMPLE_FMT_NONE
	AVCodecConfigSampleFormat AVCodecConfig = C.AV_CODEC_CONFIG_SAMPLE_FORMAT
	// AVCodecConfigChannelLayout wraps AV_CODEC_CONFIG_CHANNEL_LAYOUT.
	//
	//	AVChannelLayout, terminated by {0}
	AVCodecConfigChannelLayout AVCodecConfig = C.AV_CODEC_CONFIG_CHANNEL_LAYOUT
	// AVCodecConfigColorRange wraps AV_CODEC_CONFIG_COLOR_RANGE.
	//
	//	AVColorRange, terminated by AVCOL_RANGE_UNSPECIFIED
	AVCodecConfigColorRange AVCodecConfig = C.AV_CODEC_CONFIG_COLOR_RANGE
	// AVCodecConfigColorSpace wraps AV_CODEC_CONFIG_COLOR_SPACE.
	//
	//	AVColorSpace, terminated by AVCOL_SPC_UNSPECIFIED
	AVCodecConfigColorSpace AVCodecConfig = C.AV_CODEC_CONFIG_COLOR_SPACE
)

type AVCodecContext

type AVCodecContext struct {
	// contains filtered or unexported fields
}

AVCodecContext wraps AVCodecContext.

main external API structure.
New fields can be added to the end with minor version bumps.
Removal, reordering and changes to existing fields require a major
version bump.
You can use AVOptions (av_opt* / av_set/get*()) to access these fields from user
applications.
The name string for AVOptions options matches the associated command line
parameter name and can be found in libavcodec/options_table.h
The AVOption/command line parameter names differ in some cases from the C
structure field names for historic reasons or brevity.
sizeof(AVCodecContext) must not be used outside libav*.

func AVCodecAllocContext3

func AVCodecAllocContext3(codec *AVCodec) *AVCodecContext

AVCodecAllocContext3 wraps avcodec_alloc_context3.

Allocate an AVCodecContext and set its fields to default values. The
resulting struct should be freed with avcodec_free_context().

@param codec if non-NULL, allocate private data and initialize defaults
             for the given codec. It is illegal to then call avcodec_open2()
             with a different codec.
             If NULL, then the codec-specific defaults won't be initialized,
             which may result in suboptimal default settings (this is
             important mainly for encoders, e.g. libx264).

@return An AVCodecContext filled with default values or NULL on failure.

func (*AVCodecContext) ActiveThreadType

func (s *AVCodecContext) ActiveThreadType() int

ActiveThreadType gets the active_thread_type field.

Which multithreading methods are in use by the codec.
- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) ApplyCropping

func (s *AVCodecContext) ApplyCropping() int

ApplyCropping gets the apply_cropping field.

Video decoding only. Certain video codecs support cropping, meaning that
only a sub-rectangle of the decoded frame is intended for display.  This
option controls how cropping is handled by libavcodec.

When set to 1 (the default), libavcodec will apply cropping internally.
I.e. it will modify the output frame width/height fields and offset the
data pointers (only by as much as possible while preserving alignment, or
by the full amount if the AV_CODEC_FLAG_UNALIGNED flag is set) so that
the frames output by the decoder refer only to the cropped area. The
crop_* fields of the output frames will be zero.

When set to 0, the width/height fields of the output frames will be set
to the coded dimensions and the crop_* fields will describe the cropping
rectangle. Applying the cropping is left to the caller.

@warning When hardware acceleration with opaque output frames is used,
libavcodec is unable to apply cropping from the top/left border.

@note when this option is set to zero, the width/height fields of the
AVCodecContext and output AVFrames have different meanings. The codec
context fields store display dimensions (with the coded dimensions in
coded_width/height), while the frame fields store the coded dimensions
(with the display dimensions being determined by the crop_* fields).

func (*AVCodecContext) AudioServiceType

func (s *AVCodecContext) AudioServiceType() AVAudioServiceType

AudioServiceType gets the audio_service_type field.

Type of service that the audio stream conveys.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVCodecContext) AvClass

func (s *AVCodecContext) AvClass() *AVClass

AvClass gets the av_class field.

information on struct for av_log
- set by avcodec_alloc_context3

func (*AVCodecContext) BQuantFactor

func (s *AVCodecContext) BQuantFactor() float32

BQuantFactor gets the b_quant_factor field.

qscale factor between IP and B-frames
If > 0 then the last P-frame quantizer will be used (q= lastp_q*factor+offset).
If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) BQuantOffset

func (s *AVCodecContext) BQuantOffset() float32

BQuantOffset gets the b_quant_offset field.

qscale offset between IP and B-frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) BidirRefine

func (s *AVCodecContext) BidirRefine() int

BidirRefine gets the bidir_refine field.

  • encoding: Set by user.
  • decoding: unused

func (*AVCodecContext) BitRate

func (s *AVCodecContext) BitRate() int64

BitRate gets the bit_rate field.

the average bitrate
- encoding: Set by user; unused for constant quantizer encoding.
- decoding: Set by user, may be overwritten by libavcodec
            if this info is available in the stream

func (*AVCodecContext) BitRateTolerance

func (s *AVCodecContext) BitRateTolerance() int

BitRateTolerance gets the bit_rate_tolerance field.

number of bits the bitstream is allowed to diverge from the reference.
          the reference can be CBR (for CBR pass1) or VBR (for pass2)
- encoding: Set by user; unused for constant quantizer encoding.
- decoding: unused

func (*AVCodecContext) BitsPerCodedSample

func (s *AVCodecContext) BitsPerCodedSample() int

BitsPerCodedSample gets the bits_per_coded_sample field.

bits per sample/pixel from the demuxer (needed for huffyuv).
- encoding: Set by libavcodec.
- decoding: Set by user.

func (*AVCodecContext) BitsPerRawSample

func (s *AVCodecContext) BitsPerRawSample() int

BitsPerRawSample gets the bits_per_raw_sample field.

Bits per sample/pixel of internal libavcodec pixel/sample format.
- encoding: set by user.
- decoding: set by libavcodec.

func (*AVCodecContext) BlockAlign

func (s *AVCodecContext) BlockAlign() int

BlockAlign gets the block_align field.

number of bytes per packet if constant and known or 0
Used by some WAV based audio codecs.

func (*AVCodecContext) ChLayout

func (s *AVCodecContext) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

Audio channel layout.
- encoding: must be set by the caller, to one of AVCodec.ch_layouts.
- decoding: may be set by the caller if known e.g. from the container.
            The decoder can then override during decoding as needed.

func (*AVCodecContext) ChromaSampleLocation

func (s *AVCodecContext) ChromaSampleLocation() AVChromaLocation

ChromaSampleLocation gets the chroma_sample_location field.

This defines the location of chroma samples.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) Codec

func (s *AVCodecContext) Codec() *AVCodec

Codec gets the codec field.

func (*AVCodecContext) CodecDescriptor

func (s *AVCodecContext) CodecDescriptor() *AVCodecDescriptor

CodecDescriptor gets the codec_descriptor field.

AVCodecDescriptor
- encoding: unused.
- decoding: set by libavcodec.

func (*AVCodecContext) CodecId

func (s *AVCodecContext) CodecId() AVCodecID

CodecId gets the codec_id field.

see AV_CODEC_ID_xxx

func (*AVCodecContext) CodecTag

func (s *AVCodecContext) CodecTag() uint

CodecTag gets the codec_tag field.

fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
This is used to work around some encoder bugs.
A demuxer should set this to what is stored in the field used to identify the codec.
If there are multiple such fields in a container then the demuxer should choose the one
which maximizes the information about the used codec.
If the codec tag field in a container is larger than 32 bits then the demuxer should
remap the longer ID to 32 bits with a table or other structure. Alternatively a new
extra_codec_tag + size could be added but for this a clear advantage must be demonstrated
first.
- encoding: Set by user, if not then the default based on codec_id will be used.
- decoding: Set by user, will be converted to uppercase by libavcodec during init.

func (*AVCodecContext) CodecType

func (s *AVCodecContext) CodecType() AVMediaType

CodecType gets the codec_type field.

see AVMEDIA_TYPE_xxx

func (*AVCodecContext) CodecWhitelist

func (s *AVCodecContext) CodecWhitelist() *CStr

CodecWhitelist gets the codec_whitelist field.

',' separated list of allowed decoders.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVCodecContext) CodedHeight

func (s *AVCodecContext) CodedHeight() int

CodedHeight gets the coded_height field.

Bitstream width / height, may be different from width/height e.g. when
the decoded frame is cropped before being output or lowres is enabled.

@note Those field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: unused
- decoding: May be set by the user before opening the decoder if known
            e.g. from the container. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) CodedSideData

func (s *AVCodecContext) CodedSideData() *AVPacketSideData

CodedSideData gets the coded_side_data field.

Additional data associated with the entire coded stream.

- decoding: may be set by user before calling avcodec_open2().
- encoding: may be set by libavcodec after avcodec_open2().

func (*AVCodecContext) CodedWidth

func (s *AVCodecContext) CodedWidth() int

CodedWidth gets the coded_width field.

Bitstream width / height, may be different from width/height e.g. when
the decoded frame is cropped before being output or lowres is enabled.

@note Those field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: unused
- decoding: May be set by the user before opening the decoder if known
            e.g. from the container. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) ColorPrimaries

func (s *AVCodecContext) ColorPrimaries() AVColorPrimaries

ColorPrimaries gets the color_primaries field.

Chromaticity coordinates of the source primaries.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) ColorRange

func (s *AVCodecContext) ColorRange() AVColorRange

ColorRange gets the color_range field.

MPEG vs JPEG YUV range.
- encoding: Set by user to override the default output color range value,
  If not specified, libavcodec sets the color range depending on the
  output format.
- decoding: Set by libavcodec, can be set by the user to propagate the
  color range to components reading from the decoder context.

func (*AVCodecContext) ColorTrc

ColorTrc gets the color_trc field.

Color Transfer Characteristic.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) Colorspace

func (s *AVCodecContext) Colorspace() AVColorSpace

Colorspace gets the colorspace field.

YUV colorspace type.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) CompressionLevel

func (s *AVCodecContext) CompressionLevel() int

CompressionLevel gets the compression_level field.

  • encoding: Set by user.
  • decoding: unused

func (*AVCodecContext) Cutoff

func (s *AVCodecContext) Cutoff() int

Cutoff gets the cutoff field.

Audio cutoff bandwidth (0 means "automatic")
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) DarkMasking

func (s *AVCodecContext) DarkMasking() float32

DarkMasking gets the dark_masking field.

darkness masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) DctAlgo

func (s *AVCodecContext) DctAlgo() int

DctAlgo gets the dct_algo field.

DCT algorithm, see FF_DCT_* below
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Debug

func (s *AVCodecContext) Debug() int

Debug gets the debug field.

debug
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) DecodedSideData

func (s *AVCodecContext) DecodedSideData() *Array[*AVFrameSideData]

DecodedSideData gets the decoded_side_data field.

Array containing static side data, such as HDR10 CLL / MDCV structures.
Side data entries should be allocated by usage of helpers defined in
libavutil/frame.h.

- encoding: may be set by user before calling avcodec_open2() for
            encoder configuration. Afterwards owned and freed by the
            encoder.
- decoding: may be set by libavcodec in avcodec_open2().

func (*AVCodecContext) Delay

func (s *AVCodecContext) Delay() int

Delay gets the delay field.

Codec delay.

Encoding: Number of frames delay there will be from the encoder input to
          the decoder output. (we assume the decoder matches the spec)
Decoding: Number of frames delay in addition to what a standard decoder
          as specified in the spec would produce.

Video:
  Number of frames the decoded output will be delayed relative to the
  encoded input.

Audio:
  For encoding, this field is unused (see initial_padding).

  For decoding, this is the number of samples the decoder needs to
  output before the decoder's output is valid. When seeking, you should
  start decoding this many samples prior to your desired seek point.

- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) DiaSize

func (s *AVCodecContext) DiaSize() int

DiaSize gets the dia_size field.

ME diamond size & shape
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) DiscardDamagedPercentage

func (s *AVCodecContext) DiscardDamagedPercentage() int

DiscardDamagedPercentage gets the discard_damaged_percentage field.

The percentage of damaged samples to discard a frame.

- decoding: set by user
- encoding: unused

func (*AVCodecContext) DumpSeparator

func (s *AVCodecContext) DumpSeparator() unsafe.Pointer

DumpSeparator gets the dump_separator field.

dump format separator.
can be ", " or "\n      " or anything else
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) ErrRecognition

func (s *AVCodecContext) ErrRecognition() int

ErrRecognition gets the err_recognition field.

Error recognition; may misdetect some more or less valid parts as errors.
This is a bitfield of the AV_EF_* values defined in defs.h.

- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) Error

func (s *AVCodecContext) Error() *Array[uint64]

Error gets the error field.

error
- encoding: Set by libavcodec if flags & AV_CODEC_FLAG_PSNR.
- decoding: unused

func (*AVCodecContext) ErrorConcealment

func (s *AVCodecContext) ErrorConcealment() int

ErrorConcealment gets the error_concealment field.

error concealment flags
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) ExportSideData

func (s *AVCodecContext) ExportSideData() int

ExportSideData gets the export_side_data field.

Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of
metadata exported in frame, packet, or coded stream side data by
decoders and encoders.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) ExtraHwFrames

func (s *AVCodecContext) ExtraHwFrames() int

ExtraHwFrames gets the extra_hw_frames field.

Video decoding only.  Sets the number of extra hardware frames which
the decoder will allocate for use by the caller.  This must be set
before avcodec_open2() is called.

Some hardware decoders require all frames that they will use for
output to be defined in advance before decoding starts.  For such
decoders, the hardware frame pool must therefore be of a fixed size.
The extra frames set here are on top of any number that the decoder
needs internally in order to operate normally (for example, frames
used as reference pictures).

func (*AVCodecContext) Extradata

func (s *AVCodecContext) Extradata() unsafe.Pointer

Extradata gets the extradata field.

Out-of-band global headers that may be used by some codecs.

- decoding: Should be set by the caller when available (typically from a
  demuxer) before opening the decoder; some decoders require this to be
  set and will fail to initialize otherwise.

  The array must be allocated with the av_malloc() family of functions;
  allocated size must be at least AV_INPUT_BUFFER_PADDING_SIZE bytes
  larger than extradata_size.

- encoding: May be set by the encoder in avcodec_open2() (possibly
  depending on whether the AV_CODEC_FLAG_GLOBAL_HEADER flag is set).

After being set, the array is owned by the codec and freed in
avcodec_free_context().

func (*AVCodecContext) ExtradataSize

func (s *AVCodecContext) ExtradataSize() int

ExtradataSize gets the extradata_size field.

func (*AVCodecContext) FieldOrder

func (s *AVCodecContext) FieldOrder() AVFieldOrder

FieldOrder gets the field_order field.

Field order
- encoding: set by libavcodec
- decoding: Set by user.

func (*AVCodecContext) Flags

func (s *AVCodecContext) Flags() int

Flags gets the flags field.

AV_CODEC_FLAG_*.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) Flags2

func (s *AVCodecContext) Flags2() int

Flags2 gets the flags2 field.

AV_CODEC_FLAG2_*
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) FrameNum

func (s *AVCodecContext) FrameNum() int64

FrameNum gets the frame_num field.

Frame counter, set by libavcodec.

- decoding: total number of frames returned from the decoder so far.
- encoding: total number of frames passed to the encoder so far.

  @note the counter is not incremented if encoding/decoding resulted in
  an error.

func (*AVCodecContext) FrameSize

func (s *AVCodecContext) FrameSize() int

FrameSize gets the frame_size field.

Number of samples per channel in an audio frame.

- encoding: set by libavcodec in avcodec_open2(). Each submitted frame
  except the last must contain exactly frame_size samples per channel.
  May be 0 when the codec has AV_CODEC_CAP_VARIABLE_FRAME_SIZE set, then the
  frame size is not restricted.
- decoding: may be set by some decoders to indicate constant frame size

func (*AVCodecContext) Framerate

func (s *AVCodecContext) Framerate() *AVRational

Framerate gets the framerate field.

  • decoding: For codecs that store a framerate value in the compressed bitstream, the decoder may export it here. { 0, 1} when unknown.
  • encoding: May be used to signal the framerate of CFR content to an encoder.

func (*AVCodecContext) GlobalQuality

func (s *AVCodecContext) GlobalQuality() int

GlobalQuality gets the global_quality field.

Global quality for codecs which cannot change it per frame.
This should be proportional to MPEG-1/2/4 qscale.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) GopSize

func (s *AVCodecContext) GopSize() int

GopSize gets the gop_size field.

the number of pictures in a group of pictures, or 0 for intra_only
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) HasBFrames

func (s *AVCodecContext) HasBFrames() int

HasBFrames gets the has_b_frames field.

Size of the frame reordering buffer in the decoder.
For MPEG-2 it is 1 IPB or 0 low delay IP.
- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) Height

func (s *AVCodecContext) Height() int

Height gets the height field.

picture width / height.

@note Those fields may not match the values of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: MUST be set by user.
- decoding: May be set by the user before opening the decoder if known e.g.
            from the container. Some decoders will require the dimensions
            to be set by the caller. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) HwDeviceCtx

func (s *AVCodecContext) HwDeviceCtx() *AVBufferRef

HwDeviceCtx gets the hw_device_ctx field.

A reference to the AVHWDeviceContext describing the device which will
be used by a hardware encoder/decoder.  The reference is set by the
caller and afterwards owned (and freed) by libavcodec.

This should be used if either the codec device does not require
hardware frames or any that are used are to be allocated internally by
libavcodec.  If the user wishes to supply any of the frames used as
encoder input or decoder output then hw_frames_ctx should be used
instead.  When hw_frames_ctx is set in get_format() for a decoder, this
field will be ignored while decoding the associated stream segment, but
may again be used on a following one after another get_format() call.

For both encoders and decoders this field should be set before
avcodec_open2() is called and must not be written to thereafter.

Note that some decoders may require this field to be set initially in
order to support hw_frames_ctx at all - in that case, all frames
contexts used must be created on the same device.

func (*AVCodecContext) HwFramesCtx

func (s *AVCodecContext) HwFramesCtx() *AVBufferRef

HwFramesCtx gets the hw_frames_ctx field.

A reference to the AVHWFramesContext describing the input (for encoding)
or output (decoding) frames. The reference is set by the caller and
afterwards owned (and freed) by libavcodec - it should never be read by
the caller after being set.

- decoding: This field should be set by the caller from the get_format()
            callback. The previous reference (if any) will always be
            unreffed by libavcodec before the get_format() call.

            If the default get_buffer2() is used with a hwaccel pixel
            format, then this AVHWFramesContext will be used for
            allocating the frame buffers.

- encoding: For hardware encoders configured to use a hwaccel pixel
            format, this field should be set by the caller to a reference
            to the AVHWFramesContext describing input frames.
            AVHWFramesContext.format must be equal to
            AVCodecContext.pix_fmt.

            This field should be set before avcodec_open2() is called.

func (*AVCodecContext) Hwaccel

func (s *AVCodecContext) Hwaccel() *AVHWAccel

Hwaccel gets the hwaccel field.

Hardware accelerator in use
- encoding: unused.
- decoding: Set by libavcodec

func (*AVCodecContext) HwaccelContext

func (s *AVCodecContext) HwaccelContext() unsafe.Pointer

HwaccelContext gets the hwaccel_context field.

Legacy hardware accelerator context.

For some hardware acceleration methods, the caller may use this field to
signal hwaccel-specific data to the codec. The struct pointed to by this
pointer is hwaccel-dependent and defined in the respective header. Please
refer to the FFmpeg HW accelerator documentation to know how to fill
this.

In most cases this field is optional - the necessary information may also
be provided to libavcodec through @ref hw_frames_ctx or @ref
hw_device_ctx (see avcodec_get_hw_config()). However, in some cases it
may be the only method of signalling some (optional) information.

The struct and its contents are owned by the caller.

- encoding: May be set by the caller before avcodec_open2(). Must remain
            valid until avcodec_free_context().
- decoding: May be set by the caller in the get_format() callback.
            Must remain valid until the next get_format() call,
            or avcodec_free_context() (whichever comes first).

func (*AVCodecContext) HwaccelFlags

func (s *AVCodecContext) HwaccelFlags() int

HwaccelFlags gets the hwaccel_flags field.

Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated
decoding (if active).
- encoding: unused
- decoding: Set by user (either before avcodec_open2(), or in the
            AVCodecContext.get_format callback)

func (*AVCodecContext) IQuantFactor

func (s *AVCodecContext) IQuantFactor() float32

IQuantFactor gets the i_quant_factor field.

qscale factor between P- and I-frames
If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset).
If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) IQuantOffset

func (s *AVCodecContext) IQuantOffset() float32

IQuantOffset gets the i_quant_offset field.

qscale offset between P and I-frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) IdctAlgo

func (s *AVCodecContext) IdctAlgo() int

IdctAlgo gets the idct_algo field.

IDCT algorithm, see FF_IDCT_* below.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) IldctCmp

func (s *AVCodecContext) IldctCmp() int

IldctCmp gets the ildct_cmp field.

interlaced DCT comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) InitialPadding

func (s *AVCodecContext) InitialPadding() int

InitialPadding gets the initial_padding field.

Audio only. The number of "priming" samples (padding) inserted by the
encoder at the beginning of the audio. I.e. this number of leading
decoded samples must be discarded by the caller to get the original audio
without leading padding.

- decoding: unused
- encoding: Set by libavcodec. The timestamps on the output packets are
            adjusted by the encoder so that they always refer to the
            first sample of the data actually contained in the packet,
            including any added padding.  E.g. if the timebase is
            1/samplerate and the timestamp of the first input sample is
            0, the timestamp of the first output packet will be
            -initial_padding.

func (*AVCodecContext) IntraDcPrecision

func (s *AVCodecContext) IntraDcPrecision() int

IntraDcPrecision gets the intra_dc_precision field.

precision of the intra DC coefficient - 8
- encoding: Set by user.
- decoding: Set by libavcodec

func (*AVCodecContext) KeyintMin

func (s *AVCodecContext) KeyintMin() int

KeyintMin gets the keyint_min field.

minimum GOP size
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) LastPredictorCount

func (s *AVCodecContext) LastPredictorCount() int

LastPredictorCount gets the last_predictor_count field.

amount of previous MV predictors (2a+1 x 2a+1 square)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Level

func (s *AVCodecContext) Level() int

Level gets the level field.

Encoding level descriptor.
- encoding: Set by user, corresponds to a specific level defined by the
  codec, usually corresponding to the profile level, if not specified it
  is set to AV_LEVEL_UNKNOWN.
- decoding: Set by libavcodec.
See AV_LEVEL_* in defs.h.

func (*AVCodecContext) LogLevelOffset

func (s *AVCodecContext) LogLevelOffset() int

LogLevelOffset gets the log_level_offset field.

func (*AVCodecContext) Lowres

func (s *AVCodecContext) Lowres() int

Lowres gets the lowres field.

low resolution decoding, 1-> 1/2 size, 2->1/4 size
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) LumiMasking

func (s *AVCodecContext) LumiMasking() float32

LumiMasking gets the lumi_masking field.

luminance masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MaxBFrames

func (s *AVCodecContext) MaxBFrames() int

MaxBFrames gets the max_b_frames field.

maximum number of B-frames between non-B-frames
Note: The output will be delayed by max_b_frames+1 relative to the input.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MaxPixels

func (s *AVCodecContext) MaxPixels() int64

MaxPixels gets the max_pixels field.

The number of pixels per image to maximally accept.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) MaxQdiff

func (s *AVCodecContext) MaxQdiff() int

MaxQdiff gets the max_qdiff field.

maximum quantizer difference between frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MaxSamples

func (s *AVCodecContext) MaxSamples() int64

MaxSamples gets the max_samples field.

The number of samples per frame to maximally accept.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) MbCmp

func (s *AVCodecContext) MbCmp() int

MbCmp gets the mb_cmp field.

macroblock comparison function (not supported yet)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MbDecision

func (s *AVCodecContext) MbDecision() int

MbDecision gets the mb_decision field.

macroblock decision mode
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MbLmax

func (s *AVCodecContext) MbLmax() int

MbLmax gets the mb_lmax field.

maximum MB Lagrange multiplier
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MbLmin

func (s *AVCodecContext) MbLmin() int

MbLmin gets the mb_lmin field.

minimum MB Lagrange multiplier
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MeCmp

func (s *AVCodecContext) MeCmp() int

MeCmp gets the me_cmp field.

motion estimation comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MePreCmp

func (s *AVCodecContext) MePreCmp() int

MePreCmp gets the me_pre_cmp field.

motion estimation prepass comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MeRange

func (s *AVCodecContext) MeRange() int

MeRange gets the me_range field.

maximum motion estimation search range in subpel units
If 0 then no limit.

- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MeSubCmp

func (s *AVCodecContext) MeSubCmp() int

MeSubCmp gets the me_sub_cmp field.

subpixel motion estimation comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) MeSubpelQuality

func (s *AVCodecContext) MeSubpelQuality() int

MeSubpelQuality gets the me_subpel_quality field.

subpel ME quality
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Mv0Threshold

func (s *AVCodecContext) Mv0Threshold() int

Mv0Threshold gets the mv0_threshold field.

Note: Value depends upon the compare function used for fullpel ME.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) NbCodedSideData

func (s *AVCodecContext) NbCodedSideData() int

NbCodedSideData gets the nb_coded_side_data field.

func (*AVCodecContext) NbDecodedSideData

func (s *AVCodecContext) NbDecodedSideData() int

NbDecodedSideData gets the nb_decoded_side_data field.

func (*AVCodecContext) NbSideDataPreferPacket

func (s *AVCodecContext) NbSideDataPreferPacket() uint

NbSideDataPreferPacket gets the nb_side_data_prefer_packet field.

Number of entries in side_data_prefer_packet.

func (*AVCodecContext) NsseWeight

func (s *AVCodecContext) NsseWeight() int

NsseWeight gets the nsse_weight field.

noise vs. sse weight for the nsse comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Opaque

func (s *AVCodecContext) Opaque() unsafe.Pointer

Opaque gets the opaque field.

Private data of the user, can be used to carry app specific stuff.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) PMasking

func (s *AVCodecContext) PMasking() float32

PMasking gets the p_masking field.

p block masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) PixFmt

func (s *AVCodecContext) PixFmt() AVPixelFormat

PixFmt gets the pix_fmt field.

Pixel format, see AV_PIX_FMT_xxx.
May be set by the demuxer if known from headers.
May be overridden by the decoder if it knows better.

@note This field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: Set by user.
- decoding: Set by user if known, overridden by libavcodec while
            parsing the data.

func (*AVCodecContext) PktTimebase

func (s *AVCodecContext) PktTimebase() *AVRational

PktTimebase gets the pkt_timebase field.

Timebase in which pkt_dts/pts and AVPacket.dts/pts are expressed.
- encoding: unused.
- decoding: set by user.

func (*AVCodecContext) PreDiaSize

func (s *AVCodecContext) PreDiaSize() int

PreDiaSize gets the pre_dia_size field.

ME prepass diamond size & shape
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) PrivData

func (s *AVCodecContext) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

func (*AVCodecContext) Profile

func (s *AVCodecContext) Profile() int

Profile gets the profile field.

profile
- encoding: Set by user.
- decoding: Set by libavcodec.
See the AV_PROFILE_* defines in defs.h.

func (*AVCodecContext) Properties

func (s *AVCodecContext) Properties() uint

Properties gets the properties field.

Properties of the stream that gets decoded
- encoding: unused
- decoding: set by libavcodec

func (*AVCodecContext) Qblur

func (s *AVCodecContext) Qblur() float32

Qblur gets the qblur field.

amount of qscale smoothing over time (0.0-1.0)

func (*AVCodecContext) Qcompress

func (s *AVCodecContext) Qcompress() float32

Qcompress gets the qcompress field.

amount of qscale change between easy & hard scenes (0.0-1.0)

func (*AVCodecContext) Qmax

func (s *AVCodecContext) Qmax() int

Qmax gets the qmax field.

maximum quantizer
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Qmin

func (s *AVCodecContext) Qmin() int

Qmin gets the qmin field.

minimum quantizer
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) RawPtr

func (s *AVCodecContext) RawPtr() unsafe.Pointer

func (*AVCodecContext) RcBufferSize

func (s *AVCodecContext) RcBufferSize() int

RcBufferSize gets the rc_buffer_size field.

decoder bitstream buffer size
- encoding: Set by user.
- decoding: May be set by libavcodec.

func (*AVCodecContext) RcInitialBufferOccupancy

func (s *AVCodecContext) RcInitialBufferOccupancy() int

RcInitialBufferOccupancy gets the rc_initial_buffer_occupancy field.

Number of bits which should be loaded into the rc buffer before decoding starts.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) RcMaxAvailableVbvUse

func (s *AVCodecContext) RcMaxAvailableVbvUse() float32

RcMaxAvailableVbvUse gets the rc_max_available_vbv_use field.

Ratecontrol attempt to use, at maximum, <value> of what can be used without an underflow.
- encoding: Set by user.
- decoding: unused.

func (*AVCodecContext) RcMaxRate

func (s *AVCodecContext) RcMaxRate() int64

RcMaxRate gets the rc_max_rate field.

maximum bitrate
- encoding: Set by user.
- decoding: Set by user, may be overwritten by libavcodec.

func (*AVCodecContext) RcMinRate

func (s *AVCodecContext) RcMinRate() int64

RcMinRate gets the rc_min_rate field.

minimum bitrate
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) RcMinVbvOverflowUse

func (s *AVCodecContext) RcMinVbvOverflowUse() float32

RcMinVbvOverflowUse gets the rc_min_vbv_overflow_use field.

Ratecontrol attempt to use, at least, <value> times the amount needed to prevent a vbv overflow.
- encoding: Set by user.
- decoding: unused.

func (*AVCodecContext) RcOverride

func (s *AVCodecContext) RcOverride() *RcOverride

RcOverride gets the rc_override field.

func (*AVCodecContext) RcOverrideCount

func (s *AVCodecContext) RcOverrideCount() int

RcOverrideCount gets the rc_override_count field.

ratecontrol override, see RcOverride
- encoding: Allocated/set/freed by user.
- decoding: unused

func (*AVCodecContext) Refs

func (s *AVCodecContext) Refs() int

Refs gets the refs field.

number of reference frames
- encoding: Set by user.
- decoding: Set by lavc.

func (*AVCodecContext) RequestSampleFmt

func (s *AVCodecContext) RequestSampleFmt() AVSampleFormat

RequestSampleFmt gets the request_sample_fmt field.

desired sample format
- encoding: Not used.
- decoding: Set by user.
Decoder will decode to this format if it can.

func (*AVCodecContext) SampleAspectRatio

func (s *AVCodecContext) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

sample aspect ratio (0 if unknown)
That is the width of a pixel divided by the height of the pixel.
Numerator and denominator must be relatively prime and smaller than 256 for some video standards.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVCodecContext) SampleFmt

func (s *AVCodecContext) SampleFmt() AVSampleFormat

SampleFmt gets the sample_fmt field.

sample format

func (*AVCodecContext) SampleRate

func (s *AVCodecContext) SampleRate() int

SampleRate gets the sample_rate field.

samples per second

func (*AVCodecContext) SeekPreroll

func (s *AVCodecContext) SeekPreroll() int

SeekPreroll gets the seek_preroll field.

Number of samples to skip after a discontinuity
- decoding: unused
- encoding: set by libavcodec

func (*AVCodecContext) SetActiveThreadType

func (s *AVCodecContext) SetActiveThreadType(value int)

SetActiveThreadType sets the active_thread_type field.

Which multithreading methods are in use by the codec.
- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) SetApplyCropping

func (s *AVCodecContext) SetApplyCropping(value int)

SetApplyCropping sets the apply_cropping field.

Video decoding only. Certain video codecs support cropping, meaning that
only a sub-rectangle of the decoded frame is intended for display.  This
option controls how cropping is handled by libavcodec.

When set to 1 (the default), libavcodec will apply cropping internally.
I.e. it will modify the output frame width/height fields and offset the
data pointers (only by as much as possible while preserving alignment, or
by the full amount if the AV_CODEC_FLAG_UNALIGNED flag is set) so that
the frames output by the decoder refer only to the cropped area. The
crop_* fields of the output frames will be zero.

When set to 0, the width/height fields of the output frames will be set
to the coded dimensions and the crop_* fields will describe the cropping
rectangle. Applying the cropping is left to the caller.

@warning When hardware acceleration with opaque output frames is used,
libavcodec is unable to apply cropping from the top/left border.

@note when this option is set to zero, the width/height fields of the
AVCodecContext and output AVFrames have different meanings. The codec
context fields store display dimensions (with the coded dimensions in
coded_width/height), while the frame fields store the coded dimensions
(with the display dimensions being determined by the crop_* fields).

func (*AVCodecContext) SetAudioServiceType

func (s *AVCodecContext) SetAudioServiceType(value AVAudioServiceType)

SetAudioServiceType sets the audio_service_type field.

Type of service that the audio stream conveys.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVCodecContext) SetAvClass

func (s *AVCodecContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

information on struct for av_log
- set by avcodec_alloc_context3

func (*AVCodecContext) SetBQuantFactor

func (s *AVCodecContext) SetBQuantFactor(value float32)

SetBQuantFactor sets the b_quant_factor field.

qscale factor between IP and B-frames
If > 0 then the last P-frame quantizer will be used (q= lastp_q*factor+offset).
If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetBQuantOffset

func (s *AVCodecContext) SetBQuantOffset(value float32)

SetBQuantOffset sets the b_quant_offset field.

qscale offset between IP and B-frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetBidirRefine

func (s *AVCodecContext) SetBidirRefine(value int)

SetBidirRefine sets the bidir_refine field.

  • encoding: Set by user.
  • decoding: unused

func (*AVCodecContext) SetBitRate

func (s *AVCodecContext) SetBitRate(value int64)

SetBitRate sets the bit_rate field.

the average bitrate
- encoding: Set by user; unused for constant quantizer encoding.
- decoding: Set by user, may be overwritten by libavcodec
            if this info is available in the stream

func (*AVCodecContext) SetBitRateTolerance

func (s *AVCodecContext) SetBitRateTolerance(value int)

SetBitRateTolerance sets the bit_rate_tolerance field.

number of bits the bitstream is allowed to diverge from the reference.
          the reference can be CBR (for CBR pass1) or VBR (for pass2)
- encoding: Set by user; unused for constant quantizer encoding.
- decoding: unused

func (*AVCodecContext) SetBitsPerCodedSample

func (s *AVCodecContext) SetBitsPerCodedSample(value int)

SetBitsPerCodedSample sets the bits_per_coded_sample field.

bits per sample/pixel from the demuxer (needed for huffyuv).
- encoding: Set by libavcodec.
- decoding: Set by user.

func (*AVCodecContext) SetBitsPerRawSample

func (s *AVCodecContext) SetBitsPerRawSample(value int)

SetBitsPerRawSample sets the bits_per_raw_sample field.

Bits per sample/pixel of internal libavcodec pixel/sample format.
- encoding: set by user.
- decoding: set by libavcodec.

func (*AVCodecContext) SetBlockAlign

func (s *AVCodecContext) SetBlockAlign(value int)

SetBlockAlign sets the block_align field.

number of bytes per packet if constant and known or 0
Used by some WAV based audio codecs.

func (*AVCodecContext) SetChromaSampleLocation

func (s *AVCodecContext) SetChromaSampleLocation(value AVChromaLocation)

SetChromaSampleLocation sets the chroma_sample_location field.

This defines the location of chroma samples.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) SetCodec

func (s *AVCodecContext) SetCodec(value *AVCodec)

SetCodec sets the codec field.

func (*AVCodecContext) SetCodecDescriptor

func (s *AVCodecContext) SetCodecDescriptor(value *AVCodecDescriptor)

SetCodecDescriptor sets the codec_descriptor field.

AVCodecDescriptor
- encoding: unused.
- decoding: set by libavcodec.

func (*AVCodecContext) SetCodecId

func (s *AVCodecContext) SetCodecId(value AVCodecID)

SetCodecId sets the codec_id field.

see AV_CODEC_ID_xxx

func (*AVCodecContext) SetCodecTag

func (s *AVCodecContext) SetCodecTag(value uint)

SetCodecTag sets the codec_tag field.

fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
This is used to work around some encoder bugs.
A demuxer should set this to what is stored in the field used to identify the codec.
If there are multiple such fields in a container then the demuxer should choose the one
which maximizes the information about the used codec.
If the codec tag field in a container is larger than 32 bits then the demuxer should
remap the longer ID to 32 bits with a table or other structure. Alternatively a new
extra_codec_tag + size could be added but for this a clear advantage must be demonstrated
first.
- encoding: Set by user, if not then the default based on codec_id will be used.
- decoding: Set by user, will be converted to uppercase by libavcodec during init.

func (*AVCodecContext) SetCodecType

func (s *AVCodecContext) SetCodecType(value AVMediaType)

SetCodecType sets the codec_type field.

see AVMEDIA_TYPE_xxx

func (*AVCodecContext) SetCodecWhitelist

func (s *AVCodecContext) SetCodecWhitelist(value *CStr)

SetCodecWhitelist sets the codec_whitelist field.

',' separated list of allowed decoders.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVCodecContext) SetCodedHeight

func (s *AVCodecContext) SetCodedHeight(value int)

SetCodedHeight sets the coded_height field.

Bitstream width / height, may be different from width/height e.g. when
the decoded frame is cropped before being output or lowres is enabled.

@note Those field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: unused
- decoding: May be set by the user before opening the decoder if known
            e.g. from the container. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) SetCodedSideData

func (s *AVCodecContext) SetCodedSideData(value *AVPacketSideData)

SetCodedSideData sets the coded_side_data field.

Additional data associated with the entire coded stream.

- decoding: may be set by user before calling avcodec_open2().
- encoding: may be set by libavcodec after avcodec_open2().

func (*AVCodecContext) SetCodedWidth

func (s *AVCodecContext) SetCodedWidth(value int)

SetCodedWidth sets the coded_width field.

Bitstream width / height, may be different from width/height e.g. when
the decoded frame is cropped before being output or lowres is enabled.

@note Those field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: unused
- decoding: May be set by the user before opening the decoder if known
            e.g. from the container. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) SetColorPrimaries

func (s *AVCodecContext) SetColorPrimaries(value AVColorPrimaries)

SetColorPrimaries sets the color_primaries field.

Chromaticity coordinates of the source primaries.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) SetColorRange

func (s *AVCodecContext) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

MPEG vs JPEG YUV range.
- encoding: Set by user to override the default output color range value,
  If not specified, libavcodec sets the color range depending on the
  output format.
- decoding: Set by libavcodec, can be set by the user to propagate the
  color range to components reading from the decoder context.

func (*AVCodecContext) SetColorTrc

func (s *AVCodecContext) SetColorTrc(value AVColorTransferCharacteristic)

SetColorTrc sets the color_trc field.

Color Transfer Characteristic.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) SetColorspace

func (s *AVCodecContext) SetColorspace(value AVColorSpace)

SetColorspace sets the colorspace field.

YUV colorspace type.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVCodecContext) SetCompressionLevel

func (s *AVCodecContext) SetCompressionLevel(value int)

SetCompressionLevel sets the compression_level field.

  • encoding: Set by user.
  • decoding: unused

func (*AVCodecContext) SetCutoff

func (s *AVCodecContext) SetCutoff(value int)

SetCutoff sets the cutoff field.

Audio cutoff bandwidth (0 means "automatic")
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetDarkMasking

func (s *AVCodecContext) SetDarkMasking(value float32)

SetDarkMasking sets the dark_masking field.

darkness masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetDctAlgo

func (s *AVCodecContext) SetDctAlgo(value int)

SetDctAlgo sets the dct_algo field.

DCT algorithm, see FF_DCT_* below
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetDebug

func (s *AVCodecContext) SetDebug(value int)

SetDebug sets the debug field.

debug
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetDecodedSideData

func (s *AVCodecContext) SetDecodedSideData(value *Array[AVFrameSideData])

SetDecodedSideData sets the decoded_side_data field.

Array containing static side data, such as HDR10 CLL / MDCV structures.
Side data entries should be allocated by usage of helpers defined in
libavutil/frame.h.

- encoding: may be set by user before calling avcodec_open2() for
            encoder configuration. Afterwards owned and freed by the
            encoder.
- decoding: may be set by libavcodec in avcodec_open2().

func (*AVCodecContext) SetDelay

func (s *AVCodecContext) SetDelay(value int)

SetDelay sets the delay field.

Codec delay.

Encoding: Number of frames delay there will be from the encoder input to
          the decoder output. (we assume the decoder matches the spec)
Decoding: Number of frames delay in addition to what a standard decoder
          as specified in the spec would produce.

Video:
  Number of frames the decoded output will be delayed relative to the
  encoded input.

Audio:
  For encoding, this field is unused (see initial_padding).

  For decoding, this is the number of samples the decoder needs to
  output before the decoder's output is valid. When seeking, you should
  start decoding this many samples prior to your desired seek point.

- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) SetDiaSize

func (s *AVCodecContext) SetDiaSize(value int)

SetDiaSize sets the dia_size field.

ME diamond size & shape
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetDiscardDamagedPercentage

func (s *AVCodecContext) SetDiscardDamagedPercentage(value int)

SetDiscardDamagedPercentage sets the discard_damaged_percentage field.

The percentage of damaged samples to discard a frame.

- decoding: set by user
- encoding: unused

func (*AVCodecContext) SetDumpSeparator

func (s *AVCodecContext) SetDumpSeparator(value unsafe.Pointer)

SetDumpSeparator sets the dump_separator field.

dump format separator.
can be ", " or "\n      " or anything else
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetErrRecognition

func (s *AVCodecContext) SetErrRecognition(value int)

SetErrRecognition sets the err_recognition field.

Error recognition; may misdetect some more or less valid parts as errors.
This is a bitfield of the AV_EF_* values defined in defs.h.

- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetErrorConcealment

func (s *AVCodecContext) SetErrorConcealment(value int)

SetErrorConcealment sets the error_concealment field.

error concealment flags
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetExportSideData

func (s *AVCodecContext) SetExportSideData(value int)

SetExportSideData sets the export_side_data field.

Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of
metadata exported in frame, packet, or coded stream side data by
decoders and encoders.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) SetExtraHwFrames

func (s *AVCodecContext) SetExtraHwFrames(value int)

SetExtraHwFrames sets the extra_hw_frames field.

Video decoding only.  Sets the number of extra hardware frames which
the decoder will allocate for use by the caller.  This must be set
before avcodec_open2() is called.

Some hardware decoders require all frames that they will use for
output to be defined in advance before decoding starts.  For such
decoders, the hardware frame pool must therefore be of a fixed size.
The extra frames set here are on top of any number that the decoder
needs internally in order to operate normally (for example, frames
used as reference pictures).

func (*AVCodecContext) SetExtradata

func (s *AVCodecContext) SetExtradata(value unsafe.Pointer)

SetExtradata sets the extradata field.

Out-of-band global headers that may be used by some codecs.

- decoding: Should be set by the caller when available (typically from a
  demuxer) before opening the decoder; some decoders require this to be
  set and will fail to initialize otherwise.

  The array must be allocated with the av_malloc() family of functions;
  allocated size must be at least AV_INPUT_BUFFER_PADDING_SIZE bytes
  larger than extradata_size.

- encoding: May be set by the encoder in avcodec_open2() (possibly
  depending on whether the AV_CODEC_FLAG_GLOBAL_HEADER flag is set).

After being set, the array is owned by the codec and freed in
avcodec_free_context().

func (*AVCodecContext) SetExtradataSize

func (s *AVCodecContext) SetExtradataSize(value int)

SetExtradataSize sets the extradata_size field.

func (*AVCodecContext) SetFieldOrder

func (s *AVCodecContext) SetFieldOrder(value AVFieldOrder)

SetFieldOrder sets the field_order field.

Field order
- encoding: set by libavcodec
- decoding: Set by user.

func (*AVCodecContext) SetFlags

func (s *AVCodecContext) SetFlags(value int)

SetFlags sets the flags field.

AV_CODEC_FLAG_*.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetFlags2

func (s *AVCodecContext) SetFlags2(value int)

SetFlags2 sets the flags2 field.

AV_CODEC_FLAG2_*
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetFrameNum

func (s *AVCodecContext) SetFrameNum(value int64)

SetFrameNum sets the frame_num field.

Frame counter, set by libavcodec.

- decoding: total number of frames returned from the decoder so far.
- encoding: total number of frames passed to the encoder so far.

  @note the counter is not incremented if encoding/decoding resulted in
  an error.

func (*AVCodecContext) SetFrameSize

func (s *AVCodecContext) SetFrameSize(value int)

SetFrameSize sets the frame_size field.

Number of samples per channel in an audio frame.

- encoding: set by libavcodec in avcodec_open2(). Each submitted frame
  except the last must contain exactly frame_size samples per channel.
  May be 0 when the codec has AV_CODEC_CAP_VARIABLE_FRAME_SIZE set, then the
  frame size is not restricted.
- decoding: may be set by some decoders to indicate constant frame size

func (*AVCodecContext) SetFramerate

func (s *AVCodecContext) SetFramerate(value *AVRational)

SetFramerate sets the framerate field.

  • decoding: For codecs that store a framerate value in the compressed bitstream, the decoder may export it here. { 0, 1} when unknown.
  • encoding: May be used to signal the framerate of CFR content to an encoder.

func (*AVCodecContext) SetGlobalQuality

func (s *AVCodecContext) SetGlobalQuality(value int)

SetGlobalQuality sets the global_quality field.

Global quality for codecs which cannot change it per frame.
This should be proportional to MPEG-1/2/4 qscale.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetGopSize

func (s *AVCodecContext) SetGopSize(value int)

SetGopSize sets the gop_size field.

the number of pictures in a group of pictures, or 0 for intra_only
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetHasBFrames

func (s *AVCodecContext) SetHasBFrames(value int)

SetHasBFrames sets the has_b_frames field.

Size of the frame reordering buffer in the decoder.
For MPEG-2 it is 1 IPB or 0 low delay IP.
- encoding: Set by libavcodec.
- decoding: Set by libavcodec.

func (*AVCodecContext) SetHeight

func (s *AVCodecContext) SetHeight(value int)

SetHeight sets the height field.

picture width / height.

@note Those fields may not match the values of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: MUST be set by user.
- decoding: May be set by the user before opening the decoder if known e.g.
            from the container. Some decoders will require the dimensions
            to be set by the caller. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) SetHwDeviceCtx

func (s *AVCodecContext) SetHwDeviceCtx(value *AVBufferRef)

SetHwDeviceCtx sets the hw_device_ctx field.

A reference to the AVHWDeviceContext describing the device which will
be used by a hardware encoder/decoder.  The reference is set by the
caller and afterwards owned (and freed) by libavcodec.

This should be used if either the codec device does not require
hardware frames or any that are used are to be allocated internally by
libavcodec.  If the user wishes to supply any of the frames used as
encoder input or decoder output then hw_frames_ctx should be used
instead.  When hw_frames_ctx is set in get_format() for a decoder, this
field will be ignored while decoding the associated stream segment, but
may again be used on a following one after another get_format() call.

For both encoders and decoders this field should be set before
avcodec_open2() is called and must not be written to thereafter.

Note that some decoders may require this field to be set initially in
order to support hw_frames_ctx at all - in that case, all frames
contexts used must be created on the same device.

func (*AVCodecContext) SetHwFramesCtx

func (s *AVCodecContext) SetHwFramesCtx(value *AVBufferRef)

SetHwFramesCtx sets the hw_frames_ctx field.

A reference to the AVHWFramesContext describing the input (for encoding)
or output (decoding) frames. The reference is set by the caller and
afterwards owned (and freed) by libavcodec - it should never be read by
the caller after being set.

- decoding: This field should be set by the caller from the get_format()
            callback. The previous reference (if any) will always be
            unreffed by libavcodec before the get_format() call.

            If the default get_buffer2() is used with a hwaccel pixel
            format, then this AVHWFramesContext will be used for
            allocating the frame buffers.

- encoding: For hardware encoders configured to use a hwaccel pixel
            format, this field should be set by the caller to a reference
            to the AVHWFramesContext describing input frames.
            AVHWFramesContext.format must be equal to
            AVCodecContext.pix_fmt.

            This field should be set before avcodec_open2() is called.

func (*AVCodecContext) SetHwaccel

func (s *AVCodecContext) SetHwaccel(value *AVHWAccel)

SetHwaccel sets the hwaccel field.

Hardware accelerator in use
- encoding: unused.
- decoding: Set by libavcodec

func (*AVCodecContext) SetHwaccelContext

func (s *AVCodecContext) SetHwaccelContext(value unsafe.Pointer)

SetHwaccelContext sets the hwaccel_context field.

Legacy hardware accelerator context.

For some hardware acceleration methods, the caller may use this field to
signal hwaccel-specific data to the codec. The struct pointed to by this
pointer is hwaccel-dependent and defined in the respective header. Please
refer to the FFmpeg HW accelerator documentation to know how to fill
this.

In most cases this field is optional - the necessary information may also
be provided to libavcodec through @ref hw_frames_ctx or @ref
hw_device_ctx (see avcodec_get_hw_config()). However, in some cases it
may be the only method of signalling some (optional) information.

The struct and its contents are owned by the caller.

- encoding: May be set by the caller before avcodec_open2(). Must remain
            valid until avcodec_free_context().
- decoding: May be set by the caller in the get_format() callback.
            Must remain valid until the next get_format() call,
            or avcodec_free_context() (whichever comes first).

func (*AVCodecContext) SetHwaccelFlags

func (s *AVCodecContext) SetHwaccelFlags(value int)

SetHwaccelFlags sets the hwaccel_flags field.

Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated
decoding (if active).
- encoding: unused
- decoding: Set by user (either before avcodec_open2(), or in the
            AVCodecContext.get_format callback)

func (*AVCodecContext) SetIQuantFactor

func (s *AVCodecContext) SetIQuantFactor(value float32)

SetIQuantFactor sets the i_quant_factor field.

qscale factor between P- and I-frames
If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset).
If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetIQuantOffset

func (s *AVCodecContext) SetIQuantOffset(value float32)

SetIQuantOffset sets the i_quant_offset field.

qscale offset between P and I-frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetIdctAlgo

func (s *AVCodecContext) SetIdctAlgo(value int)

SetIdctAlgo sets the idct_algo field.

IDCT algorithm, see FF_IDCT_* below.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetIldctCmp

func (s *AVCodecContext) SetIldctCmp(value int)

SetIldctCmp sets the ildct_cmp field.

interlaced DCT comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetInitialPadding

func (s *AVCodecContext) SetInitialPadding(value int)

SetInitialPadding sets the initial_padding field.

Audio only. The number of "priming" samples (padding) inserted by the
encoder at the beginning of the audio. I.e. this number of leading
decoded samples must be discarded by the caller to get the original audio
without leading padding.

- decoding: unused
- encoding: Set by libavcodec. The timestamps on the output packets are
            adjusted by the encoder so that they always refer to the
            first sample of the data actually contained in the packet,
            including any added padding.  E.g. if the timebase is
            1/samplerate and the timestamp of the first input sample is
            0, the timestamp of the first output packet will be
            -initial_padding.

func (*AVCodecContext) SetIntraDcPrecision

func (s *AVCodecContext) SetIntraDcPrecision(value int)

SetIntraDcPrecision sets the intra_dc_precision field.

precision of the intra DC coefficient - 8
- encoding: Set by user.
- decoding: Set by libavcodec

func (*AVCodecContext) SetKeyintMin

func (s *AVCodecContext) SetKeyintMin(value int)

SetKeyintMin sets the keyint_min field.

minimum GOP size
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetLastPredictorCount

func (s *AVCodecContext) SetLastPredictorCount(value int)

SetLastPredictorCount sets the last_predictor_count field.

amount of previous MV predictors (2a+1 x 2a+1 square)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetLevel

func (s *AVCodecContext) SetLevel(value int)

SetLevel sets the level field.

Encoding level descriptor.
- encoding: Set by user, corresponds to a specific level defined by the
  codec, usually corresponding to the profile level, if not specified it
  is set to AV_LEVEL_UNKNOWN.
- decoding: Set by libavcodec.
See AV_LEVEL_* in defs.h.

func (*AVCodecContext) SetLogLevelOffset

func (s *AVCodecContext) SetLogLevelOffset(value int)

SetLogLevelOffset sets the log_level_offset field.

func (*AVCodecContext) SetLowres

func (s *AVCodecContext) SetLowres(value int)

SetLowres sets the lowres field.

low resolution decoding, 1-> 1/2 size, 2->1/4 size
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetLumiMasking

func (s *AVCodecContext) SetLumiMasking(value float32)

SetLumiMasking sets the lumi_masking field.

luminance masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMaxBFrames

func (s *AVCodecContext) SetMaxBFrames(value int)

SetMaxBFrames sets the max_b_frames field.

maximum number of B-frames between non-B-frames
Note: The output will be delayed by max_b_frames+1 relative to the input.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMaxPixels

func (s *AVCodecContext) SetMaxPixels(value int64)

SetMaxPixels sets the max_pixels field.

The number of pixels per image to maximally accept.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) SetMaxQdiff

func (s *AVCodecContext) SetMaxQdiff(value int)

SetMaxQdiff sets the max_qdiff field.

maximum quantizer difference between frames
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMaxSamples

func (s *AVCodecContext) SetMaxSamples(value int64)

SetMaxSamples sets the max_samples field.

The number of samples per frame to maximally accept.

- decoding: set by user
- encoding: set by user

func (*AVCodecContext) SetMbCmp

func (s *AVCodecContext) SetMbCmp(value int)

SetMbCmp sets the mb_cmp field.

macroblock comparison function (not supported yet)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMbDecision

func (s *AVCodecContext) SetMbDecision(value int)

SetMbDecision sets the mb_decision field.

macroblock decision mode
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMbLmax

func (s *AVCodecContext) SetMbLmax(value int)

SetMbLmax sets the mb_lmax field.

maximum MB Lagrange multiplier
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMbLmin

func (s *AVCodecContext) SetMbLmin(value int)

SetMbLmin sets the mb_lmin field.

minimum MB Lagrange multiplier
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMeCmp

func (s *AVCodecContext) SetMeCmp(value int)

SetMeCmp sets the me_cmp field.

motion estimation comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMePreCmp

func (s *AVCodecContext) SetMePreCmp(value int)

SetMePreCmp sets the me_pre_cmp field.

motion estimation prepass comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMeRange

func (s *AVCodecContext) SetMeRange(value int)

SetMeRange sets the me_range field.

maximum motion estimation search range in subpel units
If 0 then no limit.

- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMeSubCmp

func (s *AVCodecContext) SetMeSubCmp(value int)

SetMeSubCmp sets the me_sub_cmp field.

subpixel motion estimation comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMeSubpelQuality

func (s *AVCodecContext) SetMeSubpelQuality(value int)

SetMeSubpelQuality sets the me_subpel_quality field.

subpel ME quality
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetMv0Threshold

func (s *AVCodecContext) SetMv0Threshold(value int)

SetMv0Threshold sets the mv0_threshold field.

Note: Value depends upon the compare function used for fullpel ME.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetNbCodedSideData

func (s *AVCodecContext) SetNbCodedSideData(value int)

SetNbCodedSideData sets the nb_coded_side_data field.

func (*AVCodecContext) SetNbDecodedSideData

func (s *AVCodecContext) SetNbDecodedSideData(value int)

SetNbDecodedSideData sets the nb_decoded_side_data field.

func (*AVCodecContext) SetNbSideDataPreferPacket

func (s *AVCodecContext) SetNbSideDataPreferPacket(value uint)

SetNbSideDataPreferPacket sets the nb_side_data_prefer_packet field.

Number of entries in side_data_prefer_packet.

func (*AVCodecContext) SetNsseWeight

func (s *AVCodecContext) SetNsseWeight(value int)

SetNsseWeight sets the nsse_weight field.

noise vs. sse weight for the nsse comparison function
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetOpaque

func (s *AVCodecContext) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

Private data of the user, can be used to carry app specific stuff.
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetPMasking

func (s *AVCodecContext) SetPMasking(value float32)

SetPMasking sets the p_masking field.

p block masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetPixFmt

func (s *AVCodecContext) SetPixFmt(value AVPixelFormat)

SetPixFmt sets the pix_fmt field.

Pixel format, see AV_PIX_FMT_xxx.
May be set by the demuxer if known from headers.
May be overridden by the decoder if it knows better.

@note This field may not match the value of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: Set by user.
- decoding: Set by user if known, overridden by libavcodec while
            parsing the data.

func (*AVCodecContext) SetPktTimebase

func (s *AVCodecContext) SetPktTimebase(value *AVRational)

SetPktTimebase sets the pkt_timebase field.

Timebase in which pkt_dts/pts and AVPacket.dts/pts are expressed.
- encoding: unused.
- decoding: set by user.

func (*AVCodecContext) SetPreDiaSize

func (s *AVCodecContext) SetPreDiaSize(value int)

SetPreDiaSize sets the pre_dia_size field.

ME prepass diamond size & shape
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetPrivData

func (s *AVCodecContext) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

func (*AVCodecContext) SetProfile

func (s *AVCodecContext) SetProfile(value int)

SetProfile sets the profile field.

profile
- encoding: Set by user.
- decoding: Set by libavcodec.
See the AV_PROFILE_* defines in defs.h.

func (*AVCodecContext) SetProperties

func (s *AVCodecContext) SetProperties(value uint)

SetProperties sets the properties field.

Properties of the stream that gets decoded
- encoding: unused
- decoding: set by libavcodec

func (*AVCodecContext) SetQblur

func (s *AVCodecContext) SetQblur(value float32)

SetQblur sets the qblur field.

amount of qscale smoothing over time (0.0-1.0)

func (*AVCodecContext) SetQcompress

func (s *AVCodecContext) SetQcompress(value float32)

SetQcompress sets the qcompress field.

amount of qscale change between easy & hard scenes (0.0-1.0)

func (*AVCodecContext) SetQmax

func (s *AVCodecContext) SetQmax(value int)

SetQmax sets the qmax field.

maximum quantizer
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetQmin

func (s *AVCodecContext) SetQmin(value int)

SetQmin sets the qmin field.

minimum quantizer
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetRcBufferSize

func (s *AVCodecContext) SetRcBufferSize(value int)

SetRcBufferSize sets the rc_buffer_size field.

decoder bitstream buffer size
- encoding: Set by user.
- decoding: May be set by libavcodec.

func (*AVCodecContext) SetRcInitialBufferOccupancy

func (s *AVCodecContext) SetRcInitialBufferOccupancy(value int)

SetRcInitialBufferOccupancy sets the rc_initial_buffer_occupancy field.

Number of bits which should be loaded into the rc buffer before decoding starts.
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetRcMaxAvailableVbvUse

func (s *AVCodecContext) SetRcMaxAvailableVbvUse(value float32)

SetRcMaxAvailableVbvUse sets the rc_max_available_vbv_use field.

Ratecontrol attempt to use, at maximum, <value> of what can be used without an underflow.
- encoding: Set by user.
- decoding: unused.

func (*AVCodecContext) SetRcMaxRate

func (s *AVCodecContext) SetRcMaxRate(value int64)

SetRcMaxRate sets the rc_max_rate field.

maximum bitrate
- encoding: Set by user.
- decoding: Set by user, may be overwritten by libavcodec.

func (*AVCodecContext) SetRcMinRate

func (s *AVCodecContext) SetRcMinRate(value int64)

SetRcMinRate sets the rc_min_rate field.

minimum bitrate
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetRcMinVbvOverflowUse

func (s *AVCodecContext) SetRcMinVbvOverflowUse(value float32)

SetRcMinVbvOverflowUse sets the rc_min_vbv_overflow_use field.

Ratecontrol attempt to use, at least, <value> times the amount needed to prevent a vbv overflow.
- encoding: Set by user.
- decoding: unused.

func (*AVCodecContext) SetRcOverride

func (s *AVCodecContext) SetRcOverride(value *RcOverride)

SetRcOverride sets the rc_override field.

func (*AVCodecContext) SetRcOverrideCount

func (s *AVCodecContext) SetRcOverrideCount(value int)

SetRcOverrideCount sets the rc_override_count field.

ratecontrol override, see RcOverride
- encoding: Allocated/set/freed by user.
- decoding: unused

func (*AVCodecContext) SetRefs

func (s *AVCodecContext) SetRefs(value int)

SetRefs sets the refs field.

number of reference frames
- encoding: Set by user.
- decoding: Set by lavc.

func (*AVCodecContext) SetRequestSampleFmt

func (s *AVCodecContext) SetRequestSampleFmt(value AVSampleFormat)

SetRequestSampleFmt sets the request_sample_fmt field.

desired sample format
- encoding: Not used.
- decoding: Set by user.
Decoder will decode to this format if it can.

func (*AVCodecContext) SetSampleAspectRatio

func (s *AVCodecContext) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

sample aspect ratio (0 if unknown)
That is the width of a pixel divided by the height of the pixel.
Numerator and denominator must be relatively prime and smaller than 256 for some video standards.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVCodecContext) SetSampleFmt

func (s *AVCodecContext) SetSampleFmt(value AVSampleFormat)

SetSampleFmt sets the sample_fmt field.

sample format

func (*AVCodecContext) SetSampleRate

func (s *AVCodecContext) SetSampleRate(value int)

SetSampleRate sets the sample_rate field.

samples per second

func (*AVCodecContext) SetSeekPreroll

func (s *AVCodecContext) SetSeekPreroll(value int)

SetSeekPreroll sets the seek_preroll field.

Number of samples to skip after a discontinuity
- decoding: unused
- encoding: set by libavcodec

func (*AVCodecContext) SetSkipAlpha

func (s *AVCodecContext) SetSkipAlpha(value int)

SetSkipAlpha sets the skip_alpha field.

Skip processing alpha if supported by codec.
Note that if the format uses pre-multiplied alpha (common with VP6,
and recommended due to better video quality/compression)
the image will look as if alpha-blended onto a black background.
However for formats that do not use pre-multiplied alpha
there might be serious artefacts (though e.g. libswscale currently
assumes pre-multiplied alpha anyway).

- decoding: set by user
- encoding: unused

func (*AVCodecContext) SetSkipBottom

func (s *AVCodecContext) SetSkipBottom(value int)

SetSkipBottom sets the skip_bottom field.

Number of macroblock rows at the bottom which are skipped.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSkipFrame

func (s *AVCodecContext) SetSkipFrame(value AVDiscard)

SetSkipFrame sets the skip_frame field.

Skip decoding for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSkipIdct

func (s *AVCodecContext) SetSkipIdct(value AVDiscard)

SetSkipIdct sets the skip_idct field.

Skip IDCT/dequantization for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSkipLoopFilter

func (s *AVCodecContext) SetSkipLoopFilter(value AVDiscard)

SetSkipLoopFilter sets the skip_loop_filter field.

Skip loop filtering for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSkipTop

func (s *AVCodecContext) SetSkipTop(value int)

SetSkipTop sets the skip_top field.

Number of macroblock rows at the top which are skipped.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSliceFlags

func (s *AVCodecContext) SetSliceFlags(value int)

SetSliceFlags sets the slice_flags field.

slice flags
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SetSlices

func (s *AVCodecContext) SetSlices(value int)

SetSlices sets the slices field.

Number of slices.
Indicates number of picture subdivisions. Used for parallelized
decoding.
- encoding: Set by user
- decoding: unused

func (*AVCodecContext) SetSpatialCplxMasking

func (s *AVCodecContext) SetSpatialCplxMasking(value float32)

SetSpatialCplxMasking sets the spatial_cplx_masking field.

spatial complexity masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetStatsIn

func (s *AVCodecContext) SetStatsIn(value *CStr)

SetStatsIn sets the stats_in field.

pass2 encoding statistics input buffer
Concatenated stuff from stats_out of pass1 should be placed here.
- encoding: Allocated/set/freed by user.
- decoding: unused

func (*AVCodecContext) SetStatsOut

func (s *AVCodecContext) SetStatsOut(value *CStr)

SetStatsOut sets the stats_out field.

pass1 encoding statistics output buffer
- encoding: Set by libavcodec.
- decoding: unused

func (*AVCodecContext) SetStrictStdCompliance

func (s *AVCodecContext) SetStrictStdCompliance(value int)

SetStrictStdCompliance sets the strict_std_compliance field.

strictly follow the standard (MPEG-4, ...).
- encoding: Set by user.
- decoding: Set by user.
Setting this to STRICT or higher means the encoder and decoder will
generally do stupid things, whereas setting it to unofficial or lower
will mean the encoder might produce output that is not supported by all
spec-compliant decoders. Decoders don't differentiate between normal,
unofficial and experimental (that is, they always try to decode things
when they can) unless they are explicitly asked to behave stupidly
(=strictly conform to the specs)
This may only be set to one of the FF_COMPLIANCE_* values in defs.h.

func (*AVCodecContext) SetSubCharenc

func (s *AVCodecContext) SetSubCharenc(value *CStr)

SetSubCharenc sets the sub_charenc field.

Character encoding of the input subtitles file.
- decoding: set by user
- encoding: unused

func (*AVCodecContext) SetSubCharencMode

func (s *AVCodecContext) SetSubCharencMode(value int)

SetSubCharencMode sets the sub_charenc_mode field.

Subtitles character encoding mode. Formats or codecs might be adjusting
this setting (if they are doing the conversion themselves for instance).
- decoding: set by libavcodec
- encoding: unused

func (*AVCodecContext) SetSubtitleHeader

func (s *AVCodecContext) SetSubtitleHeader(value unsafe.Pointer)

SetSubtitleHeader sets the subtitle_header field.

func (*AVCodecContext) SetSubtitleHeaderSize

func (s *AVCodecContext) SetSubtitleHeaderSize(value int)

SetSubtitleHeaderSize sets the subtitle_header_size field.

Header containing style information for text subtitles.
For SUBTITLE_ASS subtitle type, it should contain the whole ASS
[Script Info] and [V4+ Styles] section, plus the [Events] line and
the Format line following. It shouldn't include any Dialogue line.

- encoding: May be set by the caller before avcodec_open2() to an array
  allocated with the av_malloc() family of functions.
- decoding: May be set by libavcodec in avcodec_open2().

After being set, the array is owned by the codec and freed in
avcodec_free_context().

func (*AVCodecContext) SetSwPixFmt

func (s *AVCodecContext) SetSwPixFmt(value AVPixelFormat)

SetSwPixFmt sets the sw_pix_fmt field.

Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.
- encoding: unused.
- decoding: Set by libavcodec before calling get_format()

func (*AVCodecContext) SetTemporalCplxMasking

func (s *AVCodecContext) SetTemporalCplxMasking(value float32)

SetTemporalCplxMasking sets the temporal_cplx_masking field.

temporary complexity masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetThreadCount

func (s *AVCodecContext) SetThreadCount(value int)

SetThreadCount sets the thread_count field.

thread count
is used to decide how many independent tasks should be passed to execute()
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) SetThreadType

func (s *AVCodecContext) SetThreadType(value int)

SetThreadType sets the thread_type field.

Which multithreading methods to use.
Use of FF_THREAD_FRAME will increase decoding delay by one frame per thread,
so clients which cannot provide future frames should not use it.

- encoding: Set by user, otherwise the default is used.
- decoding: Set by user, otherwise the default is used.

func (*AVCodecContext) SetTimeBase

func (s *AVCodecContext) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented. For fixed-fps content,
timebase should be 1/framerate and timestamp increments should be
identically 1.
This often, but not always is the inverse of the frame rate or field rate
for video. 1/time_base is not the average frame rate if the frame rate is not
constant.

Like containers, elementary streams also can store timestamps, 1/time_base
is the unit in which these timestamps are specified.
As example of such codec time base see ISO/IEC 14496-2:2001(E)
vop_time_increment_resolution and fixed_vop_rate
(fixed_vop_rate == 0 implies that it is different from the framerate)

- encoding: MUST be set by user.
- decoding: unused.

func (*AVCodecContext) SetTrailingPadding

func (s *AVCodecContext) SetTrailingPadding(value int)

SetTrailingPadding sets the trailing_padding field.

Audio only. The amount of padding (in samples) appended by the encoder to
the end of the audio. I.e. this number of decoded samples must be
discarded by the caller from the end of the stream to get the original
audio without any trailing padding.

- decoding: unused
- encoding: unused

func (*AVCodecContext) SetTrellis

func (s *AVCodecContext) SetTrellis(value int)

SetTrellis sets the trellis field.

trellis RD quantization
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) SetWidth

func (s *AVCodecContext) SetWidth(value int)

SetWidth sets the width field.

picture width / height.

@note Those fields may not match the values of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: MUST be set by user.
- decoding: May be set by the user before opening the decoder if known e.g.
            from the container. Some decoders will require the dimensions
            to be set by the caller. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) SetWorkaroundBugs

func (s *AVCodecContext) SetWorkaroundBugs(value int)

SetWorkaroundBugs sets the workaround_bugs field.

Work around bugs in encoders which sometimes cannot be detected automatically.
- encoding: Set by user
- decoding: Set by user

func (*AVCodecContext) SkipAlpha

func (s *AVCodecContext) SkipAlpha() int

SkipAlpha gets the skip_alpha field.

Skip processing alpha if supported by codec.
Note that if the format uses pre-multiplied alpha (common with VP6,
and recommended due to better video quality/compression)
the image will look as if alpha-blended onto a black background.
However for formats that do not use pre-multiplied alpha
there might be serious artefacts (though e.g. libswscale currently
assumes pre-multiplied alpha anyway).

- decoding: set by user
- encoding: unused

func (*AVCodecContext) SkipBottom

func (s *AVCodecContext) SkipBottom() int

SkipBottom gets the skip_bottom field.

Number of macroblock rows at the bottom which are skipped.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SkipFrame

func (s *AVCodecContext) SkipFrame() AVDiscard

SkipFrame gets the skip_frame field.

Skip decoding for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SkipIdct

func (s *AVCodecContext) SkipIdct() AVDiscard

SkipIdct gets the skip_idct field.

Skip IDCT/dequantization for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SkipLoopFilter

func (s *AVCodecContext) SkipLoopFilter() AVDiscard

SkipLoopFilter gets the skip_loop_filter field.

Skip loop filtering for selected frames.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SkipTop

func (s *AVCodecContext) SkipTop() int

SkipTop gets the skip_top field.

Number of macroblock rows at the top which are skipped.
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) SliceFlags

func (s *AVCodecContext) SliceFlags() int

SliceFlags gets the slice_flags field.

slice flags
- encoding: unused
- decoding: Set by user.

func (*AVCodecContext) Slices

func (s *AVCodecContext) Slices() int

Slices gets the slices field.

Number of slices.
Indicates number of picture subdivisions. Used for parallelized
decoding.
- encoding: Set by user
- decoding: unused

func (*AVCodecContext) SpatialCplxMasking

func (s *AVCodecContext) SpatialCplxMasking() float32

SpatialCplxMasking gets the spatial_cplx_masking field.

spatial complexity masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) StatsIn

func (s *AVCodecContext) StatsIn() *CStr

StatsIn gets the stats_in field.

pass2 encoding statistics input buffer
Concatenated stuff from stats_out of pass1 should be placed here.
- encoding: Allocated/set/freed by user.
- decoding: unused

func (*AVCodecContext) StatsOut

func (s *AVCodecContext) StatsOut() *CStr

StatsOut gets the stats_out field.

pass1 encoding statistics output buffer
- encoding: Set by libavcodec.
- decoding: unused

func (*AVCodecContext) StrictStdCompliance

func (s *AVCodecContext) StrictStdCompliance() int

StrictStdCompliance gets the strict_std_compliance field.

strictly follow the standard (MPEG-4, ...).
- encoding: Set by user.
- decoding: Set by user.
Setting this to STRICT or higher means the encoder and decoder will
generally do stupid things, whereas setting it to unofficial or lower
will mean the encoder might produce output that is not supported by all
spec-compliant decoders. Decoders don't differentiate between normal,
unofficial and experimental (that is, they always try to decode things
when they can) unless they are explicitly asked to behave stupidly
(=strictly conform to the specs)
This may only be set to one of the FF_COMPLIANCE_* values in defs.h.

func (*AVCodecContext) SubCharenc

func (s *AVCodecContext) SubCharenc() *CStr

SubCharenc gets the sub_charenc field.

Character encoding of the input subtitles file.
- decoding: set by user
- encoding: unused

func (*AVCodecContext) SubCharencMode

func (s *AVCodecContext) SubCharencMode() int

SubCharencMode gets the sub_charenc_mode field.

Subtitles character encoding mode. Formats or codecs might be adjusting
this setting (if they are doing the conversion themselves for instance).
- decoding: set by libavcodec
- encoding: unused

func (*AVCodecContext) SubtitleHeader

func (s *AVCodecContext) SubtitleHeader() unsafe.Pointer

SubtitleHeader gets the subtitle_header field.

func (*AVCodecContext) SubtitleHeaderSize

func (s *AVCodecContext) SubtitleHeaderSize() int

SubtitleHeaderSize gets the subtitle_header_size field.

Header containing style information for text subtitles.
For SUBTITLE_ASS subtitle type, it should contain the whole ASS
[Script Info] and [V4+ Styles] section, plus the [Events] line and
the Format line following. It shouldn't include any Dialogue line.

- encoding: May be set by the caller before avcodec_open2() to an array
  allocated with the av_malloc() family of functions.
- decoding: May be set by libavcodec in avcodec_open2().

After being set, the array is owned by the codec and freed in
avcodec_free_context().

func (*AVCodecContext) SwPixFmt

func (s *AVCodecContext) SwPixFmt() AVPixelFormat

SwPixFmt gets the sw_pix_fmt field.

Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.
- encoding: unused.
- decoding: Set by libavcodec before calling get_format()

func (*AVCodecContext) TemporalCplxMasking

func (s *AVCodecContext) TemporalCplxMasking() float32

TemporalCplxMasking gets the temporal_cplx_masking field.

temporary complexity masking (0-> disabled)
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) ThreadCount

func (s *AVCodecContext) ThreadCount() int

ThreadCount gets the thread_count field.

thread count
is used to decide how many independent tasks should be passed to execute()
- encoding: Set by user.
- decoding: Set by user.

func (*AVCodecContext) ThreadType

func (s *AVCodecContext) ThreadType() int

ThreadType gets the thread_type field.

Which multithreading methods to use.
Use of FF_THREAD_FRAME will increase decoding delay by one frame per thread,
so clients which cannot provide future frames should not use it.

- encoding: Set by user, otherwise the default is used.
- decoding: Set by user, otherwise the default is used.

func (*AVCodecContext) TimeBase

func (s *AVCodecContext) TimeBase() *AVRational

TimeBase gets the time_base field.

This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented. For fixed-fps content,
timebase should be 1/framerate and timestamp increments should be
identically 1.
This often, but not always is the inverse of the frame rate or field rate
for video. 1/time_base is not the average frame rate if the frame rate is not
constant.

Like containers, elementary streams also can store timestamps, 1/time_base
is the unit in which these timestamps are specified.
As example of such codec time base see ISO/IEC 14496-2:2001(E)
vop_time_increment_resolution and fixed_vop_rate
(fixed_vop_rate == 0 implies that it is different from the framerate)

- encoding: MUST be set by user.
- decoding: unused.

func (*AVCodecContext) TrailingPadding

func (s *AVCodecContext) TrailingPadding() int

TrailingPadding gets the trailing_padding field.

Audio only. The amount of padding (in samples) appended by the encoder to
the end of the audio. I.e. this number of decoded samples must be
discarded by the caller from the end of the stream to get the original
audio without any trailing padding.

- decoding: unused
- encoding: unused

func (*AVCodecContext) Trellis

func (s *AVCodecContext) Trellis() int

Trellis gets the trellis field.

trellis RD quantization
- encoding: Set by user.
- decoding: unused

func (*AVCodecContext) Width

func (s *AVCodecContext) Width() int

Width gets the width field.

picture width / height.

@note Those fields may not match the values of the last
AVFrame output by avcodec_receive_frame() due frame
reordering.

- encoding: MUST be set by user.
- decoding: May be set by the user before opening the decoder if known e.g.
            from the container. Some decoders will require the dimensions
            to be set by the caller. During decoding, the decoder may
            overwrite those values as required while parsing the data.

func (*AVCodecContext) WorkaroundBugs

func (s *AVCodecContext) WorkaroundBugs() int

WorkaroundBugs gets the workaround_bugs field.

Work around bugs in encoders which sometimes cannot be detected automatically.
- encoding: Set by user
- decoding: Set by user

type AVCodecDescriptor

type AVCodecDescriptor struct {
	// contains filtered or unexported fields
}

AVCodecDescriptor wraps AVCodecDescriptor.

This struct describes the properties of a single codec described by an
AVCodecID.
@see avcodec_descriptor_get()

func AVCodecDescriptorGet

func AVCodecDescriptorGet(id AVCodecID) *AVCodecDescriptor

AVCodecDescriptorGet wraps avcodec_descriptor_get.

@return descriptor for given codec ID or NULL if no descriptor exists.

func AVCodecDescriptorGetByName

func AVCodecDescriptorGetByName(name *CStr) *AVCodecDescriptor

AVCodecDescriptorGetByName wraps avcodec_descriptor_get_by_name.

@return codec descriptor with the given name or NULL if no such descriptor
        exists.

func AVCodecDescriptorNext

func AVCodecDescriptorNext(prev *AVCodecDescriptor) *AVCodecDescriptor

AVCodecDescriptorNext wraps avcodec_descriptor_next.

Iterate over all codec descriptors known to libavcodec.

@param prev previous descriptor. NULL to get the first descriptor.

@return next descriptor or NULL after the last descriptor

func (*AVCodecDescriptor) Id

func (s *AVCodecDescriptor) Id() AVCodecID

Id gets the id field.

func (*AVCodecDescriptor) LongName

func (s *AVCodecDescriptor) LongName() *CStr

LongName gets the long_name field.

A more descriptive name for this codec. May be NULL.

func (*AVCodecDescriptor) Name

func (s *AVCodecDescriptor) Name() *CStr

Name gets the name field.

Name of the codec described by this descriptor. It is non-empty and
unique for each codec descriptor. It should contain alphanumeric
characters and '_' only.

func (*AVCodecDescriptor) Profiles

func (s *AVCodecDescriptor) Profiles() *AVProfile

Profiles gets the profiles field.

If non-NULL, an array of profiles recognized for this codec.
Terminated with AV_PROFILE_UNKNOWN.

func (*AVCodecDescriptor) Props

func (s *AVCodecDescriptor) Props() int

Props gets the props field.

Codec properties, a combination of AV_CODEC_PROP_* flags.

func (*AVCodecDescriptor) RawPtr

func (s *AVCodecDescriptor) RawPtr() unsafe.Pointer

func (*AVCodecDescriptor) SetId

func (s *AVCodecDescriptor) SetId(value AVCodecID)

SetId sets the id field.

func (*AVCodecDescriptor) SetLongName

func (s *AVCodecDescriptor) SetLongName(value *CStr)

SetLongName sets the long_name field.

A more descriptive name for this codec. May be NULL.

func (*AVCodecDescriptor) SetName

func (s *AVCodecDescriptor) SetName(value *CStr)

SetName sets the name field.

Name of the codec described by this descriptor. It is non-empty and
unique for each codec descriptor. It should contain alphanumeric
characters and '_' only.

func (*AVCodecDescriptor) SetProfiles

func (s *AVCodecDescriptor) SetProfiles(value *AVProfile)

SetProfiles sets the profiles field.

If non-NULL, an array of profiles recognized for this codec.
Terminated with AV_PROFILE_UNKNOWN.

func (*AVCodecDescriptor) SetProps

func (s *AVCodecDescriptor) SetProps(value int)

SetProps sets the props field.

Codec properties, a combination of AV_CODEC_PROP_* flags.

func (*AVCodecDescriptor) SetType

func (s *AVCodecDescriptor) SetType(value AVMediaType)

SetType sets the type field.

func (*AVCodecDescriptor) Type

func (s *AVCodecDescriptor) Type() AVMediaType

Type gets the type field.

type AVCodecHWConfig

type AVCodecHWConfig struct {
	// contains filtered or unexported fields
}

AVCodecHWConfig wraps AVCodecHWConfig.

func AVCodecGetHWConfig

func AVCodecGetHWConfig(codec *AVCodec, index int) *AVCodecHWConfig

AVCodecGetHWConfig wraps avcodec_get_hw_config.

Retrieve supported hardware configurations for a codec.

Values of index from zero to some maximum return the indexed configuration
descriptor; all other values return NULL.  If the codec does not support
any hardware configurations then it will always return NULL.

func (*AVCodecHWConfig) DeviceType

func (s *AVCodecHWConfig) DeviceType() AVHWDeviceType

DeviceType gets the device_type field.

The device type associated with the configuration.

Must be set for AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX and
AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, otherwise unused.

func (*AVCodecHWConfig) Methods

func (s *AVCodecHWConfig) Methods() int

Methods gets the methods field.

Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible
setup methods which can be used with this configuration.

func (*AVCodecHWConfig) PixFmt

func (s *AVCodecHWConfig) PixFmt() AVPixelFormat

PixFmt gets the pix_fmt field.

For decoders, a hardware pixel format which that decoder may be
able to decode to if suitable hardware is available.

For encoders, a pixel format which the encoder may be able to
accept.  If set to AV_PIX_FMT_NONE, this applies to all pixel
formats supported by the codec.

func (*AVCodecHWConfig) RawPtr

func (s *AVCodecHWConfig) RawPtr() unsafe.Pointer

func (*AVCodecHWConfig) SetDeviceType

func (s *AVCodecHWConfig) SetDeviceType(value AVHWDeviceType)

SetDeviceType sets the device_type field.

The device type associated with the configuration.

Must be set for AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX and
AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, otherwise unused.

func (*AVCodecHWConfig) SetMethods

func (s *AVCodecHWConfig) SetMethods(value int)

SetMethods sets the methods field.

Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible
setup methods which can be used with this configuration.

func (*AVCodecHWConfig) SetPixFmt

func (s *AVCodecHWConfig) SetPixFmt(value AVPixelFormat)

SetPixFmt sets the pix_fmt field.

For decoders, a hardware pixel format which that decoder may be
able to decode to if suitable hardware is available.

For encoders, a pixel format which the encoder may be able to
accept.  If set to AV_PIX_FMT_NONE, this applies to all pixel
formats supported by the codec.

type AVCodecID

type AVCodecID C.enum_AVCodecID

AVCodecID wraps AVCodecID.

Identify the syntax and semantics of the bitstream.
The principle is roughly:
Two decoders with the same ID can decode the same streams.
Two encoders with the same ID can encode compatible streams.
There may be slight deviations from the principle due to implementation
details.

If you add a codec ID to this list, add it so that
1. no value of an existing codec ID changes (that would break ABI),
2. it is as close as possible to similar codecs

After adding new codec IDs, do not forget to add an entry to the codec
descriptor list and bump libavcodec minor version.
const (
	// AVCodecIdNone wraps AV_CODEC_ID_NONE.
	AVCodecIdNone AVCodecID = C.AV_CODEC_ID_NONE
	// AVCodecIdMpeg1Video wraps AV_CODEC_ID_MPEG1VIDEO.
	//
	//	video codecs
	AVCodecIdMpeg1Video AVCodecID = C.AV_CODEC_ID_MPEG1VIDEO
	// AVCodecIdMpeg2Video wraps AV_CODEC_ID_MPEG2VIDEO.
	//
	//	preferred ID for MPEG-1/2 video decoding
	AVCodecIdMpeg2Video AVCodecID = C.AV_CODEC_ID_MPEG2VIDEO
	// AVCodecIdH261 wraps AV_CODEC_ID_H261.
	AVCodecIdH261 AVCodecID = C.AV_CODEC_ID_H261
	// AVCodecIdH263 wraps AV_CODEC_ID_H263.
	AVCodecIdH263 AVCodecID = C.AV_CODEC_ID_H263
	// AVCodecIdRv10 wraps AV_CODEC_ID_RV10.
	AVCodecIdRv10 AVCodecID = C.AV_CODEC_ID_RV10
	// AVCodecIdRv20 wraps AV_CODEC_ID_RV20.
	AVCodecIdRv20 AVCodecID = C.AV_CODEC_ID_RV20
	// AVCodecIdMjpeg wraps AV_CODEC_ID_MJPEG.
	AVCodecIdMjpeg AVCodecID = C.AV_CODEC_ID_MJPEG
	// AVCodecIdMjpegb wraps AV_CODEC_ID_MJPEGB.
	AVCodecIdMjpegb AVCodecID = C.AV_CODEC_ID_MJPEGB
	// AVCodecIdLjpeg wraps AV_CODEC_ID_LJPEG.
	AVCodecIdLjpeg AVCodecID = C.AV_CODEC_ID_LJPEG
	// AVCodecIdSp5X wraps AV_CODEC_ID_SP5X.
	AVCodecIdSp5X AVCodecID = C.AV_CODEC_ID_SP5X
	// AVCodecIdJpegls wraps AV_CODEC_ID_JPEGLS.
	AVCodecIdJpegls AVCodecID = C.AV_CODEC_ID_JPEGLS
	// AVCodecIdMpeg4 wraps AV_CODEC_ID_MPEG4.
	AVCodecIdMpeg4 AVCodecID = C.AV_CODEC_ID_MPEG4
	// AVCodecIdRawvideo wraps AV_CODEC_ID_RAWVIDEO.
	AVCodecIdRawvideo AVCodecID = C.AV_CODEC_ID_RAWVIDEO
	// AVCodecIdMsmpeg4V1 wraps AV_CODEC_ID_MSMPEG4V1.
	AVCodecIdMsmpeg4V1 AVCodecID = C.AV_CODEC_ID_MSMPEG4V1
	// AVCodecIdMsmpeg4V2 wraps AV_CODEC_ID_MSMPEG4V2.
	AVCodecIdMsmpeg4V2 AVCodecID = C.AV_CODEC_ID_MSMPEG4V2
	// AVCodecIdMsmpeg4V3 wraps AV_CODEC_ID_MSMPEG4V3.
	AVCodecIdMsmpeg4V3 AVCodecID = C.AV_CODEC_ID_MSMPEG4V3
	// AVCodecIdWmv1 wraps AV_CODEC_ID_WMV1.
	AVCodecIdWmv1 AVCodecID = C.AV_CODEC_ID_WMV1
	// AVCodecIdWmv2 wraps AV_CODEC_ID_WMV2.
	AVCodecIdWmv2 AVCodecID = C.AV_CODEC_ID_WMV2
	// AVCodecIdH263P wraps AV_CODEC_ID_H263P.
	AVCodecIdH263P AVCodecID = C.AV_CODEC_ID_H263P
	// AVCodecIdH263I wraps AV_CODEC_ID_H263I.
	AVCodecIdH263I AVCodecID = C.AV_CODEC_ID_H263I
	// AVCodecIdFlv1 wraps AV_CODEC_ID_FLV1.
	AVCodecIdFlv1 AVCodecID = C.AV_CODEC_ID_FLV1
	// AVCodecIdSvq1 wraps AV_CODEC_ID_SVQ1.
	AVCodecIdSvq1 AVCodecID = C.AV_CODEC_ID_SVQ1
	// AVCodecIdSvq3 wraps AV_CODEC_ID_SVQ3.
	AVCodecIdSvq3 AVCodecID = C.AV_CODEC_ID_SVQ3
	// AVCodecIdDvvideo wraps AV_CODEC_ID_DVVIDEO.
	AVCodecIdDvvideo AVCodecID = C.AV_CODEC_ID_DVVIDEO
	// AVCodecIdHuffyuv wraps AV_CODEC_ID_HUFFYUV.
	AVCodecIdHuffyuv AVCodecID = C.AV_CODEC_ID_HUFFYUV
	// AVCodecIdCyuv wraps AV_CODEC_ID_CYUV.
	AVCodecIdCyuv AVCodecID = C.AV_CODEC_ID_CYUV
	// AVCodecIdH264 wraps AV_CODEC_ID_H264.
	AVCodecIdH264 AVCodecID = C.AV_CODEC_ID_H264
	// AVCodecIdIndeo3 wraps AV_CODEC_ID_INDEO3.
	AVCodecIdIndeo3 AVCodecID = C.AV_CODEC_ID_INDEO3
	// AVCodecIdVp3 wraps AV_CODEC_ID_VP3.
	AVCodecIdVp3 AVCodecID = C.AV_CODEC_ID_VP3
	// AVCodecIdTheora wraps AV_CODEC_ID_THEORA.
	AVCodecIdTheora AVCodecID = C.AV_CODEC_ID_THEORA
	// AVCodecIdAsv1 wraps AV_CODEC_ID_ASV1.
	AVCodecIdAsv1 AVCodecID = C.AV_CODEC_ID_ASV1
	// AVCodecIdAsv2 wraps AV_CODEC_ID_ASV2.
	AVCodecIdAsv2 AVCodecID = C.AV_CODEC_ID_ASV2
	// AVCodecIdFFV1 wraps AV_CODEC_ID_FFV1.
	AVCodecIdFFV1 AVCodecID = C.AV_CODEC_ID_FFV1
	// AVCodecId4Xm wraps AV_CODEC_ID_4XM.
	AVCodecId4Xm AVCodecID = C.AV_CODEC_ID_4XM
	// AVCodecIdVcr1 wraps AV_CODEC_ID_VCR1.
	AVCodecIdVcr1 AVCodecID = C.AV_CODEC_ID_VCR1
	// AVCodecIdCljr wraps AV_CODEC_ID_CLJR.
	AVCodecIdCljr AVCodecID = C.AV_CODEC_ID_CLJR
	// AVCodecIdMdec wraps AV_CODEC_ID_MDEC.
	AVCodecIdMdec AVCodecID = C.AV_CODEC_ID_MDEC
	// AVCodecIdRoq wraps AV_CODEC_ID_ROQ.
	AVCodecIdRoq AVCodecID = C.AV_CODEC_ID_ROQ
	// AVCodecIdInterplayVideo wraps AV_CODEC_ID_INTERPLAY_VIDEO.
	AVCodecIdInterplayVideo AVCodecID = C.AV_CODEC_ID_INTERPLAY_VIDEO
	// AVCodecIdXanWc3 wraps AV_CODEC_ID_XAN_WC3.
	AVCodecIdXanWc3 AVCodecID = C.AV_CODEC_ID_XAN_WC3
	// AVCodecIdXanWc4 wraps AV_CODEC_ID_XAN_WC4.
	AVCodecIdXanWc4 AVCodecID = C.AV_CODEC_ID_XAN_WC4
	// AVCodecIdRpza wraps AV_CODEC_ID_RPZA.
	AVCodecIdRpza AVCodecID = C.AV_CODEC_ID_RPZA
	// AVCodecIdCinepak wraps AV_CODEC_ID_CINEPAK.
	AVCodecIdCinepak AVCodecID = C.AV_CODEC_ID_CINEPAK
	// AVCodecIdWsVqa wraps AV_CODEC_ID_WS_VQA.
	AVCodecIdWsVqa AVCodecID = C.AV_CODEC_ID_WS_VQA
	// AVCodecIdMsrle wraps AV_CODEC_ID_MSRLE.
	AVCodecIdMsrle AVCodecID = C.AV_CODEC_ID_MSRLE
	// AVCodecIdMsvideo1 wraps AV_CODEC_ID_MSVIDEO1.
	AVCodecIdMsvideo1 AVCodecID = C.AV_CODEC_ID_MSVIDEO1
	// AVCodecIdIdcin wraps AV_CODEC_ID_IDCIN.
	AVCodecIdIdcin AVCodecID = C.AV_CODEC_ID_IDCIN
	// AVCodecId8Bps wraps AV_CODEC_ID_8BPS.
	AVCodecId8Bps AVCodecID = C.AV_CODEC_ID_8BPS
	// AVCodecIdSmc wraps AV_CODEC_ID_SMC.
	AVCodecIdSmc AVCodecID = C.AV_CODEC_ID_SMC
	// AVCodecIdFlic wraps AV_CODEC_ID_FLIC.
	AVCodecIdFlic AVCodecID = C.AV_CODEC_ID_FLIC
	// AVCodecIdTruemotion1 wraps AV_CODEC_ID_TRUEMOTION1.
	AVCodecIdTruemotion1 AVCodecID = C.AV_CODEC_ID_TRUEMOTION1
	// AVCodecIdVmdvideo wraps AV_CODEC_ID_VMDVIDEO.
	AVCodecIdVmdvideo AVCodecID = C.AV_CODEC_ID_VMDVIDEO
	// AVCodecIdMszh wraps AV_CODEC_ID_MSZH.
	AVCodecIdMszh AVCodecID = C.AV_CODEC_ID_MSZH
	// AVCodecIdZlib wraps AV_CODEC_ID_ZLIB.
	AVCodecIdZlib AVCodecID = C.AV_CODEC_ID_ZLIB
	// AVCodecIdQtrle wraps AV_CODEC_ID_QTRLE.
	AVCodecIdQtrle AVCodecID = C.AV_CODEC_ID_QTRLE
	// AVCodecIdTscc wraps AV_CODEC_ID_TSCC.
	AVCodecIdTscc AVCodecID = C.AV_CODEC_ID_TSCC
	// AVCodecIdUlti wraps AV_CODEC_ID_ULTI.
	AVCodecIdUlti AVCodecID = C.AV_CODEC_ID_ULTI
	// AVCodecIdQdraw wraps AV_CODEC_ID_QDRAW.
	AVCodecIdQdraw AVCodecID = C.AV_CODEC_ID_QDRAW
	// AVCodecIdVixl wraps AV_CODEC_ID_VIXL.
	AVCodecIdVixl AVCodecID = C.AV_CODEC_ID_VIXL
	// AVCodecIdQpeg wraps AV_CODEC_ID_QPEG.
	AVCodecIdQpeg AVCodecID = C.AV_CODEC_ID_QPEG
	// AVCodecIdPng wraps AV_CODEC_ID_PNG.
	AVCodecIdPng AVCodecID = C.AV_CODEC_ID_PNG
	// AVCodecIdPpm wraps AV_CODEC_ID_PPM.
	AVCodecIdPpm AVCodecID = C.AV_CODEC_ID_PPM
	// AVCodecIdPbm wraps AV_CODEC_ID_PBM.
	AVCodecIdPbm AVCodecID = C.AV_CODEC_ID_PBM
	// AVCodecIdPgm wraps AV_CODEC_ID_PGM.
	AVCodecIdPgm AVCodecID = C.AV_CODEC_ID_PGM
	// AVCodecIdPgmyuv wraps AV_CODEC_ID_PGMYUV.
	AVCodecIdPgmyuv AVCodecID = C.AV_CODEC_ID_PGMYUV
	// AVCodecIdPam wraps AV_CODEC_ID_PAM.
	AVCodecIdPam AVCodecID = C.AV_CODEC_ID_PAM
	// AVCodecIdFFVhuff wraps AV_CODEC_ID_FFVHUFF.
	AVCodecIdFFVhuff AVCodecID = C.AV_CODEC_ID_FFVHUFF
	// AVCodecIdRv30 wraps AV_CODEC_ID_RV30.
	AVCodecIdRv30 AVCodecID = C.AV_CODEC_ID_RV30
	// AVCodecIdRv40 wraps AV_CODEC_ID_RV40.
	AVCodecIdRv40 AVCodecID = C.AV_CODEC_ID_RV40
	// AVCodecIdVc1 wraps AV_CODEC_ID_VC1.
	AVCodecIdVc1 AVCodecID = C.AV_CODEC_ID_VC1
	// AVCodecIdWmv3 wraps AV_CODEC_ID_WMV3.
	AVCodecIdWmv3 AVCodecID = C.AV_CODEC_ID_WMV3
	// AVCodecIdLoco wraps AV_CODEC_ID_LOCO.
	AVCodecIdLoco AVCodecID = C.AV_CODEC_ID_LOCO
	// AVCodecIdWnv1 wraps AV_CODEC_ID_WNV1.
	AVCodecIdWnv1 AVCodecID = C.AV_CODEC_ID_WNV1
	// AVCodecIdAasc wraps AV_CODEC_ID_AASC.
	AVCodecIdAasc AVCodecID = C.AV_CODEC_ID_AASC
	// AVCodecIdIndeo2 wraps AV_CODEC_ID_INDEO2.
	AVCodecIdIndeo2 AVCodecID = C.AV_CODEC_ID_INDEO2
	// AVCodecIdFraps wraps AV_CODEC_ID_FRAPS.
	AVCodecIdFraps AVCodecID = C.AV_CODEC_ID_FRAPS
	// AVCodecIdTruemotion2 wraps AV_CODEC_ID_TRUEMOTION2.
	AVCodecIdTruemotion2 AVCodecID = C.AV_CODEC_ID_TRUEMOTION2
	// AVCodecIdBmp wraps AV_CODEC_ID_BMP.
	AVCodecIdBmp AVCodecID = C.AV_CODEC_ID_BMP
	// AVCodecIdCscd wraps AV_CODEC_ID_CSCD.
	AVCodecIdCscd AVCodecID = C.AV_CODEC_ID_CSCD
	// AVCodecIdMmvideo wraps AV_CODEC_ID_MMVIDEO.
	AVCodecIdMmvideo AVCodecID = C.AV_CODEC_ID_MMVIDEO
	// AVCodecIdZmbv wraps AV_CODEC_ID_ZMBV.
	AVCodecIdZmbv AVCodecID = C.AV_CODEC_ID_ZMBV
	// AVCodecIdAVS wraps AV_CODEC_ID_AVS.
	AVCodecIdAVS AVCodecID = C.AV_CODEC_ID_AVS
	// AVCodecIdSmackvideo wraps AV_CODEC_ID_SMACKVIDEO.
	AVCodecIdSmackvideo AVCodecID = C.AV_CODEC_ID_SMACKVIDEO
	// AVCodecIdNuv wraps AV_CODEC_ID_NUV.
	AVCodecIdNuv AVCodecID = C.AV_CODEC_ID_NUV
	// AVCodecIdKmvc wraps AV_CODEC_ID_KMVC.
	AVCodecIdKmvc AVCodecID = C.AV_CODEC_ID_KMVC
	// AVCodecIdFlashsv wraps AV_CODEC_ID_FLASHSV.
	AVCodecIdFlashsv AVCodecID = C.AV_CODEC_ID_FLASHSV
	// AVCodecIdCavs wraps AV_CODEC_ID_CAVS.
	AVCodecIdCavs AVCodecID = C.AV_CODEC_ID_CAVS
	// AVCodecIdJpeg2000 wraps AV_CODEC_ID_JPEG2000.
	AVCodecIdJpeg2000 AVCodecID = C.AV_CODEC_ID_JPEG2000
	// AVCodecIdVmnc wraps AV_CODEC_ID_VMNC.
	AVCodecIdVmnc AVCodecID = C.AV_CODEC_ID_VMNC
	// AVCodecIdVp5 wraps AV_CODEC_ID_VP5.
	AVCodecIdVp5 AVCodecID = C.AV_CODEC_ID_VP5
	// AVCodecIdVp6 wraps AV_CODEC_ID_VP6.
	AVCodecIdVp6 AVCodecID = C.AV_CODEC_ID_VP6
	// AVCodecIdVp6F wraps AV_CODEC_ID_VP6F.
	AVCodecIdVp6F AVCodecID = C.AV_CODEC_ID_VP6F
	// AVCodecIdTarga wraps AV_CODEC_ID_TARGA.
	AVCodecIdTarga AVCodecID = C.AV_CODEC_ID_TARGA
	// AVCodecIdDsicinvideo wraps AV_CODEC_ID_DSICINVIDEO.
	AVCodecIdDsicinvideo AVCodecID = C.AV_CODEC_ID_DSICINVIDEO
	// AVCodecIdTiertexseqvideo wraps AV_CODEC_ID_TIERTEXSEQVIDEO.
	AVCodecIdTiertexseqvideo AVCodecID = C.AV_CODEC_ID_TIERTEXSEQVIDEO
	// AVCodecIdTiff wraps AV_CODEC_ID_TIFF.
	AVCodecIdTiff AVCodecID = C.AV_CODEC_ID_TIFF
	// AVCodecIdGif wraps AV_CODEC_ID_GIF.
	AVCodecIdGif AVCodecID = C.AV_CODEC_ID_GIF
	// AVCodecIdDxa wraps AV_CODEC_ID_DXA.
	AVCodecIdDxa AVCodecID = C.AV_CODEC_ID_DXA
	// AVCodecIdDnxhd wraps AV_CODEC_ID_DNXHD.
	AVCodecIdDnxhd AVCodecID = C.AV_CODEC_ID_DNXHD
	// AVCodecIdThp wraps AV_CODEC_ID_THP.
	AVCodecIdThp AVCodecID = C.AV_CODEC_ID_THP
	// AVCodecIdSgi wraps AV_CODEC_ID_SGI.
	AVCodecIdSgi AVCodecID = C.AV_CODEC_ID_SGI
	// AVCodecIdC93 wraps AV_CODEC_ID_C93.
	AVCodecIdC93 AVCodecID = C.AV_CODEC_ID_C93
	// AVCodecIdBethsoftvid wraps AV_CODEC_ID_BETHSOFTVID.
	AVCodecIdBethsoftvid AVCodecID = C.AV_CODEC_ID_BETHSOFTVID
	// AVCodecIdPtx wraps AV_CODEC_ID_PTX.
	AVCodecIdPtx AVCodecID = C.AV_CODEC_ID_PTX
	// AVCodecIdTxd wraps AV_CODEC_ID_TXD.
	AVCodecIdTxd AVCodecID = C.AV_CODEC_ID_TXD
	// AVCodecIdVp6A wraps AV_CODEC_ID_VP6A.
	AVCodecIdVp6A AVCodecID = C.AV_CODEC_ID_VP6A
	// AVCodecIdAmv wraps AV_CODEC_ID_AMV.
	AVCodecIdAmv AVCodecID = C.AV_CODEC_ID_AMV
	// AVCodecIdVb wraps AV_CODEC_ID_VB.
	AVCodecIdVb AVCodecID = C.AV_CODEC_ID_VB
	// AVCodecIdPcx wraps AV_CODEC_ID_PCX.
	AVCodecIdPcx AVCodecID = C.AV_CODEC_ID_PCX
	// AVCodecIdSunrast wraps AV_CODEC_ID_SUNRAST.
	AVCodecIdSunrast AVCodecID = C.AV_CODEC_ID_SUNRAST
	// AVCodecIdIndeo4 wraps AV_CODEC_ID_INDEO4.
	AVCodecIdIndeo4 AVCodecID = C.AV_CODEC_ID_INDEO4
	// AVCodecIdIndeo5 wraps AV_CODEC_ID_INDEO5.
	AVCodecIdIndeo5 AVCodecID = C.AV_CODEC_ID_INDEO5
	// AVCodecIdMimic wraps AV_CODEC_ID_MIMIC.
	AVCodecIdMimic AVCodecID = C.AV_CODEC_ID_MIMIC
	// AVCodecIdRl2 wraps AV_CODEC_ID_RL2.
	AVCodecIdRl2 AVCodecID = C.AV_CODEC_ID_RL2
	// AVCodecIdEscape124 wraps AV_CODEC_ID_ESCAPE124.
	AVCodecIdEscape124 AVCodecID = C.AV_CODEC_ID_ESCAPE124
	// AVCodecIdDirac wraps AV_CODEC_ID_DIRAC.
	AVCodecIdDirac AVCodecID = C.AV_CODEC_ID_DIRAC
	// AVCodecIdBfi wraps AV_CODEC_ID_BFI.
	AVCodecIdBfi AVCodecID = C.AV_CODEC_ID_BFI
	// AVCodecIdCmv wraps AV_CODEC_ID_CMV.
	AVCodecIdCmv AVCodecID = C.AV_CODEC_ID_CMV
	// AVCodecIdMotionpixels wraps AV_CODEC_ID_MOTIONPIXELS.
	AVCodecIdMotionpixels AVCodecID = C.AV_CODEC_ID_MOTIONPIXELS
	// AVCodecIdTgv wraps AV_CODEC_ID_TGV.
	AVCodecIdTgv AVCodecID = C.AV_CODEC_ID_TGV
	// AVCodecIdTgq wraps AV_CODEC_ID_TGQ.
	AVCodecIdTgq AVCodecID = C.AV_CODEC_ID_TGQ
	// AVCodecIdTqi wraps AV_CODEC_ID_TQI.
	AVCodecIdTqi AVCodecID = C.AV_CODEC_ID_TQI
	// AVCodecIdAura wraps AV_CODEC_ID_AURA.
	AVCodecIdAura AVCodecID = C.AV_CODEC_ID_AURA
	// AVCodecIdAura2 wraps AV_CODEC_ID_AURA2.
	AVCodecIdAura2 AVCodecID = C.AV_CODEC_ID_AURA2
	// AVCodecIdV210X wraps AV_CODEC_ID_V210X.
	AVCodecIdV210X AVCodecID = C.AV_CODEC_ID_V210X
	// AVCodecIdTmv wraps AV_CODEC_ID_TMV.
	AVCodecIdTmv AVCodecID = C.AV_CODEC_ID_TMV
	// AVCodecIdV210 wraps AV_CODEC_ID_V210.
	AVCodecIdV210 AVCodecID = C.AV_CODEC_ID_V210
	// AVCodecIdDpx wraps AV_CODEC_ID_DPX.
	AVCodecIdDpx AVCodecID = C.AV_CODEC_ID_DPX
	// AVCodecIdMad wraps AV_CODEC_ID_MAD.
	AVCodecIdMad AVCodecID = C.AV_CODEC_ID_MAD
	// AVCodecIdFrwu wraps AV_CODEC_ID_FRWU.
	AVCodecIdFrwu AVCodecID = C.AV_CODEC_ID_FRWU
	// AVCodecIdFlashsv2 wraps AV_CODEC_ID_FLASHSV2.
	AVCodecIdFlashsv2 AVCodecID = C.AV_CODEC_ID_FLASHSV2
	// AVCodecIdCdgraphics wraps AV_CODEC_ID_CDGRAPHICS.
	AVCodecIdCdgraphics AVCodecID = C.AV_CODEC_ID_CDGRAPHICS
	// AVCodecIdR210 wraps AV_CODEC_ID_R210.
	AVCodecIdR210 AVCodecID = C.AV_CODEC_ID_R210
	// AVCodecIdAnm wraps AV_CODEC_ID_ANM.
	AVCodecIdAnm AVCodecID = C.AV_CODEC_ID_ANM
	// AVCodecIdBinkvideo wraps AV_CODEC_ID_BINKVIDEO.
	AVCodecIdBinkvideo AVCodecID = C.AV_CODEC_ID_BINKVIDEO
	// AVCodecIdIffIlbm wraps AV_CODEC_ID_IFF_ILBM.
	AVCodecIdIffIlbm AVCodecID = C.AV_CODEC_ID_IFF_ILBM
	// AVCodecIdKgv1 wraps AV_CODEC_ID_KGV1.
	AVCodecIdKgv1 AVCodecID = C.AV_CODEC_ID_KGV1
	// AVCodecIdYop wraps AV_CODEC_ID_YOP.
	AVCodecIdYop AVCodecID = C.AV_CODEC_ID_YOP
	// AVCodecIdVp8 wraps AV_CODEC_ID_VP8.
	AVCodecIdVp8 AVCodecID = C.AV_CODEC_ID_VP8
	// AVCodecIdPictor wraps AV_CODEC_ID_PICTOR.
	AVCodecIdPictor AVCodecID = C.AV_CODEC_ID_PICTOR
	// AVCodecIdAnsi wraps AV_CODEC_ID_ANSI.
	AVCodecIdAnsi AVCodecID = C.AV_CODEC_ID_ANSI
	// AVCodecIdA64Multi wraps AV_CODEC_ID_A64_MULTI.
	AVCodecIdA64Multi AVCodecID = C.AV_CODEC_ID_A64_MULTI
	// AVCodecIdA64Multi5 wraps AV_CODEC_ID_A64_MULTI5.
	AVCodecIdA64Multi5 AVCodecID = C.AV_CODEC_ID_A64_MULTI5
	// AVCodecIdR10K wraps AV_CODEC_ID_R10K.
	AVCodecIdR10K AVCodecID = C.AV_CODEC_ID_R10K
	// AVCodecIdMxpeg wraps AV_CODEC_ID_MXPEG.
	AVCodecIdMxpeg AVCodecID = C.AV_CODEC_ID_MXPEG
	// AVCodecIdLagarith wraps AV_CODEC_ID_LAGARITH.
	AVCodecIdLagarith AVCodecID = C.AV_CODEC_ID_LAGARITH
	// AVCodecIdProres wraps AV_CODEC_ID_PRORES.
	AVCodecIdProres AVCodecID = C.AV_CODEC_ID_PRORES
	// AVCodecIdJv wraps AV_CODEC_ID_JV.
	AVCodecIdJv AVCodecID = C.AV_CODEC_ID_JV
	// AVCodecIdDfa wraps AV_CODEC_ID_DFA.
	AVCodecIdDfa AVCodecID = C.AV_CODEC_ID_DFA
	// AVCodecIdWmv3Image wraps AV_CODEC_ID_WMV3IMAGE.
	AVCodecIdWmv3Image AVCodecID = C.AV_CODEC_ID_WMV3IMAGE
	// AVCodecIdVc1Image wraps AV_CODEC_ID_VC1IMAGE.
	AVCodecIdVc1Image AVCodecID = C.AV_CODEC_ID_VC1IMAGE
	// AVCodecIdUtvideo wraps AV_CODEC_ID_UTVIDEO.
	AVCodecIdUtvideo AVCodecID = C.AV_CODEC_ID_UTVIDEO
	// AVCodecIdBmvVideo wraps AV_CODEC_ID_BMV_VIDEO.
	AVCodecIdBmvVideo AVCodecID = C.AV_CODEC_ID_BMV_VIDEO
	// AVCodecIdVble wraps AV_CODEC_ID_VBLE.
	AVCodecIdVble AVCodecID = C.AV_CODEC_ID_VBLE
	// AVCodecIdDxtory wraps AV_CODEC_ID_DXTORY.
	AVCodecIdDxtory AVCodecID = C.AV_CODEC_ID_DXTORY
	// AVCodecIdV410 wraps AV_CODEC_ID_V410.
	AVCodecIdV410 AVCodecID = C.AV_CODEC_ID_V410
	// AVCodecIdXwd wraps AV_CODEC_ID_XWD.
	AVCodecIdXwd AVCodecID = C.AV_CODEC_ID_XWD
	// AVCodecIdCdxl wraps AV_CODEC_ID_CDXL.
	AVCodecIdCdxl AVCodecID = C.AV_CODEC_ID_CDXL
	// AVCodecIdXbm wraps AV_CODEC_ID_XBM.
	AVCodecIdXbm AVCodecID = C.AV_CODEC_ID_XBM
	// AVCodecIdZerocodec wraps AV_CODEC_ID_ZEROCODEC.
	AVCodecIdZerocodec AVCodecID = C.AV_CODEC_ID_ZEROCODEC
	// AVCodecIdMss1 wraps AV_CODEC_ID_MSS1.
	AVCodecIdMss1 AVCodecID = C.AV_CODEC_ID_MSS1
	// AVCodecIdMsa1 wraps AV_CODEC_ID_MSA1.
	AVCodecIdMsa1 AVCodecID = C.AV_CODEC_ID_MSA1
	// AVCodecIdTscc2 wraps AV_CODEC_ID_TSCC2.
	AVCodecIdTscc2 AVCodecID = C.AV_CODEC_ID_TSCC2
	// AVCodecIdMts2 wraps AV_CODEC_ID_MTS2.
	AVCodecIdMts2 AVCodecID = C.AV_CODEC_ID_MTS2
	// AVCodecIdCllc wraps AV_CODEC_ID_CLLC.
	AVCodecIdCllc AVCodecID = C.AV_CODEC_ID_CLLC
	// AVCodecIdMss2 wraps AV_CODEC_ID_MSS2.
	AVCodecIdMss2 AVCodecID = C.AV_CODEC_ID_MSS2
	// AVCodecIdVp9 wraps AV_CODEC_ID_VP9.
	AVCodecIdVp9 AVCodecID = C.AV_CODEC_ID_VP9
	// AVCodecIdAic wraps AV_CODEC_ID_AIC.
	AVCodecIdAic AVCodecID = C.AV_CODEC_ID_AIC
	// AVCodecIdEscape130 wraps AV_CODEC_ID_ESCAPE130.
	AVCodecIdEscape130 AVCodecID = C.AV_CODEC_ID_ESCAPE130
	// AVCodecIdG2M wraps AV_CODEC_ID_G2M.
	AVCodecIdG2M AVCodecID = C.AV_CODEC_ID_G2M
	// AVCodecIdWebp wraps AV_CODEC_ID_WEBP.
	AVCodecIdWebp AVCodecID = C.AV_CODEC_ID_WEBP
	// AVCodecIdHnm4Video wraps AV_CODEC_ID_HNM4_VIDEO.
	AVCodecIdHnm4Video AVCodecID = C.AV_CODEC_ID_HNM4_VIDEO
	// AVCodecIdHevc wraps AV_CODEC_ID_HEVC.
	AVCodecIdHevc AVCodecID = C.AV_CODEC_ID_HEVC
	// AVCodecIdFic wraps AV_CODEC_ID_FIC.
	AVCodecIdFic AVCodecID = C.AV_CODEC_ID_FIC
	// AVCodecIdAliasPix wraps AV_CODEC_ID_ALIAS_PIX.
	AVCodecIdAliasPix AVCodecID = C.AV_CODEC_ID_ALIAS_PIX
	// AVCodecIdBrenderPix wraps AV_CODEC_ID_BRENDER_PIX.
	AVCodecIdBrenderPix AVCodecID = C.AV_CODEC_ID_BRENDER_PIX
	// AVCodecIdPafVideo wraps AV_CODEC_ID_PAF_VIDEO.
	AVCodecIdPafVideo AVCodecID = C.AV_CODEC_ID_PAF_VIDEO
	// AVCodecIdExr wraps AV_CODEC_ID_EXR.
	AVCodecIdExr AVCodecID = C.AV_CODEC_ID_EXR
	// AVCodecIdVp7 wraps AV_CODEC_ID_VP7.
	AVCodecIdVp7 AVCodecID = C.AV_CODEC_ID_VP7
	// AVCodecIdSanm wraps AV_CODEC_ID_SANM.
	AVCodecIdSanm AVCodecID = C.AV_CODEC_ID_SANM
	// AVCodecIdSgirle wraps AV_CODEC_ID_SGIRLE.
	AVCodecIdSgirle AVCodecID = C.AV_CODEC_ID_SGIRLE
	// AVCodecIdMvc1 wraps AV_CODEC_ID_MVC1.
	AVCodecIdMvc1 AVCodecID = C.AV_CODEC_ID_MVC1
	// AVCodecIdMvc2 wraps AV_CODEC_ID_MVC2.
	AVCodecIdMvc2 AVCodecID = C.AV_CODEC_ID_MVC2
	// AVCodecIdHqx wraps AV_CODEC_ID_HQX.
	AVCodecIdHqx AVCodecID = C.AV_CODEC_ID_HQX
	// AVCodecIdTdsc wraps AV_CODEC_ID_TDSC.
	AVCodecIdTdsc AVCodecID = C.AV_CODEC_ID_TDSC
	// AVCodecIdHqHqa wraps AV_CODEC_ID_HQ_HQA.
	AVCodecIdHqHqa AVCodecID = C.AV_CODEC_ID_HQ_HQA
	// AVCodecIdHap wraps AV_CODEC_ID_HAP.
	AVCodecIdHap AVCodecID = C.AV_CODEC_ID_HAP
	// AVCodecIdDds wraps AV_CODEC_ID_DDS.
	AVCodecIdDds AVCodecID = C.AV_CODEC_ID_DDS
	// AVCodecIdDxv wraps AV_CODEC_ID_DXV.
	AVCodecIdDxv AVCodecID = C.AV_CODEC_ID_DXV
	// AVCodecIdScreenpresso wraps AV_CODEC_ID_SCREENPRESSO.
	AVCodecIdScreenpresso AVCodecID = C.AV_CODEC_ID_SCREENPRESSO
	// AVCodecIdRscc wraps AV_CODEC_ID_RSCC.
	AVCodecIdRscc AVCodecID = C.AV_CODEC_ID_RSCC
	// AVCodecIdAVS2 wraps AV_CODEC_ID_AVS2.
	AVCodecIdAVS2 AVCodecID = C.AV_CODEC_ID_AVS2
	// AVCodecIdPgx wraps AV_CODEC_ID_PGX.
	AVCodecIdPgx AVCodecID = C.AV_CODEC_ID_PGX
	// AVCodecIdAVS3 wraps AV_CODEC_ID_AVS3.
	AVCodecIdAVS3 AVCodecID = C.AV_CODEC_ID_AVS3
	// AVCodecIdMsp2 wraps AV_CODEC_ID_MSP2.
	AVCodecIdMsp2 AVCodecID = C.AV_CODEC_ID_MSP2
	// AVCodecIdVvc wraps AV_CODEC_ID_VVC.
	AVCodecIdVvc AVCodecID = C.AV_CODEC_ID_VVC
	// AVCodecIdY41P wraps AV_CODEC_ID_Y41P.
	AVCodecIdY41P AVCodecID = C.AV_CODEC_ID_Y41P
	// AVCodecIdAVRp wraps AV_CODEC_ID_AVRP.
	AVCodecIdAVRp AVCodecID = C.AV_CODEC_ID_AVRP
	// AVCodecId012V wraps AV_CODEC_ID_012V.
	AVCodecId012V AVCodecID = C.AV_CODEC_ID_012V
	// AVCodecIdAVUi wraps AV_CODEC_ID_AVUI.
	AVCodecIdAVUi AVCodecID = C.AV_CODEC_ID_AVUI
	// AVCodecIdTargaY216 wraps AV_CODEC_ID_TARGA_Y216.
	AVCodecIdTargaY216 AVCodecID = C.AV_CODEC_ID_TARGA_Y216
	// AVCodecIdV308 wraps AV_CODEC_ID_V308.
	AVCodecIdV308 AVCodecID = C.AV_CODEC_ID_V308
	// AVCodecIdV408 wraps AV_CODEC_ID_V408.
	AVCodecIdV408 AVCodecID = C.AV_CODEC_ID_V408
	// AVCodecIdYuv4 wraps AV_CODEC_ID_YUV4.
	AVCodecIdYuv4 AVCodecID = C.AV_CODEC_ID_YUV4
	// AVCodecIdAVRn wraps AV_CODEC_ID_AVRN.
	AVCodecIdAVRn AVCodecID = C.AV_CODEC_ID_AVRN
	// AVCodecIdCpia wraps AV_CODEC_ID_CPIA.
	AVCodecIdCpia AVCodecID = C.AV_CODEC_ID_CPIA
	// AVCodecIdXface wraps AV_CODEC_ID_XFACE.
	AVCodecIdXface AVCodecID = C.AV_CODEC_ID_XFACE
	// AVCodecIdSnow wraps AV_CODEC_ID_SNOW.
	AVCodecIdSnow AVCodecID = C.AV_CODEC_ID_SNOW
	// AVCodecIdSmvjpeg wraps AV_CODEC_ID_SMVJPEG.
	AVCodecIdSmvjpeg AVCodecID = C.AV_CODEC_ID_SMVJPEG
	// AVCodecIdApng wraps AV_CODEC_ID_APNG.
	AVCodecIdApng AVCodecID = C.AV_CODEC_ID_APNG
	// AVCodecIdDaala wraps AV_CODEC_ID_DAALA.
	AVCodecIdDaala AVCodecID = C.AV_CODEC_ID_DAALA
	// AVCodecIdCfhd wraps AV_CODEC_ID_CFHD.
	AVCodecIdCfhd AVCodecID = C.AV_CODEC_ID_CFHD
	// AVCodecIdTruemotion2Rt wraps AV_CODEC_ID_TRUEMOTION2RT.
	AVCodecIdTruemotion2Rt AVCodecID = C.AV_CODEC_ID_TRUEMOTION2RT
	// AVCodecIdM101 wraps AV_CODEC_ID_M101.
	AVCodecIdM101 AVCodecID = C.AV_CODEC_ID_M101
	// AVCodecIdMagicyuv wraps AV_CODEC_ID_MAGICYUV.
	AVCodecIdMagicyuv AVCodecID = C.AV_CODEC_ID_MAGICYUV
	// AVCodecIdSheervideo wraps AV_CODEC_ID_SHEERVIDEO.
	AVCodecIdSheervideo AVCodecID = C.AV_CODEC_ID_SHEERVIDEO
	// AVCodecIdYlc wraps AV_CODEC_ID_YLC.
	AVCodecIdYlc AVCodecID = C.AV_CODEC_ID_YLC
	// AVCodecIdPsd wraps AV_CODEC_ID_PSD.
	AVCodecIdPsd AVCodecID = C.AV_CODEC_ID_PSD
	// AVCodecIdPixlet wraps AV_CODEC_ID_PIXLET.
	AVCodecIdPixlet AVCodecID = C.AV_CODEC_ID_PIXLET
	// AVCodecIdSpeedhq wraps AV_CODEC_ID_SPEEDHQ.
	AVCodecIdSpeedhq AVCodecID = C.AV_CODEC_ID_SPEEDHQ
	// AVCodecIdFmvc wraps AV_CODEC_ID_FMVC.
	AVCodecIdFmvc AVCodecID = C.AV_CODEC_ID_FMVC
	// AVCodecIdScpr wraps AV_CODEC_ID_SCPR.
	AVCodecIdScpr AVCodecID = C.AV_CODEC_ID_SCPR
	// AVCodecIdClearvideo wraps AV_CODEC_ID_CLEARVIDEO.
	AVCodecIdClearvideo AVCodecID = C.AV_CODEC_ID_CLEARVIDEO
	// AVCodecIdXpm wraps AV_CODEC_ID_XPM.
	AVCodecIdXpm AVCodecID = C.AV_CODEC_ID_XPM
	// AVCodecIdAV1 wraps AV_CODEC_ID_AV1.
	AVCodecIdAV1 AVCodecID = C.AV_CODEC_ID_AV1
	// AVCodecIdBitpacked wraps AV_CODEC_ID_BITPACKED.
	AVCodecIdBitpacked AVCodecID = C.AV_CODEC_ID_BITPACKED
	// AVCodecIdMscc wraps AV_CODEC_ID_MSCC.
	AVCodecIdMscc AVCodecID = C.AV_CODEC_ID_MSCC
	// AVCodecIdSrgc wraps AV_CODEC_ID_SRGC.
	AVCodecIdSrgc AVCodecID = C.AV_CODEC_ID_SRGC
	// AVCodecIdSvg wraps AV_CODEC_ID_SVG.
	AVCodecIdSvg AVCodecID = C.AV_CODEC_ID_SVG
	// AVCodecIdGdv wraps AV_CODEC_ID_GDV.
	AVCodecIdGdv AVCodecID = C.AV_CODEC_ID_GDV
	// AVCodecIdFits wraps AV_CODEC_ID_FITS.
	AVCodecIdFits AVCodecID = C.AV_CODEC_ID_FITS
	// AVCodecIdImm4 wraps AV_CODEC_ID_IMM4.
	AVCodecIdImm4 AVCodecID = C.AV_CODEC_ID_IMM4
	// AVCodecIdProsumer wraps AV_CODEC_ID_PROSUMER.
	AVCodecIdProsumer AVCodecID = C.AV_CODEC_ID_PROSUMER
	// AVCodecIdMwsc wraps AV_CODEC_ID_MWSC.
	AVCodecIdMwsc AVCodecID = C.AV_CODEC_ID_MWSC
	// AVCodecIdWcmv wraps AV_CODEC_ID_WCMV.
	AVCodecIdWcmv AVCodecID = C.AV_CODEC_ID_WCMV
	// AVCodecIdRasc wraps AV_CODEC_ID_RASC.
	AVCodecIdRasc AVCodecID = C.AV_CODEC_ID_RASC
	// AVCodecIdHymt wraps AV_CODEC_ID_HYMT.
	AVCodecIdHymt AVCodecID = C.AV_CODEC_ID_HYMT
	// AVCodecIdArbc wraps AV_CODEC_ID_ARBC.
	AVCodecIdArbc AVCodecID = C.AV_CODEC_ID_ARBC
	// AVCodecIdAgm wraps AV_CODEC_ID_AGM.
	AVCodecIdAgm AVCodecID = C.AV_CODEC_ID_AGM
	// AVCodecIdLscr wraps AV_CODEC_ID_LSCR.
	AVCodecIdLscr AVCodecID = C.AV_CODEC_ID_LSCR
	// AVCodecIdVp4 wraps AV_CODEC_ID_VP4.
	AVCodecIdVp4 AVCodecID = C.AV_CODEC_ID_VP4
	// AVCodecIdImm5 wraps AV_CODEC_ID_IMM5.
	AVCodecIdImm5 AVCodecID = C.AV_CODEC_ID_IMM5
	// AVCodecIdMvdv wraps AV_CODEC_ID_MVDV.
	AVCodecIdMvdv AVCodecID = C.AV_CODEC_ID_MVDV
	// AVCodecIdMvha wraps AV_CODEC_ID_MVHA.
	AVCodecIdMvha AVCodecID = C.AV_CODEC_ID_MVHA
	// AVCodecIdCdtoons wraps AV_CODEC_ID_CDTOONS.
	AVCodecIdCdtoons AVCodecID = C.AV_CODEC_ID_CDTOONS
	// AVCodecIdMv30 wraps AV_CODEC_ID_MV30.
	AVCodecIdMv30 AVCodecID = C.AV_CODEC_ID_MV30
	// AVCodecIdNotchlc wraps AV_CODEC_ID_NOTCHLC.
	AVCodecIdNotchlc AVCodecID = C.AV_CODEC_ID_NOTCHLC
	// AVCodecIdPfm wraps AV_CODEC_ID_PFM.
	AVCodecIdPfm AVCodecID = C.AV_CODEC_ID_PFM
	// AVCodecIdMobiclip wraps AV_CODEC_ID_MOBICLIP.
	AVCodecIdMobiclip AVCodecID = C.AV_CODEC_ID_MOBICLIP
	// AVCodecIdPhotocd wraps AV_CODEC_ID_PHOTOCD.
	AVCodecIdPhotocd AVCodecID = C.AV_CODEC_ID_PHOTOCD
	// AVCodecIdIpu wraps AV_CODEC_ID_IPU.
	AVCodecIdIpu AVCodecID = C.AV_CODEC_ID_IPU
	// AVCodecIdArgo wraps AV_CODEC_ID_ARGO.
	AVCodecIdArgo AVCodecID = C.AV_CODEC_ID_ARGO
	// AVCodecIdCri wraps AV_CODEC_ID_CRI.
	AVCodecIdCri AVCodecID = C.AV_CODEC_ID_CRI
	// AVCodecIdSimbiosisImx wraps AV_CODEC_ID_SIMBIOSIS_IMX.
	AVCodecIdSimbiosisImx AVCodecID = C.AV_CODEC_ID_SIMBIOSIS_IMX
	// AVCodecIdSgaVideo wraps AV_CODEC_ID_SGA_VIDEO.
	AVCodecIdSgaVideo AVCodecID = C.AV_CODEC_ID_SGA_VIDEO
	// AVCodecIdGem wraps AV_CODEC_ID_GEM.
	AVCodecIdGem AVCodecID = C.AV_CODEC_ID_GEM
	// AVCodecIdVbn wraps AV_CODEC_ID_VBN.
	AVCodecIdVbn AVCodecID = C.AV_CODEC_ID_VBN
	// AVCodecIdJpegxl wraps AV_CODEC_ID_JPEGXL.
	AVCodecIdJpegxl AVCodecID = C.AV_CODEC_ID_JPEGXL
	// AVCodecIdQoi wraps AV_CODEC_ID_QOI.
	AVCodecIdQoi AVCodecID = C.AV_CODEC_ID_QOI
	// AVCodecIdPhm wraps AV_CODEC_ID_PHM.
	AVCodecIdPhm AVCodecID = C.AV_CODEC_ID_PHM
	// AVCodecIdRadianceHdr wraps AV_CODEC_ID_RADIANCE_HDR.
	AVCodecIdRadianceHdr AVCodecID = C.AV_CODEC_ID_RADIANCE_HDR
	// AVCodecIdWbmp wraps AV_CODEC_ID_WBMP.
	AVCodecIdWbmp AVCodecID = C.AV_CODEC_ID_WBMP
	// AVCodecIdMedia100 wraps AV_CODEC_ID_MEDIA100.
	AVCodecIdMedia100 AVCodecID = C.AV_CODEC_ID_MEDIA100
	// AVCodecIdVqc wraps AV_CODEC_ID_VQC.
	AVCodecIdVqc AVCodecID = C.AV_CODEC_ID_VQC
	// AVCodecIdPdv wraps AV_CODEC_ID_PDV.
	AVCodecIdPdv AVCodecID = C.AV_CODEC_ID_PDV
	// AVCodecIdEvc wraps AV_CODEC_ID_EVC.
	AVCodecIdEvc AVCodecID = C.AV_CODEC_ID_EVC
	// AVCodecIdRtv1 wraps AV_CODEC_ID_RTV1.
	AVCodecIdRtv1 AVCodecID = C.AV_CODEC_ID_RTV1
	// AVCodecIdVmix wraps AV_CODEC_ID_VMIX.
	AVCodecIdVmix AVCodecID = C.AV_CODEC_ID_VMIX
	// AVCodecIdLead wraps AV_CODEC_ID_LEAD.
	AVCodecIdLead AVCodecID = C.AV_CODEC_ID_LEAD
	// AVCodecIdDnxuc wraps AV_CODEC_ID_DNXUC.
	AVCodecIdDnxuc AVCodecID = C.AV_CODEC_ID_DNXUC
	// AVCodecIdRv60 wraps AV_CODEC_ID_RV60.
	AVCodecIdRv60 AVCodecID = C.AV_CODEC_ID_RV60
	// AVCodecIdJpegxlAnim wraps AV_CODEC_ID_JPEGXL_ANIM.
	AVCodecIdJpegxlAnim AVCodecID = C.AV_CODEC_ID_JPEGXL_ANIM
	// AVCodecIdApv wraps AV_CODEC_ID_APV.
	AVCodecIdApv AVCodecID = C.AV_CODEC_ID_APV
	// AVCodecIdProresRaw wraps AV_CODEC_ID_PRORES_RAW.
	AVCodecIdProresRaw AVCodecID = C.AV_CODEC_ID_PRORES_RAW
	// AVCodecIdFirstAudio wraps AV_CODEC_ID_FIRST_AUDIO.
	//
	//	A dummy id pointing at the start of audio codecs
	AVCodecIdFirstAudio AVCodecID = C.AV_CODEC_ID_FIRST_AUDIO
	// AVCodecIdPcmS16Le wraps AV_CODEC_ID_PCM_S16LE.
	AVCodecIdPcmS16Le AVCodecID = C.AV_CODEC_ID_PCM_S16LE
	// AVCodecIdPcmS16Be wraps AV_CODEC_ID_PCM_S16BE.
	AVCodecIdPcmS16Be AVCodecID = C.AV_CODEC_ID_PCM_S16BE
	// AVCodecIdPcmU16Le wraps AV_CODEC_ID_PCM_U16LE.
	AVCodecIdPcmU16Le AVCodecID = C.AV_CODEC_ID_PCM_U16LE
	// AVCodecIdPcmU16Be wraps AV_CODEC_ID_PCM_U16BE.
	AVCodecIdPcmU16Be AVCodecID = C.AV_CODEC_ID_PCM_U16BE
	// AVCodecIdPcmS8 wraps AV_CODEC_ID_PCM_S8.
	AVCodecIdPcmS8 AVCodecID = C.AV_CODEC_ID_PCM_S8
	// AVCodecIdPcmU8 wraps AV_CODEC_ID_PCM_U8.
	AVCodecIdPcmU8 AVCodecID = C.AV_CODEC_ID_PCM_U8
	// AVCodecIdPcmMulaw wraps AV_CODEC_ID_PCM_MULAW.
	AVCodecIdPcmMulaw AVCodecID = C.AV_CODEC_ID_PCM_MULAW
	// AVCodecIdPcmAlaw wraps AV_CODEC_ID_PCM_ALAW.
	AVCodecIdPcmAlaw AVCodecID = C.AV_CODEC_ID_PCM_ALAW
	// AVCodecIdPcmS32Le wraps AV_CODEC_ID_PCM_S32LE.
	AVCodecIdPcmS32Le AVCodecID = C.AV_CODEC_ID_PCM_S32LE
	// AVCodecIdPcmS32Be wraps AV_CODEC_ID_PCM_S32BE.
	AVCodecIdPcmS32Be AVCodecID = C.AV_CODEC_ID_PCM_S32BE
	// AVCodecIdPcmU32Le wraps AV_CODEC_ID_PCM_U32LE.
	AVCodecIdPcmU32Le AVCodecID = C.AV_CODEC_ID_PCM_U32LE
	// AVCodecIdPcmU32Be wraps AV_CODEC_ID_PCM_U32BE.
	AVCodecIdPcmU32Be AVCodecID = C.AV_CODEC_ID_PCM_U32BE
	// AVCodecIdPcmS24Le wraps AV_CODEC_ID_PCM_S24LE.
	AVCodecIdPcmS24Le AVCodecID = C.AV_CODEC_ID_PCM_S24LE
	// AVCodecIdPcmS24Be wraps AV_CODEC_ID_PCM_S24BE.
	AVCodecIdPcmS24Be AVCodecID = C.AV_CODEC_ID_PCM_S24BE
	// AVCodecIdPcmU24Le wraps AV_CODEC_ID_PCM_U24LE.
	AVCodecIdPcmU24Le AVCodecID = C.AV_CODEC_ID_PCM_U24LE
	// AVCodecIdPcmU24Be wraps AV_CODEC_ID_PCM_U24BE.
	AVCodecIdPcmU24Be AVCodecID = C.AV_CODEC_ID_PCM_U24BE
	// AVCodecIdPcmS24Daud wraps AV_CODEC_ID_PCM_S24DAUD.
	AVCodecIdPcmS24Daud AVCodecID = C.AV_CODEC_ID_PCM_S24DAUD
	// AVCodecIdPcmZork wraps AV_CODEC_ID_PCM_ZORK.
	AVCodecIdPcmZork AVCodecID = C.AV_CODEC_ID_PCM_ZORK
	// AVCodecIdPcmS16LePlanar wraps AV_CODEC_ID_PCM_S16LE_PLANAR.
	AVCodecIdPcmS16LePlanar AVCodecID = C.AV_CODEC_ID_PCM_S16LE_PLANAR
	// AVCodecIdPcmDvd wraps AV_CODEC_ID_PCM_DVD.
	AVCodecIdPcmDvd AVCodecID = C.AV_CODEC_ID_PCM_DVD
	// AVCodecIdPcmF32Be wraps AV_CODEC_ID_PCM_F32BE.
	AVCodecIdPcmF32Be AVCodecID = C.AV_CODEC_ID_PCM_F32BE
	// AVCodecIdPcmF32Le wraps AV_CODEC_ID_PCM_F32LE.
	AVCodecIdPcmF32Le AVCodecID = C.AV_CODEC_ID_PCM_F32LE
	// AVCodecIdPcmF64Be wraps AV_CODEC_ID_PCM_F64BE.
	AVCodecIdPcmF64Be AVCodecID = C.AV_CODEC_ID_PCM_F64BE
	// AVCodecIdPcmF64Le wraps AV_CODEC_ID_PCM_F64LE.
	AVCodecIdPcmF64Le AVCodecID = C.AV_CODEC_ID_PCM_F64LE
	// AVCodecIdPcmBluray wraps AV_CODEC_ID_PCM_BLURAY.
	AVCodecIdPcmBluray AVCodecID = C.AV_CODEC_ID_PCM_BLURAY
	// AVCodecIdPcmLxf wraps AV_CODEC_ID_PCM_LXF.
	AVCodecIdPcmLxf AVCodecID = C.AV_CODEC_ID_PCM_LXF
	// AVCodecIdS302M wraps AV_CODEC_ID_S302M.
	AVCodecIdS302M AVCodecID = C.AV_CODEC_ID_S302M
	// AVCodecIdPcmS8Planar wraps AV_CODEC_ID_PCM_S8_PLANAR.
	AVCodecIdPcmS8Planar AVCodecID = C.AV_CODEC_ID_PCM_S8_PLANAR
	// AVCodecIdPcmS24LePlanar wraps AV_CODEC_ID_PCM_S24LE_PLANAR.
	AVCodecIdPcmS24LePlanar AVCodecID = C.AV_CODEC_ID_PCM_S24LE_PLANAR
	// AVCodecIdPcmS32LePlanar wraps AV_CODEC_ID_PCM_S32LE_PLANAR.
	AVCodecIdPcmS32LePlanar AVCodecID = C.AV_CODEC_ID_PCM_S32LE_PLANAR
	// AVCodecIdPcmS16BePlanar wraps AV_CODEC_ID_PCM_S16BE_PLANAR.
	AVCodecIdPcmS16BePlanar AVCodecID = C.AV_CODEC_ID_PCM_S16BE_PLANAR
	// AVCodecIdPcmS64Le wraps AV_CODEC_ID_PCM_S64LE.
	AVCodecIdPcmS64Le AVCodecID = C.AV_CODEC_ID_PCM_S64LE
	// AVCodecIdPcmS64Be wraps AV_CODEC_ID_PCM_S64BE.
	AVCodecIdPcmS64Be AVCodecID = C.AV_CODEC_ID_PCM_S64BE
	// AVCodecIdPcmF16Le wraps AV_CODEC_ID_PCM_F16LE.
	AVCodecIdPcmF16Le AVCodecID = C.AV_CODEC_ID_PCM_F16LE
	// AVCodecIdPcmF24Le wraps AV_CODEC_ID_PCM_F24LE.
	AVCodecIdPcmF24Le AVCodecID = C.AV_CODEC_ID_PCM_F24LE
	// AVCodecIdPcmVidc wraps AV_CODEC_ID_PCM_VIDC.
	AVCodecIdPcmVidc AVCodecID = C.AV_CODEC_ID_PCM_VIDC
	// AVCodecIdPcmSga wraps AV_CODEC_ID_PCM_SGA.
	AVCodecIdPcmSga AVCodecID = C.AV_CODEC_ID_PCM_SGA
	// AVCodecIdAdpcmImaQt wraps AV_CODEC_ID_ADPCM_IMA_QT.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaQt AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_QT
	// AVCodecIdAdpcmImaWav wraps AV_CODEC_ID_ADPCM_IMA_WAV.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaWav AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_WAV
	// AVCodecIdAdpcmImaDk3 wraps AV_CODEC_ID_ADPCM_IMA_DK3.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaDk3 AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_DK3
	// AVCodecIdAdpcmImaDk4 wraps AV_CODEC_ID_ADPCM_IMA_DK4.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaDk4 AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_DK4
	// AVCodecIdAdpcmImaWs wraps AV_CODEC_ID_ADPCM_IMA_WS.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaWs AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_WS
	// AVCodecIdAdpcmImaSmjpeg wraps AV_CODEC_ID_ADPCM_IMA_SMJPEG.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaSmjpeg AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_SMJPEG
	// AVCodecIdAdpcmMs wraps AV_CODEC_ID_ADPCM_MS.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmMs AVCodecID = C.AV_CODEC_ID_ADPCM_MS
	// AVCodecIdAdpcm4Xm wraps AV_CODEC_ID_ADPCM_4XM.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcm4Xm AVCodecID = C.AV_CODEC_ID_ADPCM_4XM
	// AVCodecIdAdpcmXa wraps AV_CODEC_ID_ADPCM_XA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmXa AVCodecID = C.AV_CODEC_ID_ADPCM_XA
	// AVCodecIdAdpcmAdx wraps AV_CODEC_ID_ADPCM_ADX.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmAdx AVCodecID = C.AV_CODEC_ID_ADPCM_ADX
	// AVCodecIdAdpcmEa wraps AV_CODEC_ID_ADPCM_EA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEa AVCodecID = C.AV_CODEC_ID_ADPCM_EA
	// AVCodecIdAdpcmG726 wraps AV_CODEC_ID_ADPCM_G726.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmG726 AVCodecID = C.AV_CODEC_ID_ADPCM_G726
	// AVCodecIdAdpcmCt wraps AV_CODEC_ID_ADPCM_CT.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmCt AVCodecID = C.AV_CODEC_ID_ADPCM_CT
	// AVCodecIdAdpcmSwf wraps AV_CODEC_ID_ADPCM_SWF.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmSwf AVCodecID = C.AV_CODEC_ID_ADPCM_SWF
	// AVCodecIdAdpcmYamaha wraps AV_CODEC_ID_ADPCM_YAMAHA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmYamaha AVCodecID = C.AV_CODEC_ID_ADPCM_YAMAHA
	// AVCodecIdAdpcmSbpro4 wraps AV_CODEC_ID_ADPCM_SBPRO_4.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmSbpro4 AVCodecID = C.AV_CODEC_ID_ADPCM_SBPRO_4
	// AVCodecIdAdpcmSbpro3 wraps AV_CODEC_ID_ADPCM_SBPRO_3.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmSbpro3 AVCodecID = C.AV_CODEC_ID_ADPCM_SBPRO_3
	// AVCodecIdAdpcmSbpro2 wraps AV_CODEC_ID_ADPCM_SBPRO_2.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmSbpro2 AVCodecID = C.AV_CODEC_ID_ADPCM_SBPRO_2
	// AVCodecIdAdpcmThp wraps AV_CODEC_ID_ADPCM_THP.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmThp AVCodecID = C.AV_CODEC_ID_ADPCM_THP
	// AVCodecIdAdpcmImaAmv wraps AV_CODEC_ID_ADPCM_IMA_AMV.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaAmv AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_AMV
	// AVCodecIdAdpcmEaR1 wraps AV_CODEC_ID_ADPCM_EA_R1.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEaR1 AVCodecID = C.AV_CODEC_ID_ADPCM_EA_R1
	// AVCodecIdAdpcmEaR3 wraps AV_CODEC_ID_ADPCM_EA_R3.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEaR3 AVCodecID = C.AV_CODEC_ID_ADPCM_EA_R3
	// AVCodecIdAdpcmEaR2 wraps AV_CODEC_ID_ADPCM_EA_R2.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEaR2 AVCodecID = C.AV_CODEC_ID_ADPCM_EA_R2
	// AVCodecIdAdpcmImaEaSead wraps AV_CODEC_ID_ADPCM_IMA_EA_SEAD.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaEaSead AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_EA_SEAD
	// AVCodecIdAdpcmImaEaEacs wraps AV_CODEC_ID_ADPCM_IMA_EA_EACS.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaEaEacs AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_EA_EACS
	// AVCodecIdAdpcmEaXas wraps AV_CODEC_ID_ADPCM_EA_XAS.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEaXas AVCodecID = C.AV_CODEC_ID_ADPCM_EA_XAS
	// AVCodecIdAdpcmEaMaxisXa wraps AV_CODEC_ID_ADPCM_EA_MAXIS_XA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmEaMaxisXa AVCodecID = C.AV_CODEC_ID_ADPCM_EA_MAXIS_XA
	// AVCodecIdAdpcmImaIss wraps AV_CODEC_ID_ADPCM_IMA_ISS.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaIss AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_ISS
	// AVCodecIdAdpcmG722 wraps AV_CODEC_ID_ADPCM_G722.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmG722 AVCodecID = C.AV_CODEC_ID_ADPCM_G722
	// AVCodecIdAdpcmImaApc wraps AV_CODEC_ID_ADPCM_IMA_APC.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaApc AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_APC
	// AVCodecIdAdpcmVima wraps AV_CODEC_ID_ADPCM_VIMA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmVima AVCodecID = C.AV_CODEC_ID_ADPCM_VIMA
	// AVCodecIdAdpcmAfc wraps AV_CODEC_ID_ADPCM_AFC.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmAfc AVCodecID = C.AV_CODEC_ID_ADPCM_AFC
	// AVCodecIdAdpcmImaOki wraps AV_CODEC_ID_ADPCM_IMA_OKI.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaOki AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_OKI
	// AVCodecIdAdpcmDtk wraps AV_CODEC_ID_ADPCM_DTK.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmDtk AVCodecID = C.AV_CODEC_ID_ADPCM_DTK
	// AVCodecIdAdpcmImaRad wraps AV_CODEC_ID_ADPCM_IMA_RAD.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaRad AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_RAD
	// AVCodecIdAdpcmG726Le wraps AV_CODEC_ID_ADPCM_G726LE.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmG726Le AVCodecID = C.AV_CODEC_ID_ADPCM_G726LE
	// AVCodecIdAdpcmThpLe wraps AV_CODEC_ID_ADPCM_THP_LE.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmThpLe AVCodecID = C.AV_CODEC_ID_ADPCM_THP_LE
	// AVCodecIdAdpcmPsx wraps AV_CODEC_ID_ADPCM_PSX.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmPsx AVCodecID = C.AV_CODEC_ID_ADPCM_PSX
	// AVCodecIdAdpcmAica wraps AV_CODEC_ID_ADPCM_AICA.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmAica AVCodecID = C.AV_CODEC_ID_ADPCM_AICA
	// AVCodecIdAdpcmImaDat4 wraps AV_CODEC_ID_ADPCM_IMA_DAT4.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaDat4 AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_DAT4
	// AVCodecIdAdpcmMtaf wraps AV_CODEC_ID_ADPCM_MTAF.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmMtaf AVCodecID = C.AV_CODEC_ID_ADPCM_MTAF
	// AVCodecIdAdpcmAgm wraps AV_CODEC_ID_ADPCM_AGM.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmAgm AVCodecID = C.AV_CODEC_ID_ADPCM_AGM
	// AVCodecIdAdpcmArgo wraps AV_CODEC_ID_ADPCM_ARGO.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmArgo AVCodecID = C.AV_CODEC_ID_ADPCM_ARGO
	// AVCodecIdAdpcmImaSsi wraps AV_CODEC_ID_ADPCM_IMA_SSI.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaSsi AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_SSI
	// AVCodecIdAdpcmZork wraps AV_CODEC_ID_ADPCM_ZORK.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmZork AVCodecID = C.AV_CODEC_ID_ADPCM_ZORK
	// AVCodecIdAdpcmImaApm wraps AV_CODEC_ID_ADPCM_IMA_APM.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaApm AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_APM
	// AVCodecIdAdpcmImaAlp wraps AV_CODEC_ID_ADPCM_IMA_ALP.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaAlp AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_ALP
	// AVCodecIdAdpcmImaMtf wraps AV_CODEC_ID_ADPCM_IMA_MTF.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaMtf AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_MTF
	// AVCodecIdAdpcmImaCunning wraps AV_CODEC_ID_ADPCM_IMA_CUNNING.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaCunning AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_CUNNING
	// AVCodecIdAdpcmImaMoflex wraps AV_CODEC_ID_ADPCM_IMA_MOFLEX.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaMoflex AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_MOFLEX
	// AVCodecIdAdpcmImaAcorn wraps AV_CODEC_ID_ADPCM_IMA_ACORN.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaAcorn AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_ACORN
	// AVCodecIdAdpcmXmd wraps AV_CODEC_ID_ADPCM_XMD.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmXmd AVCodecID = C.AV_CODEC_ID_ADPCM_XMD
	// AVCodecIdAdpcmImaXbox wraps AV_CODEC_ID_ADPCM_IMA_XBOX.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmImaXbox AVCodecID = C.AV_CODEC_ID_ADPCM_IMA_XBOX
	// AVCodecIdAdpcmSanyo wraps AV_CODEC_ID_ADPCM_SANYO.
	//
	//	various ADPCM codecs
	AVCodecIdAdpcmSanyo AVCodecID = C.AV_CODEC_ID_ADPCM_SANYO
	// AVCodecIdAmrNb wraps AV_CODEC_ID_AMR_NB.
	//
	//	AMR
	AVCodecIdAmrNb AVCodecID = C.AV_CODEC_ID_AMR_NB
	// AVCodecIdAmrWb wraps AV_CODEC_ID_AMR_WB.
	//
	//	AMR
	AVCodecIdAmrWb AVCodecID = C.AV_CODEC_ID_AMR_WB
	// AVCodecIdRa144 wraps AV_CODEC_ID_RA_144.
	//
	//	RealAudio codecs
	AVCodecIdRa144 AVCodecID = C.AV_CODEC_ID_RA_144
	// AVCodecIdRa288 wraps AV_CODEC_ID_RA_288.
	//
	//	RealAudio codecs
	AVCodecIdRa288 AVCodecID = C.AV_CODEC_ID_RA_288
	// AVCodecIdRoqDpcm wraps AV_CODEC_ID_ROQ_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdRoqDpcm AVCodecID = C.AV_CODEC_ID_ROQ_DPCM
	// AVCodecIdInterplayDpcm wraps AV_CODEC_ID_INTERPLAY_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdInterplayDpcm AVCodecID = C.AV_CODEC_ID_INTERPLAY_DPCM
	// AVCodecIdXanDpcm wraps AV_CODEC_ID_XAN_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdXanDpcm AVCodecID = C.AV_CODEC_ID_XAN_DPCM
	// AVCodecIdSolDpcm wraps AV_CODEC_ID_SOL_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdSolDpcm AVCodecID = C.AV_CODEC_ID_SOL_DPCM
	// AVCodecIdSdx2Dpcm wraps AV_CODEC_ID_SDX2_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdSdx2Dpcm AVCodecID = C.AV_CODEC_ID_SDX2_DPCM
	// AVCodecIdGremlinDpcm wraps AV_CODEC_ID_GREMLIN_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdGremlinDpcm AVCodecID = C.AV_CODEC_ID_GREMLIN_DPCM
	// AVCodecIdDerfDpcm wraps AV_CODEC_ID_DERF_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdDerfDpcm AVCodecID = C.AV_CODEC_ID_DERF_DPCM
	// AVCodecIdWadyDpcm wraps AV_CODEC_ID_WADY_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdWadyDpcm AVCodecID = C.AV_CODEC_ID_WADY_DPCM
	// AVCodecIdCbd2Dpcm wraps AV_CODEC_ID_CBD2_DPCM.
	//
	//	various DPCM codecs
	AVCodecIdCbd2Dpcm AVCodecID = C.AV_CODEC_ID_CBD2_DPCM
	// AVCodecIdMp2 wraps AV_CODEC_ID_MP2.
	//
	//	audio codecs
	AVCodecIdMp2 AVCodecID = C.AV_CODEC_ID_MP2
	// AVCodecIdMp3 wraps AV_CODEC_ID_MP3.
	//
	//	preferred ID for decoding MPEG audio layer 1, 2 or 3
	AVCodecIdMp3 AVCodecID = C.AV_CODEC_ID_MP3
	// AVCodecIdAac wraps AV_CODEC_ID_AAC.
	AVCodecIdAac AVCodecID = C.AV_CODEC_ID_AAC
	// AVCodecIdAc3 wraps AV_CODEC_ID_AC3.
	AVCodecIdAc3 AVCodecID = C.AV_CODEC_ID_AC3
	// AVCodecIdDts wraps AV_CODEC_ID_DTS.
	AVCodecIdDts AVCodecID = C.AV_CODEC_ID_DTS
	// AVCodecIdVorbis wraps AV_CODEC_ID_VORBIS.
	AVCodecIdVorbis AVCodecID = C.AV_CODEC_ID_VORBIS
	// AVCodecIdDvaudio wraps AV_CODEC_ID_DVAUDIO.
	AVCodecIdDvaudio AVCodecID = C.AV_CODEC_ID_DVAUDIO
	// AVCodecIdWmav1 wraps AV_CODEC_ID_WMAV1.
	AVCodecIdWmav1 AVCodecID = C.AV_CODEC_ID_WMAV1
	// AVCodecIdWmav2 wraps AV_CODEC_ID_WMAV2.
	AVCodecIdWmav2 AVCodecID = C.AV_CODEC_ID_WMAV2
	// AVCodecIdMace3 wraps AV_CODEC_ID_MACE3.
	AVCodecIdMace3 AVCodecID = C.AV_CODEC_ID_MACE3
	// AVCodecIdMace6 wraps AV_CODEC_ID_MACE6.
	AVCodecIdMace6 AVCodecID = C.AV_CODEC_ID_MACE6
	// AVCodecIdVmdaudio wraps AV_CODEC_ID_VMDAUDIO.
	AVCodecIdVmdaudio AVCodecID = C.AV_CODEC_ID_VMDAUDIO
	// AVCodecIdFlac wraps AV_CODEC_ID_FLAC.
	AVCodecIdFlac AVCodecID = C.AV_CODEC_ID_FLAC
	// AVCodecIdMp3Adu wraps AV_CODEC_ID_MP3ADU.
	AVCodecIdMp3Adu AVCodecID = C.AV_CODEC_ID_MP3ADU
	// AVCodecIdMp3On4 wraps AV_CODEC_ID_MP3ON4.
	AVCodecIdMp3On4 AVCodecID = C.AV_CODEC_ID_MP3ON4
	// AVCodecIdShorten wraps AV_CODEC_ID_SHORTEN.
	AVCodecIdShorten AVCodecID = C.AV_CODEC_ID_SHORTEN
	// AVCodecIdAlac wraps AV_CODEC_ID_ALAC.
	AVCodecIdAlac AVCodecID = C.AV_CODEC_ID_ALAC
	// AVCodecIdWestwoodSnd1 wraps AV_CODEC_ID_WESTWOOD_SND1.
	AVCodecIdWestwoodSnd1 AVCodecID = C.AV_CODEC_ID_WESTWOOD_SND1
	// AVCodecIdGsm wraps AV_CODEC_ID_GSM.
	//
	//	as in Berlin toast format
	AVCodecIdGsm AVCodecID = C.AV_CODEC_ID_GSM
	// AVCodecIdQdm2 wraps AV_CODEC_ID_QDM2.
	AVCodecIdQdm2 AVCodecID = C.AV_CODEC_ID_QDM2
	// AVCodecIdCook wraps AV_CODEC_ID_COOK.
	AVCodecIdCook AVCodecID = C.AV_CODEC_ID_COOK
	// AVCodecIdTruespeech wraps AV_CODEC_ID_TRUESPEECH.
	AVCodecIdTruespeech AVCodecID = C.AV_CODEC_ID_TRUESPEECH
	// AVCodecIdTta wraps AV_CODEC_ID_TTA.
	AVCodecIdTta AVCodecID = C.AV_CODEC_ID_TTA
	// AVCodecIdSmackaudio wraps AV_CODEC_ID_SMACKAUDIO.
	AVCodecIdSmackaudio AVCodecID = C.AV_CODEC_ID_SMACKAUDIO
	// AVCodecIdQcelp wraps AV_CODEC_ID_QCELP.
	AVCodecIdQcelp AVCodecID = C.AV_CODEC_ID_QCELP
	// AVCodecIdWavpack wraps AV_CODEC_ID_WAVPACK.
	AVCodecIdWavpack AVCodecID = C.AV_CODEC_ID_WAVPACK
	// AVCodecIdDsicinaudio wraps AV_CODEC_ID_DSICINAUDIO.
	AVCodecIdDsicinaudio AVCodecID = C.AV_CODEC_ID_DSICINAUDIO
	// AVCodecIdImc wraps AV_CODEC_ID_IMC.
	AVCodecIdImc AVCodecID = C.AV_CODEC_ID_IMC
	// AVCodecIdMusepack7 wraps AV_CODEC_ID_MUSEPACK7.
	AVCodecIdMusepack7 AVCodecID = C.AV_CODEC_ID_MUSEPACK7
	// AVCodecIdMlp wraps AV_CODEC_ID_MLP.
	AVCodecIdMlp AVCodecID = C.AV_CODEC_ID_MLP
	// AVCodecIdGsmMs wraps AV_CODEC_ID_GSM_MS.
	//
	//	as found in WAV
	AVCodecIdGsmMs AVCodecID = C.AV_CODEC_ID_GSM_MS
	// AVCodecIdAtrac3 wraps AV_CODEC_ID_ATRAC3.
	AVCodecIdAtrac3 AVCodecID = C.AV_CODEC_ID_ATRAC3
	// AVCodecIdApe wraps AV_CODEC_ID_APE.
	AVCodecIdApe AVCodecID = C.AV_CODEC_ID_APE
	// AVCodecIdNellymoser wraps AV_CODEC_ID_NELLYMOSER.
	AVCodecIdNellymoser AVCodecID = C.AV_CODEC_ID_NELLYMOSER
	// AVCodecIdMusepack8 wraps AV_CODEC_ID_MUSEPACK8.
	AVCodecIdMusepack8 AVCodecID = C.AV_CODEC_ID_MUSEPACK8
	// AVCodecIdSpeex wraps AV_CODEC_ID_SPEEX.
	AVCodecIdSpeex AVCodecID = C.AV_CODEC_ID_SPEEX
	// AVCodecIdWmavoice wraps AV_CODEC_ID_WMAVOICE.
	AVCodecIdWmavoice AVCodecID = C.AV_CODEC_ID_WMAVOICE
	// AVCodecIdWmapro wraps AV_CODEC_ID_WMAPRO.
	AVCodecIdWmapro AVCodecID = C.AV_CODEC_ID_WMAPRO
	// AVCodecIdWmalossless wraps AV_CODEC_ID_WMALOSSLESS.
	AVCodecIdWmalossless AVCodecID = C.AV_CODEC_ID_WMALOSSLESS
	// AVCodecIdAtrac3P wraps AV_CODEC_ID_ATRAC3P.
	AVCodecIdAtrac3P AVCodecID = C.AV_CODEC_ID_ATRAC3P
	// AVCodecIdEac3 wraps AV_CODEC_ID_EAC3.
	AVCodecIdEac3 AVCodecID = C.AV_CODEC_ID_EAC3
	// AVCodecIdSipr wraps AV_CODEC_ID_SIPR.
	AVCodecIdSipr AVCodecID = C.AV_CODEC_ID_SIPR
	// AVCodecIdMp1 wraps AV_CODEC_ID_MP1.
	AVCodecIdMp1 AVCodecID = C.AV_CODEC_ID_MP1
	// AVCodecIdTwinvq wraps AV_CODEC_ID_TWINVQ.
	AVCodecIdTwinvq AVCodecID = C.AV_CODEC_ID_TWINVQ
	// AVCodecIdTruehd wraps AV_CODEC_ID_TRUEHD.
	AVCodecIdTruehd AVCodecID = C.AV_CODEC_ID_TRUEHD
	// AVCodecIdMp4Als wraps AV_CODEC_ID_MP4ALS.
	AVCodecIdMp4Als AVCodecID = C.AV_CODEC_ID_MP4ALS
	// AVCodecIdAtrac1 wraps AV_CODEC_ID_ATRAC1.
	AVCodecIdAtrac1 AVCodecID = C.AV_CODEC_ID_ATRAC1
	// AVCodecIdBinkaudioRdft wraps AV_CODEC_ID_BINKAUDIO_RDFT.
	AVCodecIdBinkaudioRdft AVCodecID = C.AV_CODEC_ID_BINKAUDIO_RDFT
	// AVCodecIdBinkaudioDct wraps AV_CODEC_ID_BINKAUDIO_DCT.
	AVCodecIdBinkaudioDct AVCodecID = C.AV_CODEC_ID_BINKAUDIO_DCT
	// AVCodecIdAacLatm wraps AV_CODEC_ID_AAC_LATM.
	AVCodecIdAacLatm AVCodecID = C.AV_CODEC_ID_AAC_LATM
	// AVCodecIdQdmc wraps AV_CODEC_ID_QDMC.
	AVCodecIdQdmc AVCodecID = C.AV_CODEC_ID_QDMC
	// AVCodecIdCelt wraps AV_CODEC_ID_CELT.
	AVCodecIdCelt AVCodecID = C.AV_CODEC_ID_CELT
	// AVCodecIdG7231 wraps AV_CODEC_ID_G723_1.
	AVCodecIdG7231 AVCodecID = C.AV_CODEC_ID_G723_1
	// AVCodecIdG729 wraps AV_CODEC_ID_G729.
	AVCodecIdG729 AVCodecID = C.AV_CODEC_ID_G729
	// AVCodecId8SvxExp wraps AV_CODEC_ID_8SVX_EXP.
	AVCodecId8SvxExp AVCodecID = C.AV_CODEC_ID_8SVX_EXP
	// AVCodecId8SvxFib wraps AV_CODEC_ID_8SVX_FIB.
	AVCodecId8SvxFib AVCodecID = C.AV_CODEC_ID_8SVX_FIB
	// AVCodecIdBmvAudio wraps AV_CODEC_ID_BMV_AUDIO.
	AVCodecIdBmvAudio AVCodecID = C.AV_CODEC_ID_BMV_AUDIO
	// AVCodecIdRalf wraps AV_CODEC_ID_RALF.
	AVCodecIdRalf AVCodecID = C.AV_CODEC_ID_RALF
	// AVCodecIdIac wraps AV_CODEC_ID_IAC.
	AVCodecIdIac AVCodecID = C.AV_CODEC_ID_IAC
	// AVCodecIdIlbc wraps AV_CODEC_ID_ILBC.
	AVCodecIdIlbc AVCodecID = C.AV_CODEC_ID_ILBC
	// AVCodecIdOpus wraps AV_CODEC_ID_OPUS.
	AVCodecIdOpus AVCodecID = C.AV_CODEC_ID_OPUS
	// AVCodecIdComfortNoise wraps AV_CODEC_ID_COMFORT_NOISE.
	AVCodecIdComfortNoise AVCodecID = C.AV_CODEC_ID_COMFORT_NOISE
	// AVCodecIdTak wraps AV_CODEC_ID_TAK.
	AVCodecIdTak AVCodecID = C.AV_CODEC_ID_TAK
	// AVCodecIdMetasound wraps AV_CODEC_ID_METASOUND.
	AVCodecIdMetasound AVCodecID = C.AV_CODEC_ID_METASOUND
	// AVCodecIdPafAudio wraps AV_CODEC_ID_PAF_AUDIO.
	AVCodecIdPafAudio AVCodecID = C.AV_CODEC_ID_PAF_AUDIO
	// AVCodecIdOn2AVC wraps AV_CODEC_ID_ON2AVC.
	AVCodecIdOn2AVC AVCodecID = C.AV_CODEC_ID_ON2AVC
	// AVCodecIdDssSp wraps AV_CODEC_ID_DSS_SP.
	AVCodecIdDssSp AVCodecID = C.AV_CODEC_ID_DSS_SP
	// AVCodecIdCodec2 wraps AV_CODEC_ID_CODEC2.
	AVCodecIdCodec2 AVCodecID = C.AV_CODEC_ID_CODEC2
	// AVCodecIdFFWavesynth wraps AV_CODEC_ID_FFWAVESYNTH.
	AVCodecIdFFWavesynth AVCodecID = C.AV_CODEC_ID_FFWAVESYNTH
	// AVCodecIdSonic wraps AV_CODEC_ID_SONIC.
	AVCodecIdSonic AVCodecID = C.AV_CODEC_ID_SONIC
	// AVCodecIdSonicLs wraps AV_CODEC_ID_SONIC_LS.
	AVCodecIdSonicLs AVCodecID = C.AV_CODEC_ID_SONIC_LS
	// AVCodecIdEvrc wraps AV_CODEC_ID_EVRC.
	AVCodecIdEvrc AVCodecID = C.AV_CODEC_ID_EVRC
	// AVCodecIdSmv wraps AV_CODEC_ID_SMV.
	AVCodecIdSmv AVCodecID = C.AV_CODEC_ID_SMV
	// AVCodecIdDsdLsbf wraps AV_CODEC_ID_DSD_LSBF.
	AVCodecIdDsdLsbf AVCodecID = C.AV_CODEC_ID_DSD_LSBF
	// AVCodecIdDsdMsbf wraps AV_CODEC_ID_DSD_MSBF.
	AVCodecIdDsdMsbf AVCodecID = C.AV_CODEC_ID_DSD_MSBF
	// AVCodecIdDsdLsbfPlanar wraps AV_CODEC_ID_DSD_LSBF_PLANAR.
	AVCodecIdDsdLsbfPlanar AVCodecID = C.AV_CODEC_ID_DSD_LSBF_PLANAR
	// AVCodecIdDsdMsbfPlanar wraps AV_CODEC_ID_DSD_MSBF_PLANAR.
	AVCodecIdDsdMsbfPlanar AVCodecID = C.AV_CODEC_ID_DSD_MSBF_PLANAR
	// AVCodecId4Gv wraps AV_CODEC_ID_4GV.
	AVCodecId4Gv AVCodecID = C.AV_CODEC_ID_4GV
	// AVCodecIdInterplayAcm wraps AV_CODEC_ID_INTERPLAY_ACM.
	AVCodecIdInterplayAcm AVCodecID = C.AV_CODEC_ID_INTERPLAY_ACM
	// AVCodecIdXma1 wraps AV_CODEC_ID_XMA1.
	AVCodecIdXma1 AVCodecID = C.AV_CODEC_ID_XMA1
	// AVCodecIdXma2 wraps AV_CODEC_ID_XMA2.
	AVCodecIdXma2 AVCodecID = C.AV_CODEC_ID_XMA2
	// AVCodecIdDst wraps AV_CODEC_ID_DST.
	AVCodecIdDst AVCodecID = C.AV_CODEC_ID_DST
	// AVCodecIdAtrac3Al wraps AV_CODEC_ID_ATRAC3AL.
	AVCodecIdAtrac3Al AVCodecID = C.AV_CODEC_ID_ATRAC3AL
	// AVCodecIdAtrac3Pal wraps AV_CODEC_ID_ATRAC3PAL.
	AVCodecIdAtrac3Pal AVCodecID = C.AV_CODEC_ID_ATRAC3PAL
	// AVCodecIdDolbyE wraps AV_CODEC_ID_DOLBY_E.
	AVCodecIdDolbyE AVCodecID = C.AV_CODEC_ID_DOLBY_E
	// AVCodecIdAptx wraps AV_CODEC_ID_APTX.
	AVCodecIdAptx AVCodecID = C.AV_CODEC_ID_APTX
	// AVCodecIdAptxHd wraps AV_CODEC_ID_APTX_HD.
	AVCodecIdAptxHd AVCodecID = C.AV_CODEC_ID_APTX_HD
	// AVCodecIdSbc wraps AV_CODEC_ID_SBC.
	AVCodecIdSbc AVCodecID = C.AV_CODEC_ID_SBC
	// AVCodecIdAtrac9 wraps AV_CODEC_ID_ATRAC9.
	AVCodecIdAtrac9 AVCodecID = C.AV_CODEC_ID_ATRAC9
	// AVCodecIdHcom wraps AV_CODEC_ID_HCOM.
	AVCodecIdHcom AVCodecID = C.AV_CODEC_ID_HCOM
	// AVCodecIdAcelpKelvin wraps AV_CODEC_ID_ACELP_KELVIN.
	AVCodecIdAcelpKelvin AVCodecID = C.AV_CODEC_ID_ACELP_KELVIN
	// AVCodecIdMpegh3DAudio wraps AV_CODEC_ID_MPEGH_3D_AUDIO.
	AVCodecIdMpegh3DAudio AVCodecID = C.AV_CODEC_ID_MPEGH_3D_AUDIO
	// AVCodecIdSiren wraps AV_CODEC_ID_SIREN.
	AVCodecIdSiren AVCodecID = C.AV_CODEC_ID_SIREN
	// AVCodecIdHca wraps AV_CODEC_ID_HCA.
	AVCodecIdHca AVCodecID = C.AV_CODEC_ID_HCA
	// AVCodecIdFastaudio wraps AV_CODEC_ID_FASTAUDIO.
	AVCodecIdFastaudio AVCodecID = C.AV_CODEC_ID_FASTAUDIO
	// AVCodecIdMsnsiren wraps AV_CODEC_ID_MSNSIREN.
	AVCodecIdMsnsiren AVCodecID = C.AV_CODEC_ID_MSNSIREN
	// AVCodecIdDfpwm wraps AV_CODEC_ID_DFPWM.
	AVCodecIdDfpwm AVCodecID = C.AV_CODEC_ID_DFPWM
	// AVCodecIdBonk wraps AV_CODEC_ID_BONK.
	AVCodecIdBonk AVCodecID = C.AV_CODEC_ID_BONK
	// AVCodecIdMisc4 wraps AV_CODEC_ID_MISC4.
	AVCodecIdMisc4 AVCodecID = C.AV_CODEC_ID_MISC4
	// AVCodecIdApac wraps AV_CODEC_ID_APAC.
	AVCodecIdApac AVCodecID = C.AV_CODEC_ID_APAC
	// AVCodecIdFtr wraps AV_CODEC_ID_FTR.
	AVCodecIdFtr AVCodecID = C.AV_CODEC_ID_FTR
	// AVCodecIdWavarc wraps AV_CODEC_ID_WAVARC.
	AVCodecIdWavarc AVCodecID = C.AV_CODEC_ID_WAVARC
	// AVCodecIdRka wraps AV_CODEC_ID_RKA.
	AVCodecIdRka AVCodecID = C.AV_CODEC_ID_RKA
	// AVCodecIdAc4 wraps AV_CODEC_ID_AC4.
	AVCodecIdAc4 AVCodecID = C.AV_CODEC_ID_AC4
	// AVCodecIdOsq wraps AV_CODEC_ID_OSQ.
	AVCodecIdOsq AVCodecID = C.AV_CODEC_ID_OSQ
	// AVCodecIdQoa wraps AV_CODEC_ID_QOA.
	AVCodecIdQoa AVCodecID = C.AV_CODEC_ID_QOA
	// AVCodecIdLc3 wraps AV_CODEC_ID_LC3.
	AVCodecIdLc3 AVCodecID = C.AV_CODEC_ID_LC3
	// AVCodecIdG728 wraps AV_CODEC_ID_G728.
	AVCodecIdG728 AVCodecID = C.AV_CODEC_ID_G728
	// AVCodecIdFirstSubtitle wraps AV_CODEC_ID_FIRST_SUBTITLE.
	//
	//	A dummy ID pointing at the start of subtitle codecs.
	AVCodecIdFirstSubtitle AVCodecID = C.AV_CODEC_ID_FIRST_SUBTITLE
	// AVCodecIdDvdSubtitle wraps AV_CODEC_ID_DVD_SUBTITLE.
	AVCodecIdDvdSubtitle AVCodecID = C.AV_CODEC_ID_DVD_SUBTITLE
	// AVCodecIdDvbSubtitle wraps AV_CODEC_ID_DVB_SUBTITLE.
	AVCodecIdDvbSubtitle AVCodecID = C.AV_CODEC_ID_DVB_SUBTITLE
	// AVCodecIdText wraps AV_CODEC_ID_TEXT.
	//
	//	raw UTF-8 text
	AVCodecIdText AVCodecID = C.AV_CODEC_ID_TEXT
	// AVCodecIdXsub wraps AV_CODEC_ID_XSUB.
	AVCodecIdXsub AVCodecID = C.AV_CODEC_ID_XSUB
	// AVCodecIdSsa wraps AV_CODEC_ID_SSA.
	AVCodecIdSsa AVCodecID = C.AV_CODEC_ID_SSA
	// AVCodecIdMovText wraps AV_CODEC_ID_MOV_TEXT.
	AVCodecIdMovText AVCodecID = C.AV_CODEC_ID_MOV_TEXT
	// AVCodecIdHdmvPgsSubtitle wraps AV_CODEC_ID_HDMV_PGS_SUBTITLE.
	AVCodecIdHdmvPgsSubtitle AVCodecID = C.AV_CODEC_ID_HDMV_PGS_SUBTITLE
	// AVCodecIdDvbTeletext wraps AV_CODEC_ID_DVB_TELETEXT.
	AVCodecIdDvbTeletext AVCodecID = C.AV_CODEC_ID_DVB_TELETEXT
	// AVCodecIdSrt wraps AV_CODEC_ID_SRT.
	AVCodecIdSrt AVCodecID = C.AV_CODEC_ID_SRT
	// AVCodecIdMicrodvd wraps AV_CODEC_ID_MICRODVD.
	AVCodecIdMicrodvd AVCodecID = C.AV_CODEC_ID_MICRODVD
	// AVCodecIdEia608 wraps AV_CODEC_ID_EIA_608.
	AVCodecIdEia608 AVCodecID = C.AV_CODEC_ID_EIA_608
	// AVCodecIdJacosub wraps AV_CODEC_ID_JACOSUB.
	AVCodecIdJacosub AVCodecID = C.AV_CODEC_ID_JACOSUB
	// AVCodecIdSami wraps AV_CODEC_ID_SAMI.
	AVCodecIdSami AVCodecID = C.AV_CODEC_ID_SAMI
	// AVCodecIdRealtext wraps AV_CODEC_ID_REALTEXT.
	AVCodecIdRealtext AVCodecID = C.AV_CODEC_ID_REALTEXT
	// AVCodecIdStl wraps AV_CODEC_ID_STL.
	AVCodecIdStl AVCodecID = C.AV_CODEC_ID_STL
	// AVCodecIdSubviewer1 wraps AV_CODEC_ID_SUBVIEWER1.
	AVCodecIdSubviewer1 AVCodecID = C.AV_CODEC_ID_SUBVIEWER1
	// AVCodecIdSubviewer wraps AV_CODEC_ID_SUBVIEWER.
	AVCodecIdSubviewer AVCodecID = C.AV_CODEC_ID_SUBVIEWER
	// AVCodecIdSubrip wraps AV_CODEC_ID_SUBRIP.
	AVCodecIdSubrip AVCodecID = C.AV_CODEC_ID_SUBRIP
	// AVCodecIdWebvtt wraps AV_CODEC_ID_WEBVTT.
	AVCodecIdWebvtt AVCodecID = C.AV_CODEC_ID_WEBVTT
	// AVCodecIdMpl2 wraps AV_CODEC_ID_MPL2.
	AVCodecIdMpl2 AVCodecID = C.AV_CODEC_ID_MPL2
	// AVCodecIdVplayer wraps AV_CODEC_ID_VPLAYER.
	AVCodecIdVplayer AVCodecID = C.AV_CODEC_ID_VPLAYER
	// AVCodecIdPjs wraps AV_CODEC_ID_PJS.
	AVCodecIdPjs AVCodecID = C.AV_CODEC_ID_PJS
	// AVCodecIdAss wraps AV_CODEC_ID_ASS.
	AVCodecIdAss AVCodecID = C.AV_CODEC_ID_ASS
	// AVCodecIdHdmvTextSubtitle wraps AV_CODEC_ID_HDMV_TEXT_SUBTITLE.
	AVCodecIdHdmvTextSubtitle AVCodecID = C.AV_CODEC_ID_HDMV_TEXT_SUBTITLE
	// AVCodecIdTtml wraps AV_CODEC_ID_TTML.
	AVCodecIdTtml AVCodecID = C.AV_CODEC_ID_TTML
	// AVCodecIdAribCaption wraps AV_CODEC_ID_ARIB_CAPTION.
	AVCodecIdAribCaption AVCodecID = C.AV_CODEC_ID_ARIB_CAPTION
	// AVCodecIdIvtvVbi wraps AV_CODEC_ID_IVTV_VBI.
	AVCodecIdIvtvVbi AVCodecID = C.AV_CODEC_ID_IVTV_VBI
	// AVCodecIdFirstUnknown wraps AV_CODEC_ID_FIRST_UNKNOWN.
	//
	//	A dummy ID pointing at the start of various fake codecs.
	AVCodecIdFirstUnknown AVCodecID = C.AV_CODEC_ID_FIRST_UNKNOWN
	// AVCodecIdTtf wraps AV_CODEC_ID_TTF.
	AVCodecIdTtf AVCodecID = C.AV_CODEC_ID_TTF
	// AVCodecIdScte35 wraps AV_CODEC_ID_SCTE_35.
	//
	//	Contain timestamp estimated through PCR of program stream.
	AVCodecIdScte35 AVCodecID = C.AV_CODEC_ID_SCTE_35
	// AVCodecIdEpg wraps AV_CODEC_ID_EPG.
	AVCodecIdEpg AVCodecID = C.AV_CODEC_ID_EPG
	// AVCodecIdBintext wraps AV_CODEC_ID_BINTEXT.
	AVCodecIdBintext AVCodecID = C.AV_CODEC_ID_BINTEXT
	// AVCodecIdXbin wraps AV_CODEC_ID_XBIN.
	AVCodecIdXbin AVCodecID = C.AV_CODEC_ID_XBIN
	// AVCodecIdIdf wraps AV_CODEC_ID_IDF.
	AVCodecIdIdf AVCodecID = C.AV_CODEC_ID_IDF
	// AVCodecIdOtf wraps AV_CODEC_ID_OTF.
	AVCodecIdOtf AVCodecID = C.AV_CODEC_ID_OTF
	// AVCodecIdSmpteKlv wraps AV_CODEC_ID_SMPTE_KLV.
	AVCodecIdSmpteKlv AVCodecID = C.AV_CODEC_ID_SMPTE_KLV
	// AVCodecIdDvdNav wraps AV_CODEC_ID_DVD_NAV.
	AVCodecIdDvdNav AVCodecID = C.AV_CODEC_ID_DVD_NAV
	// AVCodecIdTimedId3 wraps AV_CODEC_ID_TIMED_ID3.
	AVCodecIdTimedId3 AVCodecID = C.AV_CODEC_ID_TIMED_ID3
	// AVCodecIdBinData wraps AV_CODEC_ID_BIN_DATA.
	AVCodecIdBinData AVCodecID = C.AV_CODEC_ID_BIN_DATA
	// AVCodecIdSmpte2038 wraps AV_CODEC_ID_SMPTE_2038.
	AVCodecIdSmpte2038 AVCodecID = C.AV_CODEC_ID_SMPTE_2038
	// AVCodecIdLcevc wraps AV_CODEC_ID_LCEVC.
	AVCodecIdLcevc AVCodecID = C.AV_CODEC_ID_LCEVC
	// AVCodecIdSmpte436MAnc wraps AV_CODEC_ID_SMPTE_436M_ANC.
	AVCodecIdSmpte436MAnc AVCodecID = C.AV_CODEC_ID_SMPTE_436M_ANC
	// AVCodecIdProbe wraps AV_CODEC_ID_PROBE.
	//
	//	codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it
	AVCodecIdProbe AVCodecID = C.AV_CODEC_ID_PROBE
	// AVCodecIdMpeg2Ts wraps AV_CODEC_ID_MPEG2TS.
	/*
	   < _FAKE_ codec to indicate a raw MPEG-2 TS
	   stream (only used by libavformat)
	*/
	AVCodecIdMpeg2Ts AVCodecID = C.AV_CODEC_ID_MPEG2TS
	// AVCodecIdMpeg4Systems wraps AV_CODEC_ID_MPEG4SYSTEMS.
	/*
	   < _FAKE_ codec to indicate a MPEG-4 Systems
	   stream (only used by libavformat)
	*/
	AVCodecIdMpeg4Systems AVCodecID = C.AV_CODEC_ID_MPEG4SYSTEMS
	// AVCodecIdFFMetadata wraps AV_CODEC_ID_FFMETADATA.
	//
	//	Dummy codec for streams containing only metadata information.
	AVCodecIdFFMetadata AVCodecID = C.AV_CODEC_ID_FFMETADATA
	// AVCodecIdWrappedAVFrame wraps AV_CODEC_ID_WRAPPED_AVFRAME.
	//
	//	Passthrough codec, AVFrames wrapped in AVPacket
	AVCodecIdWrappedAVFrame AVCodecID = C.AV_CODEC_ID_WRAPPED_AVFRAME
	// AVCodecIdVnull wraps AV_CODEC_ID_VNULL.
	/*
	   Dummy null video codec, useful mainly for development and debugging.
	   Null encoder/decoder discard all input and never return any output.
	*/
	AVCodecIdVnull AVCodecID = C.AV_CODEC_ID_VNULL
	// AVCodecIdAnull wraps AV_CODEC_ID_ANULL.
	/*
	   Dummy null audio codec, useful mainly for development and debugging.
	   Null encoder/decoder discard all input and never return any output.
	*/
	AVCodecIdAnull AVCodecID = C.AV_CODEC_ID_ANULL
)

func AVCodecGetId

func AVCodecGetId(tags **AVCodecTag, tag uint) AVCodecID

AVCodecGetId wraps av_codec_get_id.

Get the AVCodecID for the given codec tag tag.
If no codec id is found returns AV_CODEC_ID_NONE.

@param tags list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tag
@param tag  codec tag to match to a codec ID

func AVGetPcmCodec

func AVGetPcmCodec(fmt AVSampleFormat, be int) AVCodecID

AVGetPcmCodec wraps av_get_pcm_codec.

Return the PCM codec associated with a sample format.
@param be  endianness, 0 for little, 1 for big,
           -1 (or anything else) for native
@return  AV_CODEC_ID_PCM_* or AV_CODEC_ID_NONE

func AVGuessCodec

func AVGuessCodec(fmt *AVOutputFormat, shortName *CStr, filename *CStr, mimeType *CStr, _type AVMediaType) AVCodecID

AVGuessCodec wraps av_guess_codec.

Guess the codec ID based upon muxer and filename.

type AVCodecParameters

type AVCodecParameters struct {
	// contains filtered or unexported fields
}

AVCodecParameters wraps AVCodecParameters.

This struct describes the properties of an encoded stream.

sizeof(AVCodecParameters) is not a part of the public ABI, this struct must
be allocated with avcodec_parameters_alloc() and freed with
avcodec_parameters_free().

func AVCodecParametersAlloc

func AVCodecParametersAlloc() *AVCodecParameters

AVCodecParametersAlloc wraps avcodec_parameters_alloc.

Allocate a new AVCodecParameters and set its fields to default values
(unknown/invalid/0). The returned struct must be freed with
avcodec_parameters_free().

func (*AVCodecParameters) BitRate

func (s *AVCodecParameters) BitRate() int64

BitRate gets the bit_rate field.

The average bitrate of the encoded data (in bits per second).

func (*AVCodecParameters) BitsPerCodedSample

func (s *AVCodecParameters) BitsPerCodedSample() int

BitsPerCodedSample gets the bits_per_coded_sample field.

The number of bits per sample in the codedwords.

This is basically the bitrate per sample. It is mandatory for a bunch of
formats to actually decode them. It's the number of bits for one sample in
the actual coded bitstream.

This could be for example 4 for ADPCM
For PCM formats this matches bits_per_raw_sample
Can be 0

func (*AVCodecParameters) BitsPerRawSample

func (s *AVCodecParameters) BitsPerRawSample() int

BitsPerRawSample gets the bits_per_raw_sample field.

This is the number of valid bits in each output sample. If the
sample format has more bits, the least significant bits are additional
padding bits, which are always 0. Use right shifts to reduce the sample
to its actual size. For example, audio formats with 24 bit samples will
have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32.
To get the original sample use "(int32_t)sample >> 8"."

For ADPCM this might be 12 or 16 or similar
Can be 0

func (*AVCodecParameters) BlockAlign

func (s *AVCodecParameters) BlockAlign() int

BlockAlign gets the block_align field.

Audio only. The number of bytes per coded audio frame, required by some
formats.

Corresponds to nBlockAlign in WAVEFORMATEX.

func (*AVCodecParameters) ChLayout

func (s *AVCodecParameters) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

Audio only. The channel layout and number of channels.

func (*AVCodecParameters) ChromaLocation

func (s *AVCodecParameters) ChromaLocation() AVChromaLocation

ChromaLocation gets the chroma_location field.

func (*AVCodecParameters) CodecId

func (s *AVCodecParameters) CodecId() AVCodecID

CodecId gets the codec_id field.

Specific type of the encoded data (the codec used).

func (*AVCodecParameters) CodecTag

func (s *AVCodecParameters) CodecTag() uint32

CodecTag gets the codec_tag field.

Additional information about the codec (corresponds to the AVI FOURCC).

func (*AVCodecParameters) CodecType

func (s *AVCodecParameters) CodecType() AVMediaType

CodecType gets the codec_type field.

General type of the encoded data.

func (*AVCodecParameters) CodedSideData

func (s *AVCodecParameters) CodedSideData() *AVPacketSideData

CodedSideData gets the coded_side_data field.

Additional data associated with the entire stream.

Should be allocated with av_packet_side_data_new() or
av_packet_side_data_add(), and will be freed by avcodec_parameters_free().

func (*AVCodecParameters) ColorPrimaries

func (s *AVCodecParameters) ColorPrimaries() AVColorPrimaries

ColorPrimaries gets the color_primaries field.

func (*AVCodecParameters) ColorRange

func (s *AVCodecParameters) ColorRange() AVColorRange

ColorRange gets the color_range field.

Video only. Additional colorspace characteristics.

func (*AVCodecParameters) ColorSpace

func (s *AVCodecParameters) ColorSpace() AVColorSpace

ColorSpace gets the color_space field.

func (*AVCodecParameters) ColorTrc

ColorTrc gets the color_trc field.

func (*AVCodecParameters) Extradata

func (s *AVCodecParameters) Extradata() unsafe.Pointer

Extradata gets the extradata field.

Extra binary data needed for initializing the decoder, codec-dependent.

Must be allocated with av_malloc() and will be freed by
avcodec_parameters_free(). The allocated size of extradata must be at
least extradata_size + AV_INPUT_BUFFER_PADDING_SIZE, with the padding
bytes zeroed.

func (*AVCodecParameters) ExtradataSize

func (s *AVCodecParameters) ExtradataSize() int

ExtradataSize gets the extradata_size field.

Size of the extradata content in bytes.

func (*AVCodecParameters) FieldOrder

func (s *AVCodecParameters) FieldOrder() AVFieldOrder

FieldOrder gets the field_order field.

Video only. The order of the fields in interlaced video.

func (*AVCodecParameters) Format

func (s *AVCodecParameters) Format() int

Format gets the format field.

  • video: the pixel format, the value corresponds to enum AVPixelFormat.
  • audio: the sample format, the value corresponds to enum AVSampleFormat.

func (*AVCodecParameters) FrameSize

func (s *AVCodecParameters) FrameSize() int

FrameSize gets the frame_size field.

Audio only. Audio frame size, if known. Required by some formats to be static.

func (*AVCodecParameters) Framerate

func (s *AVCodecParameters) Framerate() *AVRational

Framerate gets the framerate field.

Video only. Number of frames per second, for streams with constant frame
durations. Should be set to { 0, 1 } when some frames have differing
durations or if the value is not known.

@note This field corresponds to values that are stored in codec-level
headers and is typically overridden by container/transport-layer
timestamps, when available. It should thus be used only as a last resort,
when no higher-level timing information is available.

func (*AVCodecParameters) Height

func (s *AVCodecParameters) Height() int

Height gets the height field.

func (*AVCodecParameters) InitialPadding

func (s *AVCodecParameters) InitialPadding() int

InitialPadding gets the initial_padding field.

Audio only. The amount of padding (in samples) inserted by the encoder at
the beginning of the audio. I.e. this number of leading decoded samples
must be discarded by the caller to get the original audio without leading
padding.

func (*AVCodecParameters) Level

func (s *AVCodecParameters) Level() int

Level gets the level field.

func (*AVCodecParameters) NbCodedSideData

func (s *AVCodecParameters) NbCodedSideData() int

NbCodedSideData gets the nb_coded_side_data field.

Amount of entries in @ref coded_side_data.

func (*AVCodecParameters) Profile

func (s *AVCodecParameters) Profile() int

Profile gets the profile field.

Codec-specific bitstream restrictions that the stream conforms to.

func (*AVCodecParameters) RawPtr

func (s *AVCodecParameters) RawPtr() unsafe.Pointer

func (*AVCodecParameters) SampleAspectRatio

func (s *AVCodecParameters) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

Video only. The aspect ratio (width / height) which a single pixel
should have when displayed.

When the aspect ratio is unknown / undefined, the numerator should be
set to 0 (the denominator may have any value).

func (*AVCodecParameters) SampleRate

func (s *AVCodecParameters) SampleRate() int

SampleRate gets the sample_rate field.

Audio only. The number of audio samples per second.

func (*AVCodecParameters) SeekPreroll

func (s *AVCodecParameters) SeekPreroll() int

SeekPreroll gets the seek_preroll field.

Audio only. Number of samples to skip after a discontinuity.

func (*AVCodecParameters) SetBitRate

func (s *AVCodecParameters) SetBitRate(value int64)

SetBitRate sets the bit_rate field.

The average bitrate of the encoded data (in bits per second).

func (*AVCodecParameters) SetBitsPerCodedSample

func (s *AVCodecParameters) SetBitsPerCodedSample(value int)

SetBitsPerCodedSample sets the bits_per_coded_sample field.

The number of bits per sample in the codedwords.

This is basically the bitrate per sample. It is mandatory for a bunch of
formats to actually decode them. It's the number of bits for one sample in
the actual coded bitstream.

This could be for example 4 for ADPCM
For PCM formats this matches bits_per_raw_sample
Can be 0

func (*AVCodecParameters) SetBitsPerRawSample

func (s *AVCodecParameters) SetBitsPerRawSample(value int)

SetBitsPerRawSample sets the bits_per_raw_sample field.

This is the number of valid bits in each output sample. If the
sample format has more bits, the least significant bits are additional
padding bits, which are always 0. Use right shifts to reduce the sample
to its actual size. For example, audio formats with 24 bit samples will
have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32.
To get the original sample use "(int32_t)sample >> 8"."

For ADPCM this might be 12 or 16 or similar
Can be 0

func (*AVCodecParameters) SetBlockAlign

func (s *AVCodecParameters) SetBlockAlign(value int)

SetBlockAlign sets the block_align field.

Audio only. The number of bytes per coded audio frame, required by some
formats.

Corresponds to nBlockAlign in WAVEFORMATEX.

func (*AVCodecParameters) SetChromaLocation

func (s *AVCodecParameters) SetChromaLocation(value AVChromaLocation)

SetChromaLocation sets the chroma_location field.

func (*AVCodecParameters) SetCodecId

func (s *AVCodecParameters) SetCodecId(value AVCodecID)

SetCodecId sets the codec_id field.

Specific type of the encoded data (the codec used).

func (*AVCodecParameters) SetCodecTag

func (s *AVCodecParameters) SetCodecTag(value uint32)

SetCodecTag sets the codec_tag field.

Additional information about the codec (corresponds to the AVI FOURCC).

func (*AVCodecParameters) SetCodecType

func (s *AVCodecParameters) SetCodecType(value AVMediaType)

SetCodecType sets the codec_type field.

General type of the encoded data.

func (*AVCodecParameters) SetCodedSideData

func (s *AVCodecParameters) SetCodedSideData(value *AVPacketSideData)

SetCodedSideData sets the coded_side_data field.

Additional data associated with the entire stream.

Should be allocated with av_packet_side_data_new() or
av_packet_side_data_add(), and will be freed by avcodec_parameters_free().

func (*AVCodecParameters) SetColorPrimaries

func (s *AVCodecParameters) SetColorPrimaries(value AVColorPrimaries)

SetColorPrimaries sets the color_primaries field.

func (*AVCodecParameters) SetColorRange

func (s *AVCodecParameters) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

Video only. Additional colorspace characteristics.

func (*AVCodecParameters) SetColorSpace

func (s *AVCodecParameters) SetColorSpace(value AVColorSpace)

SetColorSpace sets the color_space field.

func (*AVCodecParameters) SetColorTrc

func (s *AVCodecParameters) SetColorTrc(value AVColorTransferCharacteristic)

SetColorTrc sets the color_trc field.

func (*AVCodecParameters) SetExtradata

func (s *AVCodecParameters) SetExtradata(value unsafe.Pointer)

SetExtradata sets the extradata field.

Extra binary data needed for initializing the decoder, codec-dependent.

Must be allocated with av_malloc() and will be freed by
avcodec_parameters_free(). The allocated size of extradata must be at
least extradata_size + AV_INPUT_BUFFER_PADDING_SIZE, with the padding
bytes zeroed.

func (*AVCodecParameters) SetExtradataSize

func (s *AVCodecParameters) SetExtradataSize(value int)

SetExtradataSize sets the extradata_size field.

Size of the extradata content in bytes.

func (*AVCodecParameters) SetFieldOrder

func (s *AVCodecParameters) SetFieldOrder(value AVFieldOrder)

SetFieldOrder sets the field_order field.

Video only. The order of the fields in interlaced video.

func (*AVCodecParameters) SetFormat

func (s *AVCodecParameters) SetFormat(value int)

SetFormat sets the format field.

  • video: the pixel format, the value corresponds to enum AVPixelFormat.
  • audio: the sample format, the value corresponds to enum AVSampleFormat.

func (*AVCodecParameters) SetFrameSize

func (s *AVCodecParameters) SetFrameSize(value int)

SetFrameSize sets the frame_size field.

Audio only. Audio frame size, if known. Required by some formats to be static.

func (*AVCodecParameters) SetFramerate

func (s *AVCodecParameters) SetFramerate(value *AVRational)

SetFramerate sets the framerate field.

Video only. Number of frames per second, for streams with constant frame
durations. Should be set to { 0, 1 } when some frames have differing
durations or if the value is not known.

@note This field corresponds to values that are stored in codec-level
headers and is typically overridden by container/transport-layer
timestamps, when available. It should thus be used only as a last resort,
when no higher-level timing information is available.

func (*AVCodecParameters) SetHeight

func (s *AVCodecParameters) SetHeight(value int)

SetHeight sets the height field.

func (*AVCodecParameters) SetInitialPadding

func (s *AVCodecParameters) SetInitialPadding(value int)

SetInitialPadding sets the initial_padding field.

Audio only. The amount of padding (in samples) inserted by the encoder at
the beginning of the audio. I.e. this number of leading decoded samples
must be discarded by the caller to get the original audio without leading
padding.

func (*AVCodecParameters) SetLevel

func (s *AVCodecParameters) SetLevel(value int)

SetLevel sets the level field.

func (*AVCodecParameters) SetNbCodedSideData

func (s *AVCodecParameters) SetNbCodedSideData(value int)

SetNbCodedSideData sets the nb_coded_side_data field.

Amount of entries in @ref coded_side_data.

func (*AVCodecParameters) SetProfile

func (s *AVCodecParameters) SetProfile(value int)

SetProfile sets the profile field.

Codec-specific bitstream restrictions that the stream conforms to.

func (*AVCodecParameters) SetSampleAspectRatio

func (s *AVCodecParameters) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

Video only. The aspect ratio (width / height) which a single pixel
should have when displayed.

When the aspect ratio is unknown / undefined, the numerator should be
set to 0 (the denominator may have any value).

func (*AVCodecParameters) SetSampleRate

func (s *AVCodecParameters) SetSampleRate(value int)

SetSampleRate sets the sample_rate field.

Audio only. The number of audio samples per second.

func (*AVCodecParameters) SetSeekPreroll

func (s *AVCodecParameters) SetSeekPreroll(value int)

SetSeekPreroll sets the seek_preroll field.

Audio only. Number of samples to skip after a discontinuity.

func (*AVCodecParameters) SetTrailingPadding

func (s *AVCodecParameters) SetTrailingPadding(value int)

SetTrailingPadding sets the trailing_padding field.

Audio only. The amount of padding (in samples) appended by the encoder to
the end of the audio. I.e. this number of decoded samples must be
discarded by the caller from the end of the stream to get the original
audio without any trailing padding.

func (*AVCodecParameters) SetVideoDelay

func (s *AVCodecParameters) SetVideoDelay(value int)

SetVideoDelay sets the video_delay field.

Video only. Number of delayed frames.

func (*AVCodecParameters) SetWidth

func (s *AVCodecParameters) SetWidth(value int)

SetWidth sets the width field.

Video only. The dimensions of the video frame in pixels.

func (*AVCodecParameters) TrailingPadding

func (s *AVCodecParameters) TrailingPadding() int

TrailingPadding gets the trailing_padding field.

Audio only. The amount of padding (in samples) appended by the encoder to
the end of the audio. I.e. this number of decoded samples must be
discarded by the caller from the end of the stream to get the original
audio without any trailing padding.

func (*AVCodecParameters) VideoDelay

func (s *AVCodecParameters) VideoDelay() int

VideoDelay gets the video_delay field.

Video only. Number of delayed frames.

func (*AVCodecParameters) Width

func (s *AVCodecParameters) Width() int

Width gets the width field.

Video only. The dimensions of the video frame in pixels.

type AVCodecParser

type AVCodecParser struct {
	// contains filtered or unexported fields
}

AVCodecParser wraps AVCodecParser.

func AVParserIterate

func AVParserIterate(opaque *unsafe.Pointer) *AVCodecParser

AVParserIterate iterates over all registered codec parsers.

@param opaque a pointer where libavcodec will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered parser or NULL when the iteration is finished

func (*AVCodecParser) CodecIds

func (s *AVCodecParser) CodecIds() *Array[int]

CodecIds gets the codec_ids field.

several codec IDs are permitted

func (*AVCodecParser) PrivDataSize

func (s *AVCodecParser) PrivDataSize() int

PrivDataSize gets the priv_data_size field.

func (*AVCodecParser) RawPtr

func (s *AVCodecParser) RawPtr() unsafe.Pointer

func (*AVCodecParser) SetPrivDataSize

func (s *AVCodecParser) SetPrivDataSize(value int)

SetPrivDataSize sets the priv_data_size field.

type AVCodecParserContext

type AVCodecParserContext struct {
	// contains filtered or unexported fields
}

AVCodecParserContext wraps AVCodecParserContext.

func AVParserInit

func AVParserInit(codecId int) *AVCodecParserContext

AVParserInit wraps av_parser_init.

func AVStreamGetParser

func AVStreamGetParser(s *AVStream) *AVCodecParserContext

AVStreamGetParser wraps av_stream_get_parser.

func (*AVCodecParserContext) CodedHeight

func (s *AVCodecParserContext) CodedHeight() int

CodedHeight gets the coded_height field.

func (*AVCodecParserContext) CodedWidth

func (s *AVCodecParserContext) CodedWidth() int

CodedWidth gets the coded_width field.

Dimensions of the coded video.

func (*AVCodecParserContext) CurFrameDts

func (s *AVCodecParserContext) CurFrameDts() *Array[int64]

CurFrameDts gets the cur_frame_dts field.

func (*AVCodecParserContext) CurFrameEnd

func (s *AVCodecParserContext) CurFrameEnd() *Array[int64]

CurFrameEnd gets the cur_frame_end field.

func (*AVCodecParserContext) CurFrameOffset

func (s *AVCodecParserContext) CurFrameOffset() *Array[int64]

CurFrameOffset gets the cur_frame_offset field.

func (*AVCodecParserContext) CurFramePos

func (s *AVCodecParserContext) CurFramePos() *Array[int64]

CurFramePos gets the cur_frame_pos field.

Position of the packet in file.

Analogous to cur_frame_pts/dts

func (*AVCodecParserContext) CurFramePts

func (s *AVCodecParserContext) CurFramePts() *Array[int64]

CurFramePts gets the cur_frame_pts field.

func (*AVCodecParserContext) CurFrameStartIndex

func (s *AVCodecParserContext) CurFrameStartIndex() int

CurFrameStartIndex gets the cur_frame_start_index field.

func (*AVCodecParserContext) CurOffset

func (s *AVCodecParserContext) CurOffset() int64

CurOffset gets the cur_offset field.

current offset
(incremented by each av_parser_parse())

func (*AVCodecParserContext) Dts

func (s *AVCodecParserContext) Dts() int64

Dts gets the dts field.

dts of the current frame

func (*AVCodecParserContext) DtsRefDtsDelta

func (s *AVCodecParserContext) DtsRefDtsDelta() int

DtsRefDtsDelta gets the dts_ref_dts_delta field.

Offset of the current timestamp against last timestamp sync point in
units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must
contain a valid timestamp offset.

Note that the timestamp of sync point has usually a nonzero
dts_ref_dts_delta, which refers to the previous sync point. Offset of
the next frame after timestamp sync point will be usually 1.

For example, this corresponds to H.264 cpb_removal_delay.

func (*AVCodecParserContext) DtsSyncPoint

func (s *AVCodecParserContext) DtsSyncPoint() int

DtsSyncPoint gets the dts_sync_point field.

Synchronization point for start of timestamp generation.

Set to >0 for sync point, 0 for no sync point and <0 for undefined
(default).

For example, this corresponds to presence of H.264 buffering period
SEI message.

func (*AVCodecParserContext) Duration

func (s *AVCodecParserContext) Duration() int

Duration gets the duration field.

Duration of the current frame.
For audio, this is in units of 1 / AVCodecContext.sample_rate.
For all other types, this is in units of AVCodecContext.time_base.

func (*AVCodecParserContext) FetchTimestamp

func (s *AVCodecParserContext) FetchTimestamp() int

FetchTimestamp gets the fetch_timestamp field.

func (*AVCodecParserContext) FieldOrder

func (s *AVCodecParserContext) FieldOrder() AVFieldOrder

FieldOrder gets the field_order field.

func (*AVCodecParserContext) Flags

func (s *AVCodecParserContext) Flags() int

Flags gets the flags field.

func (*AVCodecParserContext) Format

func (s *AVCodecParserContext) Format() int

Format gets the format field.

The format of the coded data, corresponds to enum AVPixelFormat for video
and for enum AVSampleFormat for audio.

Note that a decoder can have considerable freedom in how exactly it
decodes the data, so the format reported here might be different from the
one returned by a decoder.

func (*AVCodecParserContext) FrameOffset

func (s *AVCodecParserContext) FrameOffset() int64

FrameOffset gets the frame_offset field.

offset of the current frame

func (*AVCodecParserContext) Height

func (s *AVCodecParserContext) Height() int

Height gets the height field.

func (*AVCodecParserContext) KeyFrame

func (s *AVCodecParserContext) KeyFrame() int

KeyFrame gets the key_frame field.

Set by parser to 1 for key frames and 0 for non-key frames.
It is initialized to -1, so if the parser doesn't set this flag,
old-style fallback using AV_PICTURE_TYPE_I picture type as key frames
will be used.

func (*AVCodecParserContext) LastDts

func (s *AVCodecParserContext) LastDts() int64

LastDts gets the last_dts field.

func (*AVCodecParserContext) LastPos

func (s *AVCodecParserContext) LastPos() int64

LastPos gets the last_pos field.

Previous frame byte position.

func (*AVCodecParserContext) LastPts

func (s *AVCodecParserContext) LastPts() int64

LastPts gets the last_pts field.

private data

func (*AVCodecParserContext) NextFrameOffset

func (s *AVCodecParserContext) NextFrameOffset() int64

NextFrameOffset gets the next_frame_offset field.

offset of the next frame

func (*AVCodecParserContext) Offset

func (s *AVCodecParserContext) Offset() int64

Offset gets the offset field.

byte offset from starting packet start

func (*AVCodecParserContext) OutputPictureNumber

func (s *AVCodecParserContext) OutputPictureNumber() int

OutputPictureNumber gets the output_picture_number field.

Picture number incremented in presentation or output order.
This field may be reinitialized at the first picture of a new sequence.

For example, this corresponds to H.264 PicOrderCnt.

func (*AVCodecParserContext) Parser

func (s *AVCodecParserContext) Parser() *AVCodecParser

Parser gets the parser field.

func (*AVCodecParserContext) PictType

func (s *AVCodecParserContext) PictType() int

PictType gets the pict_type field.

XXX: Put it back in AVCodecContext.

func (*AVCodecParserContext) PictureStructure

func (s *AVCodecParserContext) PictureStructure() AVPictureStructure

PictureStructure gets the picture_structure field.

Indicate whether a picture is coded as a frame, top field or bottom field.

For example, H.264 field_pic_flag equal to 0 corresponds to
AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag
equal to 1 and bottom_field_flag equal to 0 corresponds to
AV_PICTURE_STRUCTURE_TOP_FIELD.

func (*AVCodecParserContext) Pos

func (s *AVCodecParserContext) Pos() int64

Pos gets the pos field.

Byte position of currently parsed frame in stream.

func (*AVCodecParserContext) PrivData

func (s *AVCodecParserContext) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

func (*AVCodecParserContext) Pts

func (s *AVCodecParserContext) Pts() int64

Pts gets the pts field.

pts of the current frame

func (*AVCodecParserContext) PtsDtsDelta

func (s *AVCodecParserContext) PtsDtsDelta() int

PtsDtsDelta gets the pts_dts_delta field.

Presentation delay of current frame in units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must
contain valid non-negative timestamp delta (presentation time of a frame
must not lie in the past).

This delay represents the difference between decoding and presentation
time of the frame.

For example, this corresponds to H.264 dpb_output_delay.

func (*AVCodecParserContext) RawPtr

func (s *AVCodecParserContext) RawPtr() unsafe.Pointer

func (*AVCodecParserContext) RepeatPict

func (s *AVCodecParserContext) RepeatPict() int

RepeatPict gets the repeat_pict field.

XXX: Put it back in AVCodecContext.

func (*AVCodecParserContext) SetCodedHeight

func (s *AVCodecParserContext) SetCodedHeight(value int)

SetCodedHeight sets the coded_height field.

func (*AVCodecParserContext) SetCodedWidth

func (s *AVCodecParserContext) SetCodedWidth(value int)

SetCodedWidth sets the coded_width field.

Dimensions of the coded video.

func (*AVCodecParserContext) SetCurFrameStartIndex

func (s *AVCodecParserContext) SetCurFrameStartIndex(value int)

SetCurFrameStartIndex sets the cur_frame_start_index field.

func (*AVCodecParserContext) SetCurOffset

func (s *AVCodecParserContext) SetCurOffset(value int64)

SetCurOffset sets the cur_offset field.

current offset
(incremented by each av_parser_parse())

func (*AVCodecParserContext) SetDts

func (s *AVCodecParserContext) SetDts(value int64)

SetDts sets the dts field.

dts of the current frame

func (*AVCodecParserContext) SetDtsRefDtsDelta

func (s *AVCodecParserContext) SetDtsRefDtsDelta(value int)

SetDtsRefDtsDelta sets the dts_ref_dts_delta field.

Offset of the current timestamp against last timestamp sync point in
units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must
contain a valid timestamp offset.

Note that the timestamp of sync point has usually a nonzero
dts_ref_dts_delta, which refers to the previous sync point. Offset of
the next frame after timestamp sync point will be usually 1.

For example, this corresponds to H.264 cpb_removal_delay.

func (*AVCodecParserContext) SetDtsSyncPoint

func (s *AVCodecParserContext) SetDtsSyncPoint(value int)

SetDtsSyncPoint sets the dts_sync_point field.

Synchronization point for start of timestamp generation.

Set to >0 for sync point, 0 for no sync point and <0 for undefined
(default).

For example, this corresponds to presence of H.264 buffering period
SEI message.

func (*AVCodecParserContext) SetDuration

func (s *AVCodecParserContext) SetDuration(value int)

SetDuration sets the duration field.

Duration of the current frame.
For audio, this is in units of 1 / AVCodecContext.sample_rate.
For all other types, this is in units of AVCodecContext.time_base.

func (*AVCodecParserContext) SetFetchTimestamp

func (s *AVCodecParserContext) SetFetchTimestamp(value int)

SetFetchTimestamp sets the fetch_timestamp field.

func (*AVCodecParserContext) SetFieldOrder

func (s *AVCodecParserContext) SetFieldOrder(value AVFieldOrder)

SetFieldOrder sets the field_order field.

func (*AVCodecParserContext) SetFlags

func (s *AVCodecParserContext) SetFlags(value int)

SetFlags sets the flags field.

func (*AVCodecParserContext) SetFormat

func (s *AVCodecParserContext) SetFormat(value int)

SetFormat sets the format field.

The format of the coded data, corresponds to enum AVPixelFormat for video
and for enum AVSampleFormat for audio.

Note that a decoder can have considerable freedom in how exactly it
decodes the data, so the format reported here might be different from the
one returned by a decoder.

func (*AVCodecParserContext) SetFrameOffset

func (s *AVCodecParserContext) SetFrameOffset(value int64)

SetFrameOffset sets the frame_offset field.

offset of the current frame

func (*AVCodecParserContext) SetHeight

func (s *AVCodecParserContext) SetHeight(value int)

SetHeight sets the height field.

func (*AVCodecParserContext) SetKeyFrame

func (s *AVCodecParserContext) SetKeyFrame(value int)

SetKeyFrame sets the key_frame field.

Set by parser to 1 for key frames and 0 for non-key frames.
It is initialized to -1, so if the parser doesn't set this flag,
old-style fallback using AV_PICTURE_TYPE_I picture type as key frames
will be used.

func (*AVCodecParserContext) SetLastDts

func (s *AVCodecParserContext) SetLastDts(value int64)

SetLastDts sets the last_dts field.

func (*AVCodecParserContext) SetLastPos

func (s *AVCodecParserContext) SetLastPos(value int64)

SetLastPos sets the last_pos field.

Previous frame byte position.

func (*AVCodecParserContext) SetLastPts

func (s *AVCodecParserContext) SetLastPts(value int64)

SetLastPts sets the last_pts field.

private data

func (*AVCodecParserContext) SetNextFrameOffset

func (s *AVCodecParserContext) SetNextFrameOffset(value int64)

SetNextFrameOffset sets the next_frame_offset field.

offset of the next frame

func (*AVCodecParserContext) SetOffset

func (s *AVCodecParserContext) SetOffset(value int64)

SetOffset sets the offset field.

byte offset from starting packet start

func (*AVCodecParserContext) SetOutputPictureNumber

func (s *AVCodecParserContext) SetOutputPictureNumber(value int)

SetOutputPictureNumber sets the output_picture_number field.

Picture number incremented in presentation or output order.
This field may be reinitialized at the first picture of a new sequence.

For example, this corresponds to H.264 PicOrderCnt.

func (*AVCodecParserContext) SetParser

func (s *AVCodecParserContext) SetParser(value *AVCodecParser)

SetParser sets the parser field.

func (*AVCodecParserContext) SetPictType

func (s *AVCodecParserContext) SetPictType(value int)

SetPictType sets the pict_type field.

XXX: Put it back in AVCodecContext.

func (*AVCodecParserContext) SetPictureStructure

func (s *AVCodecParserContext) SetPictureStructure(value AVPictureStructure)

SetPictureStructure sets the picture_structure field.

Indicate whether a picture is coded as a frame, top field or bottom field.

For example, H.264 field_pic_flag equal to 0 corresponds to
AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag
equal to 1 and bottom_field_flag equal to 0 corresponds to
AV_PICTURE_STRUCTURE_TOP_FIELD.

func (*AVCodecParserContext) SetPos

func (s *AVCodecParserContext) SetPos(value int64)

SetPos sets the pos field.

Byte position of currently parsed frame in stream.

func (*AVCodecParserContext) SetPrivData

func (s *AVCodecParserContext) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

func (*AVCodecParserContext) SetPts

func (s *AVCodecParserContext) SetPts(value int64)

SetPts sets the pts field.

pts of the current frame

func (*AVCodecParserContext) SetPtsDtsDelta

func (s *AVCodecParserContext) SetPtsDtsDelta(value int)

SetPtsDtsDelta sets the pts_dts_delta field.

Presentation delay of current frame in units of AVCodecContext.time_base.

Set to INT_MIN when dts_sync_point unused. Otherwise, it must
contain valid non-negative timestamp delta (presentation time of a frame
must not lie in the past).

This delay represents the difference between decoding and presentation
time of the frame.

For example, this corresponds to H.264 dpb_output_delay.

func (*AVCodecParserContext) SetRepeatPict

func (s *AVCodecParserContext) SetRepeatPict(value int)

SetRepeatPict sets the repeat_pict field.

XXX: Put it back in AVCodecContext.

func (*AVCodecParserContext) SetWidth

func (s *AVCodecParserContext) SetWidth(value int)

SetWidth sets the width field.

Dimensions of the decoded video intended for presentation.

func (*AVCodecParserContext) Width

func (s *AVCodecParserContext) Width() int

Width gets the width field.

Dimensions of the decoded video intended for presentation.

type AVCodecTag

type AVCodecTag struct {
	// contains filtered or unexported fields
}

AVCodecTag wraps AVCodecTag.

input/output formats

func AVFormatGetMovAudioTags

func AVFormatGetMovAudioTags() *AVCodecTag

AVFormatGetMovAudioTags wraps avformat_get_mov_audio_tags.

@return the table mapping MOV FourCCs for audio to AVCodecID.

func AVFormatGetMovVideoTags

func AVFormatGetMovVideoTags() *AVCodecTag

AVFormatGetMovVideoTags wraps avformat_get_mov_video_tags.

@return the table mapping MOV FourCCs for video to libavcodec AVCodecID.

func AVFormatGetRiffAudioTags

func AVFormatGetRiffAudioTags() *AVCodecTag

AVFormatGetRiffAudioTags wraps avformat_get_riff_audio_tags.

@return the table mapping RIFF FourCCs for audio to AVCodecID.

func AVFormatGetRiffVideoTags

func AVFormatGetRiffVideoTags() *AVCodecTag

AVFormatGetRiffVideoTags wraps avformat_get_riff_video_tags.

@return the table mapping RIFF FourCCs for video to libavcodec AVCodecID.

func (*AVCodecTag) RawPtr

func (s *AVCodecTag) RawPtr() unsafe.Pointer

type AVColorPrimaries

type AVColorPrimaries C.enum_AVColorPrimaries

AVColorPrimaries wraps AVColorPrimaries.

Chromaticity coordinates of the source primaries.
These values match the ones defined by ISO/IEC 23091-2_2019 subclause 8.1 and ITU-T H.273.
const (
	// AVColPriReserved0 wraps AVCOL_PRI_RESERVED0.
	AVColPriReserved0 AVColorPrimaries = C.AVCOL_PRI_RESERVED0
	// AVColPriBt709 wraps AVCOL_PRI_BT709.
	//
	//	also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP 177 Annex B
	AVColPriBt709 AVColorPrimaries = C.AVCOL_PRI_BT709
	// AVColPriUnspecified wraps AVCOL_PRI_UNSPECIFIED.
	AVColPriUnspecified AVColorPrimaries = C.AVCOL_PRI_UNSPECIFIED
	// AVColPriReserved wraps AVCOL_PRI_RESERVED.
	AVColPriReserved AVColorPrimaries = C.AVCOL_PRI_RESERVED
	// AVColPriBt470M wraps AVCOL_PRI_BT470M.
	//
	//	also FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
	AVColPriBt470M AVColorPrimaries = C.AVCOL_PRI_BT470M
	// AVColPriBt470Bg wraps AVCOL_PRI_BT470BG.
	//
	//	also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
	AVColPriBt470Bg AVColorPrimaries = C.AVCOL_PRI_BT470BG
	// AVColPriSmpte170M wraps AVCOL_PRI_SMPTE170M.
	//
	//	also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
	AVColPriSmpte170M AVColorPrimaries = C.AVCOL_PRI_SMPTE170M
	// AVColPriSmpte240M wraps AVCOL_PRI_SMPTE240M.
	//
	//	identical to above, also called "SMPTE C" even though it uses D65
	AVColPriSmpte240M AVColorPrimaries = C.AVCOL_PRI_SMPTE240M
	// AVColPriFilm wraps AVCOL_PRI_FILM.
	//
	//	colour filters using Illuminant C
	AVColPriFilm AVColorPrimaries = C.AVCOL_PRI_FILM
	// AVColPriBt2020 wraps AVCOL_PRI_BT2020.
	//
	//	ITU-R BT2020
	AVColPriBt2020 AVColorPrimaries = C.AVCOL_PRI_BT2020
	// AVColPriSmpte428 wraps AVCOL_PRI_SMPTE428.
	//
	//	SMPTE ST 428-1 (CIE 1931 XYZ)
	AVColPriSmpte428 AVColorPrimaries = C.AVCOL_PRI_SMPTE428
	// AVColPriSmptest4281 wraps AVCOL_PRI_SMPTEST428_1.
	AVColPriSmptest4281 AVColorPrimaries = C.AVCOL_PRI_SMPTEST428_1
	// AVColPriSmpte431 wraps AVCOL_PRI_SMPTE431.
	//
	//	SMPTE ST 431-2 (2011) / DCI P3
	AVColPriSmpte431 AVColorPrimaries = C.AVCOL_PRI_SMPTE431
	// AVColPriSmpte432 wraps AVCOL_PRI_SMPTE432.
	//
	//	SMPTE ST 432-1 (2010) / P3 D65 / Display P3
	AVColPriSmpte432 AVColorPrimaries = C.AVCOL_PRI_SMPTE432
	// AVColPriEbu3213 wraps AVCOL_PRI_EBU3213.
	//
	//	EBU Tech. 3213-E (nothing there) / one of JEDEC P22 group phosphors
	AVColPriEbu3213 AVColorPrimaries = C.AVCOL_PRI_EBU3213
	// AVColPriJedecP22 wraps AVCOL_PRI_JEDEC_P22.
	AVColPriJedecP22 AVColorPrimaries = C.AVCOL_PRI_JEDEC_P22
	// AVColPriNb wraps AVCOL_PRI_NB.
	//
	//	Not part of ABI
	AVColPriNb AVColorPrimaries = C.AVCOL_PRI_NB
)

func AVCspPrimariesIdFromDesc

func AVCspPrimariesIdFromDesc(prm *AVColorPrimariesDesc) AVColorPrimaries

AVCspPrimariesIdFromDesc wraps av_csp_primaries_id_from_desc.

Detects which enum AVColorPrimaries constant corresponds to the given complete
gamut description.
@see enum AVColorPrimaries
@param prm A description of the colorspace gamut
@return The enum constant associated with this gamut, or
    AVCOL_PRI_UNSPECIFIED if no clear match can be identified.

type AVColorPrimariesDesc

type AVColorPrimariesDesc struct {
	// contains filtered or unexported fields
}

AVColorPrimariesDesc wraps AVColorPrimariesDesc.

Struct that contains both white point location and primaries location, providing
the complete description of a color gamut.

func AVCspPrimariesDescFromId

func AVCspPrimariesDescFromId(prm AVColorPrimaries) *AVColorPrimariesDesc

AVCspPrimariesDescFromId wraps av_csp_primaries_desc_from_id.

Retrieves a complete gamut description from an enum constant describing the
color primaries.
@param prm An enum constant indicating primaries
@return A description of the colorspace gamut associated with that enum
    constant, or NULL if the constant is unknown to libavutil.

func (*AVColorPrimariesDesc) Prim

Prim gets the prim field.

func (*AVColorPrimariesDesc) RawPtr

func (s *AVColorPrimariesDesc) RawPtr() unsafe.Pointer

func (*AVColorPrimariesDesc) Wp

Wp gets the wp field.

type AVColorRange

type AVColorRange C.enum_AVColorRange

AVColorRange wraps AVColorRange.

Visual content value range.

These values are based on definitions that can be found in multiple
specifications, such as ITU-T BT.709 (3.4 - Quantization of RGB, luminance
and colour-difference signals), ITU-T BT.2020 (Table 5 - Digital
Representation) as well as ITU-T BT.2100 (Table 9 - Digital 10- and 12-bit
integer representation). At the time of writing, the BT.2100 one is
recommended, as it also defines the full range representation.

Common definitions:
  - For RGB and luma planes such as Y in YCbCr and I in ICtCp,
    'E' is the original value in range of 0.0 to 1.0.
  - For chroma planes such as Cb,Cr and Ct,Cp, 'E' is the original
    value in range of -0.5 to 0.5.
  - 'n' is the output bit depth.
  - For additional definitions such as rounding and clipping to valid n
    bit unsigned integer range, please refer to BT.2100 (Table 9).
const (
	// AVColRangeUnspecified wraps AVCOL_RANGE_UNSPECIFIED.
	AVColRangeUnspecified AVColorRange = C.AVCOL_RANGE_UNSPECIFIED
	// AVColRangeMpeg wraps AVCOL_RANGE_MPEG.
	/*
	   Narrow or limited range content.

	   - For luma planes:

	         (219 * E + 16) * 2^(n-8)

	     F.ex. the range of 16-235 for 8 bits

	   - For chroma planes:

	         (224 * E + 128) * 2^(n-8)

	     F.ex. the range of 16-240 for 8 bits
	*/
	AVColRangeMpeg AVColorRange = C.AVCOL_RANGE_MPEG
	// AVColRangeJpeg wraps AVCOL_RANGE_JPEG.
	/*
	   Full range content.

	   - For RGB and luma planes:

	         (2^n - 1) * E

	     F.ex. the range of 0-255 for 8 bits

	   - For chroma planes:

	         (2^n - 1) * E + 2^(n - 1)

	     F.ex. the range of 1-255 for 8 bits
	*/
	AVColRangeJpeg AVColorRange = C.AVCOL_RANGE_JPEG
	// AVColRangeNb wraps AVCOL_RANGE_NB.
	//
	//	Not part of ABI
	AVColRangeNb AVColorRange = C.AVCOL_RANGE_NB
)

func AVBuffersinkGetColorRange

func AVBuffersinkGetColorRange(ctx *AVFilterContext) AVColorRange

AVBuffersinkGetColorRange wraps av_buffersink_get_color_range.

type AVColorSpace

type AVColorSpace C.enum_AVColorSpace

AVColorSpace wraps AVColorSpace.

YUV colorspace type.
These values match the ones defined by ISO/IEC 23091-2_2019 subclause 8.3.
const (
	// AVColSpcRgb wraps AVCOL_SPC_RGB.
	//
	//	order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB), YZX and ST 428-1
	AVColSpcRgb AVColorSpace = C.AVCOL_SPC_RGB
	// AVColSpcBt709 wraps AVCOL_SPC_BT709.
	//
	//	also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / derived in SMPTE RP 177 Annex B
	AVColSpcBt709 AVColorSpace = C.AVCOL_SPC_BT709
	// AVColSpcUnspecified wraps AVCOL_SPC_UNSPECIFIED.
	AVColSpcUnspecified AVColorSpace = C.AVCOL_SPC_UNSPECIFIED
	// AVColSpcReserved wraps AVCOL_SPC_RESERVED.
	//
	//	reserved for future use by ITU-T and ISO/IEC just like 15-255 are
	AVColSpcReserved AVColorSpace = C.AVCOL_SPC_RESERVED
	// AVColSpcFcc wraps AVCOL_SPC_FCC.
	//
	//	FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
	AVColSpcFcc AVColorSpace = C.AVCOL_SPC_FCC
	// AVColSpcBt470Bg wraps AVCOL_SPC_BT470BG.
	//
	//	also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601
	AVColSpcBt470Bg AVColorSpace = C.AVCOL_SPC_BT470BG
	// AVColSpcSmpte170M wraps AVCOL_SPC_SMPTE170M.
	//
	//	also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC / functionally identical to above
	AVColSpcSmpte170M AVColorSpace = C.AVCOL_SPC_SMPTE170M
	// AVColSpcSmpte240M wraps AVCOL_SPC_SMPTE240M.
	//
	//	derived from 170M primaries and D65 white point, 170M is derived from BT470 System M's primaries
	AVColSpcSmpte240M AVColorSpace = C.AVCOL_SPC_SMPTE240M
	// AVColSpcYcgco wraps AVCOL_SPC_YCGCO.
	//
	//	used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16
	AVColSpcYcgco AVColorSpace = C.AVCOL_SPC_YCGCO
	// AVColSpcYcocg wraps AVCOL_SPC_YCOCG.
	AVColSpcYcocg AVColorSpace = C.AVCOL_SPC_YCOCG
	// AVColSpcBt2020Ncl wraps AVCOL_SPC_BT2020_NCL.
	//
	//	ITU-R BT2020 non-constant luminance system
	AVColSpcBt2020Ncl AVColorSpace = C.AVCOL_SPC_BT2020_NCL
	// AVColSpcBt2020Cl wraps AVCOL_SPC_BT2020_CL.
	//
	//	ITU-R BT2020 constant luminance system
	AVColSpcBt2020Cl AVColorSpace = C.AVCOL_SPC_BT2020_CL
	// AVColSpcSmpte2085 wraps AVCOL_SPC_SMPTE2085.
	//
	//	SMPTE 2085, Y'D'zD'x
	AVColSpcSmpte2085 AVColorSpace = C.AVCOL_SPC_SMPTE2085
	// AVColSpcChromaDerivedNcl wraps AVCOL_SPC_CHROMA_DERIVED_NCL.
	//
	//	Chromaticity-derived non-constant luminance system
	AVColSpcChromaDerivedNcl AVColorSpace = C.AVCOL_SPC_CHROMA_DERIVED_NCL
	// AVColSpcChromaDerivedCl wraps AVCOL_SPC_CHROMA_DERIVED_CL.
	//
	//	Chromaticity-derived constant luminance system
	AVColSpcChromaDerivedCl AVColorSpace = C.AVCOL_SPC_CHROMA_DERIVED_CL
	// AVColSpcIctcp wraps AVCOL_SPC_ICTCP.
	//
	//	ITU-R BT.2100-0, ICtCp
	AVColSpcIctcp AVColorSpace = C.AVCOL_SPC_ICTCP
	// AVColSpcIptC2 wraps AVCOL_SPC_IPT_C2.
	//
	//	SMPTE ST 2128, IPT-C2
	AVColSpcIptC2 AVColorSpace = C.AVCOL_SPC_IPT_C2
	// AVColSpcYcgcoRe wraps AVCOL_SPC_YCGCO_RE.
	//
	//	YCgCo-R, even addition of bits
	AVColSpcYcgcoRe AVColorSpace = C.AVCOL_SPC_YCGCO_RE
	// AVColSpcYcgcoRo wraps AVCOL_SPC_YCGCO_RO.
	//
	//	YCgCo-R, odd addition of bits
	AVColSpcYcgcoRo AVColorSpace = C.AVCOL_SPC_YCGCO_RO
	// AVColSpcNb wraps AVCOL_SPC_NB.
	//
	//	Not part of ABI
	AVColSpcNb AVColorSpace = C.AVCOL_SPC_NB
)

func AVBuffersinkGetColorspace

func AVBuffersinkGetColorspace(ctx *AVFilterContext) AVColorSpace

AVBuffersinkGetColorspace wraps av_buffersink_get_colorspace.

type AVColorTransferCharacteristic

type AVColorTransferCharacteristic C.enum_AVColorTransferCharacteristic

AVColorTransferCharacteristic wraps AVColorTransferCharacteristic.

Color Transfer Characteristic.
These values match the ones defined by ISO/IEC 23091-2_2019 subclause 8.2.
const (
	// AVColTrcReserved0 wraps AVCOL_TRC_RESERVED0.
	AVColTrcReserved0 AVColorTransferCharacteristic = C.AVCOL_TRC_RESERVED0
	// AVColTrcBt709 wraps AVCOL_TRC_BT709.
	//
	//	also ITU-R BT1361
	AVColTrcBt709 AVColorTransferCharacteristic = C.AVCOL_TRC_BT709
	// AVColTrcUnspecified wraps AVCOL_TRC_UNSPECIFIED.
	AVColTrcUnspecified AVColorTransferCharacteristic = C.AVCOL_TRC_UNSPECIFIED
	// AVColTrcReserved wraps AVCOL_TRC_RESERVED.
	AVColTrcReserved AVColorTransferCharacteristic = C.AVCOL_TRC_RESERVED
	// AVColTrcGamma22 wraps AVCOL_TRC_GAMMA22.
	//
	//	also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM
	AVColTrcGamma22 AVColorTransferCharacteristic = C.AVCOL_TRC_GAMMA22
	// AVColTrcGamma28 wraps AVCOL_TRC_GAMMA28.
	//
	//	also ITU-R BT470BG
	AVColTrcGamma28 AVColorTransferCharacteristic = C.AVCOL_TRC_GAMMA28
	// AVColTrcSmpte170M wraps AVCOL_TRC_SMPTE170M.
	//
	//	also ITU-R BT601-6 525 or 625 / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC
	AVColTrcSmpte170M AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTE170M
	// AVColTrcSmpte240M wraps AVCOL_TRC_SMPTE240M.
	AVColTrcSmpte240M AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTE240M
	// AVColTrcLinear wraps AVCOL_TRC_LINEAR.
	//
	//	"Linear transfer characteristics"
	AVColTrcLinear AVColorTransferCharacteristic = C.AVCOL_TRC_LINEAR
	// AVColTrcLog wraps AVCOL_TRC_LOG.
	//
	//	"Logarithmic transfer characteristic (100:1 range)"
	AVColTrcLog AVColorTransferCharacteristic = C.AVCOL_TRC_LOG
	// AVColTrcLogSqrt wraps AVCOL_TRC_LOG_SQRT.
	//
	//	"Logarithmic transfer characteristic (100 * Sqrt(10) : 1 range)"
	AVColTrcLogSqrt AVColorTransferCharacteristic = C.AVCOL_TRC_LOG_SQRT
	// AVColTrcIec6196624 wraps AVCOL_TRC_IEC61966_2_4.
	//
	//	IEC 61966-2-4
	AVColTrcIec6196624 AVColorTransferCharacteristic = C.AVCOL_TRC_IEC61966_2_4
	// AVColTrcBt1361Ecg wraps AVCOL_TRC_BT1361_ECG.
	//
	//	ITU-R BT1361 Extended Colour Gamut
	AVColTrcBt1361Ecg AVColorTransferCharacteristic = C.AVCOL_TRC_BT1361_ECG
	// AVColTrcIec6196621 wraps AVCOL_TRC_IEC61966_2_1.
	//
	//	IEC 61966-2-1 (sRGB or sYCC)
	AVColTrcIec6196621 AVColorTransferCharacteristic = C.AVCOL_TRC_IEC61966_2_1
	// AVColTrcBt202010 wraps AVCOL_TRC_BT2020_10.
	//
	//	ITU-R BT2020 for 10-bit system
	AVColTrcBt202010 AVColorTransferCharacteristic = C.AVCOL_TRC_BT2020_10
	// AVColTrcBt202012 wraps AVCOL_TRC_BT2020_12.
	//
	//	ITU-R BT2020 for 12-bit system
	AVColTrcBt202012 AVColorTransferCharacteristic = C.AVCOL_TRC_BT2020_12
	// AVColTrcSmpte2084 wraps AVCOL_TRC_SMPTE2084.
	//
	//	SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems
	AVColTrcSmpte2084 AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTE2084
	// AVColTrcSmptest2084 wraps AVCOL_TRC_SMPTEST2084.
	AVColTrcSmptest2084 AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTEST2084
	// AVColTrcSmpte428 wraps AVCOL_TRC_SMPTE428.
	//
	//	SMPTE ST 428-1
	AVColTrcSmpte428 AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTE428
	// AVColTrcSmptest4281 wraps AVCOL_TRC_SMPTEST428_1.
	AVColTrcSmptest4281 AVColorTransferCharacteristic = C.AVCOL_TRC_SMPTEST428_1
	// AVColTrcAribStdB67 wraps AVCOL_TRC_ARIB_STD_B67.
	//
	//	ARIB STD-B67, known as "Hybrid log-gamma"
	AVColTrcAribStdB67 AVColorTransferCharacteristic = C.AVCOL_TRC_ARIB_STD_B67
	// AVColTrcNb wraps AVCOL_TRC_NB.
	//
	//	Not part of ABI
	AVColTrcNb AVColorTransferCharacteristic = C.AVCOL_TRC_NB
)

type AVComplexDouble

type AVComplexDouble struct {
	// contains filtered or unexported fields
}

AVComplexDouble wraps AVComplexDouble.

func (*AVComplexDouble) Im

func (s *AVComplexDouble) Im() float64

Im gets the im field.

func (*AVComplexDouble) RawPtr

func (s *AVComplexDouble) RawPtr() unsafe.Pointer

func (*AVComplexDouble) Re

func (s *AVComplexDouble) Re() float64

Re gets the re field.

func (*AVComplexDouble) SetIm

func (s *AVComplexDouble) SetIm(value float64)

SetIm sets the im field.

func (*AVComplexDouble) SetRe

func (s *AVComplexDouble) SetRe(value float64)

SetRe sets the re field.

type AVComplexFloat

type AVComplexFloat struct {
	// contains filtered or unexported fields
}

AVComplexFloat wraps AVComplexFloat.

func (*AVComplexFloat) Im

func (s *AVComplexFloat) Im() float32

Im gets the im field.

func (*AVComplexFloat) RawPtr

func (s *AVComplexFloat) RawPtr() unsafe.Pointer

func (*AVComplexFloat) Re

func (s *AVComplexFloat) Re() float32

Re gets the re field.

func (*AVComplexFloat) SetIm

func (s *AVComplexFloat) SetIm(value float32)

SetIm sets the im field.

func (*AVComplexFloat) SetRe

func (s *AVComplexFloat) SetRe(value float32)

SetRe sets the re field.

type AVComplexInt32

type AVComplexInt32 struct {
	// contains filtered or unexported fields
}

AVComplexInt32 wraps AVComplexInt32.

func (*AVComplexInt32) Im

func (s *AVComplexInt32) Im() int32

Im gets the im field.

func (*AVComplexInt32) RawPtr

func (s *AVComplexInt32) RawPtr() unsafe.Pointer

func (*AVComplexInt32) Re

func (s *AVComplexInt32) Re() int32

Re gets the re field.

func (*AVComplexInt32) SetIm

func (s *AVComplexInt32) SetIm(value int32)

SetIm sets the im field.

func (*AVComplexInt32) SetRe

func (s *AVComplexInt32) SetRe(value int32)

SetRe sets the re field.

type AVComponentDescriptor

type AVComponentDescriptor struct {
	// contains filtered or unexported fields
}

AVComponentDescriptor wraps AVComponentDescriptor.

func (*AVComponentDescriptor) Depth

func (s *AVComponentDescriptor) Depth() int

Depth gets the depth field.

Number of bits in the component.

func (*AVComponentDescriptor) Offset

func (s *AVComponentDescriptor) Offset() int

Offset gets the offset field.

Number of elements before the component of the first pixel.
Elements are bits for bitstream formats, bytes otherwise.

func (*AVComponentDescriptor) Plane

func (s *AVComponentDescriptor) Plane() int

Plane gets the plane field.

Which of the 4 planes contains the component.

func (*AVComponentDescriptor) RawPtr

func (s *AVComponentDescriptor) RawPtr() unsafe.Pointer

func (*AVComponentDescriptor) SetDepth

func (s *AVComponentDescriptor) SetDepth(value int)

SetDepth sets the depth field.

Number of bits in the component.

func (*AVComponentDescriptor) SetOffset

func (s *AVComponentDescriptor) SetOffset(value int)

SetOffset sets the offset field.

Number of elements before the component of the first pixel.
Elements are bits for bitstream formats, bytes otherwise.

func (*AVComponentDescriptor) SetPlane

func (s *AVComponentDescriptor) SetPlane(value int)

SetPlane sets the plane field.

Which of the 4 planes contains the component.

func (*AVComponentDescriptor) SetShift

func (s *AVComponentDescriptor) SetShift(value int)

SetShift sets the shift field.

Number of least significant bits that must be shifted away
to get the value.

func (*AVComponentDescriptor) SetStep

func (s *AVComponentDescriptor) SetStep(value int)

SetStep sets the step field.

Number of elements between 2 horizontally consecutive pixels.
Elements are bits for bitstream formats, bytes otherwise.

func (*AVComponentDescriptor) Shift

func (s *AVComponentDescriptor) Shift() int

Shift gets the shift field.

Number of least significant bits that must be shifted away
to get the value.

func (*AVComponentDescriptor) Step

func (s *AVComponentDescriptor) Step() int

Step gets the step field.

Number of elements between 2 horizontally consecutive pixels.
Elements are bits for bitstream formats, bytes otherwise.

type AVContainerFifo

type AVContainerFifo struct {
	// contains filtered or unexported fields
}

AVContainerFifo wraps AVContainerFifo.

func AVContainerFifoAllocAVFrame

func AVContainerFifoAllocAVFrame(flags uint) *AVContainerFifo

AVContainerFifoAllocAVFrame wraps av_container_fifo_alloc_avframe.

Allocate an AVContainerFifo instance for AVFrames.

@param flags currently unused

func AVContainerFifoAllocAVPacket

func AVContainerFifoAllocAVPacket(flags uint) *AVContainerFifo

AVContainerFifoAllocAVPacket wraps av_container_fifo_alloc_avpacket.

Allocate an AVContainerFifo instance for AVPacket.

@param flags currently unused

func (*AVContainerFifo) RawPtr

func (s *AVContainerFifo) RawPtr() unsafe.Pointer

type AVContainerFifoFlags

type AVContainerFifoFlags C.enum_AVContainerFifoFlags

AVContainerFifoFlags wraps AVContainerFifoFlags.

const (
	// AVContainerFifoFlagRef wraps AV_CONTAINER_FIFO_FLAG_REF.
	/*
	   Signal to av_container_fifo_write() that it should make a new reference
	   to data in src rather than consume its contents.

	   @note you must handle this flag manually in your own fifo_transfer()
	         callback
	*/
	AVContainerFifoFlagRef AVContainerFifoFlags = C.AV_CONTAINER_FIFO_FLAG_REF
	// AVContainerFifoFlagUser wraps AV_CONTAINER_FIFO_FLAG_USER.
	/*
	   This and all higher bits in flags may be set to any value by the caller
	   and are guaranteed to be passed through to the fifo_transfer() callback
	   and not be interpreted by AVContainerFifo code.
	*/
	AVContainerFifoFlagUser AVContainerFifoFlags = C.AV_CONTAINER_FIFO_FLAG_USER
)

type AVContentLightMetadata

type AVContentLightMetadata struct {
	// contains filtered or unexported fields
}

AVContentLightMetadata wraps AVContentLightMetadata.

Content light level needed by to transmit HDR over HDMI (CTA-861.3).

To be used as payload of a AVFrameSideData or AVPacketSideData with the
appropriate type.

@note The struct should be allocated with av_content_light_metadata_alloc()
      and its size is not a part of the public ABI.

func AVContentLightMetadataAlloc

func AVContentLightMetadataAlloc(size *uint64) *AVContentLightMetadata

AVContentLightMetadataAlloc wraps av_content_light_metadata_alloc.

Allocate an AVContentLightMetadata structure and set its fields to
default values. The resulting struct can be freed using av_freep().

@return An AVContentLightMetadata filled with default values or NULL
        on failure.

func AVContentLightMetadataCreateSideData

func AVContentLightMetadataCreateSideData(frame *AVFrame) *AVContentLightMetadata

AVContentLightMetadataCreateSideData wraps av_content_light_metadata_create_side_data.

Allocate a complete AVContentLightMetadata and add it to the frame.

@param frame The frame which side data is added to.

@return The AVContentLightMetadata structure to be filled by caller.

func (*AVContentLightMetadata) MaxCll

func (s *AVContentLightMetadata) MaxCll() uint

MaxCll gets the MaxCLL field.

Max content light level (cd/m^2).

func (*AVContentLightMetadata) MaxFall

func (s *AVContentLightMetadata) MaxFall() uint

MaxFall gets the MaxFALL field.

Max average light level per frame (cd/m^2).

func (*AVContentLightMetadata) RawPtr

func (*AVContentLightMetadata) SetMaxCll

func (s *AVContentLightMetadata) SetMaxCll(value uint)

SetMaxCll sets the MaxCLL field.

Max content light level (cd/m^2).

func (*AVContentLightMetadata) SetMaxFall

func (s *AVContentLightMetadata) SetMaxFall(value uint)

SetMaxFall sets the MaxFALL field.

Max average light level per frame (cd/m^2).

type AVCspEotfFunction

type AVCspEotfFunction unsafe.Pointer

AVCspEotfFunction is a function pointer typedef for av_csp_eotf_function.

func AVCspItuEotf

AVCspItuEotf wraps av_csp_itu_eotf.

Returns the ITU EOTF corresponding to a given TRC. This converts from the
signal level [0,1] to the raw output display luminance in nits (cd/m^2).
This is done per channel in RGB space, except for AVCOL_TRC_SMPTE428, which
assumes CIE XYZ in- and output.

@return A pointer to the function implementing the given TRC, or NULL if no
        such function is defined.

@note In general, the resulting function is defined (wherever possible) for
      out-of-range values, even though these values do not have a physical
      meaning on the given display. Users should clamp inputs (or outputs)
      if this behavior is not desired.

      This is also the case for functions like PQ, which are defined over an
      absolute signal range independent of the target display capabilities.

func AVCspItuEotfInv

AVCspItuEotfInv wraps av_csp_itu_eotf_inv.

Returns the mathematical inverse of the corresponding EOTF.

type AVCspTrcFunction

type AVCspTrcFunction unsafe.Pointer

AVCspTrcFunction is a function pointer typedef for av_csp_trc_function.

func AVCspTrcFuncFromId

func AVCspTrcFuncFromId(trc AVColorTransferCharacteristic) AVCspTrcFunction

AVCspTrcFuncFromId wraps av_csp_trc_func_from_id.

Determine the function needed to apply the given
AVColorTransferCharacteristic to linear input.

The function returned should expect a nominal domain and range of [0.0-1.0]
values outside of this range maybe valid depending on the chosen
characteristic function.

@return Will return pointer to the function matching the
        supplied Transfer Characteristic. If unspecified will
        return NULL:

func AVCspTrcFuncInvFromId

func AVCspTrcFuncInvFromId(trc AVColorTransferCharacteristic) AVCspTrcFunction

AVCspTrcFuncInvFromId wraps av_csp_trc_func_inv_from_id.

Returns the mathematical inverse of the corresponding TRC function.

type AVDES

type AVDES struct {
	// contains filtered or unexported fields
}

AVDES wraps AVDES.

func AVDesAlloc

func AVDesAlloc() *AVDES

AVDesAlloc wraps av_des_alloc.

Allocate an AVDES context.

func (*AVDES) RawPtr

func (s *AVDES) RawPtr() unsafe.Pointer

func (*AVDES) SetTripleDes

func (s *AVDES) SetTripleDes(value int)

SetTripleDes sets the triple_des field.

func (*AVDES) TripleDes

func (s *AVDES) TripleDes() int

TripleDes gets the triple_des field.

type AVDOVIColorMetadata

type AVDOVIColorMetadata struct {
	// contains filtered or unexported fields
}

AVDOVIColorMetadata wraps AVDOVIColorMetadata.

Dolby Vision RPU colorspace metadata parameters.

@note sizeof(AVDOVIColorMetadata) is not part of the public ABI.

func AVDoviGetColor

func AVDoviGetColor(data *AVDOVIMetadata) *AVDOVIColorMetadata

AVDoviGetColor wraps av_dovi_get_color.

func (*AVDOVIColorMetadata) DmMetadataId

func (s *AVDOVIColorMetadata) DmMetadataId() uint8

DmMetadataId gets the dm_metadata_id field.

func (*AVDOVIColorMetadata) RawPtr

func (s *AVDOVIColorMetadata) RawPtr() unsafe.Pointer

func (*AVDOVIColorMetadata) RgbToLmsMatrix

func (s *AVDOVIColorMetadata) RgbToLmsMatrix() *Array[*AVRational]

RgbToLmsMatrix gets the rgb_to_lms_matrix field.

after PQ linearization

func (*AVDOVIColorMetadata) SceneRefreshFlag

func (s *AVDOVIColorMetadata) SceneRefreshFlag() uint8

SceneRefreshFlag gets the scene_refresh_flag field.

func (*AVDOVIColorMetadata) SetDmMetadataId

func (s *AVDOVIColorMetadata) SetDmMetadataId(value uint8)

SetDmMetadataId sets the dm_metadata_id field.

func (*AVDOVIColorMetadata) SetSceneRefreshFlag

func (s *AVDOVIColorMetadata) SetSceneRefreshFlag(value uint8)

SetSceneRefreshFlag sets the scene_refresh_flag field.

func (*AVDOVIColorMetadata) SetSignalBitDepth

func (s *AVDOVIColorMetadata) SetSignalBitDepth(value uint8)

SetSignalBitDepth sets the signal_bit_depth field.

func (*AVDOVIColorMetadata) SetSignalChromaFormat

func (s *AVDOVIColorMetadata) SetSignalChromaFormat(value uint8)

SetSignalChromaFormat sets the signal_chroma_format field.

func (*AVDOVIColorMetadata) SetSignalColorSpace

func (s *AVDOVIColorMetadata) SetSignalColorSpace(value uint8)

SetSignalColorSpace sets the signal_color_space field.

func (*AVDOVIColorMetadata) SetSignalEotf

func (s *AVDOVIColorMetadata) SetSignalEotf(value uint16)

SetSignalEotf sets the signal_eotf field.

Extra signal metadata (see Dolby patents for more info).

func (*AVDOVIColorMetadata) SetSignalEotfParam0

func (s *AVDOVIColorMetadata) SetSignalEotfParam0(value uint16)

SetSignalEotfParam0 sets the signal_eotf_param0 field.

func (*AVDOVIColorMetadata) SetSignalEotfParam1

func (s *AVDOVIColorMetadata) SetSignalEotfParam1(value uint16)

SetSignalEotfParam1 sets the signal_eotf_param1 field.

func (*AVDOVIColorMetadata) SetSignalEotfParam2

func (s *AVDOVIColorMetadata) SetSignalEotfParam2(value uint32)

SetSignalEotfParam2 sets the signal_eotf_param2 field.

func (*AVDOVIColorMetadata) SetSignalFullRangeFlag

func (s *AVDOVIColorMetadata) SetSignalFullRangeFlag(value uint8)

SetSignalFullRangeFlag sets the signal_full_range_flag field.

[0, 3]

func (*AVDOVIColorMetadata) SetSourceDiagonal

func (s *AVDOVIColorMetadata) SetSourceDiagonal(value uint16)

SetSourceDiagonal sets the source_diagonal field.

func (*AVDOVIColorMetadata) SetSourceMaxPq

func (s *AVDOVIColorMetadata) SetSourceMaxPq(value uint16)

SetSourceMaxPq sets the source_max_pq field.

func (*AVDOVIColorMetadata) SetSourceMinPq

func (s *AVDOVIColorMetadata) SetSourceMinPq(value uint16)

SetSourceMinPq sets the source_min_pq field.

func (*AVDOVIColorMetadata) SignalBitDepth

func (s *AVDOVIColorMetadata) SignalBitDepth() uint8

SignalBitDepth gets the signal_bit_depth field.

func (*AVDOVIColorMetadata) SignalChromaFormat

func (s *AVDOVIColorMetadata) SignalChromaFormat() uint8

SignalChromaFormat gets the signal_chroma_format field.

func (*AVDOVIColorMetadata) SignalColorSpace

func (s *AVDOVIColorMetadata) SignalColorSpace() uint8

SignalColorSpace gets the signal_color_space field.

func (*AVDOVIColorMetadata) SignalEotf

func (s *AVDOVIColorMetadata) SignalEotf() uint16

SignalEotf gets the signal_eotf field.

Extra signal metadata (see Dolby patents for more info).

func (*AVDOVIColorMetadata) SignalEotfParam0

func (s *AVDOVIColorMetadata) SignalEotfParam0() uint16

SignalEotfParam0 gets the signal_eotf_param0 field.

func (*AVDOVIColorMetadata) SignalEotfParam1

func (s *AVDOVIColorMetadata) SignalEotfParam1() uint16

SignalEotfParam1 gets the signal_eotf_param1 field.

func (*AVDOVIColorMetadata) SignalEotfParam2

func (s *AVDOVIColorMetadata) SignalEotfParam2() uint32

SignalEotfParam2 gets the signal_eotf_param2 field.

func (*AVDOVIColorMetadata) SignalFullRangeFlag

func (s *AVDOVIColorMetadata) SignalFullRangeFlag() uint8

SignalFullRangeFlag gets the signal_full_range_flag field.

[0, 3]

func (*AVDOVIColorMetadata) SourceDiagonal

func (s *AVDOVIColorMetadata) SourceDiagonal() uint16

SourceDiagonal gets the source_diagonal field.

func (*AVDOVIColorMetadata) SourceMaxPq

func (s *AVDOVIColorMetadata) SourceMaxPq() uint16

SourceMaxPq gets the source_max_pq field.

func (*AVDOVIColorMetadata) SourceMinPq

func (s *AVDOVIColorMetadata) SourceMinPq() uint16

SourceMinPq gets the source_min_pq field.

func (*AVDOVIColorMetadata) YccToRgbMatrix

func (s *AVDOVIColorMetadata) YccToRgbMatrix() *Array[*AVRational]

YccToRgbMatrix gets the ycc_to_rgb_matrix field.

before PQ linearization

func (*AVDOVIColorMetadata) YccToRgbOffset

func (s *AVDOVIColorMetadata) YccToRgbOffset() *Array[*AVRational]

YccToRgbOffset gets the ycc_to_rgb_offset field.

input offset of neutral value

type AVDOVICompression

type AVDOVICompression C.enum_AVDOVICompression

AVDOVICompression wraps AVDOVICompression.

const (
	// AVDoviCompressionNone wraps AV_DOVI_COMPRESSION_NONE.
	AVDoviCompressionNone AVDOVICompression = C.AV_DOVI_COMPRESSION_NONE
	// AVDoviCompressionLimited wraps AV_DOVI_COMPRESSION_LIMITED.
	AVDoviCompressionLimited AVDOVICompression = C.AV_DOVI_COMPRESSION_LIMITED
	// AVDoviCompressionReserved wraps AV_DOVI_COMPRESSION_RESERVED.
	AVDoviCompressionReserved AVDOVICompression = C.AV_DOVI_COMPRESSION_RESERVED
	// AVDoviCompressionExtended wraps AV_DOVI_COMPRESSION_EXTENDED.
	AVDoviCompressionExtended AVDOVICompression = C.AV_DOVI_COMPRESSION_EXTENDED
)

type AVDOVIDataMapping

type AVDOVIDataMapping struct {
	// contains filtered or unexported fields
}

AVDOVIDataMapping wraps AVDOVIDataMapping.

Dolby Vision RPU data mapping parameters.

@note sizeof(AVDOVIDataMapping) is not part of the public ABI.

func AVDoviGetMapping

func AVDoviGetMapping(data *AVDOVIMetadata) *AVDOVIDataMapping

AVDoviGetMapping wraps av_dovi_get_mapping.

func (*AVDOVIDataMapping) MappingChromaFormatIdc

func (s *AVDOVIDataMapping) MappingChromaFormatIdc() uint8

MappingChromaFormatIdc gets the mapping_chroma_format_idc field.

func (*AVDOVIDataMapping) MappingColorSpace

func (s *AVDOVIDataMapping) MappingColorSpace() uint8

MappingColorSpace gets the mapping_color_space field.

func (*AVDOVIDataMapping) NlqMethodIdc

func (s *AVDOVIDataMapping) NlqMethodIdc() AVDOVINLQMethod

NlqMethodIdc gets the nlq_method_idc field.

Non-linear inverse quantization

func (*AVDOVIDataMapping) NlqPivots

func (s *AVDOVIDataMapping) NlqPivots() *Array[uint16]

NlqPivots gets the nlq_pivots field.

func (*AVDOVIDataMapping) NumXPartitions

func (s *AVDOVIDataMapping) NumXPartitions() uint32

NumXPartitions gets the num_x_partitions field.

func (*AVDOVIDataMapping) NumYPartitions

func (s *AVDOVIDataMapping) NumYPartitions() uint32

NumYPartitions gets the num_y_partitions field.

func (*AVDOVIDataMapping) RawPtr

func (s *AVDOVIDataMapping) RawPtr() unsafe.Pointer

func (*AVDOVIDataMapping) SetMappingChromaFormatIdc

func (s *AVDOVIDataMapping) SetMappingChromaFormatIdc(value uint8)

SetMappingChromaFormatIdc sets the mapping_chroma_format_idc field.

func (*AVDOVIDataMapping) SetMappingColorSpace

func (s *AVDOVIDataMapping) SetMappingColorSpace(value uint8)

SetMappingColorSpace sets the mapping_color_space field.

func (*AVDOVIDataMapping) SetNlqMethodIdc

func (s *AVDOVIDataMapping) SetNlqMethodIdc(value AVDOVINLQMethod)

SetNlqMethodIdc sets the nlq_method_idc field.

Non-linear inverse quantization

func (*AVDOVIDataMapping) SetNumXPartitions

func (s *AVDOVIDataMapping) SetNumXPartitions(value uint32)

SetNumXPartitions sets the num_x_partitions field.

func (*AVDOVIDataMapping) SetNumYPartitions

func (s *AVDOVIDataMapping) SetNumYPartitions(value uint32)

SetNumYPartitions sets the num_y_partitions field.

func (*AVDOVIDataMapping) SetVdrRpuId

func (s *AVDOVIDataMapping) SetVdrRpuId(value uint8)

SetVdrRpuId sets the vdr_rpu_id field.

func (*AVDOVIDataMapping) VdrRpuId

func (s *AVDOVIDataMapping) VdrRpuId() uint8

VdrRpuId gets the vdr_rpu_id field.

type AVDOVIDecoderConfigurationRecord

type AVDOVIDecoderConfigurationRecord struct {
	// contains filtered or unexported fields
}

AVDOVIDecoderConfigurationRecord wraps AVDOVIDecoderConfigurationRecord.

DOVI configuration
ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2
dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2
@code
uint8_t  dv_version_major, the major version number that the stream complies with
uint8_t  dv_version_minor, the minor version number that the stream complies with
uint8_t  dv_profile, the Dolby Vision profile
uint8_t  dv_level, the Dolby Vision level
uint8_t  rpu_present_flag
uint8_t  el_present_flag
uint8_t  bl_present_flag
uint8_t  dv_bl_signal_compatibility_id
uint8_t  dv_md_compression, the compression method in use
@endcode

@note The struct must be allocated with av_dovi_alloc() and
      its size is not a part of the public ABI.

func AVDoviAlloc

func AVDoviAlloc(size *uint64) *AVDOVIDecoderConfigurationRecord

AVDoviAlloc wraps av_dovi_alloc.

Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its
fields to default values.

@return the newly allocated struct or NULL on failure

func (*AVDOVIDecoderConfigurationRecord) BlPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) BlPresentFlag() uint8

BlPresentFlag gets the bl_present_flag field.

func (*AVDOVIDecoderConfigurationRecord) DvBlSignalCompatibilityId

func (s *AVDOVIDecoderConfigurationRecord) DvBlSignalCompatibilityId() uint8

DvBlSignalCompatibilityId gets the dv_bl_signal_compatibility_id field.

func (*AVDOVIDecoderConfigurationRecord) DvLevel

DvLevel gets the dv_level field.

func (*AVDOVIDecoderConfigurationRecord) DvMdCompression

func (s *AVDOVIDecoderConfigurationRecord) DvMdCompression() uint8

DvMdCompression gets the dv_md_compression field.

func (*AVDOVIDecoderConfigurationRecord) DvProfile

func (s *AVDOVIDecoderConfigurationRecord) DvProfile() uint8

DvProfile gets the dv_profile field.

func (*AVDOVIDecoderConfigurationRecord) DvVersionMajor

func (s *AVDOVIDecoderConfigurationRecord) DvVersionMajor() uint8

DvVersionMajor gets the dv_version_major field.

func (*AVDOVIDecoderConfigurationRecord) DvVersionMinor

func (s *AVDOVIDecoderConfigurationRecord) DvVersionMinor() uint8

DvVersionMinor gets the dv_version_minor field.

func (*AVDOVIDecoderConfigurationRecord) ElPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) ElPresentFlag() uint8

ElPresentFlag gets the el_present_flag field.

func (*AVDOVIDecoderConfigurationRecord) RawPtr

func (*AVDOVIDecoderConfigurationRecord) RpuPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) RpuPresentFlag() uint8

RpuPresentFlag gets the rpu_present_flag field.

func (*AVDOVIDecoderConfigurationRecord) SetBlPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) SetBlPresentFlag(value uint8)

SetBlPresentFlag sets the bl_present_flag field.

func (*AVDOVIDecoderConfigurationRecord) SetDvBlSignalCompatibilityId

func (s *AVDOVIDecoderConfigurationRecord) SetDvBlSignalCompatibilityId(value uint8)

SetDvBlSignalCompatibilityId sets the dv_bl_signal_compatibility_id field.

func (*AVDOVIDecoderConfigurationRecord) SetDvLevel

func (s *AVDOVIDecoderConfigurationRecord) SetDvLevel(value uint8)

SetDvLevel sets the dv_level field.

func (*AVDOVIDecoderConfigurationRecord) SetDvMdCompression

func (s *AVDOVIDecoderConfigurationRecord) SetDvMdCompression(value uint8)

SetDvMdCompression sets the dv_md_compression field.

func (*AVDOVIDecoderConfigurationRecord) SetDvProfile

func (s *AVDOVIDecoderConfigurationRecord) SetDvProfile(value uint8)

SetDvProfile sets the dv_profile field.

func (*AVDOVIDecoderConfigurationRecord) SetDvVersionMajor

func (s *AVDOVIDecoderConfigurationRecord) SetDvVersionMajor(value uint8)

SetDvVersionMajor sets the dv_version_major field.

func (*AVDOVIDecoderConfigurationRecord) SetDvVersionMinor

func (s *AVDOVIDecoderConfigurationRecord) SetDvVersionMinor(value uint8)

SetDvVersionMinor sets the dv_version_minor field.

func (*AVDOVIDecoderConfigurationRecord) SetElPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) SetElPresentFlag(value uint8)

SetElPresentFlag sets the el_present_flag field.

func (*AVDOVIDecoderConfigurationRecord) SetRpuPresentFlag

func (s *AVDOVIDecoderConfigurationRecord) SetRpuPresentFlag(value uint8)

SetRpuPresentFlag sets the rpu_present_flag field.

type AVDOVIDmData

type AVDOVIDmData struct {
	// contains filtered or unexported fields
}

AVDOVIDmData wraps AVDOVIDmData.

Dolby Vision metadata extension block. Dynamic extension blocks may change
from frame to frame, while static blocks are constant throughout the entire
sequence.

@note sizeof(AVDOVIDmData) is not part of the public API.

func AVDoviFindLevel

func AVDoviFindLevel(data *AVDOVIMetadata, level uint8) *AVDOVIDmData

AVDoviFindLevel wraps av_dovi_find_level.

Find an extension block with a given level, or NULL. In the case of
multiple extension blocks, only the first is returned.

func AVDoviGetExt

func AVDoviGetExt(data *AVDOVIMetadata, index int) *AVDOVIDmData

AVDoviGetExt wraps av_dovi_get_ext.

func (*AVDOVIDmData) Level

func (s *AVDOVIDmData) Level() uint8

Level gets the level field.

[1, 255]

func (*AVDOVIDmData) RawPtr

func (s *AVDOVIDmData) RawPtr() unsafe.Pointer

func (*AVDOVIDmData) SetLevel

func (s *AVDOVIDmData) SetLevel(value uint8)

SetLevel sets the level field.

[1, 255]

type AVDOVIDmLevel1

type AVDOVIDmLevel1 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel1 wraps AVDOVIDmLevel1.

func (*AVDOVIDmLevel1) AvgPq

func (s *AVDOVIDmLevel1) AvgPq() uint16

AvgPq gets the avg_pq field.

func (*AVDOVIDmLevel1) MaxPq

func (s *AVDOVIDmLevel1) MaxPq() uint16

MaxPq gets the max_pq field.

func (*AVDOVIDmLevel1) MinPq

func (s *AVDOVIDmLevel1) MinPq() uint16

MinPq gets the min_pq field.

Per-frame brightness metadata

func (*AVDOVIDmLevel1) RawPtr

func (s *AVDOVIDmLevel1) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel1) SetAvgPq

func (s *AVDOVIDmLevel1) SetAvgPq(value uint16)

SetAvgPq sets the avg_pq field.

func (*AVDOVIDmLevel1) SetMaxPq

func (s *AVDOVIDmLevel1) SetMaxPq(value uint16)

SetMaxPq sets the max_pq field.

func (*AVDOVIDmLevel1) SetMinPq

func (s *AVDOVIDmLevel1) SetMinPq(value uint16)

SetMinPq sets the min_pq field.

Per-frame brightness metadata

type AVDOVIDmLevel10

type AVDOVIDmLevel10 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel10 wraps AVDOVIDmLevel10.

func (*AVDOVIDmLevel10) RawPtr

func (s *AVDOVIDmLevel10) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel10) SetTargetDisplayIndex

func (s *AVDOVIDmLevel10) SetTargetDisplayIndex(value uint8)

SetTargetDisplayIndex sets the target_display_index field.

Target display characteristics

func (*AVDOVIDmLevel10) SetTargetMaxPq

func (s *AVDOVIDmLevel10) SetTargetMaxPq(value uint16)

SetTargetMaxPq sets the target_max_pq field.

func (*AVDOVIDmLevel10) SetTargetMinPq

func (s *AVDOVIDmLevel10) SetTargetMinPq(value uint16)

SetTargetMinPq sets the target_min_pq field.

func (*AVDOVIDmLevel10) SetTargetPrimaryIndex

func (s *AVDOVIDmLevel10) SetTargetPrimaryIndex(value uint8)

SetTargetPrimaryIndex sets the target_primary_index field.

func (*AVDOVIDmLevel10) TargetDisplayIndex

func (s *AVDOVIDmLevel10) TargetDisplayIndex() uint8

TargetDisplayIndex gets the target_display_index field.

Target display characteristics

func (*AVDOVIDmLevel10) TargetDisplayPrimaries

func (s *AVDOVIDmLevel10) TargetDisplayPrimaries() *AVColorPrimariesDesc

TargetDisplayPrimaries gets the target_display_primaries field.

func (*AVDOVIDmLevel10) TargetMaxPq

func (s *AVDOVIDmLevel10) TargetMaxPq() uint16

TargetMaxPq gets the target_max_pq field.

func (*AVDOVIDmLevel10) TargetMinPq

func (s *AVDOVIDmLevel10) TargetMinPq() uint16

TargetMinPq gets the target_min_pq field.

func (*AVDOVIDmLevel10) TargetPrimaryIndex

func (s *AVDOVIDmLevel10) TargetPrimaryIndex() uint8

TargetPrimaryIndex gets the target_primary_index field.

type AVDOVIDmLevel11

type AVDOVIDmLevel11 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel11 wraps AVDOVIDmLevel11.

func (*AVDOVIDmLevel11) Brightness

func (s *AVDOVIDmLevel11) Brightness() uint8

Brightness gets the brightness field.

func (*AVDOVIDmLevel11) Color

func (s *AVDOVIDmLevel11) Color() uint8

Color gets the color field.

func (*AVDOVIDmLevel11) ContentType

func (s *AVDOVIDmLevel11) ContentType() uint8

ContentType gets the content_type field.

func (*AVDOVIDmLevel11) FrameRateConversion

func (s *AVDOVIDmLevel11) FrameRateConversion() uint8

FrameRateConversion gets the frame_rate_conversion field.

func (*AVDOVIDmLevel11) MpegNoiseReduction

func (s *AVDOVIDmLevel11) MpegNoiseReduction() uint8

MpegNoiseReduction gets the mpeg_noise_reduction field.

func (*AVDOVIDmLevel11) NoiseReduction

func (s *AVDOVIDmLevel11) NoiseReduction() uint8

NoiseReduction gets the noise_reduction field.

func (*AVDOVIDmLevel11) RawPtr

func (s *AVDOVIDmLevel11) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel11) ReferenceModeFlag

func (s *AVDOVIDmLevel11) ReferenceModeFlag() uint8

ReferenceModeFlag gets the reference_mode_flag field.

func (*AVDOVIDmLevel11) SetBrightness

func (s *AVDOVIDmLevel11) SetBrightness(value uint8)

SetBrightness sets the brightness field.

func (*AVDOVIDmLevel11) SetColor

func (s *AVDOVIDmLevel11) SetColor(value uint8)

SetColor sets the color field.

func (*AVDOVIDmLevel11) SetContentType

func (s *AVDOVIDmLevel11) SetContentType(value uint8)

SetContentType sets the content_type field.

func (*AVDOVIDmLevel11) SetFrameRateConversion

func (s *AVDOVIDmLevel11) SetFrameRateConversion(value uint8)

SetFrameRateConversion sets the frame_rate_conversion field.

func (*AVDOVIDmLevel11) SetMpegNoiseReduction

func (s *AVDOVIDmLevel11) SetMpegNoiseReduction(value uint8)

SetMpegNoiseReduction sets the mpeg_noise_reduction field.

func (*AVDOVIDmLevel11) SetNoiseReduction

func (s *AVDOVIDmLevel11) SetNoiseReduction(value uint8)

SetNoiseReduction sets the noise_reduction field.

func (*AVDOVIDmLevel11) SetReferenceModeFlag

func (s *AVDOVIDmLevel11) SetReferenceModeFlag(value uint8)

SetReferenceModeFlag sets the reference_mode_flag field.

func (*AVDOVIDmLevel11) SetSharpness

func (s *AVDOVIDmLevel11) SetSharpness(value uint8)

SetSharpness sets the sharpness field.

func (*AVDOVIDmLevel11) SetWhitepoint

func (s *AVDOVIDmLevel11) SetWhitepoint(value uint8)

SetWhitepoint sets the whitepoint field.

func (*AVDOVIDmLevel11) Sharpness

func (s *AVDOVIDmLevel11) Sharpness() uint8

Sharpness gets the sharpness field.

func (*AVDOVIDmLevel11) Whitepoint

func (s *AVDOVIDmLevel11) Whitepoint() uint8

Whitepoint gets the whitepoint field.

type AVDOVIDmLevel2

type AVDOVIDmLevel2 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel2 wraps AVDOVIDmLevel2.

func (*AVDOVIDmLevel2) MsWeight

func (s *AVDOVIDmLevel2) MsWeight() int16

MsWeight gets the ms_weight field.

func (*AVDOVIDmLevel2) RawPtr

func (s *AVDOVIDmLevel2) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel2) SetMsWeight

func (s *AVDOVIDmLevel2) SetMsWeight(value int16)

SetMsWeight sets the ms_weight field.

func (*AVDOVIDmLevel2) SetTargetMaxPq

func (s *AVDOVIDmLevel2) SetTargetMaxPq(value uint16)

SetTargetMaxPq sets the target_max_pq field.

Usually derived from level 8 (at different levels)

func (*AVDOVIDmLevel2) SetTrimChromaWeight

func (s *AVDOVIDmLevel2) SetTrimChromaWeight(value uint16)

SetTrimChromaWeight sets the trim_chroma_weight field.

func (*AVDOVIDmLevel2) SetTrimOffset

func (s *AVDOVIDmLevel2) SetTrimOffset(value uint16)

SetTrimOffset sets the trim_offset field.

func (*AVDOVIDmLevel2) SetTrimPower

func (s *AVDOVIDmLevel2) SetTrimPower(value uint16)

SetTrimPower sets the trim_power field.

func (*AVDOVIDmLevel2) SetTrimSaturationGain

func (s *AVDOVIDmLevel2) SetTrimSaturationGain(value uint16)

SetTrimSaturationGain sets the trim_saturation_gain field.

func (*AVDOVIDmLevel2) SetTrimSlope

func (s *AVDOVIDmLevel2) SetTrimSlope(value uint16)

SetTrimSlope sets the trim_slope field.

func (*AVDOVIDmLevel2) TargetMaxPq

func (s *AVDOVIDmLevel2) TargetMaxPq() uint16

TargetMaxPq gets the target_max_pq field.

Usually derived from level 8 (at different levels)

func (*AVDOVIDmLevel2) TrimChromaWeight

func (s *AVDOVIDmLevel2) TrimChromaWeight() uint16

TrimChromaWeight gets the trim_chroma_weight field.

func (*AVDOVIDmLevel2) TrimOffset

func (s *AVDOVIDmLevel2) TrimOffset() uint16

TrimOffset gets the trim_offset field.

func (*AVDOVIDmLevel2) TrimPower

func (s *AVDOVIDmLevel2) TrimPower() uint16

TrimPower gets the trim_power field.

func (*AVDOVIDmLevel2) TrimSaturationGain

func (s *AVDOVIDmLevel2) TrimSaturationGain() uint16

TrimSaturationGain gets the trim_saturation_gain field.

func (*AVDOVIDmLevel2) TrimSlope

func (s *AVDOVIDmLevel2) TrimSlope() uint16

TrimSlope gets the trim_slope field.

type AVDOVIDmLevel254

type AVDOVIDmLevel254 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel254 wraps AVDOVIDmLevel254.

func (*AVDOVIDmLevel254) DmMode

func (s *AVDOVIDmLevel254) DmMode() uint8

DmMode gets the dm_mode field.

DMv2 info block, always present in samples with DMv2 metadata

func (*AVDOVIDmLevel254) DmVersionIndex

func (s *AVDOVIDmLevel254) DmVersionIndex() uint8

DmVersionIndex gets the dm_version_index field.

func (*AVDOVIDmLevel254) RawPtr

func (s *AVDOVIDmLevel254) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel254) SetDmMode

func (s *AVDOVIDmLevel254) SetDmMode(value uint8)

SetDmMode sets the dm_mode field.

DMv2 info block, always present in samples with DMv2 metadata

func (*AVDOVIDmLevel254) SetDmVersionIndex

func (s *AVDOVIDmLevel254) SetDmVersionIndex(value uint8)

SetDmVersionIndex sets the dm_version_index field.

type AVDOVIDmLevel255

type AVDOVIDmLevel255 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel255 wraps AVDOVIDmLevel255.

func (*AVDOVIDmLevel255) DmDebug

func (s *AVDOVIDmLevel255) DmDebug() *Array[uint8]

DmDebug gets the dm_debug field.

func (*AVDOVIDmLevel255) DmRunMode

func (s *AVDOVIDmLevel255) DmRunMode() uint8

DmRunMode gets the dm_run_mode field.

Debug block, not really used in samples

func (*AVDOVIDmLevel255) DmRunVersion

func (s *AVDOVIDmLevel255) DmRunVersion() uint8

DmRunVersion gets the dm_run_version field.

func (*AVDOVIDmLevel255) RawPtr

func (s *AVDOVIDmLevel255) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel255) SetDmRunMode

func (s *AVDOVIDmLevel255) SetDmRunMode(value uint8)

SetDmRunMode sets the dm_run_mode field.

Debug block, not really used in samples

func (*AVDOVIDmLevel255) SetDmRunVersion

func (s *AVDOVIDmLevel255) SetDmRunVersion(value uint8)

SetDmRunVersion sets the dm_run_version field.

type AVDOVIDmLevel3

type AVDOVIDmLevel3 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel3 wraps AVDOVIDmLevel3.

func (*AVDOVIDmLevel3) AvgPqOffset

func (s *AVDOVIDmLevel3) AvgPqOffset() uint16

AvgPqOffset gets the avg_pq_offset field.

func (*AVDOVIDmLevel3) MaxPqOffset

func (s *AVDOVIDmLevel3) MaxPqOffset() uint16

MaxPqOffset gets the max_pq_offset field.

func (*AVDOVIDmLevel3) MinPqOffset

func (s *AVDOVIDmLevel3) MinPqOffset() uint16

MinPqOffset gets the min_pq_offset field.

func (*AVDOVIDmLevel3) RawPtr

func (s *AVDOVIDmLevel3) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel3) SetAvgPqOffset

func (s *AVDOVIDmLevel3) SetAvgPqOffset(value uint16)

SetAvgPqOffset sets the avg_pq_offset field.

func (*AVDOVIDmLevel3) SetMaxPqOffset

func (s *AVDOVIDmLevel3) SetMaxPqOffset(value uint16)

SetMaxPqOffset sets the max_pq_offset field.

func (*AVDOVIDmLevel3) SetMinPqOffset

func (s *AVDOVIDmLevel3) SetMinPqOffset(value uint16)

SetMinPqOffset sets the min_pq_offset field.

type AVDOVIDmLevel4

type AVDOVIDmLevel4 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel4 wraps AVDOVIDmLevel4.

func (*AVDOVIDmLevel4) AnchorPower

func (s *AVDOVIDmLevel4) AnchorPower() uint16

AnchorPower gets the anchor_power field.

func (*AVDOVIDmLevel4) AnchorPq

func (s *AVDOVIDmLevel4) AnchorPq() uint16

AnchorPq gets the anchor_pq field.

func (*AVDOVIDmLevel4) RawPtr

func (s *AVDOVIDmLevel4) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel4) SetAnchorPower

func (s *AVDOVIDmLevel4) SetAnchorPower(value uint16)

SetAnchorPower sets the anchor_power field.

func (*AVDOVIDmLevel4) SetAnchorPq

func (s *AVDOVIDmLevel4) SetAnchorPq(value uint16)

SetAnchorPq sets the anchor_pq field.

type AVDOVIDmLevel5

type AVDOVIDmLevel5 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel5 wraps AVDOVIDmLevel5.

func (*AVDOVIDmLevel5) BottomOffset

func (s *AVDOVIDmLevel5) BottomOffset() uint16

BottomOffset gets the bottom_offset field.

func (*AVDOVIDmLevel5) LeftOffset

func (s *AVDOVIDmLevel5) LeftOffset() uint16

LeftOffset gets the left_offset field.

Active area definition

func (*AVDOVIDmLevel5) RawPtr

func (s *AVDOVIDmLevel5) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel5) RightOffset

func (s *AVDOVIDmLevel5) RightOffset() uint16

RightOffset gets the right_offset field.

func (*AVDOVIDmLevel5) SetBottomOffset

func (s *AVDOVIDmLevel5) SetBottomOffset(value uint16)

SetBottomOffset sets the bottom_offset field.

func (*AVDOVIDmLevel5) SetLeftOffset

func (s *AVDOVIDmLevel5) SetLeftOffset(value uint16)

SetLeftOffset sets the left_offset field.

Active area definition

func (*AVDOVIDmLevel5) SetRightOffset

func (s *AVDOVIDmLevel5) SetRightOffset(value uint16)

SetRightOffset sets the right_offset field.

func (*AVDOVIDmLevel5) SetTopOffset

func (s *AVDOVIDmLevel5) SetTopOffset(value uint16)

SetTopOffset sets the top_offset field.

func (*AVDOVIDmLevel5) TopOffset

func (s *AVDOVIDmLevel5) TopOffset() uint16

TopOffset gets the top_offset field.

type AVDOVIDmLevel6

type AVDOVIDmLevel6 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel6 wraps AVDOVIDmLevel6.

func (*AVDOVIDmLevel6) MaxCll

func (s *AVDOVIDmLevel6) MaxCll() uint16

MaxCll gets the max_cll field.

func (*AVDOVIDmLevel6) MaxFall

func (s *AVDOVIDmLevel6) MaxFall() uint16

MaxFall gets the max_fall field.

func (*AVDOVIDmLevel6) MaxLuminance

func (s *AVDOVIDmLevel6) MaxLuminance() uint16

MaxLuminance gets the max_luminance field.

Static HDR10 metadata

func (*AVDOVIDmLevel6) MinLuminance

func (s *AVDOVIDmLevel6) MinLuminance() uint16

MinLuminance gets the min_luminance field.

func (*AVDOVIDmLevel6) RawPtr

func (s *AVDOVIDmLevel6) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel6) SetMaxCll

func (s *AVDOVIDmLevel6) SetMaxCll(value uint16)

SetMaxCll sets the max_cll field.

func (*AVDOVIDmLevel6) SetMaxFall

func (s *AVDOVIDmLevel6) SetMaxFall(value uint16)

SetMaxFall sets the max_fall field.

func (*AVDOVIDmLevel6) SetMaxLuminance

func (s *AVDOVIDmLevel6) SetMaxLuminance(value uint16)

SetMaxLuminance sets the max_luminance field.

Static HDR10 metadata

func (*AVDOVIDmLevel6) SetMinLuminance

func (s *AVDOVIDmLevel6) SetMinLuminance(value uint16)

SetMinLuminance sets the min_luminance field.

type AVDOVIDmLevel8

type AVDOVIDmLevel8 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel8 wraps AVDOVIDmLevel8.

func (*AVDOVIDmLevel8) ClipTrim

func (s *AVDOVIDmLevel8) ClipTrim() uint16

ClipTrim gets the clip_trim field.

func (*AVDOVIDmLevel8) HueVectorField

func (s *AVDOVIDmLevel8) HueVectorField() *Array[uint8]

HueVectorField gets the hue_vector_field field.

func (*AVDOVIDmLevel8) MsWeight

func (s *AVDOVIDmLevel8) MsWeight() uint16

MsWeight gets the ms_weight field.

func (*AVDOVIDmLevel8) RawPtr

func (s *AVDOVIDmLevel8) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel8) SaturationVectorField

func (s *AVDOVIDmLevel8) SaturationVectorField() *Array[uint8]

SaturationVectorField gets the saturation_vector_field field.

func (*AVDOVIDmLevel8) SetClipTrim

func (s *AVDOVIDmLevel8) SetClipTrim(value uint16)

SetClipTrim sets the clip_trim field.

func (*AVDOVIDmLevel8) SetMsWeight

func (s *AVDOVIDmLevel8) SetMsWeight(value uint16)

SetMsWeight sets the ms_weight field.

func (*AVDOVIDmLevel8) SetTargetDisplayIndex

func (s *AVDOVIDmLevel8) SetTargetDisplayIndex(value uint8)

SetTargetDisplayIndex sets the target_display_index field.

Extended version of level 2

func (*AVDOVIDmLevel8) SetTargetMidContrast

func (s *AVDOVIDmLevel8) SetTargetMidContrast(value uint16)

SetTargetMidContrast sets the target_mid_contrast field.

func (*AVDOVIDmLevel8) SetTrimChromaWeight

func (s *AVDOVIDmLevel8) SetTrimChromaWeight(value uint16)

SetTrimChromaWeight sets the trim_chroma_weight field.

func (*AVDOVIDmLevel8) SetTrimOffset

func (s *AVDOVIDmLevel8) SetTrimOffset(value uint16)

SetTrimOffset sets the trim_offset field.

func (*AVDOVIDmLevel8) SetTrimPower

func (s *AVDOVIDmLevel8) SetTrimPower(value uint16)

SetTrimPower sets the trim_power field.

func (*AVDOVIDmLevel8) SetTrimSaturationGain

func (s *AVDOVIDmLevel8) SetTrimSaturationGain(value uint16)

SetTrimSaturationGain sets the trim_saturation_gain field.

func (*AVDOVIDmLevel8) SetTrimSlope

func (s *AVDOVIDmLevel8) SetTrimSlope(value uint16)

SetTrimSlope sets the trim_slope field.

func (*AVDOVIDmLevel8) TargetDisplayIndex

func (s *AVDOVIDmLevel8) TargetDisplayIndex() uint8

TargetDisplayIndex gets the target_display_index field.

Extended version of level 2

func (*AVDOVIDmLevel8) TargetMidContrast

func (s *AVDOVIDmLevel8) TargetMidContrast() uint16

TargetMidContrast gets the target_mid_contrast field.

func (*AVDOVIDmLevel8) TrimChromaWeight

func (s *AVDOVIDmLevel8) TrimChromaWeight() uint16

TrimChromaWeight gets the trim_chroma_weight field.

func (*AVDOVIDmLevel8) TrimOffset

func (s *AVDOVIDmLevel8) TrimOffset() uint16

TrimOffset gets the trim_offset field.

func (*AVDOVIDmLevel8) TrimPower

func (s *AVDOVIDmLevel8) TrimPower() uint16

TrimPower gets the trim_power field.

func (*AVDOVIDmLevel8) TrimSaturationGain

func (s *AVDOVIDmLevel8) TrimSaturationGain() uint16

TrimSaturationGain gets the trim_saturation_gain field.

func (*AVDOVIDmLevel8) TrimSlope

func (s *AVDOVIDmLevel8) TrimSlope() uint16

TrimSlope gets the trim_slope field.

type AVDOVIDmLevel9

type AVDOVIDmLevel9 struct {
	// contains filtered or unexported fields
}

AVDOVIDmLevel9 wraps AVDOVIDmLevel9.

func (*AVDOVIDmLevel9) RawPtr

func (s *AVDOVIDmLevel9) RawPtr() unsafe.Pointer

func (*AVDOVIDmLevel9) SetSourcePrimaryIndex

func (s *AVDOVIDmLevel9) SetSourcePrimaryIndex(value uint8)

SetSourcePrimaryIndex sets the source_primary_index field.

Source display characteristics

func (*AVDOVIDmLevel9) SourceDisplayPrimaries

func (s *AVDOVIDmLevel9) SourceDisplayPrimaries() *AVColorPrimariesDesc

SourceDisplayPrimaries gets the source_display_primaries field.

func (*AVDOVIDmLevel9) SourcePrimaryIndex

func (s *AVDOVIDmLevel9) SourcePrimaryIndex() uint8

SourcePrimaryIndex gets the source_primary_index field.

Source display characteristics

type AVDOVIMappingMethod

type AVDOVIMappingMethod C.enum_AVDOVIMappingMethod

AVDOVIMappingMethod wraps AVDOVIMappingMethod.

const (
	// AVDoviMappingPolynomial wraps AV_DOVI_MAPPING_POLYNOMIAL.
	AVDoviMappingPolynomial AVDOVIMappingMethod = C.AV_DOVI_MAPPING_POLYNOMIAL
	// AVDoviMappingMmr wraps AV_DOVI_MAPPING_MMR.
	AVDoviMappingMmr AVDOVIMappingMethod = C.AV_DOVI_MAPPING_MMR
)

type AVDOVIMetadata

type AVDOVIMetadata struct {
	// contains filtered or unexported fields
}

AVDOVIMetadata wraps AVDOVIMetadata.

Combined struct representing a combination of header, mapping and color
metadata, for attaching to frames as side data.

@note The struct must be allocated with av_dovi_metadata_alloc() and
      its size is not a part of the public ABI.

func AVDoviMetadataAlloc

func AVDoviMetadataAlloc(size *uint64) *AVDOVIMetadata

AVDoviMetadataAlloc wraps av_dovi_metadata_alloc.

Allocate an AVDOVIMetadata structure and initialize its
fields to default values.

@param size If this parameter is non-NULL, the size in bytes of the
            allocated struct will be written here on success

@return the newly allocated struct or NULL on failure

func (*AVDOVIMetadata) ColorOffset

func (s *AVDOVIMetadata) ColorOffset() uint64

ColorOffset gets the color_offset field.

AVDOVIColorMetadata

func (*AVDOVIMetadata) ExtBlockOffset

func (s *AVDOVIMetadata) ExtBlockOffset() uint64

ExtBlockOffset gets the ext_block_offset field.

offset to start of ext blocks array

func (*AVDOVIMetadata) ExtBlockSize

func (s *AVDOVIMetadata) ExtBlockSize() uint64

ExtBlockSize gets the ext_block_size field.

size per element

func (*AVDOVIMetadata) HeaderOffset

func (s *AVDOVIMetadata) HeaderOffset() uint64

HeaderOffset gets the header_offset field.

AVDOVIRpuDataHeader

func (*AVDOVIMetadata) MappingOffset

func (s *AVDOVIMetadata) MappingOffset() uint64

MappingOffset gets the mapping_offset field.

AVDOVIDataMapping

func (*AVDOVIMetadata) NumExtBlocks

func (s *AVDOVIMetadata) NumExtBlocks() int

NumExtBlocks gets the num_ext_blocks field.

number of extension blocks

func (*AVDOVIMetadata) RawPtr

func (s *AVDOVIMetadata) RawPtr() unsafe.Pointer

func (*AVDOVIMetadata) SetColorOffset

func (s *AVDOVIMetadata) SetColorOffset(value uint64)

SetColorOffset sets the color_offset field.

AVDOVIColorMetadata

func (*AVDOVIMetadata) SetExtBlockOffset

func (s *AVDOVIMetadata) SetExtBlockOffset(value uint64)

SetExtBlockOffset sets the ext_block_offset field.

offset to start of ext blocks array

func (*AVDOVIMetadata) SetExtBlockSize

func (s *AVDOVIMetadata) SetExtBlockSize(value uint64)

SetExtBlockSize sets the ext_block_size field.

size per element

func (*AVDOVIMetadata) SetHeaderOffset

func (s *AVDOVIMetadata) SetHeaderOffset(value uint64)

SetHeaderOffset sets the header_offset field.

AVDOVIRpuDataHeader

func (*AVDOVIMetadata) SetMappingOffset

func (s *AVDOVIMetadata) SetMappingOffset(value uint64)

SetMappingOffset sets the mapping_offset field.

AVDOVIDataMapping

func (*AVDOVIMetadata) SetNumExtBlocks

func (s *AVDOVIMetadata) SetNumExtBlocks(value int)

SetNumExtBlocks sets the num_ext_blocks field.

number of extension blocks

type AVDOVINLQMethod

type AVDOVINLQMethod C.enum_AVDOVINLQMethod

AVDOVINLQMethod wraps AVDOVINLQMethod.

const (
	// AVDoviNlqNone wraps AV_DOVI_NLQ_NONE.
	AVDoviNlqNone AVDOVINLQMethod = C.AV_DOVI_NLQ_NONE
	// AVDoviNlqLinearDz wraps AV_DOVI_NLQ_LINEAR_DZ.
	AVDoviNlqLinearDz AVDOVINLQMethod = C.AV_DOVI_NLQ_LINEAR_DZ
)

type AVDOVINLQParams

type AVDOVINLQParams struct {
	// contains filtered or unexported fields
}

AVDOVINLQParams wraps AVDOVINLQParams.

Coefficients of the non-linear inverse quantization. For the interpretation
of these, see ETSI GS CCM 001.

func (*AVDOVINLQParams) LinearDeadzoneSlope

func (s *AVDOVINLQParams) LinearDeadzoneSlope() uint64

LinearDeadzoneSlope gets the linear_deadzone_slope field.

AV_DOVI_NLQ_LINEAR_DZ

func (*AVDOVINLQParams) LinearDeadzoneThreshold

func (s *AVDOVINLQParams) LinearDeadzoneThreshold() uint64

LinearDeadzoneThreshold gets the linear_deadzone_threshold field.

func (*AVDOVINLQParams) NlqOffset

func (s *AVDOVINLQParams) NlqOffset() uint16

NlqOffset gets the nlq_offset field.

func (*AVDOVINLQParams) RawPtr

func (s *AVDOVINLQParams) RawPtr() unsafe.Pointer

func (*AVDOVINLQParams) SetLinearDeadzoneSlope

func (s *AVDOVINLQParams) SetLinearDeadzoneSlope(value uint64)

SetLinearDeadzoneSlope sets the linear_deadzone_slope field.

AV_DOVI_NLQ_LINEAR_DZ

func (*AVDOVINLQParams) SetLinearDeadzoneThreshold

func (s *AVDOVINLQParams) SetLinearDeadzoneThreshold(value uint64)

SetLinearDeadzoneThreshold sets the linear_deadzone_threshold field.

func (*AVDOVINLQParams) SetNlqOffset

func (s *AVDOVINLQParams) SetNlqOffset(value uint16)

SetNlqOffset sets the nlq_offset field.

func (*AVDOVINLQParams) SetVdrInMax

func (s *AVDOVINLQParams) SetVdrInMax(value uint64)

SetVdrInMax sets the vdr_in_max field.

func (*AVDOVINLQParams) VdrInMax

func (s *AVDOVINLQParams) VdrInMax() uint64

VdrInMax gets the vdr_in_max field.

type AVDOVIReshapingCurve

type AVDOVIReshapingCurve struct {
	// contains filtered or unexported fields
}

AVDOVIReshapingCurve wraps AVDOVIReshapingCurve.

func (*AVDOVIReshapingCurve) MappingIdc

MappingIdc gets the mapping_idc field.

func (*AVDOVIReshapingCurve) MmrConstant

func (s *AVDOVIReshapingCurve) MmrConstant() *Array[int64]

MmrConstant gets the mmr_constant field.

func (*AVDOVIReshapingCurve) MmrOrder

func (s *AVDOVIReshapingCurve) MmrOrder() *Array[uint8]

MmrOrder gets the mmr_order field.

[1, 3]

func (*AVDOVIReshapingCurve) NumPivots

func (s *AVDOVIReshapingCurve) NumPivots() uint8

NumPivots gets the num_pivots field.

[2, 9]

func (*AVDOVIReshapingCurve) Pivots

func (s *AVDOVIReshapingCurve) Pivots() *Array[uint16]

Pivots gets the pivots field.

sorted ascending

func (*AVDOVIReshapingCurve) PolyOrder

func (s *AVDOVIReshapingCurve) PolyOrder() *Array[uint8]

PolyOrder gets the poly_order field.

[1, 2]

func (*AVDOVIReshapingCurve) RawPtr

func (s *AVDOVIReshapingCurve) RawPtr() unsafe.Pointer

func (*AVDOVIReshapingCurve) SetNumPivots

func (s *AVDOVIReshapingCurve) SetNumPivots(value uint8)

SetNumPivots sets the num_pivots field.

[2, 9]

type AVDOVIRpuDataHeader

type AVDOVIRpuDataHeader struct {
	// contains filtered or unexported fields
}

AVDOVIRpuDataHeader wraps AVDOVIRpuDataHeader.

Dolby Vision RPU data header.

@note sizeof(AVDOVIRpuDataHeader) is not part of the public ABI.

func AVDoviGetHeader

func AVDoviGetHeader(data *AVDOVIMetadata) *AVDOVIRpuDataHeader

AVDoviGetHeader wraps av_dovi_get_header.

func (*AVDOVIRpuDataHeader) BlBitDepth

func (s *AVDOVIRpuDataHeader) BlBitDepth() uint8

BlBitDepth gets the bl_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) BlVideoFullRangeFlag

func (s *AVDOVIRpuDataHeader) BlVideoFullRangeFlag() uint8

BlVideoFullRangeFlag gets the bl_video_full_range_flag field.

func (*AVDOVIRpuDataHeader) ChromaResamplingExplicitFilterFlag

func (s *AVDOVIRpuDataHeader) ChromaResamplingExplicitFilterFlag() uint8

ChromaResamplingExplicitFilterFlag gets the chroma_resampling_explicit_filter_flag field.

func (*AVDOVIRpuDataHeader) CoefDataType

func (s *AVDOVIRpuDataHeader) CoefDataType() uint8

CoefDataType gets the coef_data_type field.

informative, lavc always converts to fixed

func (*AVDOVIRpuDataHeader) CoefLog2Denom

func (s *AVDOVIRpuDataHeader) CoefLog2Denom() uint8

CoefLog2Denom gets the coef_log2_denom field.

func (*AVDOVIRpuDataHeader) DisableResidualFlag

func (s *AVDOVIRpuDataHeader) DisableResidualFlag() uint8

DisableResidualFlag gets the disable_residual_flag field.

func (*AVDOVIRpuDataHeader) ElBitDepth

func (s *AVDOVIRpuDataHeader) ElBitDepth() uint8

ElBitDepth gets the el_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) ElSpatialResamplingFilterFlag

func (s *AVDOVIRpuDataHeader) ElSpatialResamplingFilterFlag() uint8

ElSpatialResamplingFilterFlag gets the el_spatial_resampling_filter_flag field.

func (*AVDOVIRpuDataHeader) ExtMappingIdc04

func (s *AVDOVIRpuDataHeader) ExtMappingIdc04() uint8

ExtMappingIdc04 gets the ext_mapping_idc_0_4 field.

extended base layer inverse mapping indicator

func (*AVDOVIRpuDataHeader) ExtMappingIdc57

func (s *AVDOVIRpuDataHeader) ExtMappingIdc57() uint8

ExtMappingIdc57 gets the ext_mapping_idc_5_7 field.

reserved

func (*AVDOVIRpuDataHeader) RawPtr

func (s *AVDOVIRpuDataHeader) RawPtr() unsafe.Pointer

func (*AVDOVIRpuDataHeader) RpuFormat

func (s *AVDOVIRpuDataHeader) RpuFormat() uint16

RpuFormat gets the rpu_format field.

func (*AVDOVIRpuDataHeader) RpuType

func (s *AVDOVIRpuDataHeader) RpuType() uint8

RpuType gets the rpu_type field.

func (*AVDOVIRpuDataHeader) SetBlBitDepth

func (s *AVDOVIRpuDataHeader) SetBlBitDepth(value uint8)

SetBlBitDepth sets the bl_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) SetBlVideoFullRangeFlag

func (s *AVDOVIRpuDataHeader) SetBlVideoFullRangeFlag(value uint8)

SetBlVideoFullRangeFlag sets the bl_video_full_range_flag field.

func (*AVDOVIRpuDataHeader) SetChromaResamplingExplicitFilterFlag

func (s *AVDOVIRpuDataHeader) SetChromaResamplingExplicitFilterFlag(value uint8)

SetChromaResamplingExplicitFilterFlag sets the chroma_resampling_explicit_filter_flag field.

func (*AVDOVIRpuDataHeader) SetCoefDataType

func (s *AVDOVIRpuDataHeader) SetCoefDataType(value uint8)

SetCoefDataType sets the coef_data_type field.

informative, lavc always converts to fixed

func (*AVDOVIRpuDataHeader) SetCoefLog2Denom

func (s *AVDOVIRpuDataHeader) SetCoefLog2Denom(value uint8)

SetCoefLog2Denom sets the coef_log2_denom field.

func (*AVDOVIRpuDataHeader) SetDisableResidualFlag

func (s *AVDOVIRpuDataHeader) SetDisableResidualFlag(value uint8)

SetDisableResidualFlag sets the disable_residual_flag field.

func (*AVDOVIRpuDataHeader) SetElBitDepth

func (s *AVDOVIRpuDataHeader) SetElBitDepth(value uint8)

SetElBitDepth sets the el_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) SetElSpatialResamplingFilterFlag

func (s *AVDOVIRpuDataHeader) SetElSpatialResamplingFilterFlag(value uint8)

SetElSpatialResamplingFilterFlag sets the el_spatial_resampling_filter_flag field.

func (*AVDOVIRpuDataHeader) SetExtMappingIdc04

func (s *AVDOVIRpuDataHeader) SetExtMappingIdc04(value uint8)

SetExtMappingIdc04 sets the ext_mapping_idc_0_4 field.

extended base layer inverse mapping indicator

func (*AVDOVIRpuDataHeader) SetExtMappingIdc57

func (s *AVDOVIRpuDataHeader) SetExtMappingIdc57(value uint8)

SetExtMappingIdc57 sets the ext_mapping_idc_5_7 field.

reserved

func (*AVDOVIRpuDataHeader) SetRpuFormat

func (s *AVDOVIRpuDataHeader) SetRpuFormat(value uint16)

SetRpuFormat sets the rpu_format field.

func (*AVDOVIRpuDataHeader) SetRpuType

func (s *AVDOVIRpuDataHeader) SetRpuType(value uint8)

SetRpuType sets the rpu_type field.

func (*AVDOVIRpuDataHeader) SetSpatialResamplingFilterFlag

func (s *AVDOVIRpuDataHeader) SetSpatialResamplingFilterFlag(value uint8)

SetSpatialResamplingFilterFlag sets the spatial_resampling_filter_flag field.

func (*AVDOVIRpuDataHeader) SetVdrBitDepth

func (s *AVDOVIRpuDataHeader) SetVdrBitDepth(value uint8)

SetVdrBitDepth sets the vdr_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) SetVdrRpuLevel

func (s *AVDOVIRpuDataHeader) SetVdrRpuLevel(value uint8)

SetVdrRpuLevel sets the vdr_rpu_level field.

func (*AVDOVIRpuDataHeader) SetVdrRpuNormalizedIdc

func (s *AVDOVIRpuDataHeader) SetVdrRpuNormalizedIdc(value uint8)

SetVdrRpuNormalizedIdc sets the vdr_rpu_normalized_idc field.

func (*AVDOVIRpuDataHeader) SetVdrRpuProfile

func (s *AVDOVIRpuDataHeader) SetVdrRpuProfile(value uint8)

SetVdrRpuProfile sets the vdr_rpu_profile field.

func (*AVDOVIRpuDataHeader) SpatialResamplingFilterFlag

func (s *AVDOVIRpuDataHeader) SpatialResamplingFilterFlag() uint8

SpatialResamplingFilterFlag gets the spatial_resampling_filter_flag field.

func (*AVDOVIRpuDataHeader) VdrBitDepth

func (s *AVDOVIRpuDataHeader) VdrBitDepth() uint8

VdrBitDepth gets the vdr_bit_depth field.

[8, 16]

func (*AVDOVIRpuDataHeader) VdrRpuLevel

func (s *AVDOVIRpuDataHeader) VdrRpuLevel() uint8

VdrRpuLevel gets the vdr_rpu_level field.

func (*AVDOVIRpuDataHeader) VdrRpuNormalizedIdc

func (s *AVDOVIRpuDataHeader) VdrRpuNormalizedIdc() uint8

VdrRpuNormalizedIdc gets the vdr_rpu_normalized_idc field.

func (*AVDOVIRpuDataHeader) VdrRpuProfile

func (s *AVDOVIRpuDataHeader) VdrRpuProfile() uint8

VdrRpuProfile gets the vdr_rpu_profile field.

type AVDetectionBBox

type AVDetectionBBox struct {
	// contains filtered or unexported fields
}

AVDetectionBBox wraps AVDetectionBBox.

func AVGetDetectionBbox

func AVGetDetectionBbox(header *AVDetectionBBoxHeader, idx uint) *AVDetectionBBox

AVGetDetectionBbox wraps av_get_detection_bbox.

Get the bounding box at the specified {@code idx}. Must be between 0 and nb_bboxes.

func (*AVDetectionBBox) ClassifyConfidences

func (s *AVDetectionBBox) ClassifyConfidences() *Array[*AVRational]

ClassifyConfidences gets the classify_confidences field.

func (*AVDetectionBBox) ClassifyCount

func (s *AVDetectionBBox) ClassifyCount() uint32

ClassifyCount gets the classify_count field.

func (*AVDetectionBBox) DetectConfidence

func (s *AVDetectionBBox) DetectConfidence() *AVRational

DetectConfidence gets the detect_confidence field.

func (*AVDetectionBBox) DetectLabel

func (s *AVDetectionBBox) DetectLabel() *Array[uint8]

DetectLabel gets the detect_label field.

Detect result with confidence

func (*AVDetectionBBox) H

func (s *AVDetectionBBox) H() int

H gets the h field.

func (*AVDetectionBBox) RawPtr

func (s *AVDetectionBBox) RawPtr() unsafe.Pointer

func (*AVDetectionBBox) SetClassifyCount

func (s *AVDetectionBBox) SetClassifyCount(value uint32)

SetClassifyCount sets the classify_count field.

func (*AVDetectionBBox) SetDetectConfidence

func (s *AVDetectionBBox) SetDetectConfidence(value *AVRational)

SetDetectConfidence sets the detect_confidence field.

func (*AVDetectionBBox) SetH

func (s *AVDetectionBBox) SetH(value int)

SetH sets the h field.

func (*AVDetectionBBox) SetW

func (s *AVDetectionBBox) SetW(value int)

SetW sets the w field.

func (*AVDetectionBBox) SetX

func (s *AVDetectionBBox) SetX(value int)

SetX sets the x field.

Distance in pixels from the left/top edge of the frame,
together with width and height, defining the bounding box.

func (*AVDetectionBBox) SetY

func (s *AVDetectionBBox) SetY(value int)

SetY sets the y field.

func (*AVDetectionBBox) W

func (s *AVDetectionBBox) W() int

W gets the w field.

func (*AVDetectionBBox) X

func (s *AVDetectionBBox) X() int

X gets the x field.

Distance in pixels from the left/top edge of the frame,
together with width and height, defining the bounding box.

func (*AVDetectionBBox) Y

func (s *AVDetectionBBox) Y() int

Y gets the y field.

type AVDetectionBBoxHeader

type AVDetectionBBoxHeader struct {
	// contains filtered or unexported fields
}

AVDetectionBBoxHeader wraps AVDetectionBBoxHeader.

func AVDetectionBboxAlloc

func AVDetectionBboxAlloc(nbBboxes uint32, outSize *uint64) *AVDetectionBBoxHeader

AVDetectionBboxAlloc wraps av_detection_bbox_alloc.

Allocates memory for AVDetectionBBoxHeader, plus an array of {@code nb_bboxes}
AVDetectionBBox, and initializes the variables.
Can be freed with a normal av_free() call.

@param nb_bboxes number of AVDetectionBBox structures to allocate
@param out_size if non-NULL, the size in bytes of the resulting data array is
written here.

func AVDetectionBboxCreateSideData

func AVDetectionBboxCreateSideData(frame *AVFrame, nbBboxes uint32) *AVDetectionBBoxHeader

AVDetectionBboxCreateSideData wraps av_detection_bbox_create_side_data.

Allocates memory for AVDetectionBBoxHeader, plus an array of {@code nb_bboxes}
AVDetectionBBox, in the given AVFrame {@code frame} as AVFrameSideData of type
AV_FRAME_DATA_DETECTION_BBOXES and initializes the variables.

func (*AVDetectionBBoxHeader) BboxSize

func (s *AVDetectionBBoxHeader) BboxSize() uint64

BboxSize gets the bbox_size field.

Size of each bounding box in bytes.

func (*AVDetectionBBoxHeader) BboxesOffset

func (s *AVDetectionBBoxHeader) BboxesOffset() uint64

BboxesOffset gets the bboxes_offset field.

Offset in bytes from the beginning of this structure at which
the array of bounding boxes starts.

func (*AVDetectionBBoxHeader) NbBboxes

func (s *AVDetectionBBoxHeader) NbBboxes() uint32

NbBboxes gets the nb_bboxes field.

Number of bounding boxes in the array.

func (*AVDetectionBBoxHeader) RawPtr

func (s *AVDetectionBBoxHeader) RawPtr() unsafe.Pointer

func (*AVDetectionBBoxHeader) SetBboxSize

func (s *AVDetectionBBoxHeader) SetBboxSize(value uint64)

SetBboxSize sets the bbox_size field.

Size of each bounding box in bytes.

func (*AVDetectionBBoxHeader) SetBboxesOffset

func (s *AVDetectionBBoxHeader) SetBboxesOffset(value uint64)

SetBboxesOffset sets the bboxes_offset field.

Offset in bytes from the beginning of this structure at which
the array of bounding boxes starts.

func (*AVDetectionBBoxHeader) SetNbBboxes

func (s *AVDetectionBBoxHeader) SetNbBboxes(value uint32)

SetNbBboxes sets the nb_bboxes field.

Number of bounding boxes in the array.

func (*AVDetectionBBoxHeader) Source

func (s *AVDetectionBBoxHeader) Source() *Array[uint8]

Source gets the source field.

Information about how the bounding box is generated.
for example, the DNN model name.

type AVDevToAppMessageType

type AVDevToAppMessageType C.enum_AVDevToAppMessageType

AVDevToAppMessageType wraps AVDevToAppMessageType.

Message types used by avdevice_dev_to_app_control_message().
const (
	// AVDevToAppNone wraps AV_DEV_TO_APP_NONE.
	//
	//	Dummy message.
	AVDevToAppNone AVDevToAppMessageType = C.AV_DEV_TO_APP_NONE
	// AVDevToAppCreateWindowBuffer wraps AV_DEV_TO_APP_CREATE_WINDOW_BUFFER.
	/*
	   Create window buffer message.

	   Device requests to create a window buffer. Exact meaning is device-
	   and application-dependent. Message is sent before rendering first
	   frame and all one-shot initializations should be done here.
	   Application is allowed to ignore preferred window buffer size.

	   @note: Application is obligated to inform about window buffer size
	          with AV_APP_TO_DEV_WINDOW_SIZE message.

	   data: AVDeviceRect: preferred size of the window buffer.
	         NULL: no preferred size of the window buffer.
	*/
	AVDevToAppCreateWindowBuffer AVDevToAppMessageType = C.AV_DEV_TO_APP_CREATE_WINDOW_BUFFER
	// AVDevToAppPrepareWindowBuffer wraps AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER.
	/*
	   Prepare window buffer message.

	   Device requests to prepare a window buffer for rendering.
	   Exact meaning is device- and application-dependent.
	   Message is sent before rendering of each frame.

	   data: NULL.
	*/
	AVDevToAppPrepareWindowBuffer AVDevToAppMessageType = C.AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER
	// AVDevToAppDisplayWindowBuffer wraps AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER.
	/*
	   Display window buffer message.

	   Device requests to display a window buffer.
	   Message is sent when new frame is ready to be displayed.
	   Usually buffers need to be swapped in handler of this message.

	   data: NULL.
	*/
	AVDevToAppDisplayWindowBuffer AVDevToAppMessageType = C.AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER
	// AVDevToAppDestroyWindowBuffer wraps AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER.
	/*
	   Destroy window buffer message.

	   Device requests to destroy a window buffer.
	   Message is sent when device is about to be destroyed and window
	   buffer is not required anymore.

	   data: NULL.
	*/
	AVDevToAppDestroyWindowBuffer AVDevToAppMessageType = C.AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER
	// AVDevToAppBufferOverflow wraps AV_DEV_TO_APP_BUFFER_OVERFLOW.
	/*
	   Buffer fullness status messages.

	   Device signals buffer overflow/underflow.

	   data: NULL.
	*/
	AVDevToAppBufferOverflow AVDevToAppMessageType = C.AV_DEV_TO_APP_BUFFER_OVERFLOW
	// AVDevToAppBufferUnderflow wraps AV_DEV_TO_APP_BUFFER_UNDERFLOW.
	/*
	   Buffer fullness status messages.

	   Device signals buffer overflow/underflow.

	   data: NULL.
	*/
	AVDevToAppBufferUnderflow AVDevToAppMessageType = C.AV_DEV_TO_APP_BUFFER_UNDERFLOW
	// AVDevToAppBufferReadable wraps AV_DEV_TO_APP_BUFFER_READABLE.
	/*
	   Buffer readable/writable.

	   Device informs that buffer is readable/writable.
	   When possible, device informs how many bytes can be read/write.

	   @warning Device may not inform when number of bytes than can be read/write changes.

	   data: int64_t: amount of bytes available to read/write.
	         NULL: amount of bytes available to read/write is not known.
	*/
	AVDevToAppBufferReadable AVDevToAppMessageType = C.AV_DEV_TO_APP_BUFFER_READABLE
	// AVDevToAppBufferWritable wraps AV_DEV_TO_APP_BUFFER_WRITABLE.
	/*
	   Buffer readable/writable.

	   Device informs that buffer is readable/writable.
	   When possible, device informs how many bytes can be read/write.

	   @warning Device may not inform when number of bytes than can be read/write changes.

	   data: int64_t: amount of bytes available to read/write.
	         NULL: amount of bytes available to read/write is not known.
	*/
	AVDevToAppBufferWritable AVDevToAppMessageType = C.AV_DEV_TO_APP_BUFFER_WRITABLE
	// AVDevToAppMuteStateChanged wraps AV_DEV_TO_APP_MUTE_STATE_CHANGED.
	/*
	   Mute state change message.

	   Device informs that mute state has changed.

	   data: int: 0 for not muted state, non-zero for muted state.
	*/
	AVDevToAppMuteStateChanged AVDevToAppMessageType = C.AV_DEV_TO_APP_MUTE_STATE_CHANGED
	// AVDevToAppVolumeLevelChanged wraps AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED.
	/*
	   Volume level change message.

	   Device informs that volume level has changed.

	   data: double: new volume with range of 0.0 - 1.0.
	*/
	AVDevToAppVolumeLevelChanged AVDevToAppMessageType = C.AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED
)

type AVDeviceInfo

type AVDeviceInfo struct {
	// contains filtered or unexported fields
}

AVDeviceInfo wraps AVDeviceInfo.

Structure describes basic parameters of the device.

func (*AVDeviceInfo) DeviceDescription

func (s *AVDeviceInfo) DeviceDescription() *CStr

DeviceDescription gets the device_description field.

human friendly name

func (*AVDeviceInfo) DeviceName

func (s *AVDeviceInfo) DeviceName() *CStr

DeviceName gets the device_name field.

device name, format depends on device

func (*AVDeviceInfo) MediaTypes

func (s *AVDeviceInfo) MediaTypes() *Array[AVMediaType]

MediaTypes gets the media_types field.

array indicating what media types(s), if any, a device can provide. If null, cannot provide any

func (*AVDeviceInfo) NbMediaTypes

func (s *AVDeviceInfo) NbMediaTypes() int

NbMediaTypes gets the nb_media_types field.

length of media_types array, 0 if device cannot provide any media types

func (*AVDeviceInfo) RawPtr

func (s *AVDeviceInfo) RawPtr() unsafe.Pointer

func (*AVDeviceInfo) SetDeviceDescription

func (s *AVDeviceInfo) SetDeviceDescription(value *CStr)

SetDeviceDescription sets the device_description field.

human friendly name

func (*AVDeviceInfo) SetDeviceName

func (s *AVDeviceInfo) SetDeviceName(value *CStr)

SetDeviceName sets the device_name field.

device name, format depends on device

func (*AVDeviceInfo) SetMediaTypes

func (s *AVDeviceInfo) SetMediaTypes(value *Array[AVMediaType])

SetMediaTypes sets the media_types field.

array indicating what media types(s), if any, a device can provide. If null, cannot provide any

func (*AVDeviceInfo) SetNbMediaTypes

func (s *AVDeviceInfo) SetNbMediaTypes(value int)

SetNbMediaTypes sets the nb_media_types field.

length of media_types array, 0 if device cannot provide any media types

type AVDeviceInfoList

type AVDeviceInfoList struct {
	// contains filtered or unexported fields
}

AVDeviceInfoList wraps AVDeviceInfoList.

List of devices.

func (*AVDeviceInfoList) DefaultDevice

func (s *AVDeviceInfoList) DefaultDevice() int

DefaultDevice gets the default_device field.

index of default device or -1 if no default

func (*AVDeviceInfoList) Devices

func (s *AVDeviceInfoList) Devices() *Array[*AVDeviceInfo]

Devices gets the devices field.

list of autodetected devices

func (*AVDeviceInfoList) NbDevices

func (s *AVDeviceInfoList) NbDevices() int

NbDevices gets the nb_devices field.

number of autodetected devices

func (*AVDeviceInfoList) RawPtr

func (s *AVDeviceInfoList) RawPtr() unsafe.Pointer

func (*AVDeviceInfoList) SetDefaultDevice

func (s *AVDeviceInfoList) SetDefaultDevice(value int)

SetDefaultDevice sets the default_device field.

index of default device or -1 if no default

func (*AVDeviceInfoList) SetDevices

func (s *AVDeviceInfoList) SetDevices(value *Array[AVDeviceInfo])

SetDevices sets the devices field.

list of autodetected devices

func (*AVDeviceInfoList) SetNbDevices

func (s *AVDeviceInfoList) SetNbDevices(value int)

SetNbDevices sets the nb_devices field.

number of autodetected devices

type AVDeviceRect

type AVDeviceRect struct {
	// contains filtered or unexported fields
}

AVDeviceRect wraps AVDeviceRect.

func (*AVDeviceRect) Height

func (s *AVDeviceRect) Height() int

Height gets the height field.

height

func (*AVDeviceRect) RawPtr

func (s *AVDeviceRect) RawPtr() unsafe.Pointer

func (*AVDeviceRect) SetHeight

func (s *AVDeviceRect) SetHeight(value int)

SetHeight sets the height field.

height

func (*AVDeviceRect) SetWidth

func (s *AVDeviceRect) SetWidth(value int)

SetWidth sets the width field.

width

func (*AVDeviceRect) SetX

func (s *AVDeviceRect) SetX(value int)

SetX sets the x field.

x coordinate of top left corner

func (*AVDeviceRect) SetY

func (s *AVDeviceRect) SetY(value int)

SetY sets the y field.

y coordinate of top left corner

func (*AVDeviceRect) Width

func (s *AVDeviceRect) Width() int

Width gets the width field.

width

func (*AVDeviceRect) X

func (s *AVDeviceRect) X() int

X gets the x field.

x coordinate of top left corner

func (*AVDeviceRect) Y

func (s *AVDeviceRect) Y() int

Y gets the y field.

y coordinate of top left corner

type AVDictionary

type AVDictionary struct {
	// contains filtered or unexported fields
}

AVDictionary wraps AVDictionary.

func (*AVDictionary) RawPtr

func (s *AVDictionary) RawPtr() unsafe.Pointer

type AVDictionaryEntry

type AVDictionaryEntry struct {
	// contains filtered or unexported fields
}

AVDictionaryEntry wraps AVDictionaryEntry.

func AVDictGet

func AVDictGet(m *AVDictionary, key *CStr, prev *AVDictionaryEntry, flags int) *AVDictionaryEntry

AVDictGet wraps av_dict_get.

Get a dictionary entry with matching key.

The returned entry key or value must not be changed, or it will
cause undefined behavior.

@param prev  Set to the previous matching element to find the next.
             If set to NULL the first matching element is returned.
@param key   Matching key
@param flags A collection of AV_DICT_* flags controlling how the
             entry is retrieved

@return      Found entry or NULL in case no matching entry was found in the dictionary

func AVDictIterate

func AVDictIterate(m *AVDictionary, prev *AVDictionaryEntry) *AVDictionaryEntry

AVDictIterate wraps av_dict_iterate.

Iterate over a dictionary

Iterates through all entries in the dictionary.

@warning The returned AVDictionaryEntry key/value must not be changed.

@warning As av_dict_set() invalidates all previous entries returned
by this function, it must not be called while iterating over the dict.

Typical usage:
@code
const AVDictionaryEntry *e = NULL;
while ((e = av_dict_iterate(m, e))) {
    // ...
}
@endcode

@param m     The dictionary to iterate over
@param prev  Pointer to the previous AVDictionaryEntry, NULL initially

@retval AVDictionaryEntry* The next element in the dictionary
@retval NULL               No more elements in the dictionary

func (*AVDictionaryEntry) Key

func (s *AVDictionaryEntry) Key() *CStr

Key gets the key field.

func (*AVDictionaryEntry) RawPtr

func (s *AVDictionaryEntry) RawPtr() unsafe.Pointer

func (*AVDictionaryEntry) SetKey

func (s *AVDictionaryEntry) SetKey(value *CStr)

SetKey sets the key field.

func (*AVDictionaryEntry) SetValue

func (s *AVDictionaryEntry) SetValue(value *CStr)

SetValue sets the value field.

func (*AVDictionaryEntry) Value

func (s *AVDictionaryEntry) Value() *CStr

Value gets the value field.

type AVDiscard

type AVDiscard C.enum_AVDiscard

AVDiscard wraps AVDiscard.

const (
	// AVDiscardNone wraps AVDISCARD_NONE.
	//
	//	discard nothing
	AVDiscardNone AVDiscard = C.AVDISCARD_NONE
	// AVDiscardDefault wraps AVDISCARD_DEFAULT.
	//
	//	discard useless packets like 0 size packets in avi
	AVDiscardDefault AVDiscard = C.AVDISCARD_DEFAULT
	// AVDiscardNonref wraps AVDISCARD_NONREF.
	//
	//	discard all non reference
	AVDiscardNonref AVDiscard = C.AVDISCARD_NONREF
	// AVDiscardBidir wraps AVDISCARD_BIDIR.
	//
	//	discard all bidirectional frames
	AVDiscardBidir AVDiscard = C.AVDISCARD_BIDIR
	// AVDiscardNonintra wraps AVDISCARD_NONINTRA.
	//
	//	discard all non intra frames
	AVDiscardNonintra AVDiscard = C.AVDISCARD_NONINTRA
	// AVDiscardNonkey wraps AVDISCARD_NONKEY.
	//
	//	discard all frames except keyframes
	AVDiscardNonkey AVDiscard = C.AVDISCARD_NONKEY
	// AVDiscardAll wraps AVDISCARD_ALL.
	//
	//	discard all
	AVDiscardAll AVDiscard = C.AVDISCARD_ALL
)

type AVDownmixInfo

type AVDownmixInfo struct {
	// contains filtered or unexported fields
}

AVDownmixInfo wraps AVDownmixInfo.

This structure describes optional metadata relevant to a downmix procedure.

All fields are set by the decoder to the value indicated in the audio
bitstream (if present), or to a "sane" default otherwise.

func AVDownmixInfoUpdateSideData

func AVDownmixInfoUpdateSideData(frame *AVFrame) *AVDownmixInfo

AVDownmixInfoUpdateSideData wraps av_downmix_info_update_side_data.

Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing.

If the side data is absent, it is created and added to the frame.

@param frame the frame for which the side data is to be obtained or created

@return the AVDownmixInfo structure to be edited by the caller, or NULL if
        the structure cannot be allocated.

func (*AVDownmixInfo) CenterMixLevel

func (s *AVDownmixInfo) CenterMixLevel() float64

CenterMixLevel gets the center_mix_level field.

Absolute scale factor representing the nominal level of the center
channel during a regular downmix.

func (*AVDownmixInfo) CenterMixLevelLtrt

func (s *AVDownmixInfo) CenterMixLevelLtrt() float64

CenterMixLevelLtrt gets the center_mix_level_ltrt field.

Absolute scale factor representing the nominal level of the center
channel during an Lt/Rt compatible downmix.

func (*AVDownmixInfo) LfeMixLevel

func (s *AVDownmixInfo) LfeMixLevel() float64

LfeMixLevel gets the lfe_mix_level field.

Absolute scale factor representing the level at which the LFE data is
mixed into L/R channels during downmixing.

func (*AVDownmixInfo) PreferredDownmixType

func (s *AVDownmixInfo) PreferredDownmixType() AVDownmixType

PreferredDownmixType gets the preferred_downmix_type field.

Type of downmix preferred by the mastering engineer.

func (*AVDownmixInfo) RawPtr

func (s *AVDownmixInfo) RawPtr() unsafe.Pointer

func (*AVDownmixInfo) SetCenterMixLevel

func (s *AVDownmixInfo) SetCenterMixLevel(value float64)

SetCenterMixLevel sets the center_mix_level field.

Absolute scale factor representing the nominal level of the center
channel during a regular downmix.

func (*AVDownmixInfo) SetCenterMixLevelLtrt

func (s *AVDownmixInfo) SetCenterMixLevelLtrt(value float64)

SetCenterMixLevelLtrt sets the center_mix_level_ltrt field.

Absolute scale factor representing the nominal level of the center
channel during an Lt/Rt compatible downmix.

func (*AVDownmixInfo) SetLfeMixLevel

func (s *AVDownmixInfo) SetLfeMixLevel(value float64)

SetLfeMixLevel sets the lfe_mix_level field.

Absolute scale factor representing the level at which the LFE data is
mixed into L/R channels during downmixing.

func (*AVDownmixInfo) SetPreferredDownmixType

func (s *AVDownmixInfo) SetPreferredDownmixType(value AVDownmixType)

SetPreferredDownmixType sets the preferred_downmix_type field.

Type of downmix preferred by the mastering engineer.

func (*AVDownmixInfo) SetSurroundMixLevel

func (s *AVDownmixInfo) SetSurroundMixLevel(value float64)

SetSurroundMixLevel sets the surround_mix_level field.

Absolute scale factor representing the nominal level of the surround
channels during a regular downmix.

func (*AVDownmixInfo) SetSurroundMixLevelLtrt

func (s *AVDownmixInfo) SetSurroundMixLevelLtrt(value float64)

SetSurroundMixLevelLtrt sets the surround_mix_level_ltrt field.

Absolute scale factor representing the nominal level of the surround
channels during an Lt/Rt compatible downmix.

func (*AVDownmixInfo) SurroundMixLevel

func (s *AVDownmixInfo) SurroundMixLevel() float64

SurroundMixLevel gets the surround_mix_level field.

Absolute scale factor representing the nominal level of the surround
channels during a regular downmix.

func (*AVDownmixInfo) SurroundMixLevelLtrt

func (s *AVDownmixInfo) SurroundMixLevelLtrt() float64

SurroundMixLevelLtrt gets the surround_mix_level_ltrt field.

Absolute scale factor representing the nominal level of the surround
channels during an Lt/Rt compatible downmix.

type AVDownmixType

type AVDownmixType C.enum_AVDownmixType

AVDownmixType wraps AVDownmixType.

Possible downmix types.
const (
	// AVDownmixTypeUnknown wraps AV_DOWNMIX_TYPE_UNKNOWN.
	//
	//	Not indicated.
	AVDownmixTypeUnknown AVDownmixType = C.AV_DOWNMIX_TYPE_UNKNOWN
	// AVDownmixTypeLoro wraps AV_DOWNMIX_TYPE_LORO.
	//
	//	Lo/Ro 2-channel downmix (Stereo).
	AVDownmixTypeLoro AVDownmixType = C.AV_DOWNMIX_TYPE_LORO
	// AVDownmixTypeLtrt wraps AV_DOWNMIX_TYPE_LTRT.
	//
	//	Lt/Rt 2-channel downmix, Dolby Surround compatible.
	AVDownmixTypeLtrt AVDownmixType = C.AV_DOWNMIX_TYPE_LTRT
	// AVDownmixTypeDplii wraps AV_DOWNMIX_TYPE_DPLII.
	//
	//	Lt/Rt 2-channel downmix, Dolby Pro Logic II compatible.
	AVDownmixTypeDplii AVDownmixType = C.AV_DOWNMIX_TYPE_DPLII
	// AVDownmixTypeNb wraps AV_DOWNMIX_TYPE_NB.
	//
	//	Number of downmix types. Not part of ABI.
	AVDownmixTypeNb AVDownmixType = C.AV_DOWNMIX_TYPE_NB
)

type AVDurationEstimationMethod

type AVDurationEstimationMethod C.enum_AVDurationEstimationMethod

AVDurationEstimationMethod wraps AVDurationEstimationMethod.

The duration of a video can be estimated through various ways, and this enum can be used
to know how the duration was estimated.
const (
	// AVFmtDurationFromPts wraps AVFMT_DURATION_FROM_PTS.
	//
	//	Duration accurately estimated from PTSes
	AVFmtDurationFromPts AVDurationEstimationMethod = C.AVFMT_DURATION_FROM_PTS
	// AVFmtDurationFromStream wraps AVFMT_DURATION_FROM_STREAM.
	//
	//	Duration estimated from a stream with a known duration
	AVFmtDurationFromStream AVDurationEstimationMethod = C.AVFMT_DURATION_FROM_STREAM
	// AVFmtDurationFromBitrate wraps AVFMT_DURATION_FROM_BITRATE.
	//
	//	Duration estimated from bitrate (less accurate)
	AVFmtDurationFromBitrate AVDurationEstimationMethod = C.AVFMT_DURATION_FROM_BITRATE
)

type AVDynamicHDRPlus

type AVDynamicHDRPlus struct {
	// contains filtered or unexported fields
}

AVDynamicHDRPlus wraps AVDynamicHDRPlus.

This struct represents dynamic metadata for color volume transform -
application 4 of SMPTE 2094-40:2016 standard.

To be used as payload of a AVFrameSideData or AVPacketSideData with the
appropriate type.

@note The struct should be allocated with
av_dynamic_hdr_plus_alloc() and its size is not a part of
the public ABI.

func AVDynamicHdrPlusAlloc

func AVDynamicHdrPlusAlloc(size *uint64) *AVDynamicHDRPlus

AVDynamicHdrPlusAlloc wraps av_dynamic_hdr_plus_alloc.

Allocate an AVDynamicHDRPlus structure and set its fields to
default values. The resulting struct can be freed using av_freep().

@return An AVDynamicHDRPlus filled with default values or NULL
        on failure.

func AVDynamicHdrPlusCreateSideData

func AVDynamicHdrPlusCreateSideData(frame *AVFrame) *AVDynamicHDRPlus

AVDynamicHdrPlusCreateSideData wraps av_dynamic_hdr_plus_create_side_data.

Allocate a complete AVDynamicHDRPlus and add it to the frame.
@param frame The frame which side data is added to.

@return The AVDynamicHDRPlus structure to be filled by caller or NULL
        on failure.

func (*AVDynamicHDRPlus) ApplicationVersion

func (s *AVDynamicHDRPlus) ApplicationVersion() uint8

ApplicationVersion gets the application_version field.

Application version in the application defining document in ST-2094
suite. The value shall be set to 0.

func (*AVDynamicHDRPlus) ItuTT35CountryCode

func (s *AVDynamicHDRPlus) ItuTT35CountryCode() uint8

ItuTT35CountryCode gets the itu_t_t35_country_code field.

Country code by Rec. ITU-T T.35 Annex A. The value shall be 0xB5.

func (*AVDynamicHDRPlus) MasteringDisplayActualPeakLuminanceFlag

func (s *AVDynamicHDRPlus) MasteringDisplayActualPeakLuminanceFlag() uint8

MasteringDisplayActualPeakLuminanceFlag gets the mastering_display_actual_peak_luminance_flag field.

This flag shall be equal to 0 in bitstreams conforming to this version of
this Specification. The value 1 is reserved for future use.

func (*AVDynamicHDRPlus) NumColsMasteringDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) NumColsMasteringDisplayActualPeakLuminance() uint8

NumColsMasteringDisplayActualPeakLuminance gets the num_cols_mastering_display_actual_peak_luminance field.

The number of columns in the mastering_display_actual_peak_luminance
array. The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) NumColsTargetedSystemDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) NumColsTargetedSystemDisplayActualPeakLuminance() uint8

NumColsTargetedSystemDisplayActualPeakLuminance gets the num_cols_targeted_system_display_actual_peak_luminance field.

The number of columns in the
targeted_system_display_actual_peak_luminance array. The value shall be
in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) NumRowsMasteringDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) NumRowsMasteringDisplayActualPeakLuminance() uint8

NumRowsMasteringDisplayActualPeakLuminance gets the num_rows_mastering_display_actual_peak_luminance field.

The number of rows in the mastering_display_actual_peak_luminance array.
The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) NumRowsTargetedSystemDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) NumRowsTargetedSystemDisplayActualPeakLuminance() uint8

NumRowsTargetedSystemDisplayActualPeakLuminance gets the num_rows_targeted_system_display_actual_peak_luminance field.

The number of rows in the targeted system_display_actual_peak_luminance
array. The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) NumWindows

func (s *AVDynamicHDRPlus) NumWindows() uint8

NumWindows gets the num_windows field.

The number of processing windows. The value shall be in the range
of 1 to 3, inclusive.

func (*AVDynamicHDRPlus) RawPtr

func (s *AVDynamicHDRPlus) RawPtr() unsafe.Pointer

func (*AVDynamicHDRPlus) SetApplicationVersion

func (s *AVDynamicHDRPlus) SetApplicationVersion(value uint8)

SetApplicationVersion sets the application_version field.

Application version in the application defining document in ST-2094
suite. The value shall be set to 0.

func (*AVDynamicHDRPlus) SetItuTT35CountryCode

func (s *AVDynamicHDRPlus) SetItuTT35CountryCode(value uint8)

SetItuTT35CountryCode sets the itu_t_t35_country_code field.

Country code by Rec. ITU-T T.35 Annex A. The value shall be 0xB5.

func (*AVDynamicHDRPlus) SetMasteringDisplayActualPeakLuminanceFlag

func (s *AVDynamicHDRPlus) SetMasteringDisplayActualPeakLuminanceFlag(value uint8)

SetMasteringDisplayActualPeakLuminanceFlag sets the mastering_display_actual_peak_luminance_flag field.

This flag shall be equal to 0 in bitstreams conforming to this version of
this Specification. The value 1 is reserved for future use.

func (*AVDynamicHDRPlus) SetNumColsMasteringDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) SetNumColsMasteringDisplayActualPeakLuminance(value uint8)

SetNumColsMasteringDisplayActualPeakLuminance sets the num_cols_mastering_display_actual_peak_luminance field.

The number of columns in the mastering_display_actual_peak_luminance
array. The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) SetNumColsTargetedSystemDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) SetNumColsTargetedSystemDisplayActualPeakLuminance(value uint8)

SetNumColsTargetedSystemDisplayActualPeakLuminance sets the num_cols_targeted_system_display_actual_peak_luminance field.

The number of columns in the
targeted_system_display_actual_peak_luminance array. The value shall be
in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) SetNumRowsMasteringDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) SetNumRowsMasteringDisplayActualPeakLuminance(value uint8)

SetNumRowsMasteringDisplayActualPeakLuminance sets the num_rows_mastering_display_actual_peak_luminance field.

The number of rows in the mastering_display_actual_peak_luminance array.
The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) SetNumRowsTargetedSystemDisplayActualPeakLuminance

func (s *AVDynamicHDRPlus) SetNumRowsTargetedSystemDisplayActualPeakLuminance(value uint8)

SetNumRowsTargetedSystemDisplayActualPeakLuminance sets the num_rows_targeted_system_display_actual_peak_luminance field.

The number of rows in the targeted system_display_actual_peak_luminance
array. The value shall be in the range of 2 to 25, inclusive.

func (*AVDynamicHDRPlus) SetNumWindows

func (s *AVDynamicHDRPlus) SetNumWindows(value uint8)

SetNumWindows sets the num_windows field.

The number of processing windows. The value shall be in the range
of 1 to 3, inclusive.

func (*AVDynamicHDRPlus) SetTargetedSystemDisplayActualPeakLuminanceFlag

func (s *AVDynamicHDRPlus) SetTargetedSystemDisplayActualPeakLuminanceFlag(value uint8)

SetTargetedSystemDisplayActualPeakLuminanceFlag sets the targeted_system_display_actual_peak_luminance_flag field.

This flag shall be equal to 0 in bit streams conforming to this version
of this Specification. The value 1 is reserved for future use.

func (*AVDynamicHDRPlus) SetTargetedSystemDisplayMaximumLuminance

func (s *AVDynamicHDRPlus) SetTargetedSystemDisplayMaximumLuminance(value *AVRational)

SetTargetedSystemDisplayMaximumLuminance sets the targeted_system_display_maximum_luminance field.

The nominal maximum display luminance of the targeted system display,
in units of 0.0001 candelas per square metre. The value shall be in
the range of 0 to 10000, inclusive.

func (*AVDynamicHDRPlus) TargetedSystemDisplayActualPeakLuminanceFlag

func (s *AVDynamicHDRPlus) TargetedSystemDisplayActualPeakLuminanceFlag() uint8

TargetedSystemDisplayActualPeakLuminanceFlag gets the targeted_system_display_actual_peak_luminance_flag field.

This flag shall be equal to 0 in bit streams conforming to this version
of this Specification. The value 1 is reserved for future use.

func (*AVDynamicHDRPlus) TargetedSystemDisplayMaximumLuminance

func (s *AVDynamicHDRPlus) TargetedSystemDisplayMaximumLuminance() *AVRational

TargetedSystemDisplayMaximumLuminance gets the targeted_system_display_maximum_luminance field.

The nominal maximum display luminance of the targeted system display,
in units of 0.0001 candelas per square metre. The value shall be in
the range of 0 to 10000, inclusive.

type AVDynamicHDRVivid

type AVDynamicHDRVivid struct {
	// contains filtered or unexported fields
}

AVDynamicHDRVivid wraps AVDynamicHDRVivid.

This struct represents dynamic metadata for color volume transform -
CUVA 005.1:2021 standard

To be used as payload of a AVFrameSideData or AVPacketSideData with the
appropriate type.

@note The struct should be allocated with
av_dynamic_hdr_vivid_alloc() and its size is not a part of
the public ABI.

func AVDynamicHdrVividAlloc

func AVDynamicHdrVividAlloc(size *uint64) *AVDynamicHDRVivid

AVDynamicHdrVividAlloc wraps av_dynamic_hdr_vivid_alloc.

Allocate an AVDynamicHDRVivid structure and set its fields to
default values. The resulting struct can be freed using av_freep().

@return An AVDynamicHDRVivid filled with default values or NULL
        on failure.

func AVDynamicHdrVividCreateSideData

func AVDynamicHdrVividCreateSideData(frame *AVFrame) *AVDynamicHDRVivid

AVDynamicHdrVividCreateSideData wraps av_dynamic_hdr_vivid_create_side_data.

Allocate a complete AVDynamicHDRVivid and add it to the frame.
@param frame The frame which side data is added to.

@return The AVDynamicHDRVivid structure to be filled by caller or NULL
        on failure.

func (*AVDynamicHDRVivid) NumWindows

func (s *AVDynamicHDRVivid) NumWindows() uint8

NumWindows gets the num_windows field.

The number of processing windows. The value shall be set to 0x01
if the system_start_code is 0x01.

func (*AVDynamicHDRVivid) RawPtr

func (s *AVDynamicHDRVivid) RawPtr() unsafe.Pointer

func (*AVDynamicHDRVivid) SetNumWindows

func (s *AVDynamicHDRVivid) SetNumWindows(value uint8)

SetNumWindows sets the num_windows field.

The number of processing windows. The value shall be set to 0x01
if the system_start_code is 0x01.

func (*AVDynamicHDRVivid) SetSystemStartCode

func (s *AVDynamicHDRVivid) SetSystemStartCode(value uint8)

SetSystemStartCode sets the system_start_code field.

The system start code. The value shall be set to 0x01.

func (*AVDynamicHDRVivid) SystemStartCode

func (s *AVDynamicHDRVivid) SystemStartCode() uint8

SystemStartCode gets the system_start_code field.

The system start code. The value shall be set to 0x01.

type AVEncryptionInfo

type AVEncryptionInfo struct {
	// contains filtered or unexported fields
}

AVEncryptionInfo wraps AVEncryptionInfo.

This describes encryption info for a packet.  This contains frame-specific
info for how to decrypt the packet before passing it to the decoder.

The size of this struct is not part of the public ABI.

func AVEncryptionInfoAlloc

func AVEncryptionInfoAlloc(subsampleCount uint32, keyIdSize uint32, ivSize uint32) *AVEncryptionInfo

AVEncryptionInfoAlloc wraps av_encryption_info_alloc.

Allocates an AVEncryptionInfo structure and sub-pointers to hold the given
number of subsamples.  This will allocate pointers for the key ID, IV,
and subsample entries, set the size members, and zero-initialize the rest.

@param subsample_count The number of subsamples.
@param key_id_size The number of bytes in the key ID, should be 16.
@param iv_size The number of bytes in the IV, should be 16.

@return The new AVEncryptionInfo structure, or NULL on error.

func AVEncryptionInfoClone

func AVEncryptionInfoClone(info *AVEncryptionInfo) *AVEncryptionInfo

AVEncryptionInfoClone wraps av_encryption_info_clone.

Allocates an AVEncryptionInfo structure with a copy of the given data.
@return The new AVEncryptionInfo structure, or NULL on error.

func AVEncryptionInfoGetSideData

func AVEncryptionInfoGetSideData(sideData unsafe.Pointer, sideDataSize uint64) *AVEncryptionInfo

AVEncryptionInfoGetSideData wraps av_encryption_info_get_side_data.

Creates a copy of the AVEncryptionInfo that is contained in the given side
data.  The resulting object should be passed to av_encryption_info_free()
when done.

@return The new AVEncryptionInfo structure, or NULL on error.

func (*AVEncryptionInfo) CryptByteBlock

func (s *AVEncryptionInfo) CryptByteBlock() uint32

CryptByteBlock gets the crypt_byte_block field.

Only used for pattern encryption.  This is the number of 16-byte blocks
that are encrypted.

func (*AVEncryptionInfo) Iv

Iv gets the iv field.

The initialization vector.  This may have been zero-filled to be the
correct block size.  This should always be 16 bytes long, but may be
changed in the future.

func (*AVEncryptionInfo) IvSize

func (s *AVEncryptionInfo) IvSize() uint32

IvSize gets the iv_size field.

func (*AVEncryptionInfo) KeyId

func (s *AVEncryptionInfo) KeyId() unsafe.Pointer

KeyId gets the key_id field.

The ID of the key used to encrypt the packet.  This should always be
16 bytes long, but may be changed in the future.

func (*AVEncryptionInfo) KeyIdSize

func (s *AVEncryptionInfo) KeyIdSize() uint32

KeyIdSize gets the key_id_size field.

func (*AVEncryptionInfo) RawPtr

func (s *AVEncryptionInfo) RawPtr() unsafe.Pointer

func (*AVEncryptionInfo) Scheme

func (s *AVEncryptionInfo) Scheme() uint32

Scheme gets the scheme field.

The fourcc encryption scheme, in big-endian byte order.

func (*AVEncryptionInfo) SetCryptByteBlock

func (s *AVEncryptionInfo) SetCryptByteBlock(value uint32)

SetCryptByteBlock sets the crypt_byte_block field.

Only used for pattern encryption.  This is the number of 16-byte blocks
that are encrypted.

func (*AVEncryptionInfo) SetIv

func (s *AVEncryptionInfo) SetIv(value unsafe.Pointer)

SetIv sets the iv field.

The initialization vector.  This may have been zero-filled to be the
correct block size.  This should always be 16 bytes long, but may be
changed in the future.

func (*AVEncryptionInfo) SetIvSize

func (s *AVEncryptionInfo) SetIvSize(value uint32)

SetIvSize sets the iv_size field.

func (*AVEncryptionInfo) SetKeyId

func (s *AVEncryptionInfo) SetKeyId(value unsafe.Pointer)

SetKeyId sets the key_id field.

The ID of the key used to encrypt the packet.  This should always be
16 bytes long, but may be changed in the future.

func (*AVEncryptionInfo) SetKeyIdSize

func (s *AVEncryptionInfo) SetKeyIdSize(value uint32)

SetKeyIdSize sets the key_id_size field.

func (*AVEncryptionInfo) SetScheme

func (s *AVEncryptionInfo) SetScheme(value uint32)

SetScheme sets the scheme field.

The fourcc encryption scheme, in big-endian byte order.

func (*AVEncryptionInfo) SetSkipByteBlock

func (s *AVEncryptionInfo) SetSkipByteBlock(value uint32)

SetSkipByteBlock sets the skip_byte_block field.

Only used for pattern encryption.  This is the number of 16-byte blocks
that are clear.

func (*AVEncryptionInfo) SetSubsampleCount

func (s *AVEncryptionInfo) SetSubsampleCount(value uint32)

SetSubsampleCount sets the subsample_count field.

func (*AVEncryptionInfo) SetSubsamples

func (s *AVEncryptionInfo) SetSubsamples(value *AVSubsampleEncryptionInfo)

SetSubsamples sets the subsamples field.

An array of subsample encryption info specifying how parts of the sample
are encrypted.  If there are no subsamples, then the whole sample is
encrypted.

func (*AVEncryptionInfo) SkipByteBlock

func (s *AVEncryptionInfo) SkipByteBlock() uint32

SkipByteBlock gets the skip_byte_block field.

Only used for pattern encryption.  This is the number of 16-byte blocks
that are clear.

func (*AVEncryptionInfo) SubsampleCount

func (s *AVEncryptionInfo) SubsampleCount() uint32

SubsampleCount gets the subsample_count field.

func (*AVEncryptionInfo) Subsamples

Subsamples gets the subsamples field.

An array of subsample encryption info specifying how parts of the sample
are encrypted.  If there are no subsamples, then the whole sample is
encrypted.

type AVEncryptionInitInfo

type AVEncryptionInitInfo struct {
	// contains filtered or unexported fields
}

AVEncryptionInitInfo wraps AVEncryptionInitInfo.

This describes info used to initialize an encryption key system.

The size of this struct is not part of the public ABI.

func AVEncryptionInitInfoAlloc

func AVEncryptionInitInfoAlloc(systemIdSize uint32, numKeyIds uint32, keyIdSize uint32, dataSize uint32) *AVEncryptionInitInfo

AVEncryptionInitInfoAlloc wraps av_encryption_init_info_alloc.

Allocates an AVEncryptionInitInfo structure and sub-pointers to hold the
given sizes.  This will allocate pointers and set all the fields.

@return The new AVEncryptionInitInfo structure, or NULL on error.

func AVEncryptionInitInfoGetSideData

func AVEncryptionInitInfoGetSideData(sideData unsafe.Pointer, sideDataSize uint64) *AVEncryptionInitInfo

AVEncryptionInitInfoGetSideData wraps av_encryption_init_info_get_side_data.

Creates a copy of the AVEncryptionInitInfo that is contained in the given
side data.  The resulting object should be passed to
av_encryption_init_info_free() when done.

@return The new AVEncryptionInitInfo structure, or NULL on error.

func (*AVEncryptionInitInfo) Data

Data gets the data field.

Key-system specific initialization data.  This data is copied directly
from the file and the format depends on the specific key system.  This
can be NULL if there is no initialization data; in that case, there
will be at least one key ID.

func (*AVEncryptionInitInfo) DataSize

func (s *AVEncryptionInitInfo) DataSize() uint32

DataSize gets the data_size field.

func (*AVEncryptionInitInfo) KeyIdSize

func (s *AVEncryptionInitInfo) KeyIdSize() uint32

KeyIdSize gets the key_id_size field.

The number of bytes in each key ID.  This should always be 16, but may
change in the future.

func (*AVEncryptionInitInfo) Next

Next gets the next field.

An optional pointer to the next initialization info in the list.

func (*AVEncryptionInitInfo) NumKeyIds

func (s *AVEncryptionInitInfo) NumKeyIds() uint32

NumKeyIds gets the num_key_ids field.

The number of key IDs.

func (*AVEncryptionInitInfo) RawPtr

func (s *AVEncryptionInitInfo) RawPtr() unsafe.Pointer

func (*AVEncryptionInitInfo) SetData

func (s *AVEncryptionInitInfo) SetData(value unsafe.Pointer)

SetData sets the data field.

Key-system specific initialization data.  This data is copied directly
from the file and the format depends on the specific key system.  This
can be NULL if there is no initialization data; in that case, there
will be at least one key ID.

func (*AVEncryptionInitInfo) SetDataSize

func (s *AVEncryptionInitInfo) SetDataSize(value uint32)

SetDataSize sets the data_size field.

func (*AVEncryptionInitInfo) SetKeyIdSize

func (s *AVEncryptionInitInfo) SetKeyIdSize(value uint32)

SetKeyIdSize sets the key_id_size field.

The number of bytes in each key ID.  This should always be 16, but may
change in the future.

func (*AVEncryptionInitInfo) SetNext

func (s *AVEncryptionInitInfo) SetNext(value *AVEncryptionInitInfo)

SetNext sets the next field.

An optional pointer to the next initialization info in the list.

func (*AVEncryptionInitInfo) SetNumKeyIds

func (s *AVEncryptionInitInfo) SetNumKeyIds(value uint32)

SetNumKeyIds sets the num_key_ids field.

The number of key IDs.

func (*AVEncryptionInitInfo) SetSystemId

func (s *AVEncryptionInitInfo) SetSystemId(value unsafe.Pointer)

SetSystemId sets the system_id field.

A unique identifier for the key system this is for, can be NULL if it
is not known.  This should always be 16 bytes, but may change in the
future.

func (*AVEncryptionInitInfo) SetSystemIdSize

func (s *AVEncryptionInitInfo) SetSystemIdSize(value uint32)

SetSystemIdSize sets the system_id_size field.

func (*AVEncryptionInitInfo) SystemId

func (s *AVEncryptionInitInfo) SystemId() unsafe.Pointer

SystemId gets the system_id field.

A unique identifier for the key system this is for, can be NULL if it
is not known.  This should always be 16 bytes, but may change in the
future.

func (*AVEncryptionInitInfo) SystemIdSize

func (s *AVEncryptionInitInfo) SystemIdSize() uint32

SystemIdSize gets the system_id_size field.

type AVError

type AVError struct {
	Code int
}

AVError represents a non-positive return code from FFmpeg.

func (AVError) Error

func (e AVError) Error() string

type AVEscapeMode

type AVEscapeMode C.enum_AVEscapeMode

AVEscapeMode wraps AVEscapeMode.

const (
	// AVEscapeModeAuto wraps AV_ESCAPE_MODE_AUTO.
	//
	//	Use auto-selected escaping mode.
	AVEscapeModeAuto AVEscapeMode = C.AV_ESCAPE_MODE_AUTO
	// AVEscapeModeBackslash wraps AV_ESCAPE_MODE_BACKSLASH.
	//
	//	Use backslash escaping.
	AVEscapeModeBackslash AVEscapeMode = C.AV_ESCAPE_MODE_BACKSLASH
	// AVEscapeModeQuote wraps AV_ESCAPE_MODE_QUOTE.
	//
	//	Use single-quote escaping.
	AVEscapeModeQuote AVEscapeMode = C.AV_ESCAPE_MODE_QUOTE
	// AVEscapeModeXml wraps AV_ESCAPE_MODE_XML.
	//
	//	Use XML non-markup character data escaping.
	AVEscapeModeXml AVEscapeMode = C.AV_ESCAPE_MODE_XML
)

type AVExecutor

type AVExecutor struct {
	// contains filtered or unexported fields
}

AVExecutor wraps AVExecutor.

func AVExecutorAlloc

func AVExecutorAlloc(callbacks *AVTaskCallbacks, threadCount int) *AVExecutor

AVExecutorAlloc wraps av_executor_alloc.

Alloc executor
@param callbacks callback structure for executor
@param thread_count worker thread number, 0 for run on caller's thread directly
@return return the executor

func (*AVExecutor) RawPtr

func (s *AVExecutor) RawPtr() unsafe.Pointer

type AVExpr

type AVExpr struct {
	// contains filtered or unexported fields
}

AVExpr wraps AVExpr.

func (*AVExpr) RawPtr

func (s *AVExpr) RawPtr() unsafe.Pointer

type AVFieldOrder

type AVFieldOrder C.enum_AVFieldOrder

AVFieldOrder wraps AVFieldOrder.

const (
	// AVFieldUnknown wraps AV_FIELD_UNKNOWN.
	AVFieldUnknown AVFieldOrder = C.AV_FIELD_UNKNOWN
	// AVFieldProgressive wraps AV_FIELD_PROGRESSIVE.
	AVFieldProgressive AVFieldOrder = C.AV_FIELD_PROGRESSIVE
	// AVFieldTt wraps AV_FIELD_TT.
	//
	//	Top coded_first, top displayed first
	AVFieldTt AVFieldOrder = C.AV_FIELD_TT
	// AVFieldBb wraps AV_FIELD_BB.
	//
	//	Bottom coded first, bottom displayed first
	AVFieldBb AVFieldOrder = C.AV_FIELD_BB
	// AVFieldTb wraps AV_FIELD_TB.
	//
	//	Top coded first, bottom displayed first
	AVFieldTb AVFieldOrder = C.AV_FIELD_TB
	// AVFieldBt wraps AV_FIELD_BT.
	//
	//	Bottom coded first, top displayed first
	AVFieldBt AVFieldOrder = C.AV_FIELD_BT
)

type AVFifo

type AVFifo struct {
	// contains filtered or unexported fields
}

AVFifo wraps AVFifo.

func AVFifoAlloc2

func AVFifoAlloc2(elems uint64, elemSize uint64, flags uint) *AVFifo

AVFifoAlloc2 wraps av_fifo_alloc2.

Allocate and initialize an AVFifo with a given element size.

@param elems     initial number of elements that can be stored in the FIFO
@param elem_size Size in bytes of a single element. Further operations on
                 the returned FIFO will implicitly use this element size.
@param flags a combination of AV_FIFO_FLAG_*

@return newly-allocated AVFifo on success, a negative error code on failure

func (*AVFifo) RawPtr

func (s *AVFifo) RawPtr() unsafe.Pointer

type AVFifocb

type AVFifocb unsafe.Pointer

AVFifocb is a function pointer typedef for AVFifoCB.

type AVFilmGrainAOMParams

type AVFilmGrainAOMParams struct {
	// contains filtered or unexported fields
}

AVFilmGrainAOMParams wraps AVFilmGrainAOMParams.

This structure describes how to handle film grain synthesis for AOM codecs.

@note The struct must be allocated as part of AVFilmGrainParams using
      av_film_grain_params_alloc(). Its size is not a part of the public ABI.

func (*AVFilmGrainAOMParams) ArCoeffLag

func (s *AVFilmGrainAOMParams) ArCoeffLag() int

ArCoeffLag gets the ar_coeff_lag field.

Specifies the auto-regression lag.

func (*AVFilmGrainAOMParams) ArCoeffShift

func (s *AVFilmGrainAOMParams) ArCoeffShift() int

ArCoeffShift gets the ar_coeff_shift field.

Specifies the range of the auto-regressive coefficients. Values of 6,
7, 8 and so on represent a range of [-2, 2), [-1, 1), [-0.5, 0.5) and
so on. For AV1 must be between 6 and 9.

func (*AVFilmGrainAOMParams) ArCoeffsY

func (s *AVFilmGrainAOMParams) ArCoeffsY() *Array[int8]

ArCoeffsY gets the ar_coeffs_y field.

Luma auto-regression coefficients. The number of coefficients is given by
2 * ar_coeff_lag * (ar_coeff_lag + 1).

func (*AVFilmGrainAOMParams) ChromaScalingFromLuma

func (s *AVFilmGrainAOMParams) ChromaScalingFromLuma() int

ChromaScalingFromLuma gets the chroma_scaling_from_luma field.

Signals whether to derive the chroma scaling function from the luma.
Not equivalent to copying the luma values and scales.

func (*AVFilmGrainAOMParams) GrainScaleShift

func (s *AVFilmGrainAOMParams) GrainScaleShift() int

GrainScaleShift gets the grain_scale_shift field.

Signals the down shift applied to the generated gaussian numbers during
synthesis.

func (*AVFilmGrainAOMParams) LimitOutputRange

func (s *AVFilmGrainAOMParams) LimitOutputRange() int

LimitOutputRange gets the limit_output_range field.

Signals to clip to limited color levels after film grain application.

func (*AVFilmGrainAOMParams) NumUvPoints

func (s *AVFilmGrainAOMParams) NumUvPoints() *Array[int]

NumUvPoints gets the num_uv_points field.

cb, cr

func (*AVFilmGrainAOMParams) NumYPoints

func (s *AVFilmGrainAOMParams) NumYPoints() int

NumYPoints gets the num_y_points field.

Number of points, and the scale and value for each point of the
piecewise linear scaling function for the uma plane.

func (*AVFilmGrainAOMParams) OverlapFlag

func (s *AVFilmGrainAOMParams) OverlapFlag() int

OverlapFlag gets the overlap_flag field.

Signals whether to overlap film grain blocks.

func (*AVFilmGrainAOMParams) RawPtr

func (s *AVFilmGrainAOMParams) RawPtr() unsafe.Pointer

func (*AVFilmGrainAOMParams) ScalingShift

func (s *AVFilmGrainAOMParams) ScalingShift() int

ScalingShift gets the scaling_shift field.

Specifies the shift applied to the chroma components. For AV1, its within
[8; 11] and determines the range and quantization of the film grain.

func (*AVFilmGrainAOMParams) SetArCoeffLag

func (s *AVFilmGrainAOMParams) SetArCoeffLag(value int)

SetArCoeffLag sets the ar_coeff_lag field.

Specifies the auto-regression lag.

func (*AVFilmGrainAOMParams) SetArCoeffShift

func (s *AVFilmGrainAOMParams) SetArCoeffShift(value int)

SetArCoeffShift sets the ar_coeff_shift field.

Specifies the range of the auto-regressive coefficients. Values of 6,
7, 8 and so on represent a range of [-2, 2), [-1, 1), [-0.5, 0.5) and
so on. For AV1 must be between 6 and 9.

func (*AVFilmGrainAOMParams) SetChromaScalingFromLuma

func (s *AVFilmGrainAOMParams) SetChromaScalingFromLuma(value int)

SetChromaScalingFromLuma sets the chroma_scaling_from_luma field.

Signals whether to derive the chroma scaling function from the luma.
Not equivalent to copying the luma values and scales.

func (*AVFilmGrainAOMParams) SetGrainScaleShift

func (s *AVFilmGrainAOMParams) SetGrainScaleShift(value int)

SetGrainScaleShift sets the grain_scale_shift field.

Signals the down shift applied to the generated gaussian numbers during
synthesis.

func (*AVFilmGrainAOMParams) SetLimitOutputRange

func (s *AVFilmGrainAOMParams) SetLimitOutputRange(value int)

SetLimitOutputRange sets the limit_output_range field.

Signals to clip to limited color levels after film grain application.

func (*AVFilmGrainAOMParams) SetNumYPoints

func (s *AVFilmGrainAOMParams) SetNumYPoints(value int)

SetNumYPoints sets the num_y_points field.

Number of points, and the scale and value for each point of the
piecewise linear scaling function for the uma plane.

func (*AVFilmGrainAOMParams) SetOverlapFlag

func (s *AVFilmGrainAOMParams) SetOverlapFlag(value int)

SetOverlapFlag sets the overlap_flag field.

Signals whether to overlap film grain blocks.

func (*AVFilmGrainAOMParams) SetScalingShift

func (s *AVFilmGrainAOMParams) SetScalingShift(value int)

SetScalingShift sets the scaling_shift field.

Specifies the shift applied to the chroma components. For AV1, its within
[8; 11] and determines the range and quantization of the film grain.

func (*AVFilmGrainAOMParams) UvMult

func (s *AVFilmGrainAOMParams) UvMult() *Array[int]

UvMult gets the uv_mult field.

cb, cr

func (*AVFilmGrainAOMParams) UvMultLuma

func (s *AVFilmGrainAOMParams) UvMultLuma() *Array[int]

UvMultLuma gets the uv_mult_luma field.

cb, cr

func (*AVFilmGrainAOMParams) UvOffset

func (s *AVFilmGrainAOMParams) UvOffset() *Array[int]

UvOffset gets the uv_offset field.

cb, cr

type AVFilmGrainH274Params

type AVFilmGrainH274Params struct {
	// contains filtered or unexported fields
}

AVFilmGrainH274Params wraps AVFilmGrainH274Params.

This structure describes how to handle film grain synthesis for codecs using
the ITU-T H.274 Versatile supplemental enhancement information message.

@note The struct must be allocated as part of AVFilmGrainParams using
      av_film_grain_params_alloc(). Its size is not a part of the public ABI.

func (*AVFilmGrainH274Params) BlendingModeId

func (s *AVFilmGrainH274Params) BlendingModeId() int

BlendingModeId gets the blending_mode_id field.

Specifies the blending mode used to blend the simulated film grain
with the decoded images.

0 = Additive, 1 = Multiplicative

func (*AVFilmGrainH274Params) ComponentModelPresent

func (s *AVFilmGrainH274Params) ComponentModelPresent() *Array[int]

ComponentModelPresent gets the component_model_present field.

y, cb, cr

func (*AVFilmGrainH274Params) Log2ScaleFactor

func (s *AVFilmGrainH274Params) Log2ScaleFactor() int

Log2ScaleFactor gets the log2_scale_factor field.

Specifies a scale factor used in the film grain characterization equations.

func (*AVFilmGrainH274Params) ModelId

func (s *AVFilmGrainH274Params) ModelId() int

ModelId gets the model_id field.

Specifies the film grain simulation mode.
0 = Frequency filtering, 1 = Auto-regression

func (*AVFilmGrainH274Params) NumIntensityIntervals

func (s *AVFilmGrainH274Params) NumIntensityIntervals() *Array[uint16]

NumIntensityIntervals gets the num_intensity_intervals field.

y, cb, cr

func (*AVFilmGrainH274Params) NumModelValues

func (s *AVFilmGrainH274Params) NumModelValues() *Array[uint8]

NumModelValues gets the num_model_values field.

y, cb, cr

func (*AVFilmGrainH274Params) RawPtr

func (s *AVFilmGrainH274Params) RawPtr() unsafe.Pointer

func (*AVFilmGrainH274Params) SetBlendingModeId

func (s *AVFilmGrainH274Params) SetBlendingModeId(value int)

SetBlendingModeId sets the blending_mode_id field.

Specifies the blending mode used to blend the simulated film grain
with the decoded images.

0 = Additive, 1 = Multiplicative

func (*AVFilmGrainH274Params) SetLog2ScaleFactor

func (s *AVFilmGrainH274Params) SetLog2ScaleFactor(value int)

SetLog2ScaleFactor sets the log2_scale_factor field.

Specifies a scale factor used in the film grain characterization equations.

func (*AVFilmGrainH274Params) SetModelId

func (s *AVFilmGrainH274Params) SetModelId(value int)

SetModelId sets the model_id field.

Specifies the film grain simulation mode.
0 = Frequency filtering, 1 = Auto-regression

type AVFilmGrainParams

type AVFilmGrainParams struct {
	// contains filtered or unexported fields
}

AVFilmGrainParams wraps AVFilmGrainParams.

This structure describes how to handle film grain synthesis in video
for specific codecs. Must be present on every frame where film grain is
meant to be synthesised for correct presentation.

@note The struct must be allocated with av_film_grain_params_alloc() and
      its size is not a part of the public ABI.

func AVFilmGrainParamsAlloc

func AVFilmGrainParamsAlloc(size *uint64) *AVFilmGrainParams

AVFilmGrainParamsAlloc wraps av_film_grain_params_alloc.

Allocate an AVFilmGrainParams structure and set its fields to
default values. The resulting struct can be freed using av_freep().
If size is not NULL it will be set to the number of bytes allocated.

@return An AVFilmGrainParams filled with default values or NULL
        on failure.

func AVFilmGrainParamsCreateSideData

func AVFilmGrainParamsCreateSideData(frame *AVFrame) *AVFilmGrainParams

AVFilmGrainParamsCreateSideData wraps av_film_grain_params_create_side_data.

Allocate a complete AVFilmGrainParams and add it to the frame.

@param frame The frame which side data is added to.

@return The AVFilmGrainParams structure to be filled by caller.

func AVFilmGrainParamsSelect

func AVFilmGrainParamsSelect(frame *AVFrame) *AVFilmGrainParams

AVFilmGrainParamsSelect wraps av_film_grain_params_select.

Select the most appropriate film grain parameters set for the frame,
taking into account the frame's format, resolution and video signal
characteristics.

@note, for H.274, this may select a film grain parameter set with
greater chroma resolution than the frame. Users should take care to
correctly adjust the chroma grain frequency to the frame.

func (*AVFilmGrainParams) BitDepthChroma

func (s *AVFilmGrainParams) BitDepthChroma() int

BitDepthChroma gets the bit_depth_chroma field.

func (*AVFilmGrainParams) BitDepthLuma

func (s *AVFilmGrainParams) BitDepthLuma() int

BitDepthLuma gets the bit_depth_luma field.

Intended bit depth, or 0 for unknown/unspecified.

func (*AVFilmGrainParams) ColorPrimaries

func (s *AVFilmGrainParams) ColorPrimaries() AVColorPrimaries

ColorPrimaries gets the color_primaries field.

func (*AVFilmGrainParams) ColorRange

func (s *AVFilmGrainParams) ColorRange() AVColorRange

ColorRange gets the color_range field.

Intended video signal characteristics.

func (*AVFilmGrainParams) ColorSpace

func (s *AVFilmGrainParams) ColorSpace() AVColorSpace

ColorSpace gets the color_space field.

func (*AVFilmGrainParams) ColorTrc

ColorTrc gets the color_trc field.

func (*AVFilmGrainParams) Height

func (s *AVFilmGrainParams) Height() int

Height gets the height field.

Intended display resolution. May be 0 if the codec does not specify
any restrictions.

func (*AVFilmGrainParams) RawPtr

func (s *AVFilmGrainParams) RawPtr() unsafe.Pointer

func (*AVFilmGrainParams) Seed

func (s *AVFilmGrainParams) Seed() uint64

Seed gets the seed field.

Seed to use for the synthesis process, if the codec allows for it.

@note For H.264, this refers to `pic_offset` as defined in
      SMPTE RDD 5-2006.

func (*AVFilmGrainParams) SetBitDepthChroma

func (s *AVFilmGrainParams) SetBitDepthChroma(value int)

SetBitDepthChroma sets the bit_depth_chroma field.

func (*AVFilmGrainParams) SetBitDepthLuma

func (s *AVFilmGrainParams) SetBitDepthLuma(value int)

SetBitDepthLuma sets the bit_depth_luma field.

Intended bit depth, or 0 for unknown/unspecified.

func (*AVFilmGrainParams) SetColorPrimaries

func (s *AVFilmGrainParams) SetColorPrimaries(value AVColorPrimaries)

SetColorPrimaries sets the color_primaries field.

func (*AVFilmGrainParams) SetColorRange

func (s *AVFilmGrainParams) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

Intended video signal characteristics.

func (*AVFilmGrainParams) SetColorSpace

func (s *AVFilmGrainParams) SetColorSpace(value AVColorSpace)

SetColorSpace sets the color_space field.

func (*AVFilmGrainParams) SetColorTrc

func (s *AVFilmGrainParams) SetColorTrc(value AVColorTransferCharacteristic)

SetColorTrc sets the color_trc field.

func (*AVFilmGrainParams) SetHeight

func (s *AVFilmGrainParams) SetHeight(value int)

SetHeight sets the height field.

Intended display resolution. May be 0 if the codec does not specify
any restrictions.

func (*AVFilmGrainParams) SetSeed

func (s *AVFilmGrainParams) SetSeed(value uint64)

SetSeed sets the seed field.

Seed to use for the synthesis process, if the codec allows for it.

@note For H.264, this refers to `pic_offset` as defined in
      SMPTE RDD 5-2006.

func (*AVFilmGrainParams) SetSubsamplingX

func (s *AVFilmGrainParams) SetSubsamplingX(value int)

SetSubsamplingX sets the subsampling_x field.

Intended subsampling ratio, or 0 for luma-only streams.

func (*AVFilmGrainParams) SetSubsamplingY

func (s *AVFilmGrainParams) SetSubsamplingY(value int)

SetSubsamplingY sets the subsampling_y field.

Intended subsampling ratio, or 0 for luma-only streams.

func (*AVFilmGrainParams) SetType

func (s *AVFilmGrainParams) SetType(value AVFilmGrainParamsType)

SetType sets the type field.

Specifies the codec for which this structure is valid.

func (*AVFilmGrainParams) SetWidth

func (s *AVFilmGrainParams) SetWidth(value int)

SetWidth sets the width field.

Intended display resolution. May be 0 if the codec does not specify
any restrictions.

func (*AVFilmGrainParams) SubsamplingX

func (s *AVFilmGrainParams) SubsamplingX() int

SubsamplingX gets the subsampling_x field.

Intended subsampling ratio, or 0 for luma-only streams.

func (*AVFilmGrainParams) SubsamplingY

func (s *AVFilmGrainParams) SubsamplingY() int

SubsamplingY gets the subsampling_y field.

Intended subsampling ratio, or 0 for luma-only streams.

func (*AVFilmGrainParams) Type

Type gets the type field.

Specifies the codec for which this structure is valid.

func (*AVFilmGrainParams) Width

func (s *AVFilmGrainParams) Width() int

Width gets the width field.

Intended display resolution. May be 0 if the codec does not specify
any restrictions.

type AVFilmGrainParamsType

type AVFilmGrainParamsType C.enum_AVFilmGrainParamsType

AVFilmGrainParamsType wraps AVFilmGrainParamsType.

const (
	// AVFilmGrainParamsNone wraps AV_FILM_GRAIN_PARAMS_NONE.
	AVFilmGrainParamsNone AVFilmGrainParamsType = C.AV_FILM_GRAIN_PARAMS_NONE
	// AVFilmGrainParamsAV1 wraps AV_FILM_GRAIN_PARAMS_AV1.
	//
	//	The union is valid when interpreted as AVFilmGrainAOMParams (codec.aom)
	AVFilmGrainParamsAV1 AVFilmGrainParamsType = C.AV_FILM_GRAIN_PARAMS_AV1
	// AVFilmGrainParamsH274 wraps AV_FILM_GRAIN_PARAMS_H274.
	//
	//	The union is valid when interpreted as AVFilmGrainH274Params (codec.h274)
	AVFilmGrainParamsH274 AVFilmGrainParamsType = C.AV_FILM_GRAIN_PARAMS_H274
)

type AVFilter

type AVFilter struct {
	// contains filtered or unexported fields
}

AVFilter wraps AVFilter.

Filter definition. This defines the pads a filter contains, and all the
callback functions used to interact with the filter.

func AVFilterGetByName

func AVFilterGetByName(name *CStr) *AVFilter

AVFilterGetByName wraps avfilter_get_by_name.

Get a filter definition matching the given name.

@param name the filter name to find
@return     the filter definition, if any matching one is registered.
            NULL if none found.

func AVFilterIterate

func AVFilterIterate(opaque *unsafe.Pointer) *AVFilter

AVFilterIterate iterates over all registered filters.

@param opaque a pointer where libavfilter will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered filter or NULL when the iteration is finished

func (*AVFilter) Description

func (s *AVFilter) Description() *CStr

Description gets the description field.

A description of the filter. May be NULL.

You should use the NULL_IF_CONFIG_SMALL() macro to define it.

func (*AVFilter) Flags

func (s *AVFilter) Flags() int

Flags gets the flags field.

A combination of AVFILTER_FLAG_*

func (*AVFilter) Inputs

func (s *AVFilter) Inputs() *AVFilterPad

Inputs gets the inputs field.

List of static inputs.

NULL if there are no (static) inputs. Instances of filters with
AVFILTER_FLAG_DYNAMIC_INPUTS set may have more inputs than present in
this list.

func (*AVFilter) Name

func (s *AVFilter) Name() *CStr

Name gets the name field.

Filter name. Must be non-NULL and unique among filters.

func (*AVFilter) Outputs

func (s *AVFilter) Outputs() *AVFilterPad

Outputs gets the outputs field.

List of static outputs.

NULL if there are no (static) outputs. Instances of filters with
AVFILTER_FLAG_DYNAMIC_OUTPUTS set may have more outputs than present in
this list.

func (*AVFilter) PrivClass

func (s *AVFilter) PrivClass() *AVClass

PrivClass gets the priv_class field.

A class for the private data, used to declare filter private AVOptions.
This field is NULL for filters that do not declare any options.

If this field is non-NULL, the first member of the filter private data
must be a pointer to AVClass, which will be set by libavfilter generic
code to this class.

func (*AVFilter) RawPtr

func (s *AVFilter) RawPtr() unsafe.Pointer

func (*AVFilter) SetDescription

func (s *AVFilter) SetDescription(value *CStr)

SetDescription sets the description field.

A description of the filter. May be NULL.

You should use the NULL_IF_CONFIG_SMALL() macro to define it.

func (*AVFilter) SetFlags

func (s *AVFilter) SetFlags(value int)

SetFlags sets the flags field.

A combination of AVFILTER_FLAG_*

func (*AVFilter) SetInputs

func (s *AVFilter) SetInputs(value *AVFilterPad)

SetInputs sets the inputs field.

List of static inputs.

NULL if there are no (static) inputs. Instances of filters with
AVFILTER_FLAG_DYNAMIC_INPUTS set may have more inputs than present in
this list.

func (*AVFilter) SetName

func (s *AVFilter) SetName(value *CStr)

SetName sets the name field.

Filter name. Must be non-NULL and unique among filters.

func (*AVFilter) SetOutputs

func (s *AVFilter) SetOutputs(value *AVFilterPad)

SetOutputs sets the outputs field.

List of static outputs.

NULL if there are no (static) outputs. Instances of filters with
AVFILTER_FLAG_DYNAMIC_OUTPUTS set may have more outputs than present in
this list.

func (*AVFilter) SetPrivClass

func (s *AVFilter) SetPrivClass(value *AVClass)

SetPrivClass sets the priv_class field.

A class for the private data, used to declare filter private AVOptions.
This field is NULL for filters that do not declare any options.

If this field is non-NULL, the first member of the filter private data
must be a pointer to AVClass, which will be set by libavfilter generic
code to this class.

type AVFilterActionFunc

type AVFilterActionFunc unsafe.Pointer

AVFilterActionFunc is a function pointer typedef for avfilter_action_func.

type AVFilterChain

type AVFilterChain struct {
	// contains filtered or unexported fields
}

AVFilterChain wraps AVFilterChain.

A filterchain is a list of filter specifications.

Created as a child of AVFilterGraphSegment by avfilter_graph_segment_parse().
Freed in avfilter_graph_segment_free().

func (*AVFilterChain) Filters

func (s *AVFilterChain) Filters() *Array[*AVFilterParams]

Filters gets the filters field.

func (*AVFilterChain) NbFilters

func (s *AVFilterChain) NbFilters() uint64

NbFilters gets the nb_filters field.

func (*AVFilterChain) RawPtr

func (s *AVFilterChain) RawPtr() unsafe.Pointer

func (*AVFilterChain) SetFilters

func (s *AVFilterChain) SetFilters(value *Array[AVFilterParams])

SetFilters sets the filters field.

func (*AVFilterChain) SetNbFilters

func (s *AVFilterChain) SetNbFilters(value uint64)

SetNbFilters sets the nb_filters field.

type AVFilterChannelLayouts

type AVFilterChannelLayouts struct {
	// contains filtered or unexported fields
}

AVFilterChannelLayouts wraps AVFilterChannelLayouts.

func (*AVFilterChannelLayouts) RawPtr

type AVFilterContext

type AVFilterContext struct {
	// contains filtered or unexported fields
}

AVFilterContext wraps AVFilterContext.

An instance of a filter

func AVFilterGraphAllocFilter

func AVFilterGraphAllocFilter(graph *AVFilterGraph, filter *AVFilter, name *CStr) *AVFilterContext

AVFilterGraphAllocFilter wraps avfilter_graph_alloc_filter.

Create a new filter instance in a filter graph.

@param graph graph in which the new filter will be used
@param filter the filter to create an instance of
@param name Name to give to the new instance (will be copied to
            AVFilterContext.name). This may be used by the caller to identify
            different filters, libavfilter itself assigns no semantics to
            this parameter. May be NULL.

@return the context of the newly created filter instance (note that it is
        also retrievable directly through AVFilterGraph.filters or with
        avfilter_graph_get_filter()) on success or NULL on failure.

func AVFilterGraphGetFilter

func AVFilterGraphGetFilter(graph *AVFilterGraph, name *CStr) *AVFilterContext

AVFilterGraphGetFilter wraps avfilter_graph_get_filter.

Get a filter instance identified by instance name from graph.

@param graph filter graph to search through.
@param name filter instance name (should be unique in the graph).
@return the pointer to the found filter instance or NULL if it
cannot be found.

func (*AVFilterContext) AvClass

func (s *AVFilterContext) AvClass() *AVClass

AvClass gets the av_class field.

needed for av_log() and filters common options

func (*AVFilterContext) Enable

func (s *AVFilterContext) Enable() unsafe.Pointer

Enable gets the enable field.

@deprecated unused

func (*AVFilterContext) EnableStr

func (s *AVFilterContext) EnableStr() *CStr

EnableStr gets the enable_str field.

enable expression string

func (*AVFilterContext) ExtraHwFrames

func (s *AVFilterContext) ExtraHwFrames() int

ExtraHwFrames gets the extra_hw_frames field.

Sets the number of extra hardware frames which the filter will
allocate on its output links for use in following filters or by
the caller.

Some hardware filters require all frames that they will use for
output to be defined in advance before filtering starts.  For such
filters, any hardware frame pools used for output must therefore be
of fixed size.  The extra frames set here are on top of any number
that the filter needs internally in order to operate normally.

This field must be set before the graph containing this filter is
configured.

func (*AVFilterContext) Filter

func (s *AVFilterContext) Filter() *AVFilter

Filter gets the filter field.

the AVFilter of which this is an instance

func (*AVFilterContext) Graph

func (s *AVFilterContext) Graph() *AVFilterGraph

Graph gets the graph field.

filtergraph this filter belongs to

func (*AVFilterContext) HwDeviceCtx

func (s *AVFilterContext) HwDeviceCtx() *AVBufferRef

HwDeviceCtx gets the hw_device_ctx field.

For filters which will create hardware frames, sets the device the
filter should create them in.  All other filters will ignore this field:
in particular, a filter which consumes or processes hardware frames will
instead use the hw_frames_ctx field in AVFilterLink to carry the
hardware context information.

May be set by the caller on filters flagged with AVFILTER_FLAG_HWDEVICE
before initializing the filter with avfilter_init_str() or
avfilter_init_dict().

func (*AVFilterContext) InputPads

func (s *AVFilterContext) InputPads() *AVFilterPad

InputPads gets the input_pads field.

array of input pads

func (*AVFilterContext) Inputs

func (s *AVFilterContext) Inputs() *Array[*AVFilterLink]

Inputs gets the inputs field.

array of pointers to input links

func (*AVFilterContext) IsDisabled

func (s *AVFilterContext) IsDisabled() int

IsDisabled gets the is_disabled field.

MUST NOT be accessed from outside avfilter.

the enabled state from the last expression evaluation

func (*AVFilterContext) Name

func (s *AVFilterContext) Name() *CStr

Name gets the name field.

name of this filter instance

func (*AVFilterContext) NbInputs

func (s *AVFilterContext) NbInputs() uint

NbInputs gets the nb_inputs field.

number of input pads

func (*AVFilterContext) NbOutputs

func (s *AVFilterContext) NbOutputs() uint

NbOutputs gets the nb_outputs field.

number of output pads

func (*AVFilterContext) NbThreads

func (s *AVFilterContext) NbThreads() int

NbThreads gets the nb_threads field.

Max number of threads allowed in this filter instance.
If <= 0, its value is ignored.
Overrides global number of threads set per filter graph.

func (*AVFilterContext) OutputPads

func (s *AVFilterContext) OutputPads() *AVFilterPad

OutputPads gets the output_pads field.

array of output pads

func (*AVFilterContext) Outputs

func (s *AVFilterContext) Outputs() *Array[*AVFilterLink]

Outputs gets the outputs field.

array of pointers to output links

func (*AVFilterContext) Priv

func (s *AVFilterContext) Priv() unsafe.Pointer

Priv gets the priv field.

private data for use by the filter

func (*AVFilterContext) RawPtr

func (s *AVFilterContext) RawPtr() unsafe.Pointer

func (*AVFilterContext) Ready

func (s *AVFilterContext) Ready() uint

Ready gets the ready field.

@deprecated this field should never have been accessed by callers

func (*AVFilterContext) SetAvClass

func (s *AVFilterContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

needed for av_log() and filters common options

func (*AVFilterContext) SetEnable

func (s *AVFilterContext) SetEnable(value unsafe.Pointer)

SetEnable sets the enable field.

@deprecated unused

func (*AVFilterContext) SetEnableStr

func (s *AVFilterContext) SetEnableStr(value *CStr)

SetEnableStr sets the enable_str field.

enable expression string

func (*AVFilterContext) SetExtraHwFrames

func (s *AVFilterContext) SetExtraHwFrames(value int)

SetExtraHwFrames sets the extra_hw_frames field.

Sets the number of extra hardware frames which the filter will
allocate on its output links for use in following filters or by
the caller.

Some hardware filters require all frames that they will use for
output to be defined in advance before filtering starts.  For such
filters, any hardware frame pools used for output must therefore be
of fixed size.  The extra frames set here are on top of any number
that the filter needs internally in order to operate normally.

This field must be set before the graph containing this filter is
configured.

func (*AVFilterContext) SetFilter

func (s *AVFilterContext) SetFilter(value *AVFilter)

SetFilter sets the filter field.

the AVFilter of which this is an instance

func (*AVFilterContext) SetGraph

func (s *AVFilterContext) SetGraph(value *AVFilterGraph)

SetGraph sets the graph field.

filtergraph this filter belongs to

func (*AVFilterContext) SetHwDeviceCtx

func (s *AVFilterContext) SetHwDeviceCtx(value *AVBufferRef)

SetHwDeviceCtx sets the hw_device_ctx field.

For filters which will create hardware frames, sets the device the
filter should create them in.  All other filters will ignore this field:
in particular, a filter which consumes or processes hardware frames will
instead use the hw_frames_ctx field in AVFilterLink to carry the
hardware context information.

May be set by the caller on filters flagged with AVFILTER_FLAG_HWDEVICE
before initializing the filter with avfilter_init_str() or
avfilter_init_dict().

func (*AVFilterContext) SetInputPads

func (s *AVFilterContext) SetInputPads(value *AVFilterPad)

SetInputPads sets the input_pads field.

array of input pads

func (*AVFilterContext) SetInputs

func (s *AVFilterContext) SetInputs(value *Array[AVFilterLink])

SetInputs sets the inputs field.

array of pointers to input links

func (*AVFilterContext) SetIsDisabled

func (s *AVFilterContext) SetIsDisabled(value int)

SetIsDisabled sets the is_disabled field.

MUST NOT be accessed from outside avfilter.

the enabled state from the last expression evaluation

func (*AVFilterContext) SetName

func (s *AVFilterContext) SetName(value *CStr)

SetName sets the name field.

name of this filter instance

func (*AVFilterContext) SetNbInputs

func (s *AVFilterContext) SetNbInputs(value uint)

SetNbInputs sets the nb_inputs field.

number of input pads

func (*AVFilterContext) SetNbOutputs

func (s *AVFilterContext) SetNbOutputs(value uint)

SetNbOutputs sets the nb_outputs field.

number of output pads

func (*AVFilterContext) SetNbThreads

func (s *AVFilterContext) SetNbThreads(value int)

SetNbThreads sets the nb_threads field.

Max number of threads allowed in this filter instance.
If <= 0, its value is ignored.
Overrides global number of threads set per filter graph.

func (*AVFilterContext) SetOutputPads

func (s *AVFilterContext) SetOutputPads(value *AVFilterPad)

SetOutputPads sets the output_pads field.

array of output pads

func (*AVFilterContext) SetOutputs

func (s *AVFilterContext) SetOutputs(value *Array[AVFilterLink])

SetOutputs sets the outputs field.

array of pointers to output links

func (*AVFilterContext) SetPriv

func (s *AVFilterContext) SetPriv(value unsafe.Pointer)

SetPriv sets the priv field.

private data for use by the filter

func (*AVFilterContext) SetReady

func (s *AVFilterContext) SetReady(value uint)

SetReady sets the ready field.

@deprecated this field should never have been accessed by callers

func (*AVFilterContext) SetThreadType

func (s *AVFilterContext) SetThreadType(value int)

SetThreadType sets the thread_type field.

Type of multithreading being allowed/used. A combination of
AVFILTER_THREAD_* flags.

May be set by the caller before initializing the filter to forbid some
or all kinds of multithreading for this filter. The default is allowing
everything.

When the filter is initialized, this field is combined using bit AND with
AVFilterGraph.thread_type to get the final mask used for determining
allowed threading types. I.e. a threading type needs to be set in both
to be allowed.

After the filter is initialized, libavfilter sets this field to the
threading type that is actually used (0 for no multithreading).

func (*AVFilterContext) ThreadType

func (s *AVFilterContext) ThreadType() int

ThreadType gets the thread_type field.

Type of multithreading being allowed/used. A combination of
AVFILTER_THREAD_* flags.

May be set by the caller before initializing the filter to forbid some
or all kinds of multithreading for this filter. The default is allowing
everything.

When the filter is initialized, this field is combined using bit AND with
AVFilterGraph.thread_type to get the final mask used for determining
allowed threading types. I.e. a threading type needs to be set in both
to be allowed.

After the filter is initialized, libavfilter sets this field to the
threading type that is actually used (0 for no multithreading).

type AVFilterExecuteFunc

type AVFilterExecuteFunc unsafe.Pointer

AVFilterExecuteFunc is a function pointer typedef for avfilter_execute_func.

type AVFilterFormats

type AVFilterFormats struct {
	// contains filtered or unexported fields
}

AVFilterFormats wraps AVFilterFormats.

func (*AVFilterFormats) RawPtr

func (s *AVFilterFormats) RawPtr() unsafe.Pointer

type AVFilterFormatsConfig

type AVFilterFormatsConfig struct {
	// contains filtered or unexported fields
}

AVFilterFormatsConfig wraps AVFilterFormatsConfig.

Lists of formats / etc. supported by an end of a link.

This structure is directly part of AVFilterLink, in two copies:
one for the source filter, one for the destination filter.

These lists are used for negotiating the format to actually be used,
which will be loaded into the format and channel_layout members of
AVFilterLink, when chosen.

func (*AVFilterFormatsConfig) ChannelLayouts

func (s *AVFilterFormatsConfig) ChannelLayouts() *AVFilterChannelLayouts

ChannelLayouts gets the channel_layouts field.

Lists of supported channel layouts, only for audio.

func (*AVFilterFormatsConfig) ColorRanges

func (s *AVFilterFormatsConfig) ColorRanges() *AVFilterFormats

ColorRanges gets the color_ranges field.

AVColorRange

func (*AVFilterFormatsConfig) ColorSpaces

func (s *AVFilterFormatsConfig) ColorSpaces() *AVFilterFormats

ColorSpaces gets the color_spaces field.

AVColorSpace

func (*AVFilterFormatsConfig) Formats

func (s *AVFilterFormatsConfig) Formats() *AVFilterFormats

Formats gets the formats field.

List of supported formats (pixel or sample).

func (*AVFilterFormatsConfig) RawPtr

func (s *AVFilterFormatsConfig) RawPtr() unsafe.Pointer

func (*AVFilterFormatsConfig) Samplerates

func (s *AVFilterFormatsConfig) Samplerates() *AVFilterFormats

Samplerates gets the samplerates field.

Lists of supported sample rates, only for audio.

func (*AVFilterFormatsConfig) SetChannelLayouts

func (s *AVFilterFormatsConfig) SetChannelLayouts(value *AVFilterChannelLayouts)

SetChannelLayouts sets the channel_layouts field.

Lists of supported channel layouts, only for audio.

func (*AVFilterFormatsConfig) SetColorRanges

func (s *AVFilterFormatsConfig) SetColorRanges(value *AVFilterFormats)

SetColorRanges sets the color_ranges field.

AVColorRange

func (*AVFilterFormatsConfig) SetColorSpaces

func (s *AVFilterFormatsConfig) SetColorSpaces(value *AVFilterFormats)

SetColorSpaces sets the color_spaces field.

AVColorSpace

func (*AVFilterFormatsConfig) SetFormats

func (s *AVFilterFormatsConfig) SetFormats(value *AVFilterFormats)

SetFormats sets the formats field.

List of supported formats (pixel or sample).

func (*AVFilterFormatsConfig) SetSamplerates

func (s *AVFilterFormatsConfig) SetSamplerates(value *AVFilterFormats)

SetSamplerates sets the samplerates field.

Lists of supported sample rates, only for audio.

type AVFilterGraph

type AVFilterGraph struct {
	// contains filtered or unexported fields
}

AVFilterGraph wraps AVFilterGraph.

func AVFilterGraphAlloc

func AVFilterGraphAlloc() *AVFilterGraph

AVFilterGraphAlloc wraps avfilter_graph_alloc.

Allocate a filter graph.

@return the allocated filter graph on success or NULL.

func (*AVFilterGraph) AresampleSwrOpts

func (s *AVFilterGraph) AresampleSwrOpts() *CStr

AresampleSwrOpts gets the aresample_swr_opts field.

swr options to use for the auto-inserted aresample filters, Access ONLY through AVOptions

func (*AVFilterGraph) AvClass

func (s *AVFilterGraph) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVFilterGraph) Filters

func (s *AVFilterGraph) Filters() *Array[*AVFilterContext]

Filters gets the filters field.

func (*AVFilterGraph) MaxBufferedFrames

func (s *AVFilterGraph) MaxBufferedFrames() uint

MaxBufferedFrames gets the max_buffered_frames field.

Sets the maximum number of buffered frames in the filtergraph combined.

Zero means no limit. This field must be set before calling
avfilter_graph_config().

func (*AVFilterGraph) NbFilters

func (s *AVFilterGraph) NbFilters() uint

NbFilters gets the nb_filters field.

func (*AVFilterGraph) NbThreads

func (s *AVFilterGraph) NbThreads() int

NbThreads gets the nb_threads field.

Maximum number of threads used by filters in this graph. May be set by
the caller before adding any filters to the filtergraph. Zero (the
default) means that the number of threads is determined automatically.

func (*AVFilterGraph) Opaque

func (s *AVFilterGraph) Opaque() unsafe.Pointer

Opaque gets the opaque field.

Opaque user data. May be set by the caller to an arbitrary value, e.g. to
be used from callbacks like @ref AVFilterGraph.execute.
Libavfilter will not touch this field in any way.

func (*AVFilterGraph) RawPtr

func (s *AVFilterGraph) RawPtr() unsafe.Pointer

func (*AVFilterGraph) ScaleSwsOpts

func (s *AVFilterGraph) ScaleSwsOpts() *CStr

ScaleSwsOpts gets the scale_sws_opts field.

sws options to use for the auto-inserted scale filters

func (*AVFilterGraph) SetAresampleSwrOpts

func (s *AVFilterGraph) SetAresampleSwrOpts(value *CStr)

SetAresampleSwrOpts sets the aresample_swr_opts field.

swr options to use for the auto-inserted aresample filters, Access ONLY through AVOptions

func (*AVFilterGraph) SetAvClass

func (s *AVFilterGraph) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVFilterGraph) SetFilters

func (s *AVFilterGraph) SetFilters(value *Array[AVFilterContext])

SetFilters sets the filters field.

func (*AVFilterGraph) SetMaxBufferedFrames

func (s *AVFilterGraph) SetMaxBufferedFrames(value uint)

SetMaxBufferedFrames sets the max_buffered_frames field.

Sets the maximum number of buffered frames in the filtergraph combined.

Zero means no limit. This field must be set before calling
avfilter_graph_config().

func (*AVFilterGraph) SetNbFilters

func (s *AVFilterGraph) SetNbFilters(value uint)

SetNbFilters sets the nb_filters field.

func (*AVFilterGraph) SetNbThreads

func (s *AVFilterGraph) SetNbThreads(value int)

SetNbThreads sets the nb_threads field.

Maximum number of threads used by filters in this graph. May be set by
the caller before adding any filters to the filtergraph. Zero (the
default) means that the number of threads is determined automatically.

func (*AVFilterGraph) SetOpaque

func (s *AVFilterGraph) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

Opaque user data. May be set by the caller to an arbitrary value, e.g. to
be used from callbacks like @ref AVFilterGraph.execute.
Libavfilter will not touch this field in any way.

func (*AVFilterGraph) SetScaleSwsOpts

func (s *AVFilterGraph) SetScaleSwsOpts(value *CStr)

SetScaleSwsOpts sets the scale_sws_opts field.

sws options to use for the auto-inserted scale filters

func (*AVFilterGraph) SetThreadType

func (s *AVFilterGraph) SetThreadType(value int)

SetThreadType sets the thread_type field.

Type of multithreading allowed for filters in this graph. A combination
of AVFILTER_THREAD_* flags.

May be set by the caller at any point, the setting will apply to all
filters initialized after that. The default is allowing everything.

When a filter in this graph is initialized, this field is combined using
bit AND with AVFilterContext.thread_type to get the final mask used for
determining allowed threading types. I.e. a threading type needs to be
set in both to be allowed.

func (*AVFilterGraph) ThreadType

func (s *AVFilterGraph) ThreadType() int

ThreadType gets the thread_type field.

Type of multithreading allowed for filters in this graph. A combination
of AVFILTER_THREAD_* flags.

May be set by the caller at any point, the setting will apply to all
filters initialized after that. The default is allowing everything.

When a filter in this graph is initialized, this field is combined using
bit AND with AVFilterContext.thread_type to get the final mask used for
determining allowed threading types. I.e. a threading type needs to be
set in both to be allowed.

type AVFilterGraphSegment

type AVFilterGraphSegment struct {
	// contains filtered or unexported fields
}

AVFilterGraphSegment wraps AVFilterGraphSegment.

A parsed representation of a filtergraph segment.

A filtergraph segment is conceptually a list of filterchains, with some
supplementary information (e.g. format conversion flags).

Created by avfilter_graph_segment_parse(). Must be freed with
avfilter_graph_segment_free().

func (*AVFilterGraphSegment) Chains

func (s *AVFilterGraphSegment) Chains() *Array[*AVFilterChain]

Chains gets the chains field.

A list of filter chain contained in this segment.
Set in avfilter_graph_segment_parse().

func (*AVFilterGraphSegment) Graph

func (s *AVFilterGraphSegment) Graph() *AVFilterGraph

Graph gets the graph field.

The filtergraph this segment is associated with.
Set by avfilter_graph_segment_parse().

func (*AVFilterGraphSegment) NbChains

func (s *AVFilterGraphSegment) NbChains() uint64

NbChains gets the nb_chains field.

func (*AVFilterGraphSegment) RawPtr

func (s *AVFilterGraphSegment) RawPtr() unsafe.Pointer

func (*AVFilterGraphSegment) ScaleSwsOpts

func (s *AVFilterGraphSegment) ScaleSwsOpts() *CStr

ScaleSwsOpts gets the scale_sws_opts field.

A string containing a colon-separated list of key=value options applied
to all scale filters in this segment.

May be set by avfilter_graph_segment_parse().
The caller may free this string with av_free() and replace it with a
different av_malloc()'ed string.

func (*AVFilterGraphSegment) SetChains

func (s *AVFilterGraphSegment) SetChains(value *Array[AVFilterChain])

SetChains sets the chains field.

A list of filter chain contained in this segment.
Set in avfilter_graph_segment_parse().

func (*AVFilterGraphSegment) SetGraph

func (s *AVFilterGraphSegment) SetGraph(value *AVFilterGraph)

SetGraph sets the graph field.

The filtergraph this segment is associated with.
Set by avfilter_graph_segment_parse().

func (*AVFilterGraphSegment) SetNbChains

func (s *AVFilterGraphSegment) SetNbChains(value uint64)

SetNbChains sets the nb_chains field.

func (*AVFilterGraphSegment) SetScaleSwsOpts

func (s *AVFilterGraphSegment) SetScaleSwsOpts(value *CStr)

SetScaleSwsOpts sets the scale_sws_opts field.

A string containing a colon-separated list of key=value options applied
to all scale filters in this segment.

May be set by avfilter_graph_segment_parse().
The caller may free this string with av_free() and replace it with a
different av_malloc()'ed string.

type AVFilterInOut

type AVFilterInOut struct {
	// contains filtered or unexported fields
}

AVFilterInOut wraps AVFilterInOut.

A linked-list of the inputs/outputs of the filter chain.

This is mainly useful for avfilter_graph_parse() / avfilter_graph_parse2(),
where it is used to communicate open (unlinked) inputs and outputs from and
to the caller.
This struct specifies, per each not connected pad contained in the graph, the
filter context and the pad index required for establishing a link.

func AVFilterInoutAlloc

func AVFilterInoutAlloc() *AVFilterInOut

AVFilterInoutAlloc wraps avfilter_inout_alloc.

Allocate a single AVFilterInOut entry.
Must be freed with avfilter_inout_free().
@return allocated AVFilterInOut on success, NULL on failure.

func (*AVFilterInOut) FilterCtx

func (s *AVFilterInOut) FilterCtx() *AVFilterContext

FilterCtx gets the filter_ctx field.

filter context associated to this input/output

func (*AVFilterInOut) Name

func (s *AVFilterInOut) Name() *CStr

Name gets the name field.

unique name for this input/output in the list

func (*AVFilterInOut) Next

func (s *AVFilterInOut) Next() *AVFilterInOut

Next gets the next field.

next input/input in the list, NULL if this is the last

func (*AVFilterInOut) PadIdx

func (s *AVFilterInOut) PadIdx() int

PadIdx gets the pad_idx field.

index of the filt_ctx pad to use for linking

func (*AVFilterInOut) RawPtr

func (s *AVFilterInOut) RawPtr() unsafe.Pointer

func (*AVFilterInOut) SetFilterCtx

func (s *AVFilterInOut) SetFilterCtx(value *AVFilterContext)

SetFilterCtx sets the filter_ctx field.

filter context associated to this input/output

func (*AVFilterInOut) SetName

func (s *AVFilterInOut) SetName(value *CStr)

SetName sets the name field.

unique name for this input/output in the list

func (*AVFilterInOut) SetNext

func (s *AVFilterInOut) SetNext(value *AVFilterInOut)

SetNext sets the next field.

next input/input in the list, NULL if this is the last

func (*AVFilterInOut) SetPadIdx

func (s *AVFilterInOut) SetPadIdx(value int)

SetPadIdx sets the pad_idx field.

index of the filt_ctx pad to use for linking
type AVFilterLink struct {
	// contains filtered or unexported fields
}

AVFilterLink wraps AVFilterLink.

A link between two filters. This contains pointers to the source and
destination filters between which this link exists, and the indexes of
the pads involved. In addition, this link also contains the parameters
which have been negotiated and agreed upon between the filter, such as
image dimensions, format, etc.

Applications must not normally access the link structure directly.
Use the buffersrc and buffersink API instead.
In the future, access to the header may be reserved for filters
implementation.

func (*AVFilterLink) ChLayout

func (s *AVFilterLink) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

channel layout of current buffer (see libavutil/channel_layout.h)

func (*AVFilterLink) ColorRange

func (s *AVFilterLink) ColorRange() AVColorRange

ColorRange gets the color_range field.

agreed upon YUV color range

func (*AVFilterLink) Colorspace

func (s *AVFilterLink) Colorspace() AVColorSpace

Colorspace gets the colorspace field.

agreed upon YUV color space

func (*AVFilterLink) Dst

func (s *AVFilterLink) Dst() *AVFilterContext

Dst gets the dst field.

dest filter

func (*AVFilterLink) Dstpad

func (s *AVFilterLink) Dstpad() *AVFilterPad

Dstpad gets the dstpad field.

input pad on the dest filter

func (*AVFilterLink) Format

func (s *AVFilterLink) Format() int

Format gets the format field.

agreed upon media format

func (*AVFilterLink) H

func (s *AVFilterLink) H() int

H gets the h field.

agreed upon image height

func (*AVFilterLink) Incfg

func (s *AVFilterLink) Incfg() *AVFilterFormatsConfig

Incfg gets the incfg field.

Lists of supported formats / etc. supported by the input filter.

func (*AVFilterLink) NbSideData

func (s *AVFilterLink) NbSideData() int

NbSideData gets the nb_side_data field.

func (*AVFilterLink) Outcfg

func (s *AVFilterLink) Outcfg() *AVFilterFormatsConfig

Outcfg gets the outcfg field.

Lists of supported formats / etc. supported by the output filter.

func (*AVFilterLink) RawPtr

func (s *AVFilterLink) RawPtr() unsafe.Pointer

func (*AVFilterLink) SampleAspectRatio

func (s *AVFilterLink) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

agreed upon sample aspect ratio

func (*AVFilterLink) SampleRate

func (s *AVFilterLink) SampleRate() int

SampleRate gets the sample_rate field.

samples per second

func (*AVFilterLink) SetColorRange

func (s *AVFilterLink) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

agreed upon YUV color range

func (*AVFilterLink) SetColorspace

func (s *AVFilterLink) SetColorspace(value AVColorSpace)

SetColorspace sets the colorspace field.

agreed upon YUV color space

func (*AVFilterLink) SetDst

func (s *AVFilterLink) SetDst(value *AVFilterContext)

SetDst sets the dst field.

dest filter

func (*AVFilterLink) SetDstpad

func (s *AVFilterLink) SetDstpad(value *AVFilterPad)

SetDstpad sets the dstpad field.

input pad on the dest filter

func (*AVFilterLink) SetFormat

func (s *AVFilterLink) SetFormat(value int)

SetFormat sets the format field.

agreed upon media format

func (*AVFilterLink) SetH

func (s *AVFilterLink) SetH(value int)

SetH sets the h field.

agreed upon image height

func (*AVFilterLink) SetNbSideData

func (s *AVFilterLink) SetNbSideData(value int)

SetNbSideData sets the nb_side_data field.

func (*AVFilterLink) SetSampleAspectRatio

func (s *AVFilterLink) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

agreed upon sample aspect ratio

func (*AVFilterLink) SetSampleRate

func (s *AVFilterLink) SetSampleRate(value int)

SetSampleRate sets the sample_rate field.

samples per second

func (*AVFilterLink) SetSideData

func (s *AVFilterLink) SetSideData(value *Array[AVFrameSideData])

SetSideData sets the side_data field.

func (*AVFilterLink) SetSrc

func (s *AVFilterLink) SetSrc(value *AVFilterContext)

SetSrc sets the src field.

source filter

func (*AVFilterLink) SetSrcpad

func (s *AVFilterLink) SetSrcpad(value *AVFilterPad)

SetSrcpad sets the srcpad field.

output pad on the source filter

func (*AVFilterLink) SetTimeBase

func (s *AVFilterLink) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

Define the time base used by the PTS of the frames/samples
which will pass through this link.
During the configuration stage, each filter is supposed to
change only the output timebase, while the timebase of the
input link is assumed to be an unchangeable property.

func (*AVFilterLink) SetType

func (s *AVFilterLink) SetType(value AVMediaType)

SetType sets the type field.

filter media type

func (*AVFilterLink) SetW

func (s *AVFilterLink) SetW(value int)

SetW sets the w field.

agreed upon image width

func (*AVFilterLink) SideData

func (s *AVFilterLink) SideData() *Array[*AVFrameSideData]

SideData gets the side_data field.

func (*AVFilterLink) Src

func (s *AVFilterLink) Src() *AVFilterContext

Src gets the src field.

source filter

func (*AVFilterLink) Srcpad

func (s *AVFilterLink) Srcpad() *AVFilterPad

Srcpad gets the srcpad field.

output pad on the source filter

func (*AVFilterLink) TimeBase

func (s *AVFilterLink) TimeBase() *AVRational

TimeBase gets the time_base field.

Define the time base used by the PTS of the frames/samples
which will pass through this link.
During the configuration stage, each filter is supposed to
change only the output timebase, while the timebase of the
input link is assumed to be an unchangeable property.

func (*AVFilterLink) Type

func (s *AVFilterLink) Type() AVMediaType

Type gets the type field.

filter media type

func (*AVFilterLink) W

func (s *AVFilterLink) W() int

W gets the w field.

agreed upon image width

type AVFilterPad

type AVFilterPad struct {
	// contains filtered or unexported fields
}

AVFilterPad wraps AVFilterPad.

func (*AVFilterPad) RawPtr

func (s *AVFilterPad) RawPtr() unsafe.Pointer

type AVFilterPadParams

type AVFilterPadParams struct {
	// contains filtered or unexported fields
}

AVFilterPadParams wraps AVFilterPadParams.

Parameters of a filter's input or output pad.

Created as a child of AVFilterParams by avfilter_graph_segment_parse().
Freed in avfilter_graph_segment_free().

func (*AVFilterPadParams) Label

func (s *AVFilterPadParams) Label() *CStr

Label gets the label field.

An av_malloc()'ed string containing the pad label.

May be av_free()'d and set to NULL by the caller, in which case this pad
will be treated as unlabeled for linking.
May also be replaced by another av_malloc()'ed string.

func (*AVFilterPadParams) RawPtr

func (s *AVFilterPadParams) RawPtr() unsafe.Pointer

func (*AVFilterPadParams) SetLabel

func (s *AVFilterPadParams) SetLabel(value *CStr)

SetLabel sets the label field.

An av_malloc()'ed string containing the pad label.

May be av_free()'d and set to NULL by the caller, in which case this pad
will be treated as unlabeled for linking.
May also be replaced by another av_malloc()'ed string.

type AVFilterParams

type AVFilterParams struct {
	// contains filtered or unexported fields
}

AVFilterParams wraps AVFilterParams.

Parameters describing a filter to be created in a filtergraph.

Created as a child of AVFilterGraphSegment by avfilter_graph_segment_parse().
Freed in avfilter_graph_segment_free().

func (*AVFilterParams) Filter

func (s *AVFilterParams) Filter() *AVFilterContext

Filter gets the filter field.

The filter context.

Created by avfilter_graph_segment_create_filters() based on
AVFilterParams.filter_name and instance_name.

Callers may also create the filter context manually, then they should
av_free() filter_name and set it to NULL. Such AVFilterParams instances
are then skipped by avfilter_graph_segment_create_filters().

func (*AVFilterParams) FilterName

func (s *AVFilterParams) FilterName() *CStr

FilterName gets the filter_name field.

Name of the AVFilter to be used.

An av_malloc()'ed string, set by avfilter_graph_segment_parse(). Will be
passed to avfilter_get_by_name() by
avfilter_graph_segment_create_filters().

Callers may av_free() this string and replace it with another one or
NULL. If the caller creates the filter instance manually, this string
MUST be set to NULL.

When both AVFilterParams.filter an AVFilterParams.filter_name are NULL,
this AVFilterParams instance is skipped by avfilter_graph_segment_*()
functions.

func (*AVFilterParams) Inputs

func (s *AVFilterParams) Inputs() *Array[*AVFilterPadParams]

Inputs gets the inputs field.

func (*AVFilterParams) InstanceName

func (s *AVFilterParams) InstanceName() *CStr

InstanceName gets the instance_name field.

Name to be used for this filter instance.

An av_malloc()'ed string, may be set by avfilter_graph_segment_parse() or
left NULL. The caller may av_free() this string and replace with another
one or NULL.

Will be used by avfilter_graph_segment_create_filters() - passed as the
third argument to avfilter_graph_alloc_filter(), then freed and set to
NULL.

func (*AVFilterParams) NbInputs

func (s *AVFilterParams) NbInputs() uint

NbInputs gets the nb_inputs field.

func (*AVFilterParams) NbOutputs

func (s *AVFilterParams) NbOutputs() uint

NbOutputs gets the nb_outputs field.

func (*AVFilterParams) Opts

func (s *AVFilterParams) Opts() *AVDictionary

Opts gets the opts field.

Options to be applied to the filter.

Filled by avfilter_graph_segment_parse(). Afterwards may be freely
modified by the caller.

Will be applied to the filter by avfilter_graph_segment_apply_opts()
with an equivalent of av_opt_set_dict2(filter, &opts, AV_OPT_SEARCH_CHILDREN),
i.e. any unapplied options will be left in this dictionary.

func (*AVFilterParams) Outputs

func (s *AVFilterParams) Outputs() *Array[*AVFilterPadParams]

Outputs gets the outputs field.

func (*AVFilterParams) RawPtr

func (s *AVFilterParams) RawPtr() unsafe.Pointer

func (*AVFilterParams) SetFilter

func (s *AVFilterParams) SetFilter(value *AVFilterContext)

SetFilter sets the filter field.

The filter context.

Created by avfilter_graph_segment_create_filters() based on
AVFilterParams.filter_name and instance_name.

Callers may also create the filter context manually, then they should
av_free() filter_name and set it to NULL. Such AVFilterParams instances
are then skipped by avfilter_graph_segment_create_filters().

func (*AVFilterParams) SetFilterName

func (s *AVFilterParams) SetFilterName(value *CStr)

SetFilterName sets the filter_name field.

Name of the AVFilter to be used.

An av_malloc()'ed string, set by avfilter_graph_segment_parse(). Will be
passed to avfilter_get_by_name() by
avfilter_graph_segment_create_filters().

Callers may av_free() this string and replace it with another one or
NULL. If the caller creates the filter instance manually, this string
MUST be set to NULL.

When both AVFilterParams.filter an AVFilterParams.filter_name are NULL,
this AVFilterParams instance is skipped by avfilter_graph_segment_*()
functions.

func (*AVFilterParams) SetInputs

func (s *AVFilterParams) SetInputs(value *Array[AVFilterPadParams])

SetInputs sets the inputs field.

func (*AVFilterParams) SetInstanceName

func (s *AVFilterParams) SetInstanceName(value *CStr)

SetInstanceName sets the instance_name field.

Name to be used for this filter instance.

An av_malloc()'ed string, may be set by avfilter_graph_segment_parse() or
left NULL. The caller may av_free() this string and replace with another
one or NULL.

Will be used by avfilter_graph_segment_create_filters() - passed as the
third argument to avfilter_graph_alloc_filter(), then freed and set to
NULL.

func (*AVFilterParams) SetNbInputs

func (s *AVFilterParams) SetNbInputs(value uint)

SetNbInputs sets the nb_inputs field.

func (*AVFilterParams) SetNbOutputs

func (s *AVFilterParams) SetNbOutputs(value uint)

SetNbOutputs sets the nb_outputs field.

func (*AVFilterParams) SetOpts

func (s *AVFilterParams) SetOpts(value *AVDictionary)

SetOpts sets the opts field.

Options to be applied to the filter.

Filled by avfilter_graph_segment_parse(). Afterwards may be freely
modified by the caller.

Will be applied to the filter by avfilter_graph_segment_apply_opts()
with an equivalent of av_opt_set_dict2(filter, &opts, AV_OPT_SEARCH_CHILDREN),
i.e. any unapplied options will be left in this dictionary.

func (*AVFilterParams) SetOutputs

func (s *AVFilterParams) SetOutputs(value *Array[AVFilterPadParams])

SetOutputs sets the outputs field.

type AVFormatContext

type AVFormatContext struct {
	// contains filtered or unexported fields
}

AVFormatContext wraps AVFormatContext.

Format I/O context.
New fields can be added to the end with minor version bumps.
Removal, reordering and changes to existing fields require a major
version bump.
sizeof(AVFormatContext) must not be used outside libav*, use
avformat_alloc_context() to create an AVFormatContext.

Fields can be accessed through AVOptions (av_opt*),
the name string used matches the associated command line parameter name and
can be found in libavformat/options_table.h.
The AVOption/command line parameter names differ in some cases from the C
structure field names for historic reasons or brevity.

func AVFormatAllocContext

func AVFormatAllocContext() *AVFormatContext

AVFormatAllocContext wraps avformat_alloc_context.

Allocate an AVFormatContext.
avformat_free_context() can be used to free the context and everything
allocated by the framework within it.

func (*AVFormatContext) AudioCodec

func (s *AVFormatContext) AudioCodec() *AVCodec

AudioCodec gets the audio_codec field.

Forced audio codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) AudioCodecId

func (s *AVFormatContext) AudioCodecId() AVCodecID

AudioCodecId gets the audio_codec_id field.

Forced audio codec_id.
Demuxing: Set by user.

func (*AVFormatContext) AudioPreload

func (s *AVFormatContext) AudioPreload() int

AudioPreload gets the audio_preload field.

Audio preload in microseconds.
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) AvClass

func (s *AVFormatContext) AvClass() *AVClass

AvClass gets the av_class field.

A class for logging and @ref avoptions. Set by avformat_alloc_context().
Exports (de)muxer private options if they exist.

func (*AVFormatContext) AvioFlags

func (s *AVFormatContext) AvioFlags() int

AvioFlags gets the avio_flags field.

avio flags, used to force AVIO_FLAG_DIRECT.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) AvoidNegativeTs

func (s *AVFormatContext) AvoidNegativeTs() int

AvoidNegativeTs gets the avoid_negative_ts field.

Avoid negative timestamps during muxing.
Any value of the AVFMT_AVOID_NEG_TS_* constants.
Note, this works better when using av_interleaved_write_frame().
- muxing: Set by user
- demuxing: unused

func (*AVFormatContext) BitRate

func (s *AVFormatContext) BitRate() int64

BitRate gets the bit_rate field.

Total stream bitrate in bit/s, 0 if not
available. Never set it directly if the file_size and the
duration are known as FFmpeg can compute it automatically.

func (*AVFormatContext) Chapters

func (s *AVFormatContext) Chapters() *Array[*AVChapter]

Chapters gets the chapters field.

func (*AVFormatContext) CodecWhitelist

func (s *AVFormatContext) CodecWhitelist() *CStr

CodecWhitelist gets the codec_whitelist field.

',' separated list of allowed decoders.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) CorrectTsOverflow

func (s *AVFormatContext) CorrectTsOverflow() uint

CorrectTsOverflow gets the correct_ts_overflow field.

Correct single timestamp overflows
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) CtxFlags

func (s *AVFormatContext) CtxFlags() int

CtxFlags gets the ctx_flags field.

Flags signalling stream properties. A combination of AVFMTCTX_*.
Set by libavformat.

func (*AVFormatContext) DataCodec

func (s *AVFormatContext) DataCodec() *AVCodec

DataCodec gets the data_codec field.

Forced data codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) DataCodecId

func (s *AVFormatContext) DataCodecId() AVCodecID

DataCodecId gets the data_codec_id field.

Forced Data codec_id.
Demuxing: Set by user.

func (*AVFormatContext) Debug

func (s *AVFormatContext) Debug() int

Debug gets the debug field.

Flags to enable debugging.

func (*AVFormatContext) DumpSeparator

func (s *AVFormatContext) DumpSeparator() unsafe.Pointer

DumpSeparator gets the dump_separator field.

dump format separator.
can be ", " or "\n      " or anything else
- muxing: Set by user.
- demuxing: Set by user.

func (*AVFormatContext) Duration

func (s *AVFormatContext) Duration() int64

Duration gets the duration field.

Duration of the stream, in AV_TIME_BASE fractional
seconds. Only set this value if you know none of the individual stream
durations and also do not set any of them. This is deduced from the
AVStream values if not set.

Demuxing only, set by libavformat.

func (*AVFormatContext) DurationEstimationMethod

func (s *AVFormatContext) DurationEstimationMethod() AVDurationEstimationMethod

DurationEstimationMethod gets the duration_estimation_method field.

The duration field can be estimated through various ways, and this field can be used
to know how the duration was estimated.
- encoding: unused
- decoding: Read by user

func (*AVFormatContext) DurationProbesize

func (s *AVFormatContext) DurationProbesize() int64

DurationProbesize gets the duration_probesize field.

Maximum number of bytes read from input in order to determine stream durations
when using estimate_timings_from_pts in avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().
Can be set to 0 to let avformat choose using a heuristic.

@see skip_estimate_duration_from_pts

func (*AVFormatContext) ErrorRecognition

func (s *AVFormatContext) ErrorRecognition() int

ErrorRecognition gets the error_recognition field.

Error recognition; higher values will detect more errors but may
misdetect some more or less valid parts as errors.
Demuxing only, set by the caller before avformat_open_input().

func (*AVFormatContext) EventFlags

func (s *AVFormatContext) EventFlags() int

EventFlags gets the event_flags field.

Flags indicating events happening on the file, a combination of
AVFMT_EVENT_FLAG_*.

- demuxing: may be set by the demuxer in avformat_open_input(),
  avformat_find_stream_info() and av_read_frame(). Flags must be cleared
  by the user once the event has been handled.
- muxing: may be set by the user after avformat_write_header() to
  indicate a user-triggered event.  The muxer will clear the flags for
  events it has handled in av_[interleaved]_write_frame().

func (*AVFormatContext) Flags

func (s *AVFormatContext) Flags() int

Flags gets the flags field.

Flags modifying the (de)muxer behaviour. A combination of AVFMT_FLAG_*.
Set by the user before avformat_open_input() / avformat_write_header().

func (*AVFormatContext) FlushPackets

func (s *AVFormatContext) FlushPackets() int

FlushPackets gets the flush_packets field.

Flush the I/O context after each packet.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) FormatProbesize

func (s *AVFormatContext) FormatProbesize() int

FormatProbesize gets the format_probesize field.

Maximum number of bytes read from input in order to identify the
\ref AVInputFormat "input format". Only used when the format is not set
explicitly by the caller.

Demuxing only, set by the caller before avformat_open_input().

@see probesize

func (*AVFormatContext) FormatWhitelist

func (s *AVFormatContext) FormatWhitelist() *CStr

FormatWhitelist gets the format_whitelist field.

',' separated list of allowed demuxers.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) FpsProbeSize

func (s *AVFormatContext) FpsProbeSize() int

FpsProbeSize gets the fps_probe_size field.

The number of frames used for determining the framerate in
avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().

func (*AVFormatContext) Iformat

func (s *AVFormatContext) Iformat() *AVInputFormat

Iformat gets the iformat field.

The input container format.

Demuxing only, set by avformat_open_input().

func (*AVFormatContext) InterruptCallback

func (s *AVFormatContext) InterruptCallback() *AVIOInterruptCB

InterruptCallback gets the interrupt_callback field.

Custom interrupt callbacks for the I/O layer.

demuxing: set by the user before avformat_open_input().
muxing: set by the user before avformat_write_header()
(mainly useful for AVFMT_NOFILE formats). The callback
should also be passed to avio_open2() if it's used to
open the file.

func (*AVFormatContext) IoRepositioned

func (s *AVFormatContext) IoRepositioned() int

IoRepositioned gets the io_repositioned field.

IO repositioned flag.
This is set by avformat when the underlying IO context read pointer
is repositioned, for example when doing byte based seeking.
Demuxers can use the flag to detect such changes.

func (*AVFormatContext) Key

func (s *AVFormatContext) Key() unsafe.Pointer

Key gets the key field.

func (*AVFormatContext) Keylen

func (s *AVFormatContext) Keylen() int

Keylen gets the keylen field.

func (*AVFormatContext) MaxAnalyzeDuration

func (s *AVFormatContext) MaxAnalyzeDuration() int64

MaxAnalyzeDuration gets the max_analyze_duration field.

Maximum duration (in AV_TIME_BASE units) of the data read
from input in avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().
Can be set to 0 to let avformat choose using a heuristic.

func (*AVFormatContext) MaxChunkDuration

func (s *AVFormatContext) MaxChunkDuration() int

MaxChunkDuration gets the max_chunk_duration field.

Max chunk time in microseconds.
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) MaxChunkSize

func (s *AVFormatContext) MaxChunkSize() int

MaxChunkSize gets the max_chunk_size field.

Max chunk size in bytes
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) MaxDelay

func (s *AVFormatContext) MaxDelay() int

MaxDelay gets the max_delay field.

func (*AVFormatContext) MaxIndexSize

func (s *AVFormatContext) MaxIndexSize() uint

MaxIndexSize gets the max_index_size field.

Maximum amount of memory in bytes to use for the index of each stream.
If the index exceeds this size, entries will be discarded as
needed to maintain a smaller size. This can lead to slower or less
accurate seeking (depends on demuxer).
Demuxers for which a full in-memory index is mandatory will ignore
this.
- muxing: unused
- demuxing: set by user

func (*AVFormatContext) MaxInterleaveDelta

func (s *AVFormatContext) MaxInterleaveDelta() int64

MaxInterleaveDelta gets the max_interleave_delta field.

Maximum buffering duration for interleaving.

To ensure all the streams are interleaved correctly,
av_interleaved_write_frame() will wait until it has at least one packet
for each stream before actually writing any packets to the output file.
When some streams are "sparse" (i.e. there are large gaps between
successive packets), this can result in excessive buffering.

This field specifies the maximum difference between the timestamps of the
first and the last packet in the muxing queue, above which libavformat
will output a packet regardless of whether it has queued a packet for all
the streams.

Muxing only, set by the caller before avformat_write_header().

func (*AVFormatContext) MaxPictureBuffer

func (s *AVFormatContext) MaxPictureBuffer() uint

MaxPictureBuffer gets the max_picture_buffer field.

Maximum amount of memory in bytes to use for buffering frames
obtained from realtime capture devices.

func (*AVFormatContext) MaxProbePackets

func (s *AVFormatContext) MaxProbePackets() int

MaxProbePackets gets the max_probe_packets field.

Maximum number of packets that can be probed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) MaxStreams

func (s *AVFormatContext) MaxStreams() int

MaxStreams gets the max_streams field.

The maximum number of streams.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) MaxTsProbe

func (s *AVFormatContext) MaxTsProbe() int

MaxTsProbe gets the max_ts_probe field.

Maximum number of packets to read while waiting for the first timestamp.
Decoding only.

func (*AVFormatContext) Metadata

func (s *AVFormatContext) Metadata() *AVDictionary

Metadata gets the metadata field.

Metadata that applies to the whole file.

- demuxing: set by libavformat in avformat_open_input()
- muxing: may be set by the caller before avformat_write_header()

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) MetadataHeaderPadding

func (s *AVFormatContext) MetadataHeaderPadding() int

MetadataHeaderPadding gets the metadata_header_padding field.

Number of bytes to be written as padding in a metadata header.
Demuxing: Unused.
Muxing: Set by user.

func (*AVFormatContext) NbChapters

func (s *AVFormatContext) NbChapters() uint

NbChapters gets the nb_chapters field.

Number of chapters in AVChapter array.
When muxing, chapters are normally written in the file header,
so nb_chapters should normally be initialized before write_header
is called. Some muxers (e.g. mov and mkv) can also write chapters
in the trailer.  To write chapters in the trailer, nb_chapters
must be zero when write_header is called and non-zero when
write_trailer is called.
- muxing: set by user
- demuxing: set by libavformat

func (*AVFormatContext) NbPrograms

func (s *AVFormatContext) NbPrograms() uint

NbPrograms gets the nb_programs field.

func (*AVFormatContext) NbStreamGroups

func (s *AVFormatContext) NbStreamGroups() uint

NbStreamGroups gets the nb_stream_groups field.

Number of elements in AVFormatContext.stream_groups.

Set by avformat_stream_group_create(), must not be modified by any other code.

func (*AVFormatContext) NbStreams

func (s *AVFormatContext) NbStreams() uint

NbStreams gets the nb_streams field.

Number of elements in AVFormatContext.streams.

Set by avformat_new_stream(), must not be modified by any other code.

func (*AVFormatContext) Oformat

func (s *AVFormatContext) Oformat() *AVOutputFormat

Oformat gets the oformat field.

The output container format.

Muxing only, must be set by the caller before avformat_write_header().

func (*AVFormatContext) Opaque

func (s *AVFormatContext) Opaque() unsafe.Pointer

Opaque gets the opaque field.

User data.
This is a place for some private data of the user.

func (*AVFormatContext) OutputTsOffset

func (s *AVFormatContext) OutputTsOffset() int64

OutputTsOffset gets the output_ts_offset field.

Output timestamp offset, in microseconds.
Muxing: set by user

func (*AVFormatContext) PacketSize

func (s *AVFormatContext) PacketSize() uint

PacketSize gets the packet_size field.

func (*AVFormatContext) Pb

func (s *AVFormatContext) Pb() *AVIOContext

Pb gets the pb field.

I/O context.

- demuxing: either set by the user before avformat_open_input() (then
            the user must close it manually) or set by avformat_open_input().
- muxing: set by the user before avformat_write_header(). The caller must
          take care of closing / freeing the IO context.

Do NOT set this field if AVFMT_NOFILE flag is set in
iformat/oformat.flags. In such a case, the (de)muxer will handle
I/O in some other way and this field will be NULL.

func (*AVFormatContext) PrivData

func (s *AVFormatContext) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

Format private data. This is an AVOptions-enabled struct
if and only if iformat/oformat.priv_class is not NULL.

- muxing: set by avformat_write_header()
- demuxing: set by avformat_open_input()

func (*AVFormatContext) ProbeScore

func (s *AVFormatContext) ProbeScore() int

ProbeScore gets the probe_score field.

format probing score.
The maximal score is AVPROBE_SCORE_MAX, its set when the demuxer probes
the format.
- encoding: unused
- decoding: set by avformat, read by user

func (*AVFormatContext) Probesize

func (s *AVFormatContext) Probesize() int64

Probesize gets the probesize field.

Maximum number of bytes read from input in order to determine stream
properties. Used when reading the global header and in
avformat_find_stream_info().

Demuxing only, set by the caller before avformat_open_input().

@note this is \e not  used for determining the \ref AVInputFormat
      "input format"
@see format_probesize

func (*AVFormatContext) Programs

func (s *AVFormatContext) Programs() *Array[*AVProgram]

Programs gets the programs field.

func (*AVFormatContext) ProtocolBlacklist

func (s *AVFormatContext) ProtocolBlacklist() *CStr

ProtocolBlacklist gets the protocol_blacklist field.

',' separated list of disallowed protocols.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) ProtocolWhitelist

func (s *AVFormatContext) ProtocolWhitelist() *CStr

ProtocolWhitelist gets the protocol_whitelist field.

',' separated list of allowed protocols.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) RawPtr

func (s *AVFormatContext) RawPtr() unsafe.Pointer

func (*AVFormatContext) Seek2Any

func (s *AVFormatContext) Seek2Any() int

Seek2Any gets the seek2any field.

Force seeking to any (also non key) frames.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetAudioCodec

func (s *AVFormatContext) SetAudioCodec(value *AVCodec)

SetAudioCodec sets the audio_codec field.

Forced audio codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) SetAudioCodecId

func (s *AVFormatContext) SetAudioCodecId(value AVCodecID)

SetAudioCodecId sets the audio_codec_id field.

Forced audio codec_id.
Demuxing: Set by user.

func (*AVFormatContext) SetAudioPreload

func (s *AVFormatContext) SetAudioPreload(value int)

SetAudioPreload sets the audio_preload field.

Audio preload in microseconds.
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) SetAvClass

func (s *AVFormatContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for logging and @ref avoptions. Set by avformat_alloc_context().
Exports (de)muxer private options if they exist.

func (*AVFormatContext) SetAvioFlags

func (s *AVFormatContext) SetAvioFlags(value int)

SetAvioFlags sets the avio_flags field.

avio flags, used to force AVIO_FLAG_DIRECT.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetAvoidNegativeTs

func (s *AVFormatContext) SetAvoidNegativeTs(value int)

SetAvoidNegativeTs sets the avoid_negative_ts field.

Avoid negative timestamps during muxing.
Any value of the AVFMT_AVOID_NEG_TS_* constants.
Note, this works better when using av_interleaved_write_frame().
- muxing: Set by user
- demuxing: unused

func (*AVFormatContext) SetBitRate

func (s *AVFormatContext) SetBitRate(value int64)

SetBitRate sets the bit_rate field.

Total stream bitrate in bit/s, 0 if not
available. Never set it directly if the file_size and the
duration are known as FFmpeg can compute it automatically.

func (*AVFormatContext) SetChapters

func (s *AVFormatContext) SetChapters(value *Array[AVChapter])

SetChapters sets the chapters field.

func (*AVFormatContext) SetCodecWhitelist

func (s *AVFormatContext) SetCodecWhitelist(value *CStr)

SetCodecWhitelist sets the codec_whitelist field.

',' separated list of allowed decoders.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetCorrectTsOverflow

func (s *AVFormatContext) SetCorrectTsOverflow(value uint)

SetCorrectTsOverflow sets the correct_ts_overflow field.

Correct single timestamp overflows
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetCtxFlags

func (s *AVFormatContext) SetCtxFlags(value int)

SetCtxFlags sets the ctx_flags field.

Flags signalling stream properties. A combination of AVFMTCTX_*.
Set by libavformat.

func (*AVFormatContext) SetDataCodec

func (s *AVFormatContext) SetDataCodec(value *AVCodec)

SetDataCodec sets the data_codec field.

Forced data codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) SetDataCodecId

func (s *AVFormatContext) SetDataCodecId(value AVCodecID)

SetDataCodecId sets the data_codec_id field.

Forced Data codec_id.
Demuxing: Set by user.

func (*AVFormatContext) SetDebug

func (s *AVFormatContext) SetDebug(value int)

SetDebug sets the debug field.

Flags to enable debugging.

func (*AVFormatContext) SetDumpSeparator

func (s *AVFormatContext) SetDumpSeparator(value unsafe.Pointer)

SetDumpSeparator sets the dump_separator field.

dump format separator.
can be ", " or "\n      " or anything else
- muxing: Set by user.
- demuxing: Set by user.

func (*AVFormatContext) SetDuration

func (s *AVFormatContext) SetDuration(value int64)

SetDuration sets the duration field.

Duration of the stream, in AV_TIME_BASE fractional
seconds. Only set this value if you know none of the individual stream
durations and also do not set any of them. This is deduced from the
AVStream values if not set.

Demuxing only, set by libavformat.

func (*AVFormatContext) SetDurationEstimationMethod

func (s *AVFormatContext) SetDurationEstimationMethod(value AVDurationEstimationMethod)

SetDurationEstimationMethod sets the duration_estimation_method field.

The duration field can be estimated through various ways, and this field can be used
to know how the duration was estimated.
- encoding: unused
- decoding: Read by user

func (*AVFormatContext) SetDurationProbesize

func (s *AVFormatContext) SetDurationProbesize(value int64)

SetDurationProbesize sets the duration_probesize field.

Maximum number of bytes read from input in order to determine stream durations
when using estimate_timings_from_pts in avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().
Can be set to 0 to let avformat choose using a heuristic.

@see skip_estimate_duration_from_pts

func (*AVFormatContext) SetErrorRecognition

func (s *AVFormatContext) SetErrorRecognition(value int)

SetErrorRecognition sets the error_recognition field.

Error recognition; higher values will detect more errors but may
misdetect some more or less valid parts as errors.
Demuxing only, set by the caller before avformat_open_input().

func (*AVFormatContext) SetEventFlags

func (s *AVFormatContext) SetEventFlags(value int)

SetEventFlags sets the event_flags field.

Flags indicating events happening on the file, a combination of
AVFMT_EVENT_FLAG_*.

- demuxing: may be set by the demuxer in avformat_open_input(),
  avformat_find_stream_info() and av_read_frame(). Flags must be cleared
  by the user once the event has been handled.
- muxing: may be set by the user after avformat_write_header() to
  indicate a user-triggered event.  The muxer will clear the flags for
  events it has handled in av_[interleaved]_write_frame().

func (*AVFormatContext) SetFlags

func (s *AVFormatContext) SetFlags(value int)

SetFlags sets the flags field.

Flags modifying the (de)muxer behaviour. A combination of AVFMT_FLAG_*.
Set by the user before avformat_open_input() / avformat_write_header().

func (*AVFormatContext) SetFlushPackets

func (s *AVFormatContext) SetFlushPackets(value int)

SetFlushPackets sets the flush_packets field.

Flush the I/O context after each packet.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) SetFormatProbesize

func (s *AVFormatContext) SetFormatProbesize(value int)

SetFormatProbesize sets the format_probesize field.

Maximum number of bytes read from input in order to identify the
\ref AVInputFormat "input format". Only used when the format is not set
explicitly by the caller.

Demuxing only, set by the caller before avformat_open_input().

@see probesize

func (*AVFormatContext) SetFormatWhitelist

func (s *AVFormatContext) SetFormatWhitelist(value *CStr)

SetFormatWhitelist sets the format_whitelist field.

',' separated list of allowed demuxers.
If NULL then all are allowed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetFpsProbeSize

func (s *AVFormatContext) SetFpsProbeSize(value int)

SetFpsProbeSize sets the fps_probe_size field.

The number of frames used for determining the framerate in
avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().

func (*AVFormatContext) SetIformat

func (s *AVFormatContext) SetIformat(value *AVInputFormat)

SetIformat sets the iformat field.

The input container format.

Demuxing only, set by avformat_open_input().

func (*AVFormatContext) SetIoRepositioned

func (s *AVFormatContext) SetIoRepositioned(value int)

SetIoRepositioned sets the io_repositioned field.

IO repositioned flag.
This is set by avformat when the underlying IO context read pointer
is repositioned, for example when doing byte based seeking.
Demuxers can use the flag to detect such changes.

func (*AVFormatContext) SetKey

func (s *AVFormatContext) SetKey(value unsafe.Pointer)

SetKey sets the key field.

func (*AVFormatContext) SetKeylen

func (s *AVFormatContext) SetKeylen(value int)

SetKeylen sets the keylen field.

func (*AVFormatContext) SetMaxAnalyzeDuration

func (s *AVFormatContext) SetMaxAnalyzeDuration(value int64)

SetMaxAnalyzeDuration sets the max_analyze_duration field.

Maximum duration (in AV_TIME_BASE units) of the data read
from input in avformat_find_stream_info().
Demuxing only, set by the caller before avformat_find_stream_info().
Can be set to 0 to let avformat choose using a heuristic.

func (*AVFormatContext) SetMaxChunkDuration

func (s *AVFormatContext) SetMaxChunkDuration(value int)

SetMaxChunkDuration sets the max_chunk_duration field.

Max chunk time in microseconds.
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) SetMaxChunkSize

func (s *AVFormatContext) SetMaxChunkSize(value int)

SetMaxChunkSize sets the max_chunk_size field.

Max chunk size in bytes
Note, not all formats support this and unpredictable things may happen if it is used when not supported.
- encoding: Set by user
- decoding: unused

func (*AVFormatContext) SetMaxDelay

func (s *AVFormatContext) SetMaxDelay(value int)

SetMaxDelay sets the max_delay field.

func (*AVFormatContext) SetMaxIndexSize

func (s *AVFormatContext) SetMaxIndexSize(value uint)

SetMaxIndexSize sets the max_index_size field.

Maximum amount of memory in bytes to use for the index of each stream.
If the index exceeds this size, entries will be discarded as
needed to maintain a smaller size. This can lead to slower or less
accurate seeking (depends on demuxer).
Demuxers for which a full in-memory index is mandatory will ignore
this.
- muxing: unused
- demuxing: set by user

func (*AVFormatContext) SetMaxInterleaveDelta

func (s *AVFormatContext) SetMaxInterleaveDelta(value int64)

SetMaxInterleaveDelta sets the max_interleave_delta field.

Maximum buffering duration for interleaving.

To ensure all the streams are interleaved correctly,
av_interleaved_write_frame() will wait until it has at least one packet
for each stream before actually writing any packets to the output file.
When some streams are "sparse" (i.e. there are large gaps between
successive packets), this can result in excessive buffering.

This field specifies the maximum difference between the timestamps of the
first and the last packet in the muxing queue, above which libavformat
will output a packet regardless of whether it has queued a packet for all
the streams.

Muxing only, set by the caller before avformat_write_header().

func (*AVFormatContext) SetMaxPictureBuffer

func (s *AVFormatContext) SetMaxPictureBuffer(value uint)

SetMaxPictureBuffer sets the max_picture_buffer field.

Maximum amount of memory in bytes to use for buffering frames
obtained from realtime capture devices.

func (*AVFormatContext) SetMaxProbePackets

func (s *AVFormatContext) SetMaxProbePackets(value int)

SetMaxProbePackets sets the max_probe_packets field.

Maximum number of packets that can be probed
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetMaxStreams

func (s *AVFormatContext) SetMaxStreams(value int)

SetMaxStreams sets the max_streams field.

The maximum number of streams.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetMaxTsProbe

func (s *AVFormatContext) SetMaxTsProbe(value int)

SetMaxTsProbe sets the max_ts_probe field.

Maximum number of packets to read while waiting for the first timestamp.
Decoding only.

func (*AVFormatContext) SetMetadata

func (s *AVFormatContext) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

Metadata that applies to the whole file.

- demuxing: set by libavformat in avformat_open_input()
- muxing: may be set by the caller before avformat_write_header()

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) SetMetadataHeaderPadding

func (s *AVFormatContext) SetMetadataHeaderPadding(value int)

SetMetadataHeaderPadding sets the metadata_header_padding field.

Number of bytes to be written as padding in a metadata header.
Demuxing: Unused.
Muxing: Set by user.

func (*AVFormatContext) SetNbChapters

func (s *AVFormatContext) SetNbChapters(value uint)

SetNbChapters sets the nb_chapters field.

Number of chapters in AVChapter array.
When muxing, chapters are normally written in the file header,
so nb_chapters should normally be initialized before write_header
is called. Some muxers (e.g. mov and mkv) can also write chapters
in the trailer.  To write chapters in the trailer, nb_chapters
must be zero when write_header is called and non-zero when
write_trailer is called.
- muxing: set by user
- demuxing: set by libavformat

func (*AVFormatContext) SetNbPrograms

func (s *AVFormatContext) SetNbPrograms(value uint)

SetNbPrograms sets the nb_programs field.

func (*AVFormatContext) SetNbStreamGroups

func (s *AVFormatContext) SetNbStreamGroups(value uint)

SetNbStreamGroups sets the nb_stream_groups field.

Number of elements in AVFormatContext.stream_groups.

Set by avformat_stream_group_create(), must not be modified by any other code.

func (*AVFormatContext) SetNbStreams

func (s *AVFormatContext) SetNbStreams(value uint)

SetNbStreams sets the nb_streams field.

Number of elements in AVFormatContext.streams.

Set by avformat_new_stream(), must not be modified by any other code.

func (*AVFormatContext) SetOformat

func (s *AVFormatContext) SetOformat(value *AVOutputFormat)

SetOformat sets the oformat field.

The output container format.

Muxing only, must be set by the caller before avformat_write_header().

func (*AVFormatContext) SetOpaque

func (s *AVFormatContext) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

User data.
This is a place for some private data of the user.

func (*AVFormatContext) SetOutputTsOffset

func (s *AVFormatContext) SetOutputTsOffset(value int64)

SetOutputTsOffset sets the output_ts_offset field.

Output timestamp offset, in microseconds.
Muxing: set by user

func (*AVFormatContext) SetPacketSize

func (s *AVFormatContext) SetPacketSize(value uint)

SetPacketSize sets the packet_size field.

func (*AVFormatContext) SetPb

func (s *AVFormatContext) SetPb(value *AVIOContext)

SetPb sets the pb field.

I/O context.

- demuxing: either set by the user before avformat_open_input() (then
            the user must close it manually) or set by avformat_open_input().
- muxing: set by the user before avformat_write_header(). The caller must
          take care of closing / freeing the IO context.

Do NOT set this field if AVFMT_NOFILE flag is set in
iformat/oformat.flags. In such a case, the (de)muxer will handle
I/O in some other way and this field will be NULL.

func (*AVFormatContext) SetPrivData

func (s *AVFormatContext) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

Format private data. This is an AVOptions-enabled struct
if and only if iformat/oformat.priv_class is not NULL.

- muxing: set by avformat_write_header()
- demuxing: set by avformat_open_input()

func (*AVFormatContext) SetProbeScore

func (s *AVFormatContext) SetProbeScore(value int)

SetProbeScore sets the probe_score field.

format probing score.
The maximal score is AVPROBE_SCORE_MAX, its set when the demuxer probes
the format.
- encoding: unused
- decoding: set by avformat, read by user

func (*AVFormatContext) SetProbesize

func (s *AVFormatContext) SetProbesize(value int64)

SetProbesize sets the probesize field.

Maximum number of bytes read from input in order to determine stream
properties. Used when reading the global header and in
avformat_find_stream_info().

Demuxing only, set by the caller before avformat_open_input().

@note this is \e not  used for determining the \ref AVInputFormat
      "input format"
@see format_probesize

func (*AVFormatContext) SetPrograms

func (s *AVFormatContext) SetPrograms(value *Array[AVProgram])

SetPrograms sets the programs field.

func (*AVFormatContext) SetProtocolBlacklist

func (s *AVFormatContext) SetProtocolBlacklist(value *CStr)

SetProtocolBlacklist sets the protocol_blacklist field.

',' separated list of disallowed protocols.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetProtocolWhitelist

func (s *AVFormatContext) SetProtocolWhitelist(value *CStr)

SetProtocolWhitelist sets the protocol_whitelist field.

',' separated list of allowed protocols.
- encoding: unused
- decoding: set by user

func (*AVFormatContext) SetSeek2Any

func (s *AVFormatContext) SetSeek2Any(value int)

SetSeek2Any sets the seek2any field.

Force seeking to any (also non key) frames.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetSkipEstimateDurationFromPts

func (s *AVFormatContext) SetSkipEstimateDurationFromPts(value int)

SetSkipEstimateDurationFromPts sets the skip_estimate_duration_from_pts field.

Skip duration calculation in estimate_timings_from_pts.
- encoding: unused
- decoding: set by user

@see duration_probesize

func (*AVFormatContext) SetSkipInitialBytes

func (s *AVFormatContext) SetSkipInitialBytes(value int64)

SetSkipInitialBytes sets the skip_initial_bytes field.

Skip initial bytes when opening stream
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetStartTime

func (s *AVFormatContext) SetStartTime(value int64)

SetStartTime sets the start_time field.

Position of the first frame of the component, in
AV_TIME_BASE fractional seconds. NEVER set this value directly:
It is deduced from the AVStream values.

Demuxing only, set by libavformat.

func (*AVFormatContext) SetStartTimeRealtime

func (s *AVFormatContext) SetStartTimeRealtime(value int64)

SetStartTimeRealtime sets the start_time_realtime field.

Start time of the stream in real world time, in microseconds
since the Unix epoch (00:00 1st January 1970). That is, pts=0 in the
stream was captured at this real world time.
- muxing: Set by the caller before avformat_write_header(). If set to
          either 0 or AV_NOPTS_VALUE, then the current wall-time will
          be used.
- demuxing: Set by libavformat. AV_NOPTS_VALUE if unknown. Note that
            the value may become known after some number of frames
            have been received.

func (*AVFormatContext) SetStreamGroups

func (s *AVFormatContext) SetStreamGroups(value *Array[AVStreamGroup])

SetStreamGroups sets the stream_groups field.

A list of all stream groups in the file. New groups are created with
avformat_stream_group_create(), and filled with avformat_stream_group_add_stream().

- demuxing: groups may be created by libavformat in avformat_open_input().
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new groups may also
            appear in av_read_frame().
- muxing: groups may be created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) SetStreams

func (s *AVFormatContext) SetStreams(value *Array[AVStream])

SetStreams sets the streams field.

A list of all streams in the file. New streams are created with
avformat_new_stream().

- demuxing: streams are created by libavformat in avformat_open_input().
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new streams may also
            appear in av_read_frame().
- muxing: streams are created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) SetStrictStdCompliance

func (s *AVFormatContext) SetStrictStdCompliance(value int)

SetStrictStdCompliance sets the strict_std_compliance field.

Allow non-standard and experimental extension
@see AVCodecContext.strict_std_compliance

func (*AVFormatContext) SetSubtitleCodec

func (s *AVFormatContext) SetSubtitleCodec(value *AVCodec)

SetSubtitleCodec sets the subtitle_codec field.

Forced subtitle codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) SetSubtitleCodecId

func (s *AVFormatContext) SetSubtitleCodecId(value AVCodecID)

SetSubtitleCodecId sets the subtitle_codec_id field.

Forced subtitle codec_id.
Demuxing: Set by user.

func (*AVFormatContext) SetUrl

func (s *AVFormatContext) SetUrl(value *CStr)

SetUrl sets the url field.

input or output URL. Unlike the old filename field, this field has no
length restriction.

- demuxing: set by avformat_open_input(), initialized to an empty
            string if url parameter was NULL in avformat_open_input().
- muxing: may be set by the caller before calling avformat_write_header()
          (or avformat_init_output() if that is called first) to a string
          which is freeable by av_free(). Set to an empty string if it
          was NULL in avformat_init_output().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) SetUseWallclockAsTimestamps

func (s *AVFormatContext) SetUseWallclockAsTimestamps(value int)

SetUseWallclockAsTimestamps sets the use_wallclock_as_timestamps field.

forces the use of wallclock timestamps as pts/dts of packets
This has undefined results in the presence of B frames.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) SetVideoCodec

func (s *AVFormatContext) SetVideoCodec(value *AVCodec)

SetVideoCodec sets the video_codec field.

Forced video codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) SetVideoCodecId

func (s *AVFormatContext) SetVideoCodecId(value AVCodecID)

SetVideoCodecId sets the video_codec_id field.

Forced video codec_id.
Demuxing: Set by user.

func (*AVFormatContext) SkipEstimateDurationFromPts

func (s *AVFormatContext) SkipEstimateDurationFromPts() int

SkipEstimateDurationFromPts gets the skip_estimate_duration_from_pts field.

Skip duration calculation in estimate_timings_from_pts.
- encoding: unused
- decoding: set by user

@see duration_probesize

func (*AVFormatContext) SkipInitialBytes

func (s *AVFormatContext) SkipInitialBytes() int64

SkipInitialBytes gets the skip_initial_bytes field.

Skip initial bytes when opening stream
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) StartTime

func (s *AVFormatContext) StartTime() int64

StartTime gets the start_time field.

Position of the first frame of the component, in
AV_TIME_BASE fractional seconds. NEVER set this value directly:
It is deduced from the AVStream values.

Demuxing only, set by libavformat.

func (*AVFormatContext) StartTimeRealtime

func (s *AVFormatContext) StartTimeRealtime() int64

StartTimeRealtime gets the start_time_realtime field.

Start time of the stream in real world time, in microseconds
since the Unix epoch (00:00 1st January 1970). That is, pts=0 in the
stream was captured at this real world time.
- muxing: Set by the caller before avformat_write_header(). If set to
          either 0 or AV_NOPTS_VALUE, then the current wall-time will
          be used.
- demuxing: Set by libavformat. AV_NOPTS_VALUE if unknown. Note that
            the value may become known after some number of frames
            have been received.

func (*AVFormatContext) StreamGroups

func (s *AVFormatContext) StreamGroups() *Array[*AVStreamGroup]

StreamGroups gets the stream_groups field.

A list of all stream groups in the file. New groups are created with
avformat_stream_group_create(), and filled with avformat_stream_group_add_stream().

- demuxing: groups may be created by libavformat in avformat_open_input().
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new groups may also
            appear in av_read_frame().
- muxing: groups may be created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) Streams

func (s *AVFormatContext) Streams() *Array[*AVStream]

Streams gets the streams field.

A list of all streams in the file. New streams are created with
avformat_new_stream().

- demuxing: streams are created by libavformat in avformat_open_input().
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new streams may also
            appear in av_read_frame().
- muxing: streams are created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) StrictStdCompliance

func (s *AVFormatContext) StrictStdCompliance() int

StrictStdCompliance gets the strict_std_compliance field.

Allow non-standard and experimental extension
@see AVCodecContext.strict_std_compliance

func (*AVFormatContext) SubtitleCodec

func (s *AVFormatContext) SubtitleCodec() *AVCodec

SubtitleCodec gets the subtitle_codec field.

Forced subtitle codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) SubtitleCodecId

func (s *AVFormatContext) SubtitleCodecId() AVCodecID

SubtitleCodecId gets the subtitle_codec_id field.

Forced subtitle codec_id.
Demuxing: Set by user.

func (*AVFormatContext) Url

func (s *AVFormatContext) Url() *CStr

Url gets the url field.

input or output URL. Unlike the old filename field, this field has no
length restriction.

- demuxing: set by avformat_open_input(), initialized to an empty
            string if url parameter was NULL in avformat_open_input().
- muxing: may be set by the caller before calling avformat_write_header()
          (or avformat_init_output() if that is called first) to a string
          which is freeable by av_free(). Set to an empty string if it
          was NULL in avformat_init_output().

Freed by libavformat in avformat_free_context().

func (*AVFormatContext) UseWallclockAsTimestamps

func (s *AVFormatContext) UseWallclockAsTimestamps() int

UseWallclockAsTimestamps gets the use_wallclock_as_timestamps field.

forces the use of wallclock timestamps as pts/dts of packets
This has undefined results in the presence of B frames.
- encoding: unused
- decoding: Set by user

func (*AVFormatContext) VideoCodec

func (s *AVFormatContext) VideoCodec() *AVCodec

VideoCodec gets the video_codec field.

Forced video codec.
This allows forcing a specific decoder, even when there are multiple with
the same codec_id.
Demuxing: Set by user

func (*AVFormatContext) VideoCodecId

func (s *AVFormatContext) VideoCodecId() AVCodecID

VideoCodecId gets the video_codec_id field.

Forced video codec_id.
Demuxing: Set by user.

type AVFormatControlMessage

type AVFormatControlMessage unsafe.Pointer

AVFormatControlMessage is a function pointer typedef for av_format_control_message.

type AVFrame

type AVFrame struct {
	// contains filtered or unexported fields
}

AVFrame wraps AVFrame.

This structure describes decoded (raw) audio or video data.

AVFrame must be allocated using av_frame_alloc(). Note that this only
allocates the AVFrame itself, the buffers for the data must be managed
through other means (see below).
AVFrame must be freed with av_frame_free().

AVFrame is typically allocated once and then reused multiple times to hold
different data (e.g. a single AVFrame to hold frames received from a
decoder). In such a case, av_frame_unref() will free any references held by
the frame and reset it to its original clean state before it
is reused again.

The data described by an AVFrame is usually reference counted through the
AVBuffer API. The underlying buffer references are stored in AVFrame.buf /
AVFrame.extended_buf. An AVFrame is considered to be reference counted if at
least one reference is set, i.e. if AVFrame.buf[0] != NULL. In such a case,
every single data plane must be contained in one of the buffers in
AVFrame.buf or AVFrame.extended_buf.
There may be a single buffer for all the data, or one separate buffer for
each plane, or anything in between.

sizeof(AVFrame) is not a part of the public ABI, so new fields may be added
to the end with a minor bump.

Fields can be accessed through AVOptions, the name string used, matches the
C structure field name for fields accessible through AVOptions.

func AVFrameAlloc

func AVFrameAlloc() *AVFrame

AVFrameAlloc wraps av_frame_alloc.

Allocate an AVFrame and set its fields to default values.  The resulting
struct must be freed using av_frame_free().

@return An AVFrame filled with default values or NULL on failure.

@note this only allocates the AVFrame itself, not the data buffers. Those
must be allocated through other means, e.g. with av_frame_get_buffer() or
manually.

func AVFrameClone

func AVFrameClone(src *AVFrame) *AVFrame

AVFrameClone wraps av_frame_clone.

Create a new frame that references the same data as src.

This is a shortcut for av_frame_alloc()+av_frame_ref().

@return newly created AVFrame on success, NULL on error.

func (*AVFrame) BestEffortTimestamp

func (s *AVFrame) BestEffortTimestamp() int64

BestEffortTimestamp gets the best_effort_timestamp field.

frame timestamp estimated using various heuristics, in stream time base
- encoding: unused
- decoding: set by libavcodec, read by user.

func (*AVFrame) Buf

func (s *AVFrame) Buf() *Array[*AVBufferRef]

Buf gets the buf field.

AVBuffer references backing the data for this frame. All the pointers in
data and extended_data must point inside one of the buffers in buf or
extended_buf. This array must be filled contiguously -- if buf[i] is
non-NULL then buf[j] must also be non-NULL for all j < i.

There may be at most one AVBuffer per data plane, so for video this array
always contains all the references. For planar audio with more than
AV_NUM_DATA_POINTERS channels, there may be more buffers than can fit in
this array. Then the extra AVBufferRef pointers are stored in the
extended_buf array.

func (*AVFrame) ChLayout

func (s *AVFrame) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

Channel layout of the audio data.

func (*AVFrame) ChromaLocation

func (s *AVFrame) ChromaLocation() AVChromaLocation

ChromaLocation gets the chroma_location field.

func (*AVFrame) ColorPrimaries

func (s *AVFrame) ColorPrimaries() AVColorPrimaries

ColorPrimaries gets the color_primaries field.

func (*AVFrame) ColorRange

func (s *AVFrame) ColorRange() AVColorRange

ColorRange gets the color_range field.

MPEG vs JPEG YUV range.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVFrame) ColorTrc

func (s *AVFrame) ColorTrc() AVColorTransferCharacteristic

ColorTrc gets the color_trc field.

func (*AVFrame) Colorspace

func (s *AVFrame) Colorspace() AVColorSpace

Colorspace gets the colorspace field.

YUV colorspace type.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVFrame) CropBottom

func (s *AVFrame) CropBottom() uint64

CropBottom gets the crop_bottom field.

func (*AVFrame) CropLeft

func (s *AVFrame) CropLeft() uint64

CropLeft gets the crop_left field.

func (*AVFrame) CropRight

func (s *AVFrame) CropRight() uint64

CropRight gets the crop_right field.

func (*AVFrame) CropTop

func (s *AVFrame) CropTop() uint64

CropTop gets the crop_top field.

func (*AVFrame) Data

func (s *AVFrame) Data() *Array[unsafe.Pointer]

Data gets the data field.

pointer to the picture/channel planes.
This might be different from the first allocated byte. For video,
it could even point to the end of the image data.

All pointers in data and extended_data must point into one of the
AVBufferRef in buf or extended_buf.

Some decoders access areas outside 0,0 - width,height, please
see avcodec_align_dimensions2(). Some filters and swscale can read
up to 16 bytes beyond the planes, if these filters are to be used,
then 16 extra bytes must be allocated.

NOTE: Pointers not needed by the format MUST be set to NULL.

@attention In case of video, the data[] pointers can point to the
end of image data in order to reverse line order, when used in
combination with negative values in the linesize[] array.

func (*AVFrame) DecodeErrorFlags

func (s *AVFrame) DecodeErrorFlags() int

DecodeErrorFlags gets the decode_error_flags field.

decode error flags of the frame, set to a combination of
FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there
were errors during the decoding.
- encoding: unused
- decoding: set by libavcodec, read by user.

func (*AVFrame) Duration

func (s *AVFrame) Duration() int64

Duration gets the duration field.

Duration of the frame, in the same units as pts. 0 if unknown.

func (*AVFrame) ExtendedBuf

func (s *AVFrame) ExtendedBuf() *Array[*AVBufferRef]

ExtendedBuf gets the extended_buf field.

For planar audio which requires more than AV_NUM_DATA_POINTERS
AVBufferRef pointers, this array will hold all the references which
cannot fit into AVFrame.buf.

Note that this is different from AVFrame.extended_data, which always
contains all the pointers. This array only contains the extra pointers,
which cannot fit into AVFrame.buf.

This array is always allocated using av_malloc() by whoever constructs
the frame. It is freed in av_frame_unref().

func (*AVFrame) Flags

func (s *AVFrame) Flags() int

Flags gets the flags field.

Frame flags, a combination of @ref lavu_frame_flags

func (*AVFrame) Format

func (s *AVFrame) Format() int

Format gets the format field.

format of the frame, -1 if unknown or unset
Values correspond to enum AVPixelFormat for video frames,
enum AVSampleFormat for audio)

func (*AVFrame) Height

func (s *AVFrame) Height() int

Height gets the height field.

func (*AVFrame) HwFramesCtx

func (s *AVFrame) HwFramesCtx() *AVBufferRef

HwFramesCtx gets the hw_frames_ctx field.

For hwaccel-format frames, this should be a reference to the
AVHWFramesContext describing the frame.

func (*AVFrame) Linesize

func (s *AVFrame) Linesize() *Array[int]

Linesize gets the linesize field.

For video, a positive or negative value, which is typically indicating
the size in bytes of each picture line, but it can also be:
- the negative byte size of lines for vertical flipping
  (with data[n] pointing to the end of the data
- a positive or negative multiple of the byte size as for accessing
  even and odd fields of a frame (possibly flipped)

For audio, only linesize[0] may be set. For planar audio, each channel
plane must be the same size.

For video the linesizes should be multiples of the CPUs alignment
preference, this is 16 or 32 for modern desktop CPUs.
Some code requires such alignment other code can be slower without
correct alignment, for yet other it makes no difference.

@note The linesize may be larger than the size of usable data -- there
may be extra padding present for performance reasons.

@attention In case of video, line size values can be negative to achieve
a vertically inverted iteration over image lines.

func (*AVFrame) Metadata

func (s *AVFrame) Metadata() *AVDictionary

Metadata gets the metadata field.

metadata.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVFrame) NbExtendedBuf

func (s *AVFrame) NbExtendedBuf() int

NbExtendedBuf gets the nb_extended_buf field.

Number of elements in extended_buf.

func (*AVFrame) NbSamples

func (s *AVFrame) NbSamples() int

NbSamples gets the nb_samples field.

number of audio samples (per channel) described by this frame

func (*AVFrame) NbSideData

func (s *AVFrame) NbSideData() int

NbSideData gets the nb_side_data field.

func (*AVFrame) Opaque

func (s *AVFrame) Opaque() unsafe.Pointer

Opaque gets the opaque field.

Frame owner's private data.

This field may be set by the code that allocates/owns the frame data.
It is then not touched by any library functions, except:
- it is copied to other references by av_frame_copy_props() (and hence by
  av_frame_ref());
- it is set to NULL when the frame is cleared by av_frame_unref()
- on the caller's explicit request. E.g. libavcodec encoders/decoders
  will copy this field to/from @ref AVPacket "AVPackets" if the caller sets
  @ref AV_CODEC_FLAG_COPY_OPAQUE.

@see opaque_ref the reference-counted analogue

func (*AVFrame) OpaqueRef

func (s *AVFrame) OpaqueRef() *AVBufferRef

OpaqueRef gets the opaque_ref field.

Frame owner's private data.

This field may be set by the code that allocates/owns the frame data.
It is then not touched by any library functions, except:
- a new reference to the underlying buffer is propagated by
  av_frame_copy_props() (and hence by av_frame_ref());
- it is unreferenced in av_frame_unref();
- on the caller's explicit request. E.g. libavcodec encoders/decoders
  will propagate a new reference to/from @ref AVPacket "AVPackets" if the
  caller sets @ref AV_CODEC_FLAG_COPY_OPAQUE.

@see opaque the plain pointer analogue

func (*AVFrame) PictType

func (s *AVFrame) PictType() AVPictureType

PictType gets the pict_type field.

Picture type of the frame.

func (*AVFrame) PktDts

func (s *AVFrame) PktDts() int64

PktDts gets the pkt_dts field.

DTS copied from the AVPacket that triggered returning this frame. (if frame threading isn't used)
This is also the Presentation time of this AVFrame calculated from
only AVPacket.dts values without pts values.

func (*AVFrame) PrivateRef

func (s *AVFrame) PrivateRef() unsafe.Pointer

PrivateRef gets the private_ref field.

RefStruct reference for internal use by a single libav* library.
Must not be used to transfer data between libraries.
Has to be NULL when ownership of the frame leaves the respective library.

Code outside the FFmpeg libs must never check or change private_ref.

func (*AVFrame) Pts

func (s *AVFrame) Pts() int64

Pts gets the pts field.

Presentation timestamp in time_base units (time when frame should be shown to user).

func (*AVFrame) Quality

func (s *AVFrame) Quality() int

Quality gets the quality field.

quality (between 1 (good) and FF_LAMBDA_MAX (bad))

func (*AVFrame) RawPtr

func (s *AVFrame) RawPtr() unsafe.Pointer

func (*AVFrame) RepeatPict

func (s *AVFrame) RepeatPict() int

RepeatPict gets the repeat_pict field.

Number of fields in this frame which should be repeated, i.e. the total
duration of this frame should be repeat_pict + 2 normal field durations.

For interlaced frames this field may be set to 1, which signals that this
frame should be presented as 3 fields: beginning with the first field (as
determined by AV_FRAME_FLAG_TOP_FIELD_FIRST being set or not), followed
by the second field, and then the first field again.

For progressive frames this field may be set to a multiple of 2, which
signals that this frame's duration should be (repeat_pict + 2) / 2
normal frame durations.

@note This field is computed from MPEG2 repeat_first_field flag and its
associated flags, H.264 pic_struct from picture timing SEI, and
their analogues in other codecs. Typically it should only be used when
higher-layer timing information is not available.

func (*AVFrame) SampleAspectRatio

func (s *AVFrame) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.

func (*AVFrame) SampleRate

func (s *AVFrame) SampleRate() int

SampleRate gets the sample_rate field.

Sample rate of the audio data.

func (*AVFrame) SetBestEffortTimestamp

func (s *AVFrame) SetBestEffortTimestamp(value int64)

SetBestEffortTimestamp sets the best_effort_timestamp field.

frame timestamp estimated using various heuristics, in stream time base
- encoding: unused
- decoding: set by libavcodec, read by user.

func (*AVFrame) SetChromaLocation

func (s *AVFrame) SetChromaLocation(value AVChromaLocation)

SetChromaLocation sets the chroma_location field.

func (*AVFrame) SetColorPrimaries

func (s *AVFrame) SetColorPrimaries(value AVColorPrimaries)

SetColorPrimaries sets the color_primaries field.

func (*AVFrame) SetColorRange

func (s *AVFrame) SetColorRange(value AVColorRange)

SetColorRange sets the color_range field.

MPEG vs JPEG YUV range.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVFrame) SetColorTrc

func (s *AVFrame) SetColorTrc(value AVColorTransferCharacteristic)

SetColorTrc sets the color_trc field.

func (*AVFrame) SetColorspace

func (s *AVFrame) SetColorspace(value AVColorSpace)

SetColorspace sets the colorspace field.

YUV colorspace type.
- encoding: Set by user
- decoding: Set by libavcodec

func (*AVFrame) SetCropBottom

func (s *AVFrame) SetCropBottom(value uint64)

SetCropBottom sets the crop_bottom field.

func (*AVFrame) SetCropLeft

func (s *AVFrame) SetCropLeft(value uint64)

SetCropLeft sets the crop_left field.

func (*AVFrame) SetCropRight

func (s *AVFrame) SetCropRight(value uint64)

SetCropRight sets the crop_right field.

func (*AVFrame) SetCropTop

func (s *AVFrame) SetCropTop(value uint64)

SetCropTop sets the crop_top field.

func (*AVFrame) SetDecodeErrorFlags

func (s *AVFrame) SetDecodeErrorFlags(value int)

SetDecodeErrorFlags sets the decode_error_flags field.

decode error flags of the frame, set to a combination of
FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there
were errors during the decoding.
- encoding: unused
- decoding: set by libavcodec, read by user.

func (*AVFrame) SetDuration

func (s *AVFrame) SetDuration(value int64)

SetDuration sets the duration field.

Duration of the frame, in the same units as pts. 0 if unknown.

func (*AVFrame) SetExtendedBuf

func (s *AVFrame) SetExtendedBuf(value *Array[AVBufferRef])

SetExtendedBuf sets the extended_buf field.

For planar audio which requires more than AV_NUM_DATA_POINTERS
AVBufferRef pointers, this array will hold all the references which
cannot fit into AVFrame.buf.

Note that this is different from AVFrame.extended_data, which always
contains all the pointers. This array only contains the extra pointers,
which cannot fit into AVFrame.buf.

This array is always allocated using av_malloc() by whoever constructs
the frame. It is freed in av_frame_unref().

func (*AVFrame) SetFlags

func (s *AVFrame) SetFlags(value int)

SetFlags sets the flags field.

Frame flags, a combination of @ref lavu_frame_flags

func (*AVFrame) SetFormat

func (s *AVFrame) SetFormat(value int)

SetFormat sets the format field.

format of the frame, -1 if unknown or unset
Values correspond to enum AVPixelFormat for video frames,
enum AVSampleFormat for audio)

func (*AVFrame) SetHeight

func (s *AVFrame) SetHeight(value int)

SetHeight sets the height field.

func (*AVFrame) SetHwFramesCtx

func (s *AVFrame) SetHwFramesCtx(value *AVBufferRef)

SetHwFramesCtx sets the hw_frames_ctx field.

For hwaccel-format frames, this should be a reference to the
AVHWFramesContext describing the frame.

func (*AVFrame) SetMetadata

func (s *AVFrame) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

metadata.
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVFrame) SetNbExtendedBuf

func (s *AVFrame) SetNbExtendedBuf(value int)

SetNbExtendedBuf sets the nb_extended_buf field.

Number of elements in extended_buf.

func (*AVFrame) SetNbSamples

func (s *AVFrame) SetNbSamples(value int)

SetNbSamples sets the nb_samples field.

number of audio samples (per channel) described by this frame

func (*AVFrame) SetNbSideData

func (s *AVFrame) SetNbSideData(value int)

SetNbSideData sets the nb_side_data field.

func (*AVFrame) SetOpaque

func (s *AVFrame) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

Frame owner's private data.

This field may be set by the code that allocates/owns the frame data.
It is then not touched by any library functions, except:
- it is copied to other references by av_frame_copy_props() (and hence by
  av_frame_ref());
- it is set to NULL when the frame is cleared by av_frame_unref()
- on the caller's explicit request. E.g. libavcodec encoders/decoders
  will copy this field to/from @ref AVPacket "AVPackets" if the caller sets
  @ref AV_CODEC_FLAG_COPY_OPAQUE.

@see opaque_ref the reference-counted analogue

func (*AVFrame) SetOpaqueRef

func (s *AVFrame) SetOpaqueRef(value *AVBufferRef)

SetOpaqueRef sets the opaque_ref field.

Frame owner's private data.

This field may be set by the code that allocates/owns the frame data.
It is then not touched by any library functions, except:
- a new reference to the underlying buffer is propagated by
  av_frame_copy_props() (and hence by av_frame_ref());
- it is unreferenced in av_frame_unref();
- on the caller's explicit request. E.g. libavcodec encoders/decoders
  will propagate a new reference to/from @ref AVPacket "AVPackets" if the
  caller sets @ref AV_CODEC_FLAG_COPY_OPAQUE.

@see opaque the plain pointer analogue

func (*AVFrame) SetPictType

func (s *AVFrame) SetPictType(value AVPictureType)

SetPictType sets the pict_type field.

Picture type of the frame.

func (*AVFrame) SetPktDts

func (s *AVFrame) SetPktDts(value int64)

SetPktDts sets the pkt_dts field.

DTS copied from the AVPacket that triggered returning this frame. (if frame threading isn't used)
This is also the Presentation time of this AVFrame calculated from
only AVPacket.dts values without pts values.

func (*AVFrame) SetPrivateRef

func (s *AVFrame) SetPrivateRef(value unsafe.Pointer)

SetPrivateRef sets the private_ref field.

RefStruct reference for internal use by a single libav* library.
Must not be used to transfer data between libraries.
Has to be NULL when ownership of the frame leaves the respective library.

Code outside the FFmpeg libs must never check or change private_ref.

func (*AVFrame) SetPts

func (s *AVFrame) SetPts(value int64)

SetPts sets the pts field.

Presentation timestamp in time_base units (time when frame should be shown to user).

func (*AVFrame) SetQuality

func (s *AVFrame) SetQuality(value int)

SetQuality sets the quality field.

quality (between 1 (good) and FF_LAMBDA_MAX (bad))

func (*AVFrame) SetRepeatPict

func (s *AVFrame) SetRepeatPict(value int)

SetRepeatPict sets the repeat_pict field.

Number of fields in this frame which should be repeated, i.e. the total
duration of this frame should be repeat_pict + 2 normal field durations.

For interlaced frames this field may be set to 1, which signals that this
frame should be presented as 3 fields: beginning with the first field (as
determined by AV_FRAME_FLAG_TOP_FIELD_FIRST being set or not), followed
by the second field, and then the first field again.

For progressive frames this field may be set to a multiple of 2, which
signals that this frame's duration should be (repeat_pict + 2) / 2
normal frame durations.

@note This field is computed from MPEG2 repeat_first_field flag and its
associated flags, H.264 pic_struct from picture timing SEI, and
their analogues in other codecs. Typically it should only be used when
higher-layer timing information is not available.

func (*AVFrame) SetSampleAspectRatio

func (s *AVFrame) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.

func (*AVFrame) SetSampleRate

func (s *AVFrame) SetSampleRate(value int)

SetSampleRate sets the sample_rate field.

Sample rate of the audio data.

func (*AVFrame) SetSideData

func (s *AVFrame) SetSideData(value *Array[AVFrameSideData])

SetSideData sets the side_data field.

func (*AVFrame) SetTimeBase

func (s *AVFrame) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

Time base for the timestamps in this frame.
In the future, this field may be set on frames output by decoders or
filters, but its value will be by default ignored on input to encoders
or filters.

func (*AVFrame) SetWidth

func (s *AVFrame) SetWidth(value int)

SetWidth sets the width field.

func (*AVFrame) SideData

func (s *AVFrame) SideData() *Array[*AVFrameSideData]

SideData gets the side_data field.

func (*AVFrame) TimeBase

func (s *AVFrame) TimeBase() *AVRational

TimeBase gets the time_base field.

Time base for the timestamps in this frame.
In the future, this field may be set on frames output by decoders or
filters, but its value will be by default ignored on input to encoders
or filters.

func (*AVFrame) Width

func (s *AVFrame) Width() int

Width gets the width field.

type AVFrameSideData

type AVFrameSideData struct {
	// contains filtered or unexported fields
}

AVFrameSideData wraps AVFrameSideData.

Structure to hold side data for an AVFrame.

sizeof(AVFrameSideData) is not a part of the public ABI, so new fields may be added
to the end with a minor bump.

func AVFrameGetSideData

func AVFrameGetSideData(frame *AVFrame, _type AVFrameSideDataType) *AVFrameSideData

AVFrameGetSideData wraps av_frame_get_side_data.

@return a pointer to the side data of a given type on success, NULL if there
is no side data with such type in this frame.

func AVFrameNewSideData

func AVFrameNewSideData(frame *AVFrame, _type AVFrameSideDataType, size uint64) *AVFrameSideData

AVFrameNewSideData wraps av_frame_new_side_data.

Add a new side data to a frame.

@param frame a frame to which the side data should be added
@param type type of the added side data
@param size size of the side data

@return newly added side data on success, NULL on error

func AVFrameNewSideDataFromBuf

func AVFrameNewSideDataFromBuf(frame *AVFrame, _type AVFrameSideDataType, buf *AVBufferRef) *AVFrameSideData

AVFrameNewSideDataFromBuf wraps av_frame_new_side_data_from_buf.

Add a new side data to a frame from an existing AVBufferRef

@param frame a frame to which the side data should be added
@param type  the type of the added side data
@param buf   an AVBufferRef to add as side data. The ownership of
             the reference is transferred to the frame.

@return newly added side data on success, NULL on error. On failure
        the frame is unchanged and the AVBufferRef remains owned by
        the caller.

func AVFrameSideDataGet

func AVFrameSideDataGet(sd **AVFrameSideData, nbSd int, _type AVFrameSideDataType) *AVFrameSideData

AVFrameSideDataGet wraps av_frame_side_data_get.

Wrapper around av_frame_side_data_get_c() to workaround the limitation
that for any type T the conversion from T * const * to const T * const *
is not performed automatically in C.
@see av_frame_side_data_get_c()

func AVFrameSideDataGetC

func AVFrameSideDataGetC(sd **AVFrameSideData, nbSd int, _type AVFrameSideDataType) *AVFrameSideData

AVFrameSideDataGetC wraps av_frame_side_data_get_c.

Get a side data entry of a specific type from an array.

@param sd    array of side data.
@param nb_sd integer containing the number of entries in the array.
@param type  type of side data to be queried

@return a pointer to the side data of a given type on success, NULL if there
        is no side data with such type in this set.

func (*AVFrameSideData) Buf

func (s *AVFrameSideData) Buf() *AVBufferRef

Buf gets the buf field.

func (*AVFrameSideData) Data

func (s *AVFrameSideData) Data() unsafe.Pointer

Data gets the data field.

func (*AVFrameSideData) Metadata

func (s *AVFrameSideData) Metadata() *AVDictionary

Metadata gets the metadata field.

func (*AVFrameSideData) RawPtr

func (s *AVFrameSideData) RawPtr() unsafe.Pointer

func (*AVFrameSideData) SetBuf

func (s *AVFrameSideData) SetBuf(value *AVBufferRef)

SetBuf sets the buf field.

func (*AVFrameSideData) SetData

func (s *AVFrameSideData) SetData(value unsafe.Pointer)

SetData sets the data field.

func (*AVFrameSideData) SetMetadata

func (s *AVFrameSideData) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

func (*AVFrameSideData) SetSize

func (s *AVFrameSideData) SetSize(value uint64)

SetSize sets the size field.

func (*AVFrameSideData) SetType

func (s *AVFrameSideData) SetType(value AVFrameSideDataType)

SetType sets the type field.

func (*AVFrameSideData) Size

func (s *AVFrameSideData) Size() uint64

Size gets the size field.

func (*AVFrameSideData) Type

Type gets the type field.

type AVFrameSideDataType

type AVFrameSideDataType C.enum_AVFrameSideDataType

AVFrameSideDataType wraps AVFrameSideDataType.

AVFrame is an abstraction for reference-counted raw multimedia data.
const (
	// AVFrameDataPanscan wraps AV_FRAME_DATA_PANSCAN.
	//
	//	The data is the AVPanScan struct defined in libavcodec.
	AVFrameDataPanscan AVFrameSideDataType = C.AV_FRAME_DATA_PANSCAN
	// AVFrameDataA53Cc wraps AV_FRAME_DATA_A53_CC.
	/*
	   ATSC A53 Part 4 Closed Captions.
	   A53 CC bitstream is stored as uint8_t in AVFrameSideData.data.
	   The number of bytes of CC data is AVFrameSideData.size.
	*/
	AVFrameDataA53Cc AVFrameSideDataType = C.AV_FRAME_DATA_A53_CC
	// AVFrameDataStereo3D wraps AV_FRAME_DATA_STEREO3D.
	/*
	   Stereoscopic 3d metadata.
	   The data is the AVStereo3D struct defined in libavutil/stereo3d.h.
	*/
	AVFrameDataStereo3D AVFrameSideDataType = C.AV_FRAME_DATA_STEREO3D
	// AVFrameDataMatrixencoding wraps AV_FRAME_DATA_MATRIXENCODING.
	//
	//	The data is the AVMatrixEncoding enum defined in libavutil/channel_layout.h.
	AVFrameDataMatrixencoding AVFrameSideDataType = C.AV_FRAME_DATA_MATRIXENCODING
	// AVFrameDataDownmixInfo wraps AV_FRAME_DATA_DOWNMIX_INFO.
	/*
	   Metadata relevant to a downmix procedure.
	   The data is the AVDownmixInfo struct defined in libavutil/downmix_info.h.
	*/
	AVFrameDataDownmixInfo AVFrameSideDataType = C.AV_FRAME_DATA_DOWNMIX_INFO
	// AVFrameDataReplaygain wraps AV_FRAME_DATA_REPLAYGAIN.
	//
	//	ReplayGain information in the form of the AVReplayGain struct.
	AVFrameDataReplaygain AVFrameSideDataType = C.AV_FRAME_DATA_REPLAYGAIN
	// AVFrameDataDisplaymatrix wraps AV_FRAME_DATA_DISPLAYMATRIX.
	/*
	   This side data contains a 3x3 transformation matrix describing an affine
	   transformation that needs to be applied to the frame for correct
	   presentation.

	   See libavutil/display.h for a detailed description of the data.
	*/
	AVFrameDataDisplaymatrix AVFrameSideDataType = C.AV_FRAME_DATA_DISPLAYMATRIX
	// AVFrameDataAfd wraps AV_FRAME_DATA_AFD.
	/*
	   Active Format Description data consisting of a single byte as specified
	   in ETSI TS 101 154 using AVActiveFormatDescription enum.
	*/
	AVFrameDataAfd AVFrameSideDataType = C.AV_FRAME_DATA_AFD
	// AVFrameDataMotionVectors wraps AV_FRAME_DATA_MOTION_VECTORS.
	/*
	   Motion vectors exported by some codecs (on demand through the export_mvs
	   flag set in the libavcodec AVCodecContext flags2 option).
	   The data is the AVMotionVector struct defined in
	   libavutil/motion_vector.h.
	*/
	AVFrameDataMotionVectors AVFrameSideDataType = C.AV_FRAME_DATA_MOTION_VECTORS
	// AVFrameDataSkipSamples wraps AV_FRAME_DATA_SKIP_SAMPLES.
	/*
	   Recommends skipping the specified number of samples. This is exported
	   only if the "skip_manual" AVOption is set in libavcodec.
	   This has the same format as AV_PKT_DATA_SKIP_SAMPLES.
	   @code
	   u32le number of samples to skip from start of this packet
	   u32le number of samples to skip from end of this packet
	   u8    reason for start skip
	   u8    reason for end   skip (0=padding silence, 1=convergence)
	   @endcode
	*/
	AVFrameDataSkipSamples AVFrameSideDataType = C.AV_FRAME_DATA_SKIP_SAMPLES
	// AVFrameDataAudioServiceType wraps AV_FRAME_DATA_AUDIO_SERVICE_TYPE.
	/*
	   This side data must be associated with an audio frame and corresponds to
	   enum AVAudioServiceType defined in avcodec.h.
	*/
	AVFrameDataAudioServiceType AVFrameSideDataType = C.AV_FRAME_DATA_AUDIO_SERVICE_TYPE
	// AVFrameDataMasteringDisplayMetadata wraps AV_FRAME_DATA_MASTERING_DISPLAY_METADATA.
	/*
	   Mastering display metadata associated with a video frame. The payload is
	   an AVMasteringDisplayMetadata type and contains information about the
	   mastering display color volume.
	*/
	AVFrameDataMasteringDisplayMetadata AVFrameSideDataType = C.AV_FRAME_DATA_MASTERING_DISPLAY_METADATA
	// AVFrameDataGopTimecode wraps AV_FRAME_DATA_GOP_TIMECODE.
	/*
	   The GOP timecode in 25 bit timecode format. Data format is 64-bit integer.
	   This is set on the first frame of a GOP that has a temporal reference of 0.
	*/
	AVFrameDataGopTimecode AVFrameSideDataType = C.AV_FRAME_DATA_GOP_TIMECODE
	// AVFrameDataSpherical wraps AV_FRAME_DATA_SPHERICAL.
	/*
	   The data represents the AVSphericalMapping structure defined in
	   libavutil/spherical.h.
	*/
	AVFrameDataSpherical AVFrameSideDataType = C.AV_FRAME_DATA_SPHERICAL
	// AVFrameDataContentLightLevel wraps AV_FRAME_DATA_CONTENT_LIGHT_LEVEL.
	/*
	   Content light level (based on CTA-861.3). This payload contains data in
	   the form of the AVContentLightMetadata struct.
	*/
	AVFrameDataContentLightLevel AVFrameSideDataType = C.AV_FRAME_DATA_CONTENT_LIGHT_LEVEL
	// AVFrameDataIccProfile wraps AV_FRAME_DATA_ICC_PROFILE.
	/*
	   The data contains an ICC profile as an opaque octet buffer following the
	   format described by ISO 15076-1 with an optional name defined in the
	   metadata key entry "name".
	*/
	AVFrameDataIccProfile AVFrameSideDataType = C.AV_FRAME_DATA_ICC_PROFILE
	// AVFrameDataS12MTimecode wraps AV_FRAME_DATA_S12M_TIMECODE.
	/*
	   Timecode which conforms to SMPTE ST 12-1. The data is an array of 4 uint32_t
	   where the first uint32_t describes how many (1-3) of the other timecodes are used.
	   The timecode format is described in the documentation of av_timecode_get_smpte_from_framenum()
	   function in libavutil/timecode.h.
	*/
	AVFrameDataS12MTimecode AVFrameSideDataType = C.AV_FRAME_DATA_S12M_TIMECODE
	// AVFrameDataDynamicHdrPlus wraps AV_FRAME_DATA_DYNAMIC_HDR_PLUS.
	/*
	   HDR dynamic metadata associated with a video frame. The payload is
	   an AVDynamicHDRPlus type and contains information for color
	   volume transform - application 4 of SMPTE 2094-40:2016 standard.
	*/
	AVFrameDataDynamicHdrPlus AVFrameSideDataType = C.AV_FRAME_DATA_DYNAMIC_HDR_PLUS
	// AVFrameDataRegionsOfInterest wraps AV_FRAME_DATA_REGIONS_OF_INTEREST.
	/*
	   Regions Of Interest, the data is an array of AVRegionOfInterest type, the number of
	   array element is implied by AVFrameSideData.size / AVRegionOfInterest.self_size.
	*/
	AVFrameDataRegionsOfInterest AVFrameSideDataType = C.AV_FRAME_DATA_REGIONS_OF_INTEREST
	// AVFrameDataVideoEncParams wraps AV_FRAME_DATA_VIDEO_ENC_PARAMS.
	//
	//	Encoding parameters for a video frame, as described by AVVideoEncParams.
	AVFrameDataVideoEncParams AVFrameSideDataType = C.AV_FRAME_DATA_VIDEO_ENC_PARAMS
	// AVFrameDataSeiUnregistered wraps AV_FRAME_DATA_SEI_UNREGISTERED.
	/*
	   User data unregistered metadata associated with a video frame.
	   This is the H.26[45] UDU SEI message, and shouldn't be used for any other purpose
	   The data is stored as uint8_t in AVFrameSideData.data which is 16 bytes of
	   uuid_iso_iec_11578 followed by AVFrameSideData.size - 16 bytes of user_data_payload_byte.
	*/
	AVFrameDataSeiUnregistered AVFrameSideDataType = C.AV_FRAME_DATA_SEI_UNREGISTERED
	// AVFrameDataFilmGrainParams wraps AV_FRAME_DATA_FILM_GRAIN_PARAMS.
	/*
	   Film grain parameters for a frame, described by AVFilmGrainParams.
	   Must be present for every frame which should have film grain applied.

	   May be present multiple times, for example when there are multiple
	   alternative parameter sets for different video signal characteristics.
	   The user should select the most appropriate set for the application.
	*/
	AVFrameDataFilmGrainParams AVFrameSideDataType = C.AV_FRAME_DATA_FILM_GRAIN_PARAMS
	// AVFrameDataDetectionBboxes wraps AV_FRAME_DATA_DETECTION_BBOXES.
	/*
	   Bounding boxes for object detection and classification,
	   as described by AVDetectionBBoxHeader.
	*/
	AVFrameDataDetectionBboxes AVFrameSideDataType = C.AV_FRAME_DATA_DETECTION_BBOXES
	// AVFrameDataDoviRpuBuffer wraps AV_FRAME_DATA_DOVI_RPU_BUFFER.
	/*
	   Dolby Vision RPU raw data, suitable for passing to x265
	   or other libraries. Array of uint8_t, with NAL emulation
	   bytes intact.
	*/
	AVFrameDataDoviRpuBuffer AVFrameSideDataType = C.AV_FRAME_DATA_DOVI_RPU_BUFFER
	// AVFrameDataDoviMetadata wraps AV_FRAME_DATA_DOVI_METADATA.
	/*
	   Parsed Dolby Vision metadata, suitable for passing to a software
	   implementation. The payload is the AVDOVIMetadata struct defined in
	   libavutil/dovi_meta.h.
	*/
	AVFrameDataDoviMetadata AVFrameSideDataType = C.AV_FRAME_DATA_DOVI_METADATA
	// AVFrameDataDynamicHdrVivid wraps AV_FRAME_DATA_DYNAMIC_HDR_VIVID.
	/*
	   HDR Vivid dynamic metadata associated with a video frame. The payload is
	   an AVDynamicHDRVivid type and contains information for color
	   volume transform - CUVA 005.1-2021.
	*/
	AVFrameDataDynamicHdrVivid AVFrameSideDataType = C.AV_FRAME_DATA_DYNAMIC_HDR_VIVID
	// AVFrameDataAmbientViewingEnvironment wraps AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT.
	//
	//	Ambient viewing environment metadata, as defined by H.274.
	AVFrameDataAmbientViewingEnvironment AVFrameSideDataType = C.AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT
	// AVFrameDataVideoHint wraps AV_FRAME_DATA_VIDEO_HINT.
	/*
	   Provide encoder-specific hinting information about changed/unchanged
	   portions of a frame.  It can be used to pass information about which
	   macroblocks can be skipped because they didn't change from the
	   corresponding ones in the previous frame. This could be useful for
	   applications which know this information in advance to speed up
	   encoding.
	*/
	AVFrameDataVideoHint AVFrameSideDataType = C.AV_FRAME_DATA_VIDEO_HINT
	// AVFrameDataLcevc wraps AV_FRAME_DATA_LCEVC.
	/*
	   Raw LCEVC payload data, as a uint8_t array, with NAL emulation
	   bytes intact.
	*/
	AVFrameDataLcevc AVFrameSideDataType = C.AV_FRAME_DATA_LCEVC
	// AVFrameDataViewId wraps AV_FRAME_DATA_VIEW_ID.
	/*
	   This side data must be associated with a video frame.
	   The presence of this side data indicates that the video stream is
	   composed of multiple views (e.g. stereoscopic 3D content,
	   cf. H.264 Annex H or H.265 Annex G).
	   The data is an int storing the view ID.
	*/
	AVFrameDataViewId AVFrameSideDataType = C.AV_FRAME_DATA_VIEW_ID
	// AVFrameData3DReferenceDisplays wraps AV_FRAME_DATA_3D_REFERENCE_DISPLAYS.
	/*
	   This side data contains information about the reference display width(s)
	   and reference viewing distance(s) as well as information about the
	   corresponding reference stereo pair(s), i.e., the pair(s) of views to be
	   displayed for the viewer's left and right eyes on the reference display
	   at the reference viewing distance.
	   The payload is the AV3DReferenceDisplaysInfo struct defined in
	   libavutil/tdrdi.h.
	*/
	AVFrameData3DReferenceDisplays AVFrameSideDataType = C.AV_FRAME_DATA_3D_REFERENCE_DISPLAYS
)

type AVHDRPlusColorTransformParams

type AVHDRPlusColorTransformParams struct {
	// contains filtered or unexported fields
}

AVHDRPlusColorTransformParams wraps AVHDRPlusColorTransformParams.

Color transform parameters at a processing window in a dynamic metadata for
SMPTE 2094-40.

func (*AVHDRPlusColorTransformParams) AverageMaxrgb

func (s *AVHDRPlusColorTransformParams) AverageMaxrgb() *AVRational

AverageMaxrgb gets the average_maxrgb field.

The average of linearized maxRGB values in the processing window in the
scene. The value should be in the range of 0 to 1, inclusive and in
multiples of 0.00001.

func (*AVHDRPlusColorTransformParams) BezierCurveAnchors

func (s *AVHDRPlusColorTransformParams) BezierCurveAnchors() *Array[*AVRational]

BezierCurveAnchors gets the bezier_curve_anchors field.

The intermediate anchor parameters of the tone mapping function in the
processing window in the scene. The values should be in the range of 0
to 1, inclusive and in multiples of 1/1023.

func (*AVHDRPlusColorTransformParams) CenterOfEllipseX

func (s *AVHDRPlusColorTransformParams) CenterOfEllipseX() uint16

CenterOfEllipseX gets the center_of_ellipse_x field.

The x coordinate of the center position of the concentric internal and
external ellipses of the elliptical pixel selector in the processing
window. The value shall be in the range of 0 to (width of Picture - 1),
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) CenterOfEllipseY

func (s *AVHDRPlusColorTransformParams) CenterOfEllipseY() uint16

CenterOfEllipseY gets the center_of_ellipse_y field.

The y coordinate of the center position of the concentric internal and
external ellipses of the elliptical pixel selector in the processing
window. The value shall be in the range of 0 to (height of Picture - 1),
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) ColorSaturationMappingFlag

func (s *AVHDRPlusColorTransformParams) ColorSaturationMappingFlag() uint8

ColorSaturationMappingFlag gets the color_saturation_mapping_flag field.

This flag shall be equal to 0 in bitstreams conforming to this version of
this Specification. Other values are reserved for future use.

func (*AVHDRPlusColorTransformParams) ColorSaturationWeight

func (s *AVHDRPlusColorTransformParams) ColorSaturationWeight() *AVRational

ColorSaturationWeight gets the color_saturation_weight field.

The color saturation gain in the processing window in the scene. The
value shall be in the range of 0 to 63/8, inclusive and in multiples of
1/8. The default value shall be 1.

func (*AVHDRPlusColorTransformParams) FractionBrightPixels

func (s *AVHDRPlusColorTransformParams) FractionBrightPixels() *AVRational

FractionBrightPixels gets the fraction_bright_pixels field.

The fraction of selected pixels in the image that contains the brightest
pixel in the scene. The value shall be in the range of 0 to 1, inclusive
and in multiples of 0.001.

func (*AVHDRPlusColorTransformParams) KneePointX

func (s *AVHDRPlusColorTransformParams) KneePointX() *AVRational

KneePointX gets the knee_point_x field.

The x coordinate of the separation point between the linear part and the
curved part of the tone mapping function. The value shall be in the range
of 0 to 1, excluding 0 and in multiples of 1/4095.

func (*AVHDRPlusColorTransformParams) KneePointY

func (s *AVHDRPlusColorTransformParams) KneePointY() *AVRational

KneePointY gets the knee_point_y field.

The y coordinate of the separation point between the linear part and the
curved part of the tone mapping function. The value shall be in the range
of 0 to 1, excluding 0 and in multiples of 1/4095.

func (*AVHDRPlusColorTransformParams) Maxscl

Maxscl gets the maxscl field.

The maximum of the color components of linearized RGB values in the
processing window in the scene. The values should be in the range of 0 to
1, inclusive and in multiples of 0.00001. maxscl[ 0 ], maxscl[ 1 ], and
maxscl[ 2 ] are corresponding to R, G, B color components respectively.

func (*AVHDRPlusColorTransformParams) NumBezierCurveAnchors

func (s *AVHDRPlusColorTransformParams) NumBezierCurveAnchors() uint8

NumBezierCurveAnchors gets the num_bezier_curve_anchors field.

The number of the intermediate anchor parameters of the tone mapping
function in the processing window. The maximum value shall be 15.

func (*AVHDRPlusColorTransformParams) NumDistributionMaxrgbPercentiles

func (s *AVHDRPlusColorTransformParams) NumDistributionMaxrgbPercentiles() uint8

NumDistributionMaxrgbPercentiles gets the num_distribution_maxrgb_percentiles field.

The number of linearized maxRGB values at given percentiles in the
processing window in the scene. The maximum value shall be 15.

func (*AVHDRPlusColorTransformParams) OverlapProcessOption

OverlapProcessOption gets the overlap_process_option field.

Overlap process option indicates one of the two methods of combining
rendered pixels in the processing window in an image with at least one
elliptical pixel selector. For overlapping elliptical pixel selectors
in an image, overlap_process_option shall have the same value.

func (*AVHDRPlusColorTransformParams) RawPtr

func (*AVHDRPlusColorTransformParams) RotationAngle

func (s *AVHDRPlusColorTransformParams) RotationAngle() uint8

RotationAngle gets the rotation_angle field.

The clockwise rotation angle in degree of arc with respect to the
positive direction of the x-axis of the concentric internal and external
ellipses of the elliptical pixel selector in the processing window. The
value shall be in the range of 0 to 180, inclusive and in multiples of 1.

func (*AVHDRPlusColorTransformParams) SemimajorAxisExternalEllipse

func (s *AVHDRPlusColorTransformParams) SemimajorAxisExternalEllipse() uint16

SemimajorAxisExternalEllipse gets the semimajor_axis_external_ellipse field.

The semi-major axis value of the external ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value
shall not be less than semimajor_axis_internal_ellipse of the current
processing window. The value shall be in the range of 1 to 65535,
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SemimajorAxisInternalEllipse

func (s *AVHDRPlusColorTransformParams) SemimajorAxisInternalEllipse() uint16

SemimajorAxisInternalEllipse gets the semimajor_axis_internal_ellipse field.

The semi-major axis value of the internal ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value shall be
in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SemiminorAxisExternalEllipse

func (s *AVHDRPlusColorTransformParams) SemiminorAxisExternalEllipse() uint16

SemiminorAxisExternalEllipse gets the semiminor_axis_external_ellipse field.

The semi-minor axis value of the external ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value shall be
in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetAverageMaxrgb

func (s *AVHDRPlusColorTransformParams) SetAverageMaxrgb(value *AVRational)

SetAverageMaxrgb sets the average_maxrgb field.

The average of linearized maxRGB values in the processing window in the
scene. The value should be in the range of 0 to 1, inclusive and in
multiples of 0.00001.

func (*AVHDRPlusColorTransformParams) SetCenterOfEllipseX

func (s *AVHDRPlusColorTransformParams) SetCenterOfEllipseX(value uint16)

SetCenterOfEllipseX sets the center_of_ellipse_x field.

The x coordinate of the center position of the concentric internal and
external ellipses of the elliptical pixel selector in the processing
window. The value shall be in the range of 0 to (width of Picture - 1),
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetCenterOfEllipseY

func (s *AVHDRPlusColorTransformParams) SetCenterOfEllipseY(value uint16)

SetCenterOfEllipseY sets the center_of_ellipse_y field.

The y coordinate of the center position of the concentric internal and
external ellipses of the elliptical pixel selector in the processing
window. The value shall be in the range of 0 to (height of Picture - 1),
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetColorSaturationMappingFlag

func (s *AVHDRPlusColorTransformParams) SetColorSaturationMappingFlag(value uint8)

SetColorSaturationMappingFlag sets the color_saturation_mapping_flag field.

This flag shall be equal to 0 in bitstreams conforming to this version of
this Specification. Other values are reserved for future use.

func (*AVHDRPlusColorTransformParams) SetColorSaturationWeight

func (s *AVHDRPlusColorTransformParams) SetColorSaturationWeight(value *AVRational)

SetColorSaturationWeight sets the color_saturation_weight field.

The color saturation gain in the processing window in the scene. The
value shall be in the range of 0 to 63/8, inclusive and in multiples of
1/8. The default value shall be 1.

func (*AVHDRPlusColorTransformParams) SetFractionBrightPixels

func (s *AVHDRPlusColorTransformParams) SetFractionBrightPixels(value *AVRational)

SetFractionBrightPixels sets the fraction_bright_pixels field.

The fraction of selected pixels in the image that contains the brightest
pixel in the scene. The value shall be in the range of 0 to 1, inclusive
and in multiples of 0.001.

func (*AVHDRPlusColorTransformParams) SetKneePointX

func (s *AVHDRPlusColorTransformParams) SetKneePointX(value *AVRational)

SetKneePointX sets the knee_point_x field.

The x coordinate of the separation point between the linear part and the
curved part of the tone mapping function. The value shall be in the range
of 0 to 1, excluding 0 and in multiples of 1/4095.

func (*AVHDRPlusColorTransformParams) SetKneePointY

func (s *AVHDRPlusColorTransformParams) SetKneePointY(value *AVRational)

SetKneePointY sets the knee_point_y field.

The y coordinate of the separation point between the linear part and the
curved part of the tone mapping function. The value shall be in the range
of 0 to 1, excluding 0 and in multiples of 1/4095.

func (*AVHDRPlusColorTransformParams) SetNumBezierCurveAnchors

func (s *AVHDRPlusColorTransformParams) SetNumBezierCurveAnchors(value uint8)

SetNumBezierCurveAnchors sets the num_bezier_curve_anchors field.

The number of the intermediate anchor parameters of the tone mapping
function in the processing window. The maximum value shall be 15.

func (*AVHDRPlusColorTransformParams) SetNumDistributionMaxrgbPercentiles

func (s *AVHDRPlusColorTransformParams) SetNumDistributionMaxrgbPercentiles(value uint8)

SetNumDistributionMaxrgbPercentiles sets the num_distribution_maxrgb_percentiles field.

The number of linearized maxRGB values at given percentiles in the
processing window in the scene. The maximum value shall be 15.

func (*AVHDRPlusColorTransformParams) SetOverlapProcessOption

func (s *AVHDRPlusColorTransformParams) SetOverlapProcessOption(value AVHDRPlusOverlapProcessOption)

SetOverlapProcessOption sets the overlap_process_option field.

Overlap process option indicates one of the two methods of combining
rendered pixels in the processing window in an image with at least one
elliptical pixel selector. For overlapping elliptical pixel selectors
in an image, overlap_process_option shall have the same value.

func (*AVHDRPlusColorTransformParams) SetRotationAngle

func (s *AVHDRPlusColorTransformParams) SetRotationAngle(value uint8)

SetRotationAngle sets the rotation_angle field.

The clockwise rotation angle in degree of arc with respect to the
positive direction of the x-axis of the concentric internal and external
ellipses of the elliptical pixel selector in the processing window. The
value shall be in the range of 0 to 180, inclusive and in multiples of 1.

func (*AVHDRPlusColorTransformParams) SetSemimajorAxisExternalEllipse

func (s *AVHDRPlusColorTransformParams) SetSemimajorAxisExternalEllipse(value uint16)

SetSemimajorAxisExternalEllipse sets the semimajor_axis_external_ellipse field.

The semi-major axis value of the external ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value
shall not be less than semimajor_axis_internal_ellipse of the current
processing window. The value shall be in the range of 1 to 65535,
inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetSemimajorAxisInternalEllipse

func (s *AVHDRPlusColorTransformParams) SetSemimajorAxisInternalEllipse(value uint16)

SetSemimajorAxisInternalEllipse sets the semimajor_axis_internal_ellipse field.

The semi-major axis value of the internal ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value shall be
in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetSemiminorAxisExternalEllipse

func (s *AVHDRPlusColorTransformParams) SetSemiminorAxisExternalEllipse(value uint16)

SetSemiminorAxisExternalEllipse sets the semiminor_axis_external_ellipse field.

The semi-minor axis value of the external ellipse of the elliptical pixel
selector in amount of pixels in the processing window. The value shall be
in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

func (*AVHDRPlusColorTransformParams) SetToneMappingFlag

func (s *AVHDRPlusColorTransformParams) SetToneMappingFlag(value uint8)

SetToneMappingFlag sets the tone_mapping_flag field.

This flag indicates that the metadata for the tone mapping function in
the processing window is present (for value of 1).

func (*AVHDRPlusColorTransformParams) SetWindowLowerRightCornerX

func (s *AVHDRPlusColorTransformParams) SetWindowLowerRightCornerX(value *AVRational)

SetWindowLowerRightCornerX sets the window_lower_right_corner_x field.

The relative x coordinate of the bottom right pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(width of Picture - 1). The value 1 corresponds
to the absolute coordinate of width of Picture - 1. The value for
first processing window shall be 1.

func (*AVHDRPlusColorTransformParams) SetWindowLowerRightCornerY

func (s *AVHDRPlusColorTransformParams) SetWindowLowerRightCornerY(value *AVRational)

SetWindowLowerRightCornerY sets the window_lower_right_corner_y field.

The relative y coordinate of the bottom right pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(height of Picture - 1). The value 1 corresponds
to the absolute coordinate of height of Picture - 1. The value for
first processing window shall be 1.

func (*AVHDRPlusColorTransformParams) SetWindowUpperLeftCornerX

func (s *AVHDRPlusColorTransformParams) SetWindowUpperLeftCornerX(value *AVRational)

SetWindowUpperLeftCornerX sets the window_upper_left_corner_x field.

The relative x coordinate of the top left pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(width of Picture - 1). The value 1 corresponds
to the absolute coordinate of width of Picture - 1. The value for
first processing window shall be 0.

func (*AVHDRPlusColorTransformParams) SetWindowUpperLeftCornerY

func (s *AVHDRPlusColorTransformParams) SetWindowUpperLeftCornerY(value *AVRational)

SetWindowUpperLeftCornerY sets the window_upper_left_corner_y field.

The relative y coordinate of the top left pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(height of Picture - 1). The value 1 corresponds
to the absolute coordinate of height of Picture - 1. The value for
first processing window shall be 0.

func (*AVHDRPlusColorTransformParams) ToneMappingFlag

func (s *AVHDRPlusColorTransformParams) ToneMappingFlag() uint8

ToneMappingFlag gets the tone_mapping_flag field.

This flag indicates that the metadata for the tone mapping function in
the processing window is present (for value of 1).

func (*AVHDRPlusColorTransformParams) WindowLowerRightCornerX

func (s *AVHDRPlusColorTransformParams) WindowLowerRightCornerX() *AVRational

WindowLowerRightCornerX gets the window_lower_right_corner_x field.

The relative x coordinate of the bottom right pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(width of Picture - 1). The value 1 corresponds
to the absolute coordinate of width of Picture - 1. The value for
first processing window shall be 1.

func (*AVHDRPlusColorTransformParams) WindowLowerRightCornerY

func (s *AVHDRPlusColorTransformParams) WindowLowerRightCornerY() *AVRational

WindowLowerRightCornerY gets the window_lower_right_corner_y field.

The relative y coordinate of the bottom right pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(height of Picture - 1). The value 1 corresponds
to the absolute coordinate of height of Picture - 1. The value for
first processing window shall be 1.

func (*AVHDRPlusColorTransformParams) WindowUpperLeftCornerX

func (s *AVHDRPlusColorTransformParams) WindowUpperLeftCornerX() *AVRational

WindowUpperLeftCornerX gets the window_upper_left_corner_x field.

The relative x coordinate of the top left pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(width of Picture - 1). The value 1 corresponds
to the absolute coordinate of width of Picture - 1. The value for
first processing window shall be 0.

func (*AVHDRPlusColorTransformParams) WindowUpperLeftCornerY

func (s *AVHDRPlusColorTransformParams) WindowUpperLeftCornerY() *AVRational

WindowUpperLeftCornerY gets the window_upper_left_corner_y field.

The relative y coordinate of the top left pixel of the processing
window. The value shall be in the range of 0 and 1, inclusive and
in multiples of 1/(height of Picture - 1). The value 1 corresponds
to the absolute coordinate of height of Picture - 1. The value for
first processing window shall be 0.

type AVHDRPlusOverlapProcessOption

type AVHDRPlusOverlapProcessOption C.enum_AVHDRPlusOverlapProcessOption

AVHDRPlusOverlapProcessOption wraps AVHDRPlusOverlapProcessOption.

Option for overlapping elliptical pixel selectors in an image.
const (
	// AVHdrPlusOverlapProcessWeightedAVEraging wraps AV_HDR_PLUS_OVERLAP_PROCESS_WEIGHTED_AVERAGING.
	AVHdrPlusOverlapProcessWeightedAVEraging AVHDRPlusOverlapProcessOption = C.AV_HDR_PLUS_OVERLAP_PROCESS_WEIGHTED_AVERAGING
	// AVHdrPlusOverlapProcessLayering wraps AV_HDR_PLUS_OVERLAP_PROCESS_LAYERING.
	AVHdrPlusOverlapProcessLayering AVHDRPlusOverlapProcessOption = C.AV_HDR_PLUS_OVERLAP_PROCESS_LAYERING
)

type AVHDRPlusPercentile

type AVHDRPlusPercentile struct {
	// contains filtered or unexported fields
}

AVHDRPlusPercentile wraps AVHDRPlusPercentile.

Represents the percentile at a specific percentage in
a distribution.

func (*AVHDRPlusPercentile) Percentage

func (s *AVHDRPlusPercentile) Percentage() uint8

Percentage gets the percentage field.

The percentage value corresponding to a specific percentile linearized
RGB value in the processing window in the scene. The value shall be in
the range of 0 to100, inclusive.

func (*AVHDRPlusPercentile) Percentile

func (s *AVHDRPlusPercentile) Percentile() *AVRational

Percentile gets the percentile field.

The linearized maxRGB value at a specific percentile in the processing
window in the scene. The value shall be in the range of 0 to 1, inclusive
and in multiples of 0.00001.

func (*AVHDRPlusPercentile) RawPtr

func (s *AVHDRPlusPercentile) RawPtr() unsafe.Pointer

func (*AVHDRPlusPercentile) SetPercentage

func (s *AVHDRPlusPercentile) SetPercentage(value uint8)

SetPercentage sets the percentage field.

The percentage value corresponding to a specific percentile linearized
RGB value in the processing window in the scene. The value shall be in
the range of 0 to100, inclusive.

func (*AVHDRPlusPercentile) SetPercentile

func (s *AVHDRPlusPercentile) SetPercentile(value *AVRational)

SetPercentile sets the percentile field.

The linearized maxRGB value at a specific percentile in the processing
window in the scene. The value shall be in the range of 0 to 1, inclusive
and in multiples of 0.00001.

type AVHDRVivid3SplineParams

type AVHDRVivid3SplineParams struct {
	// contains filtered or unexported fields
}

AVHDRVivid3SplineParams wraps AVHDRVivid3SplineParams.

HDR Vivid three spline params.

func (*AVHDRVivid3SplineParams) EnableStrength

func (s *AVHDRVivid3SplineParams) EnableStrength() *AVRational

EnableStrength gets the enable_strength field.

3Spline_enable_Strength of three Spline.
The value shall be in the range of 0.0 to 1.0, inclusive,
and in multiples of 1.0/255.

func (*AVHDRVivid3SplineParams) RawPtr

func (*AVHDRVivid3SplineParams) SetEnableStrength

func (s *AVHDRVivid3SplineParams) SetEnableStrength(value *AVRational)

SetEnableStrength sets the enable_strength field.

3Spline_enable_Strength of three Spline.
The value shall be in the range of 0.0 to 1.0, inclusive,
and in multiples of 1.0/255.

func (*AVHDRVivid3SplineParams) SetThDelta1

func (s *AVHDRVivid3SplineParams) SetThDelta1(value *AVRational)

SetThDelta1 sets the th_delta1 field.

3Spline_TH_Delta1 of three Spline.
The value shall be in the range of 0.0 to 0.25, inclusive,
and in multiples of 0.25/1023.

func (*AVHDRVivid3SplineParams) SetThDelta2

func (s *AVHDRVivid3SplineParams) SetThDelta2(value *AVRational)

SetThDelta2 sets the th_delta2 field.

3Spline_TH_Delta2 of three Spline.
The value shall be in the range of 0.0 to 0.25, inclusive,
and in multiples of 0.25/1023.

func (*AVHDRVivid3SplineParams) SetThEnable

func (s *AVHDRVivid3SplineParams) SetThEnable(value *AVRational)

SetThEnable sets the th_enable field.

3Spline_TH_enable of three Spline.
The value shall be in the range of 0.0 to 1.0, inclusive.
and in multiples of 1.0/4095.

func (*AVHDRVivid3SplineParams) SetThEnableMb

func (s *AVHDRVivid3SplineParams) SetThEnableMb(value *AVRational)

SetThEnableMb sets the th_enable_mb field.

three_Spline_TH_enable_MB is in the range of 0.0 to 1.0, inclusive
and in multiples of 1.0/255.

func (*AVHDRVivid3SplineParams) SetThMode

func (s *AVHDRVivid3SplineParams) SetThMode(value int)

SetThMode sets the th_mode field.

The mode of three Spline. the value shall be in the range
of 0 to 3, inclusive.

func (*AVHDRVivid3SplineParams) ThDelta1

func (s *AVHDRVivid3SplineParams) ThDelta1() *AVRational

ThDelta1 gets the th_delta1 field.

3Spline_TH_Delta1 of three Spline.
The value shall be in the range of 0.0 to 0.25, inclusive,
and in multiples of 0.25/1023.

func (*AVHDRVivid3SplineParams) ThDelta2

func (s *AVHDRVivid3SplineParams) ThDelta2() *AVRational

ThDelta2 gets the th_delta2 field.

3Spline_TH_Delta2 of three Spline.
The value shall be in the range of 0.0 to 0.25, inclusive,
and in multiples of 0.25/1023.

func (*AVHDRVivid3SplineParams) ThEnable

func (s *AVHDRVivid3SplineParams) ThEnable() *AVRational

ThEnable gets the th_enable field.

3Spline_TH_enable of three Spline.
The value shall be in the range of 0.0 to 1.0, inclusive.
and in multiples of 1.0/4095.

func (*AVHDRVivid3SplineParams) ThEnableMb

func (s *AVHDRVivid3SplineParams) ThEnableMb() *AVRational

ThEnableMb gets the th_enable_mb field.

three_Spline_TH_enable_MB is in the range of 0.0 to 1.0, inclusive
and in multiples of 1.0/255.

func (*AVHDRVivid3SplineParams) ThMode

func (s *AVHDRVivid3SplineParams) ThMode() int

ThMode gets the th_mode field.

The mode of three Spline. the value shall be in the range
of 0 to 3, inclusive.

type AVHDRVividColorToneMappingParams

type AVHDRVividColorToneMappingParams struct {
	// contains filtered or unexported fields
}

AVHDRVividColorToneMappingParams wraps AVHDRVividColorToneMappingParams.

Color tone mapping parameters at a processing window in a dynamic metadata for
CUVA 005.1:2021.

func (*AVHDRVividColorToneMappingParams) BaseEnableFlag

func (s *AVHDRVividColorToneMappingParams) BaseEnableFlag() int

BaseEnableFlag gets the base_enable_flag field.

This flag indicates that transfer the base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) BaseParamDelta

func (s *AVHDRVividColorToneMappingParams) BaseParamDelta() *AVRational

BaseParamDelta gets the base_param_Delta field.

base_param_Delta in the base parameter,
in multiples of 1.0/127. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) BaseParamDeltaEnableMode

func (s *AVHDRVividColorToneMappingParams) BaseParamDeltaEnableMode() int

BaseParamDeltaEnableMode gets the base_param_Delta_enable_mode field.

This flag indicates that delta mode of base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) BaseParamK1

func (s *AVHDRVividColorToneMappingParams) BaseParamK1() int

BaseParamK1 gets the base_param_k1 field.

indicates k1_0 in the base parameter,
base_param_k1 <= 1: k1_0 = base_param_k1
base_param_k1 > 1: reserved

func (*AVHDRVividColorToneMappingParams) BaseParamK2

func (s *AVHDRVividColorToneMappingParams) BaseParamK2() int

BaseParamK2 gets the base_param_k2 field.

indicates k2_0 in the base parameter,
base_param_k2 <= 1: k2_0 = base_param_k2
base_param_k2 > 1: reserved

func (*AVHDRVividColorToneMappingParams) BaseParamK3

func (s *AVHDRVividColorToneMappingParams) BaseParamK3() int

BaseParamK3 gets the base_param_k3 field.

indicates k3_0 in the base parameter,
base_param_k3 == 1: k3_0 = base_param_k3
base_param_k3 == 2: k3_0 = maximum_maxrgb
base_param_k3 > 2: reserved

func (*AVHDRVividColorToneMappingParams) BaseParamMA

func (s *AVHDRVividColorToneMappingParams) BaseParamMA() *AVRational

BaseParamMA gets the base_param_m_a field.

base_param_m_a in the base parameter,
in multiples of 1.0/1023. The value shall be in
the range of 0.0 to 1.0 inclusive.

func (*AVHDRVividColorToneMappingParams) BaseParamMB

func (s *AVHDRVividColorToneMappingParams) BaseParamMB() *AVRational

BaseParamMB gets the base_param_m_b field.

base_param_m_b in the base parameter,
in multiples of 1/1023. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) BaseParamMM

func (s *AVHDRVividColorToneMappingParams) BaseParamMM() *AVRational

BaseParamMM gets the base_param_m_m field.

base_param_m_m in the base parameter,
in multiples of 1.0/10. The value shall be in
the range of 0.0 to 6.3, inclusive.

func (*AVHDRVividColorToneMappingParams) BaseParamMN

func (s *AVHDRVividColorToneMappingParams) BaseParamMN() *AVRational

BaseParamMN gets the base_param_m_n field.

base_param_m_n in the base parameter,
in multiples of 1.0/10. The value shall be in
the range of 0.0 to 6.3, inclusive.

func (*AVHDRVividColorToneMappingParams) BaseParamMP

func (s *AVHDRVividColorToneMappingParams) BaseParamMP() *AVRational

BaseParamMP gets the base_param_m_p field.

base_param_m_p in the base parameter,
in multiples of 1.0/16383. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) RawPtr

func (*AVHDRVividColorToneMappingParams) SetBaseEnableFlag

func (s *AVHDRVividColorToneMappingParams) SetBaseEnableFlag(value int)

SetBaseEnableFlag sets the base_enable_flag field.

This flag indicates that transfer the base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) SetBaseParamDelta

func (s *AVHDRVividColorToneMappingParams) SetBaseParamDelta(value *AVRational)

SetBaseParamDelta sets the base_param_Delta field.

base_param_Delta in the base parameter,
in multiples of 1.0/127. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) SetBaseParamDeltaEnableMode

func (s *AVHDRVividColorToneMappingParams) SetBaseParamDeltaEnableMode(value int)

SetBaseParamDeltaEnableMode sets the base_param_Delta_enable_mode field.

This flag indicates that delta mode of base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) SetBaseParamK1

func (s *AVHDRVividColorToneMappingParams) SetBaseParamK1(value int)

SetBaseParamK1 sets the base_param_k1 field.

indicates k1_0 in the base parameter,
base_param_k1 <= 1: k1_0 = base_param_k1
base_param_k1 > 1: reserved

func (*AVHDRVividColorToneMappingParams) SetBaseParamK2

func (s *AVHDRVividColorToneMappingParams) SetBaseParamK2(value int)

SetBaseParamK2 sets the base_param_k2 field.

indicates k2_0 in the base parameter,
base_param_k2 <= 1: k2_0 = base_param_k2
base_param_k2 > 1: reserved

func (*AVHDRVividColorToneMappingParams) SetBaseParamK3

func (s *AVHDRVividColorToneMappingParams) SetBaseParamK3(value int)

SetBaseParamK3 sets the base_param_k3 field.

indicates k3_0 in the base parameter,
base_param_k3 == 1: k3_0 = base_param_k3
base_param_k3 == 2: k3_0 = maximum_maxrgb
base_param_k3 > 2: reserved

func (*AVHDRVividColorToneMappingParams) SetBaseParamMA

func (s *AVHDRVividColorToneMappingParams) SetBaseParamMA(value *AVRational)

SetBaseParamMA sets the base_param_m_a field.

base_param_m_a in the base parameter,
in multiples of 1.0/1023. The value shall be in
the range of 0.0 to 1.0 inclusive.

func (*AVHDRVividColorToneMappingParams) SetBaseParamMB

func (s *AVHDRVividColorToneMappingParams) SetBaseParamMB(value *AVRational)

SetBaseParamMB sets the base_param_m_b field.

base_param_m_b in the base parameter,
in multiples of 1/1023. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) SetBaseParamMM

func (s *AVHDRVividColorToneMappingParams) SetBaseParamMM(value *AVRational)

SetBaseParamMM sets the base_param_m_m field.

base_param_m_m in the base parameter,
in multiples of 1.0/10. The value shall be in
the range of 0.0 to 6.3, inclusive.

func (*AVHDRVividColorToneMappingParams) SetBaseParamMN

func (s *AVHDRVividColorToneMappingParams) SetBaseParamMN(value *AVRational)

SetBaseParamMN sets the base_param_m_n field.

base_param_m_n in the base parameter,
in multiples of 1.0/10. The value shall be in
the range of 0.0 to 6.3, inclusive.

func (*AVHDRVividColorToneMappingParams) SetBaseParamMP

func (s *AVHDRVividColorToneMappingParams) SetBaseParamMP(value *AVRational)

SetBaseParamMP sets the base_param_m_p field.

base_param_m_p in the base parameter,
in multiples of 1.0/16383. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) SetTargetedSystemDisplayMaximumLuminance

func (s *AVHDRVividColorToneMappingParams) SetTargetedSystemDisplayMaximumLuminance(value *AVRational)

SetTargetedSystemDisplayMaximumLuminance sets the targeted_system_display_maximum_luminance field.

The nominal maximum display luminance of the targeted system display,
in multiples of 1.0/4095 candelas per square metre. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) SetThreeSplineEnableFlag

func (s *AVHDRVividColorToneMappingParams) SetThreeSplineEnableFlag(value int)

SetThreeSplineEnableFlag sets the three_Spline_enable_flag field.

indicates 3Spline_enable_flag in the base parameter,
This flag indicates that transfer three Spline of base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) SetThreeSplineNum

func (s *AVHDRVividColorToneMappingParams) SetThreeSplineNum(value int)

SetThreeSplineNum sets the three_Spline_num field.

The number of three Spline. The value shall be in the range
of 1 to 2, inclusive.

func (*AVHDRVividColorToneMappingParams) TargetedSystemDisplayMaximumLuminance

func (s *AVHDRVividColorToneMappingParams) TargetedSystemDisplayMaximumLuminance() *AVRational

TargetedSystemDisplayMaximumLuminance gets the targeted_system_display_maximum_luminance field.

The nominal maximum display luminance of the targeted system display,
in multiples of 1.0/4095 candelas per square metre. The value shall be in
the range of 0.0 to 1.0, inclusive.

func (*AVHDRVividColorToneMappingParams) ThreeSplineEnableFlag

func (s *AVHDRVividColorToneMappingParams) ThreeSplineEnableFlag() int

ThreeSplineEnableFlag gets the three_Spline_enable_flag field.

indicates 3Spline_enable_flag in the base parameter,
This flag indicates that transfer three Spline of base parameter(for value of 1)

func (*AVHDRVividColorToneMappingParams) ThreeSplineNum

func (s *AVHDRVividColorToneMappingParams) ThreeSplineNum() int

ThreeSplineNum gets the three_Spline_num field.

The number of three Spline. The value shall be in the range
of 1 to 2, inclusive.

type AVHDRVividColorTransformParams

type AVHDRVividColorTransformParams struct {
	// contains filtered or unexported fields
}

AVHDRVividColorTransformParams wraps AVHDRVividColorTransformParams.

Color transform parameters at a processing window in a dynamic metadata for
CUVA 005.1:2021.

func (*AVHDRVividColorTransformParams) AverageMaxrgb

func (s *AVHDRVividColorTransformParams) AverageMaxrgb() *AVRational

AverageMaxrgb gets the average_maxrgb field.

Indicates the average brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) ColorSaturationGain

func (s *AVHDRVividColorTransformParams) ColorSaturationGain() *Array[*AVRational]

ColorSaturationGain gets the color_saturation_gain field.

Indicates the color correction strength parameter.
The values should be in the range of 0.0 to 2.0, inclusive
and in multiples of 1/128.

func (*AVHDRVividColorTransformParams) ColorSaturationMappingFlag

func (s *AVHDRVividColorTransformParams) ColorSaturationMappingFlag() int

ColorSaturationMappingFlag gets the color_saturation_mapping_flag field.

This flag indicates that the metadata for the color saturation mapping in
the processing window is present (for value of 1).

func (*AVHDRVividColorTransformParams) ColorSaturationNum

func (s *AVHDRVividColorTransformParams) ColorSaturationNum() int

ColorSaturationNum gets the color_saturation_num field.

The number of color saturation param. The value shall be in the range
of 0 to 7, inclusive.

func (*AVHDRVividColorTransformParams) MaximumMaxrgb

func (s *AVHDRVividColorTransformParams) MaximumMaxrgb() *AVRational

MaximumMaxrgb gets the maximum_maxrgb field.

Indicates the maximum brightness of the displayed content.
The values should be in the range of 0.0 to 1.0, inclusive
and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) MinimumMaxrgb

func (s *AVHDRVividColorTransformParams) MinimumMaxrgb() *AVRational

MinimumMaxrgb gets the minimum_maxrgb field.

Indicates the minimum brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) RawPtr

func (*AVHDRVividColorTransformParams) SetAverageMaxrgb

func (s *AVHDRVividColorTransformParams) SetAverageMaxrgb(value *AVRational)

SetAverageMaxrgb sets the average_maxrgb field.

Indicates the average brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) SetColorSaturationMappingFlag

func (s *AVHDRVividColorTransformParams) SetColorSaturationMappingFlag(value int)

SetColorSaturationMappingFlag sets the color_saturation_mapping_flag field.

This flag indicates that the metadata for the color saturation mapping in
the processing window is present (for value of 1).

func (*AVHDRVividColorTransformParams) SetColorSaturationNum

func (s *AVHDRVividColorTransformParams) SetColorSaturationNum(value int)

SetColorSaturationNum sets the color_saturation_num field.

The number of color saturation param. The value shall be in the range
of 0 to 7, inclusive.

func (*AVHDRVividColorTransformParams) SetMaximumMaxrgb

func (s *AVHDRVividColorTransformParams) SetMaximumMaxrgb(value *AVRational)

SetMaximumMaxrgb sets the maximum_maxrgb field.

Indicates the maximum brightness of the displayed content.
The values should be in the range of 0.0 to 1.0, inclusive
and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) SetMinimumMaxrgb

func (s *AVHDRVividColorTransformParams) SetMinimumMaxrgb(value *AVRational)

SetMinimumMaxrgb sets the minimum_maxrgb field.

Indicates the minimum brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) SetToneMappingModeFlag

func (s *AVHDRVividColorTransformParams) SetToneMappingModeFlag(value int)

SetToneMappingModeFlag sets the tone_mapping_mode_flag field.

This flag indicates that the metadata for the tone mapping function in
the processing window is present (for value of 1).

func (*AVHDRVividColorTransformParams) SetToneMappingParamNum

func (s *AVHDRVividColorTransformParams) SetToneMappingParamNum(value int)

SetToneMappingParamNum sets the tone_mapping_param_num field.

The number of tone mapping param. The value shall be in the range
of 1 to 2, inclusive.

func (*AVHDRVividColorTransformParams) SetVarianceMaxrgb

func (s *AVHDRVividColorTransformParams) SetVarianceMaxrgb(value *AVRational)

SetVarianceMaxrgb sets the variance_maxrgb field.

Indicates the variance brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

func (*AVHDRVividColorTransformParams) ToneMappingModeFlag

func (s *AVHDRVividColorTransformParams) ToneMappingModeFlag() int

ToneMappingModeFlag gets the tone_mapping_mode_flag field.

This flag indicates that the metadata for the tone mapping function in
the processing window is present (for value of 1).

func (*AVHDRVividColorTransformParams) ToneMappingParamNum

func (s *AVHDRVividColorTransformParams) ToneMappingParamNum() int

ToneMappingParamNum gets the tone_mapping_param_num field.

The number of tone mapping param. The value shall be in the range
of 1 to 2, inclusive.

func (*AVHDRVividColorTransformParams) VarianceMaxrgb

func (s *AVHDRVividColorTransformParams) VarianceMaxrgb() *AVRational

VarianceMaxrgb gets the variance_maxrgb field.

Indicates the variance brightness of the displayed content.
The values should be in the range of 0.0 to 1.0,
inclusive and in multiples of 1/4095.

type AVHMAC

type AVHMAC struct {
	// contains filtered or unexported fields
}

AVHMAC wraps AVHMAC.

func AVHmacAlloc

func AVHmacAlloc(_type AVHMACType) *AVHMAC

AVHmacAlloc wraps av_hmac_alloc.

Allocate an AVHMAC context.
@param type The hash function used for the HMAC.

func (*AVHMAC) RawPtr

func (s *AVHMAC) RawPtr() unsafe.Pointer

type AVHMACType

type AVHMACType C.enum_AVHMACType

AVHMACType wraps AVHMACType.

const (
	// AVHmacMd5 wraps AV_HMAC_MD5.
	AVHmacMd5 AVHMACType = C.AV_HMAC_MD5
	// AVHmacSha1 wraps AV_HMAC_SHA1.
	AVHmacSha1 AVHMACType = C.AV_HMAC_SHA1
	// AVHmacSha224 wraps AV_HMAC_SHA224.
	AVHmacSha224 AVHMACType = C.AV_HMAC_SHA224
	// AVHmacSha256 wraps AV_HMAC_SHA256.
	AVHmacSha256 AVHMACType = C.AV_HMAC_SHA256
	// AVHmacSha384 wraps AV_HMAC_SHA384.
	AVHmacSha384 AVHMACType = C.AV_HMAC_SHA384
	// AVHmacSha512 wraps AV_HMAC_SHA512.
	AVHmacSha512 AVHMACType = C.AV_HMAC_SHA512
)

type AVHWAccel

type AVHWAccel struct {
	// contains filtered or unexported fields
}

AVHWAccel wraps AVHWAccel.

func (*AVHWAccel) Capabilities

func (s *AVHWAccel) Capabilities() int

Capabilities gets the capabilities field.

Hardware accelerated codec capabilities.
see AV_HWACCEL_CODEC_CAP_*

func (*AVHWAccel) Id

func (s *AVHWAccel) Id() AVCodecID

Id gets the id field.

Codec implemented by the hardware accelerator.

See AV_CODEC_ID_xxx

func (*AVHWAccel) Name

func (s *AVHWAccel) Name() *CStr

Name gets the name field.

Name of the hardware accelerated codec.
The name is globally unique among encoders and among decoders (but an
encoder and a decoder can share the same name).

func (*AVHWAccel) PixFmt

func (s *AVHWAccel) PixFmt() AVPixelFormat

PixFmt gets the pix_fmt field.

Supported pixel format.

Only hardware accelerated formats are supported here.

func (*AVHWAccel) RawPtr

func (s *AVHWAccel) RawPtr() unsafe.Pointer

func (*AVHWAccel) SetCapabilities

func (s *AVHWAccel) SetCapabilities(value int)

SetCapabilities sets the capabilities field.

Hardware accelerated codec capabilities.
see AV_HWACCEL_CODEC_CAP_*

func (*AVHWAccel) SetId

func (s *AVHWAccel) SetId(value AVCodecID)

SetId sets the id field.

Codec implemented by the hardware accelerator.

See AV_CODEC_ID_xxx

func (*AVHWAccel) SetName

func (s *AVHWAccel) SetName(value *CStr)

SetName sets the name field.

Name of the hardware accelerated codec.
The name is globally unique among encoders and among decoders (but an
encoder and a decoder can share the same name).

func (*AVHWAccel) SetPixFmt

func (s *AVHWAccel) SetPixFmt(value AVPixelFormat)

SetPixFmt sets the pix_fmt field.

Supported pixel format.

Only hardware accelerated formats are supported here.

func (*AVHWAccel) SetType

func (s *AVHWAccel) SetType(value AVMediaType)

SetType sets the type field.

Type of codec implemented by the hardware accelerator.

See AVMEDIA_TYPE_xxx

func (*AVHWAccel) Type

func (s *AVHWAccel) Type() AVMediaType

Type gets the type field.

Type of codec implemented by the hardware accelerator.

See AVMEDIA_TYPE_xxx

type AVHWDeviceContext

type AVHWDeviceContext struct {
	// contains filtered or unexported fields
}

AVHWDeviceContext wraps AVHWDeviceContext.

This struct aggregates all the (hardware/vendor-specific) "high-level" state,
i.e. state that is not tied to a concrete processing configuration.
E.g., in an API that supports hardware-accelerated encoding and decoding,
this struct will (if possible) wrap the state that is common to both encoding
and decoding and from which specific instances of encoders or decoders can be
derived.

This struct is reference-counted with the AVBuffer mechanism. The
av_hwdevice_ctx_alloc() constructor yields a reference, whose data field
points to the actual AVHWDeviceContext. Further objects derived from
AVHWDeviceContext (such as AVHWFramesContext, describing a frame pool with
specific properties) will hold an internal reference to it. After all the
references are released, the AVHWDeviceContext itself will be freed,
optionally invoking a user-specified callback for uninitializing the hardware
state.

func (*AVHWDeviceContext) AvClass

func (s *AVHWDeviceContext) AvClass() *AVClass

AvClass gets the av_class field.

A class for logging. Set by av_hwdevice_ctx_alloc().

func (*AVHWDeviceContext) Hwctx

func (s *AVHWDeviceContext) Hwctx() unsafe.Pointer

Hwctx gets the hwctx field.

The format-specific data, allocated and freed by libavutil along with
this context.

Should be cast by the user to the format-specific context defined in the
corresponding header (hwcontext_*.h) and filled as described in the
documentation before calling av_hwdevice_ctx_init().

After calling av_hwdevice_ctx_init() this struct should not be modified
by the caller.

func (*AVHWDeviceContext) RawPtr

func (s *AVHWDeviceContext) RawPtr() unsafe.Pointer

func (*AVHWDeviceContext) SetAvClass

func (s *AVHWDeviceContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for logging. Set by av_hwdevice_ctx_alloc().

func (*AVHWDeviceContext) SetHwctx

func (s *AVHWDeviceContext) SetHwctx(value unsafe.Pointer)

SetHwctx sets the hwctx field.

The format-specific data, allocated and freed by libavutil along with
this context.

Should be cast by the user to the format-specific context defined in the
corresponding header (hwcontext_*.h) and filled as described in the
documentation before calling av_hwdevice_ctx_init().

After calling av_hwdevice_ctx_init() this struct should not be modified
by the caller.

func (*AVHWDeviceContext) SetType

func (s *AVHWDeviceContext) SetType(value AVHWDeviceType)

SetType sets the type field.

This field identifies the underlying API used for hardware access.

This field is set when this struct is allocated and never changed
afterwards.

func (*AVHWDeviceContext) SetUserOpaque

func (s *AVHWDeviceContext) SetUserOpaque(value unsafe.Pointer)

SetUserOpaque sets the user_opaque field.

Arbitrary user data, to be used e.g. by the free() callback.

func (*AVHWDeviceContext) Type

Type gets the type field.

This field identifies the underlying API used for hardware access.

This field is set when this struct is allocated and never changed
afterwards.

func (*AVHWDeviceContext) UserOpaque

func (s *AVHWDeviceContext) UserOpaque() unsafe.Pointer

UserOpaque gets the user_opaque field.

Arbitrary user data, to be used e.g. by the free() callback.

type AVHWDeviceType

type AVHWDeviceType C.enum_AVHWDeviceType

AVHWDeviceType wraps AVHWDeviceType.

const (
	// AVHWDeviceTypeNone wraps AV_HWDEVICE_TYPE_NONE.
	AVHWDeviceTypeNone AVHWDeviceType = C.AV_HWDEVICE_TYPE_NONE
	// AVHWDeviceTypeVdpau wraps AV_HWDEVICE_TYPE_VDPAU.
	AVHWDeviceTypeVdpau AVHWDeviceType = C.AV_HWDEVICE_TYPE_VDPAU
	// AVHWDeviceTypeCuda wraps AV_HWDEVICE_TYPE_CUDA.
	AVHWDeviceTypeCuda AVHWDeviceType = C.AV_HWDEVICE_TYPE_CUDA
	// AVHWDeviceTypeVaapi wraps AV_HWDEVICE_TYPE_VAAPI.
	AVHWDeviceTypeVaapi AVHWDeviceType = C.AV_HWDEVICE_TYPE_VAAPI
	// AVHWDeviceTypeDxva2 wraps AV_HWDEVICE_TYPE_DXVA2.
	AVHWDeviceTypeDxva2 AVHWDeviceType = C.AV_HWDEVICE_TYPE_DXVA2
	// AVHWDeviceTypeQsv wraps AV_HWDEVICE_TYPE_QSV.
	AVHWDeviceTypeQsv AVHWDeviceType = C.AV_HWDEVICE_TYPE_QSV
	// AVHWDeviceTypeVideotoolbox wraps AV_HWDEVICE_TYPE_VIDEOTOOLBOX.
	AVHWDeviceTypeVideotoolbox AVHWDeviceType = C.AV_HWDEVICE_TYPE_VIDEOTOOLBOX
	// AVHWDeviceTypeD3D11Va wraps AV_HWDEVICE_TYPE_D3D11VA.
	AVHWDeviceTypeD3D11Va AVHWDeviceType = C.AV_HWDEVICE_TYPE_D3D11VA
	// AVHWDeviceTypeDrm wraps AV_HWDEVICE_TYPE_DRM.
	AVHWDeviceTypeDrm AVHWDeviceType = C.AV_HWDEVICE_TYPE_DRM
	// AVHWDeviceTypeOpencl wraps AV_HWDEVICE_TYPE_OPENCL.
	AVHWDeviceTypeOpencl AVHWDeviceType = C.AV_HWDEVICE_TYPE_OPENCL
	// AVHWDeviceTypeMediacodec wraps AV_HWDEVICE_TYPE_MEDIACODEC.
	AVHWDeviceTypeMediacodec AVHWDeviceType = C.AV_HWDEVICE_TYPE_MEDIACODEC
	// AVHWDeviceTypeVulkan wraps AV_HWDEVICE_TYPE_VULKAN.
	AVHWDeviceTypeVulkan AVHWDeviceType = C.AV_HWDEVICE_TYPE_VULKAN
	// AVHWDeviceTypeD3D12Va wraps AV_HWDEVICE_TYPE_D3D12VA.
	AVHWDeviceTypeD3D12Va AVHWDeviceType = C.AV_HWDEVICE_TYPE_D3D12VA
	// AVHWDeviceTypeAmf wraps AV_HWDEVICE_TYPE_AMF.
	AVHWDeviceTypeAmf AVHWDeviceType = C.AV_HWDEVICE_TYPE_AMF
	// AVHWDeviceTypeOhcodec wraps AV_HWDEVICE_TYPE_OHCODEC.
	//
	//	OpenHarmony Codec device
	AVHWDeviceTypeOhcodec AVHWDeviceType = C.AV_HWDEVICE_TYPE_OHCODEC
)

func AVHWDeviceFindTypeByName

func AVHWDeviceFindTypeByName(name *CStr) AVHWDeviceType

AVHWDeviceFindTypeByName wraps av_hwdevice_find_type_by_name.

Look up an AVHWDeviceType by name.

@param name String name of the device type (case-insensitive).
@return The type from enum AVHWDeviceType, or AV_HWDEVICE_TYPE_NONE if
        not found.

func AVHWDeviceIterateTypes

func AVHWDeviceIterateTypes(prev AVHWDeviceType) AVHWDeviceType

AVHWDeviceIterateTypes wraps av_hwdevice_iterate_types.

Iterate over supported device types.

@param prev AV_HWDEVICE_TYPE_NONE initially, then the previous type
            returned by this function in subsequent iterations.
@return The next usable device type from enum AVHWDeviceType, or
        AV_HWDEVICE_TYPE_NONE if there are no more.

type AVHWFrameTransferDirection

type AVHWFrameTransferDirection C.enum_AVHWFrameTransferDirection

AVHWFrameTransferDirection wraps AVHWFrameTransferDirection.

const (
	// AVHWFrameTransferDirectionFrom wraps AV_HWFRAME_TRANSFER_DIRECTION_FROM.
	//
	//	Transfer the data from the queried hw frame.
	AVHWFrameTransferDirectionFrom AVHWFrameTransferDirection = C.AV_HWFRAME_TRANSFER_DIRECTION_FROM
	// AVHWFrameTransferDirectionTo wraps AV_HWFRAME_TRANSFER_DIRECTION_TO.
	//
	//	Transfer the data to the queried hw frame.
	AVHWFrameTransferDirectionTo AVHWFrameTransferDirection = C.AV_HWFRAME_TRANSFER_DIRECTION_TO
)

type AVHWFramesConstraints

type AVHWFramesConstraints struct {
	// contains filtered or unexported fields
}

AVHWFramesConstraints wraps AVHWFramesConstraints.

This struct describes the constraints on hardware frames attached to
a given device with a hardware-specific configuration.  This is returned
by av_hwdevice_get_hwframe_constraints() and must be freed by
av_hwframe_constraints_free() after use.

func AVHWDeviceGetHWFrameConstraints

func AVHWDeviceGetHWFrameConstraints(ref *AVBufferRef, hwconfig unsafe.Pointer) *AVHWFramesConstraints

AVHWDeviceGetHWFrameConstraints wraps av_hwdevice_get_hwframe_constraints.

Get the constraints on HW frames given a device and the HW-specific
configuration to be used with that device.  If no HW-specific
configuration is provided, returns the maximum possible capabilities
of the device.

@param ref a reference to the associated AVHWDeviceContext.
@param hwconfig a filled HW-specific configuration structure, or NULL
       to return the maximum possible capabilities of the device.
@return AVHWFramesConstraints structure describing the constraints
        on the device, or NULL if not available.

func (*AVHWFramesConstraints) MaxHeight

func (s *AVHWFramesConstraints) MaxHeight() int

MaxHeight gets the max_height field.

func (*AVHWFramesConstraints) MaxWidth

func (s *AVHWFramesConstraints) MaxWidth() int

MaxWidth gets the max_width field.

The maximum size of frames in this hw_frames_ctx.
(INT_MAX if not known / no limit.)

func (*AVHWFramesConstraints) MinHeight

func (s *AVHWFramesConstraints) MinHeight() int

MinHeight gets the min_height field.

func (*AVHWFramesConstraints) MinWidth

func (s *AVHWFramesConstraints) MinWidth() int

MinWidth gets the min_width field.

The minimum size of frames in this hw_frames_ctx.
(Zero if not known.)

func (*AVHWFramesConstraints) RawPtr

func (s *AVHWFramesConstraints) RawPtr() unsafe.Pointer

func (*AVHWFramesConstraints) SetMaxHeight

func (s *AVHWFramesConstraints) SetMaxHeight(value int)

SetMaxHeight sets the max_height field.

func (*AVHWFramesConstraints) SetMaxWidth

func (s *AVHWFramesConstraints) SetMaxWidth(value int)

SetMaxWidth sets the max_width field.

The maximum size of frames in this hw_frames_ctx.
(INT_MAX if not known / no limit.)

func (*AVHWFramesConstraints) SetMinHeight

func (s *AVHWFramesConstraints) SetMinHeight(value int)

SetMinHeight sets the min_height field.

func (*AVHWFramesConstraints) SetMinWidth

func (s *AVHWFramesConstraints) SetMinWidth(value int)

SetMinWidth sets the min_width field.

The minimum size of frames in this hw_frames_ctx.
(Zero if not known.)

func (*AVHWFramesConstraints) SetValidHwFormats

func (s *AVHWFramesConstraints) SetValidHwFormats(value *Array[AVPixelFormat])

SetValidHwFormats sets the valid_hw_formats field.

A list of possible values for format in the hw_frames_ctx,
terminated by AV_PIX_FMT_NONE.  This member will always be filled.

func (*AVHWFramesConstraints) SetValidSwFormats

func (s *AVHWFramesConstraints) SetValidSwFormats(value *Array[AVPixelFormat])

SetValidSwFormats sets the valid_sw_formats field.

A list of possible values for sw_format in the hw_frames_ctx,
terminated by AV_PIX_FMT_NONE.  Can be NULL if this information is
not known.

func (*AVHWFramesConstraints) ValidHwFormats

func (s *AVHWFramesConstraints) ValidHwFormats() *Array[AVPixelFormat]

ValidHwFormats gets the valid_hw_formats field.

A list of possible values for format in the hw_frames_ctx,
terminated by AV_PIX_FMT_NONE.  This member will always be filled.

func (*AVHWFramesConstraints) ValidSwFormats

func (s *AVHWFramesConstraints) ValidSwFormats() *Array[AVPixelFormat]

ValidSwFormats gets the valid_sw_formats field.

A list of possible values for sw_format in the hw_frames_ctx,
terminated by AV_PIX_FMT_NONE.  Can be NULL if this information is
not known.

type AVHWFramesContext

type AVHWFramesContext struct {
	// contains filtered or unexported fields
}

AVHWFramesContext wraps AVHWFramesContext.

This struct describes a set or pool of "hardware" frames (i.e. those with
data not located in normal system memory). All the frames in the pool are
assumed to be allocated in the same way and interchangeable.

This struct is reference-counted with the AVBuffer mechanism and tied to a
given AVHWDeviceContext instance. The av_hwframe_ctx_alloc() constructor
yields a reference, whose data field points to the actual AVHWFramesContext
struct.

func ToAVHWFramesContext

func ToAVHWFramesContext(ptr unsafe.Pointer) *AVHWFramesContext

ToAVHWFramesContext converts an unsafe.Pointer (typically from AVBufferRef.Data()) to an AVHWFramesContext wrapper. This is needed for configuring hardware frames contexts returned by AVHWFrameCtxAlloc().

func (*AVHWFramesContext) AvClass

func (s *AVHWFramesContext) AvClass() *AVClass

AvClass gets the av_class field.

A class for logging.

func (*AVHWFramesContext) DeviceCtx

func (s *AVHWFramesContext) DeviceCtx() *AVHWDeviceContext

DeviceCtx gets the device_ctx field.

The parent AVHWDeviceContext. This is simply a pointer to
device_ref->data provided for convenience.

Set by libavutil in av_hwframe_ctx_init().

func (*AVHWFramesContext) DeviceRef

func (s *AVHWFramesContext) DeviceRef() *AVBufferRef

DeviceRef gets the device_ref field.

A reference to the parent AVHWDeviceContext. This reference is owned and
managed by the enclosing AVHWFramesContext, but the caller may derive
additional references from it.

func (*AVHWFramesContext) Format

func (s *AVHWFramesContext) Format() AVPixelFormat

Format gets the format field.

The pixel format identifying the underlying HW surface type.

Must be a hwaccel format, i.e. the corresponding descriptor must have the
AV_PIX_FMT_FLAG_HWACCEL flag set.

Must be set by the user before calling av_hwframe_ctx_init().

func (*AVHWFramesContext) Height

func (s *AVHWFramesContext) Height() int

Height gets the height field.

The allocated dimensions of the frames in this pool.

Must be set by the user before calling av_hwframe_ctx_init().

func (*AVHWFramesContext) Hwctx

func (s *AVHWFramesContext) Hwctx() unsafe.Pointer

Hwctx gets the hwctx field.

The format-specific data, allocated and freed automatically along with
this context.

The user shall ignore this field if the corresponding format-specific
header (hwcontext_*.h) does not define a context to be used as
AVHWFramesContext.hwctx.

Otherwise, it should be cast by the user to said context and filled
as described in the documentation before calling av_hwframe_ctx_init().

After any frames using this context are created, the contents of this
struct should not be modified by the caller.

func (*AVHWFramesContext) InitialPoolSize

func (s *AVHWFramesContext) InitialPoolSize() int

InitialPoolSize gets the initial_pool_size field.

Initial size of the frame pool. If a device type does not support
dynamically resizing the pool, then this is also the maximum pool size.

May be set by the caller before calling av_hwframe_ctx_init(). Must be
set if pool is NULL and the device type does not support dynamic pools.

func (*AVHWFramesContext) Pool

func (s *AVHWFramesContext) Pool() *AVBufferPool

Pool gets the pool field.

A pool from which the frames are allocated by av_hwframe_get_buffer().
This field may be set by the caller before calling av_hwframe_ctx_init().
The buffers returned by calling av_buffer_pool_get() on this pool must
have the properties described in the documentation in the corresponding hw
type's header (hwcontext_*.h). The pool will be freed strictly before
this struct's free() callback is invoked.

This field may be NULL, then libavutil will attempt to allocate a pool
internally. Note that certain device types enforce pools allocated at
fixed size (frame count), which cannot be extended dynamically. In such a
case, initial_pool_size must be set appropriately.

func (*AVHWFramesContext) RawPtr

func (s *AVHWFramesContext) RawPtr() unsafe.Pointer

func (*AVHWFramesContext) SetAvClass

func (s *AVHWFramesContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for logging.

func (*AVHWFramesContext) SetDeviceCtx

func (s *AVHWFramesContext) SetDeviceCtx(value *AVHWDeviceContext)

SetDeviceCtx sets the device_ctx field.

The parent AVHWDeviceContext. This is simply a pointer to
device_ref->data provided for convenience.

Set by libavutil in av_hwframe_ctx_init().

func (*AVHWFramesContext) SetDeviceRef

func (s *AVHWFramesContext) SetDeviceRef(value *AVBufferRef)

SetDeviceRef sets the device_ref field.

A reference to the parent AVHWDeviceContext. This reference is owned and
managed by the enclosing AVHWFramesContext, but the caller may derive
additional references from it.

func (*AVHWFramesContext) SetFormat

func (s *AVHWFramesContext) SetFormat(value AVPixelFormat)

SetFormat sets the format field.

The pixel format identifying the underlying HW surface type.

Must be a hwaccel format, i.e. the corresponding descriptor must have the
AV_PIX_FMT_FLAG_HWACCEL flag set.

Must be set by the user before calling av_hwframe_ctx_init().

func (*AVHWFramesContext) SetHeight

func (s *AVHWFramesContext) SetHeight(value int)

SetHeight sets the height field.

The allocated dimensions of the frames in this pool.

Must be set by the user before calling av_hwframe_ctx_init().

func (*AVHWFramesContext) SetHwctx

func (s *AVHWFramesContext) SetHwctx(value unsafe.Pointer)

SetHwctx sets the hwctx field.

The format-specific data, allocated and freed automatically along with
this context.

The user shall ignore this field if the corresponding format-specific
header (hwcontext_*.h) does not define a context to be used as
AVHWFramesContext.hwctx.

Otherwise, it should be cast by the user to said context and filled
as described in the documentation before calling av_hwframe_ctx_init().

After any frames using this context are created, the contents of this
struct should not be modified by the caller.

func (*AVHWFramesContext) SetInitialPoolSize

func (s *AVHWFramesContext) SetInitialPoolSize(value int)

SetInitialPoolSize sets the initial_pool_size field.

Initial size of the frame pool. If a device type does not support
dynamically resizing the pool, then this is also the maximum pool size.

May be set by the caller before calling av_hwframe_ctx_init(). Must be
set if pool is NULL and the device type does not support dynamic pools.

func (*AVHWFramesContext) SetPool

func (s *AVHWFramesContext) SetPool(value *AVBufferPool)

SetPool sets the pool field.

A pool from which the frames are allocated by av_hwframe_get_buffer().
This field may be set by the caller before calling av_hwframe_ctx_init().
The buffers returned by calling av_buffer_pool_get() on this pool must
have the properties described in the documentation in the corresponding hw
type's header (hwcontext_*.h). The pool will be freed strictly before
this struct's free() callback is invoked.

This field may be NULL, then libavutil will attempt to allocate a pool
internally. Note that certain device types enforce pools allocated at
fixed size (frame count), which cannot be extended dynamically. In such a
case, initial_pool_size must be set appropriately.

func (*AVHWFramesContext) SetSwFormat

func (s *AVHWFramesContext) SetSwFormat(value AVPixelFormat)

SetSwFormat sets the sw_format field.

The pixel format identifying the actual data layout of the hardware
frames.

Must be set by the caller before calling av_hwframe_ctx_init().

@note when the underlying API does not provide the exact data layout, but
only the colorspace/bit depth, this field should be set to the fully
planar version of that format (e.g. for 8-bit 420 YUV it should be
AV_PIX_FMT_YUV420P, not AV_PIX_FMT_NV12 or anything else).

func (*AVHWFramesContext) SetUserOpaque

func (s *AVHWFramesContext) SetUserOpaque(value unsafe.Pointer)

SetUserOpaque sets the user_opaque field.

Arbitrary user data, to be used e.g. by the free() callback.

func (*AVHWFramesContext) SetWidth

func (s *AVHWFramesContext) SetWidth(value int)

SetWidth sets the width field.

The allocated dimensions of the frames in this pool.

Must be set by the user before calling av_hwframe_ctx_init().

func (*AVHWFramesContext) SwFormat

func (s *AVHWFramesContext) SwFormat() AVPixelFormat

SwFormat gets the sw_format field.

The pixel format identifying the actual data layout of the hardware
frames.

Must be set by the caller before calling av_hwframe_ctx_init().

@note when the underlying API does not provide the exact data layout, but
only the colorspace/bit depth, this field should be set to the fully
planar version of that format (e.g. for 8-bit 420 YUV it should be
AV_PIX_FMT_YUV420P, not AV_PIX_FMT_NV12 or anything else).

func (*AVHWFramesContext) UserOpaque

func (s *AVHWFramesContext) UserOpaque() unsafe.Pointer

UserOpaque gets the user_opaque field.

Arbitrary user data, to be used e.g. by the free() callback.

func (*AVHWFramesContext) Width

func (s *AVHWFramesContext) Width() int

Width gets the width field.

The allocated dimensions of the frames in this pool.

Must be set by the user before calling av_hwframe_ctx_init().

type AVHashContext

type AVHashContext struct {
	// contains filtered or unexported fields
}

AVHashContext wraps AVHashContext.

@example ffhash.c
This example is a simple command line application that takes one or more
arguments. It demonstrates a typical use of the hashing API with allocation,
initialization, updating, and finalizing.

func (*AVHashContext) RawPtr

func (s *AVHashContext) RawPtr() unsafe.Pointer

type AVIAMFAmbisonicsMode

type AVIAMFAmbisonicsMode C.enum_AVIAMFAmbisonicsMode

AVIAMFAmbisonicsMode wraps AVIAMFAmbisonicsMode.

const (
	// AVIamfAmbisonicsModeMono wraps AV_IAMF_AMBISONICS_MODE_MONO.
	AVIamfAmbisonicsModeMono AVIAMFAmbisonicsMode = C.AV_IAMF_AMBISONICS_MODE_MONO
	// AVIamfAmbisonicsModeProjection wraps AV_IAMF_AMBISONICS_MODE_PROJECTION.
	AVIamfAmbisonicsModeProjection AVIAMFAmbisonicsMode = C.AV_IAMF_AMBISONICS_MODE_PROJECTION
)

type AVIAMFAnimationType

type AVIAMFAnimationType C.enum_AVIAMFAnimationType

AVIAMFAnimationType wraps AVIAMFAnimationType.

const (
	// AVIamfAnimationTypeStep wraps AV_IAMF_ANIMATION_TYPE_STEP.
	AVIamfAnimationTypeStep AVIAMFAnimationType = C.AV_IAMF_ANIMATION_TYPE_STEP
	// AVIamfAnimationTypeLinear wraps AV_IAMF_ANIMATION_TYPE_LINEAR.
	AVIamfAnimationTypeLinear AVIAMFAnimationType = C.AV_IAMF_ANIMATION_TYPE_LINEAR
	// AVIamfAnimationTypeBezier wraps AV_IAMF_ANIMATION_TYPE_BEZIER.
	AVIamfAnimationTypeBezier AVIAMFAnimationType = C.AV_IAMF_ANIMATION_TYPE_BEZIER
)

type AVIAMFAudioElement

type AVIAMFAudioElement struct {
	// contains filtered or unexported fields
}

AVIAMFAudioElement wraps AVIAMFAudioElement.

Information on how to combine one or more audio streams, as defined in
section 3.6 of IAMF.

@note The struct should be allocated with av_iamf_audio_element_alloc()
      and its size is not a part of the public ABI.

func AVIamfAudioElementAlloc

func AVIamfAudioElementAlloc() *AVIAMFAudioElement

AVIamfAudioElementAlloc wraps av_iamf_audio_element_alloc.

Allocates a AVIAMFAudioElement, and initializes its fields with default values.
No layers are allocated. Must be freed with av_iamf_audio_element_free().

@see av_iamf_audio_element_add_layer()

func (*AVIAMFAudioElement) AudioElementType

func (s *AVIAMFAudioElement) AudioElementType() AVIAMFAudioElementType

AudioElementType gets the audio_element_type field.

Audio element type as defined in section 3.6 of IAMF.

func (*AVIAMFAudioElement) AvClass

func (s *AVIAMFAudioElement) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFAudioElement) DefaultW

func (s *AVIAMFAudioElement) DefaultW() uint

DefaultW gets the default_w field.

Default weight value as defined in section 3.6 of IAMF.

func (*AVIAMFAudioElement) DemixingInfo

func (s *AVIAMFAudioElement) DemixingInfo() *AVIAMFParamDefinition

DemixingInfo gets the demixing_info field.

Demixing information used to reconstruct a scalable channel audio
representation.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_DEMIXING.

func (*AVIAMFAudioElement) Layers

func (s *AVIAMFAudioElement) Layers() *Array[*AVIAMFLayer]

Layers gets the layers field.

func (*AVIAMFAudioElement) NbLayers

func (s *AVIAMFAudioElement) NbLayers() uint

NbLayers gets the nb_layers field.

Number of layers, or channel groups, in the Audio Element.
There may be 6 layers at most, and for @ref audio_element_type
AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE, there may be exactly 1.

Set by av_iamf_audio_element_add_layer(), must not be
modified by any other code.

func (*AVIAMFAudioElement) RawPtr

func (s *AVIAMFAudioElement) RawPtr() unsafe.Pointer

func (*AVIAMFAudioElement) ReconGainInfo

func (s *AVIAMFAudioElement) ReconGainInfo() *AVIAMFParamDefinition

ReconGainInfo gets the recon_gain_info field.

Recon gain information used to reconstruct a scalable channel audio
representation.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_RECON_GAIN.

func (*AVIAMFAudioElement) SetAudioElementType

func (s *AVIAMFAudioElement) SetAudioElementType(value AVIAMFAudioElementType)

SetAudioElementType sets the audio_element_type field.

Audio element type as defined in section 3.6 of IAMF.

func (*AVIAMFAudioElement) SetAvClass

func (s *AVIAMFAudioElement) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFAudioElement) SetDefaultW

func (s *AVIAMFAudioElement) SetDefaultW(value uint)

SetDefaultW sets the default_w field.

Default weight value as defined in section 3.6 of IAMF.

func (*AVIAMFAudioElement) SetDemixingInfo

func (s *AVIAMFAudioElement) SetDemixingInfo(value *AVIAMFParamDefinition)

SetDemixingInfo sets the demixing_info field.

Demixing information used to reconstruct a scalable channel audio
representation.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_DEMIXING.

func (*AVIAMFAudioElement) SetLayers

func (s *AVIAMFAudioElement) SetLayers(value *Array[AVIAMFLayer])

SetLayers sets the layers field.

func (*AVIAMFAudioElement) SetNbLayers

func (s *AVIAMFAudioElement) SetNbLayers(value uint)

SetNbLayers sets the nb_layers field.

Number of layers, or channel groups, in the Audio Element.
There may be 6 layers at most, and for @ref audio_element_type
AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE, there may be exactly 1.

Set by av_iamf_audio_element_add_layer(), must not be
modified by any other code.

func (*AVIAMFAudioElement) SetReconGainInfo

func (s *AVIAMFAudioElement) SetReconGainInfo(value *AVIAMFParamDefinition)

SetReconGainInfo sets the recon_gain_info field.

Recon gain information used to reconstruct a scalable channel audio
representation.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_RECON_GAIN.

type AVIAMFAudioElementType

type AVIAMFAudioElementType C.enum_AVIAMFAudioElementType

AVIAMFAudioElementType wraps AVIAMFAudioElementType.

const (
	// AVIamfAudioElementTypeChannel wraps AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL.
	AVIamfAudioElementTypeChannel AVIAMFAudioElementType = C.AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL
	// AVIamfAudioElementTypeScene wraps AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE.
	AVIamfAudioElementTypeScene AVIAMFAudioElementType = C.AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE
)

type AVIAMFDemixingInfo

type AVIAMFDemixingInfo struct {
	// contains filtered or unexported fields
}

AVIAMFDemixingInfo wraps AVIAMFDemixingInfo.

Demixing Info Parameter Data as defined in section 3.8.2 of IAMF.

@note This struct's size is not a part of the public ABI.

func (*AVIAMFDemixingInfo) AvClass

func (s *AVIAMFDemixingInfo) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFDemixingInfo) DmixpMode

func (s *AVIAMFDemixingInfo) DmixpMode() uint

DmixpMode gets the dmixp_mode field.

Pre-defined combination of demixing parameters.

func (*AVIAMFDemixingInfo) RawPtr

func (s *AVIAMFDemixingInfo) RawPtr() unsafe.Pointer

func (*AVIAMFDemixingInfo) SetAvClass

func (s *AVIAMFDemixingInfo) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFDemixingInfo) SetDmixpMode

func (s *AVIAMFDemixingInfo) SetDmixpMode(value uint)

SetDmixpMode sets the dmixp_mode field.

Pre-defined combination of demixing parameters.

func (*AVIAMFDemixingInfo) SetSubblockDuration

func (s *AVIAMFDemixingInfo) SetSubblockDuration(value uint)

SetSubblockDuration sets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

func (*AVIAMFDemixingInfo) SubblockDuration

func (s *AVIAMFDemixingInfo) SubblockDuration() uint

SubblockDuration gets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

type AVIAMFHeadphonesMode

type AVIAMFHeadphonesMode C.enum_AVIAMFHeadphonesMode

AVIAMFHeadphonesMode wraps AVIAMFHeadphonesMode.

const (
	// AVIamfHeadphonesModeStereo wraps AV_IAMF_HEADPHONES_MODE_STEREO.
	//
	//	The referenced Audio Element shall be rendered to stereo loudspeakers.
	AVIamfHeadphonesModeStereo AVIAMFHeadphonesMode = C.AV_IAMF_HEADPHONES_MODE_STEREO
	// AVIamfHeadphonesModeBinaural wraps AV_IAMF_HEADPHONES_MODE_BINAURAL.
	//
	//	The referenced Audio Element shall be rendered with a binaural renderer.
	AVIamfHeadphonesModeBinaural AVIAMFHeadphonesMode = C.AV_IAMF_HEADPHONES_MODE_BINAURAL
)

type AVIAMFLayer

type AVIAMFLayer struct {
	// contains filtered or unexported fields
}

AVIAMFLayer wraps AVIAMFLayer.

A layer defining a Channel Layout in the Audio Element.

When @ref AVIAMFAudioElement.audio_element_type "the parent's Audio Element type"
is AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL, this corresponds to an Scalable Channel
Layout layer as defined in section 3.6.2 of IAMF.
For AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE, it is an Ambisonics channel
layout as defined in section 3.6.3 of IAMF.

@note The struct should be allocated with av_iamf_audio_element_add_layer()
      and its size is not a part of the public ABI.

func AVIamfAudioElementAddLayer

func AVIamfAudioElementAddLayer(audioElement *AVIAMFAudioElement) *AVIAMFLayer

AVIamfAudioElementAddLayer wraps av_iamf_audio_element_add_layer.

Allocate a layer and add it to a given AVIAMFAudioElement.
It is freed by av_iamf_audio_element_free() alongside the rest of the parent
AVIAMFAudioElement.

@return a pointer to the allocated layer.

func (*AVIAMFLayer) AmbisonicsMode

func (s *AVIAMFLayer) AmbisonicsMode() AVIAMFAmbisonicsMode

AmbisonicsMode gets the ambisonics_mode field.

Ambisonics mode as defined in section 3.6.3 of IAMF.

This field is defined only if @ref AVIAMFAudioElement.audio_element_type
"the parent's Audio Element type" is AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE.

If AV_IAMF_AMBISONICS_MODE_MONO, channel_mapping is defined implicitly
(Ambisonic Order) or explicitly (Custom Order with ambi channels) in
@ref ch_layout.
If AV_IAMF_AMBISONICS_MODE_PROJECTION, @ref demixing_matrix must be set.

func (*AVIAMFLayer) AvClass

func (s *AVIAMFLayer) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFLayer) ChLayout

func (s *AVIAMFLayer) ChLayout() *AVChannelLayout

ChLayout gets the ch_layout field.

func (*AVIAMFLayer) Flags

func (s *AVIAMFLayer) Flags() uint

Flags gets the flags field.

A bitmask which may contain a combination of AV_IAMF_LAYER_FLAG_* flags.

func (*AVIAMFLayer) OutputGain

func (s *AVIAMFLayer) OutputGain() *AVRational

OutputGain gets the output_gain field.

Output gain as defined in section 3.6.2 of IAMF.

Must be 0 if @ref output_gain_flags is 0.

func (*AVIAMFLayer) OutputGainFlags

func (s *AVIAMFLayer) OutputGainFlags() uint

OutputGainFlags gets the output_gain_flags field.

Output gain channel flags as defined in section 3.6.2 of IAMF.

This field is defined only if @ref AVIAMFAudioElement.audio_element_type
"the parent's Audio Element type" is AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL,
must be 0 otherwise.

func (*AVIAMFLayer) RawPtr

func (s *AVIAMFLayer) RawPtr() unsafe.Pointer

func (*AVIAMFLayer) SetAmbisonicsMode

func (s *AVIAMFLayer) SetAmbisonicsMode(value AVIAMFAmbisonicsMode)

SetAmbisonicsMode sets the ambisonics_mode field.

Ambisonics mode as defined in section 3.6.3 of IAMF.

This field is defined only if @ref AVIAMFAudioElement.audio_element_type
"the parent's Audio Element type" is AV_IAMF_AUDIO_ELEMENT_TYPE_SCENE.

If AV_IAMF_AMBISONICS_MODE_MONO, channel_mapping is defined implicitly
(Ambisonic Order) or explicitly (Custom Order with ambi channels) in
@ref ch_layout.
If AV_IAMF_AMBISONICS_MODE_PROJECTION, @ref demixing_matrix must be set.

func (*AVIAMFLayer) SetAvClass

func (s *AVIAMFLayer) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFLayer) SetFlags

func (s *AVIAMFLayer) SetFlags(value uint)

SetFlags sets the flags field.

A bitmask which may contain a combination of AV_IAMF_LAYER_FLAG_* flags.

func (*AVIAMFLayer) SetOutputGain

func (s *AVIAMFLayer) SetOutputGain(value *AVRational)

SetOutputGain sets the output_gain field.

Output gain as defined in section 3.6.2 of IAMF.

Must be 0 if @ref output_gain_flags is 0.

func (*AVIAMFLayer) SetOutputGainFlags

func (s *AVIAMFLayer) SetOutputGainFlags(value uint)

SetOutputGainFlags sets the output_gain_flags field.

Output gain channel flags as defined in section 3.6.2 of IAMF.

This field is defined only if @ref AVIAMFAudioElement.audio_element_type
"the parent's Audio Element type" is AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL,
must be 0 otherwise.

type AVIAMFMixGain

type AVIAMFMixGain struct {
	// contains filtered or unexported fields
}

AVIAMFMixGain wraps AVIAMFMixGain.

Mix Gain Parameter Data as defined in section 3.8.1 of IAMF.

@note This struct's size is not a part of the public ABI.

func (*AVIAMFMixGain) AnimationType

func (s *AVIAMFMixGain) AnimationType() AVIAMFAnimationType

AnimationType gets the animation_type field.

The type of animation applied to the parameter values.

func (*AVIAMFMixGain) AvClass

func (s *AVIAMFMixGain) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFMixGain) ControlPointRelativeTime

func (s *AVIAMFMixGain) ControlPointRelativeTime() *AVRational

ControlPointRelativeTime gets the control_point_relative_time field.

Parameter value of the time of the middle control point of a
quadratic Bezier curve, i.e., its x-axis value.
Applies only to AV_IAMF_ANIMATION_TYPE_BEZIER Animation Type.

Valid range of values is 0.0 to 1.0

func (*AVIAMFMixGain) ControlPointValue

func (s *AVIAMFMixGain) ControlPointValue() *AVRational

ControlPointValue gets the control_point_value field.

Parameter value of the middle control point of a quadratic Bezier
curve, i.e., its y-axis value.
Applies only to AV_IAMF_ANIMATION_TYPE_BEZIER Animation Type.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) EndPointValue

func (s *AVIAMFMixGain) EndPointValue() *AVRational

EndPointValue gets the end_point_value field.

Parameter value that is applied at the end of the subblock.
Applies only to AV_IAMF_ANIMATION_TYPE_LINEAR and
AV_IAMF_ANIMATION_TYPE_BEZIER Animation Types.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) RawPtr

func (s *AVIAMFMixGain) RawPtr() unsafe.Pointer

func (*AVIAMFMixGain) SetAnimationType

func (s *AVIAMFMixGain) SetAnimationType(value AVIAMFAnimationType)

SetAnimationType sets the animation_type field.

The type of animation applied to the parameter values.

func (*AVIAMFMixGain) SetAvClass

func (s *AVIAMFMixGain) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFMixGain) SetControlPointRelativeTime

func (s *AVIAMFMixGain) SetControlPointRelativeTime(value *AVRational)

SetControlPointRelativeTime sets the control_point_relative_time field.

Parameter value of the time of the middle control point of a
quadratic Bezier curve, i.e., its x-axis value.
Applies only to AV_IAMF_ANIMATION_TYPE_BEZIER Animation Type.

Valid range of values is 0.0 to 1.0

func (*AVIAMFMixGain) SetControlPointValue

func (s *AVIAMFMixGain) SetControlPointValue(value *AVRational)

SetControlPointValue sets the control_point_value field.

Parameter value of the middle control point of a quadratic Bezier
curve, i.e., its y-axis value.
Applies only to AV_IAMF_ANIMATION_TYPE_BEZIER Animation Type.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) SetEndPointValue

func (s *AVIAMFMixGain) SetEndPointValue(value *AVRational)

SetEndPointValue sets the end_point_value field.

Parameter value that is applied at the end of the subblock.
Applies only to AV_IAMF_ANIMATION_TYPE_LINEAR and
AV_IAMF_ANIMATION_TYPE_BEZIER Animation Types.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) SetStartPointValue

func (s *AVIAMFMixGain) SetStartPointValue(value *AVRational)

SetStartPointValue sets the start_point_value field.

Parameter value that is applied at the start of the subblock.
Applies to all defined Animation Types.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) SetSubblockDuration

func (s *AVIAMFMixGain) SetSubblockDuration(value uint)

SetSubblockDuration sets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

func (*AVIAMFMixGain) StartPointValue

func (s *AVIAMFMixGain) StartPointValue() *AVRational

StartPointValue gets the start_point_value field.

Parameter value that is applied at the start of the subblock.
Applies to all defined Animation Types.

Valid range of values is -128.0 to 128.0

func (*AVIAMFMixGain) SubblockDuration

func (s *AVIAMFMixGain) SubblockDuration() uint

SubblockDuration gets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

type AVIAMFMixPresentation

type AVIAMFMixPresentation struct {
	// contains filtered or unexported fields
}

AVIAMFMixPresentation wraps AVIAMFMixPresentation.

Information on how to render and mix one or more AVIAMFAudioElement to generate
the final audio output, as defined in section 3.7 of IAMF.

@note The struct should be allocated with av_iamf_mix_presentation_alloc()
      and its size is not a part of the public ABI.

func AVIamfMixPresentationAlloc

func AVIamfMixPresentationAlloc() *AVIAMFMixPresentation

AVIamfMixPresentationAlloc wraps av_iamf_mix_presentation_alloc.

Allocates a AVIAMFMixPresentation, and initializes its fields with default
values. No submixes are allocated.
Must be freed with av_iamf_mix_presentation_free().

@see av_iamf_mix_presentation_add_submix()

func (*AVIAMFMixPresentation) Annotations

func (s *AVIAMFMixPresentation) Annotations() *AVDictionary

Annotations gets the annotations field.

A dictionary of strings describing the mix in different languages.
Must have the same amount of entries as every
@ref AVIAMFSubmixElement.annotations "Submix element annotations",
stored in the same order, and with the same key strings.

@ref AVDictionaryEntry.key "key" is a string conforming to BCP-47
that specifies the language for the string stored in
@ref AVDictionaryEntry.value "value".

func (*AVIAMFMixPresentation) AvClass

func (s *AVIAMFMixPresentation) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFMixPresentation) NbSubmixes

func (s *AVIAMFMixPresentation) NbSubmixes() uint

NbSubmixes gets the nb_submixes field.

Number of submixes in the presentation.

Set by av_iamf_mix_presentation_add_submix(), must not be modified
by any other code.

func (*AVIAMFMixPresentation) RawPtr

func (s *AVIAMFMixPresentation) RawPtr() unsafe.Pointer

func (*AVIAMFMixPresentation) SetAnnotations

func (s *AVIAMFMixPresentation) SetAnnotations(value *AVDictionary)

SetAnnotations sets the annotations field.

A dictionary of strings describing the mix in different languages.
Must have the same amount of entries as every
@ref AVIAMFSubmixElement.annotations "Submix element annotations",
stored in the same order, and with the same key strings.

@ref AVDictionaryEntry.key "key" is a string conforming to BCP-47
that specifies the language for the string stored in
@ref AVDictionaryEntry.value "value".

func (*AVIAMFMixPresentation) SetAvClass

func (s *AVIAMFMixPresentation) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFMixPresentation) SetNbSubmixes

func (s *AVIAMFMixPresentation) SetNbSubmixes(value uint)

SetNbSubmixes sets the nb_submixes field.

Number of submixes in the presentation.

Set by av_iamf_mix_presentation_add_submix(), must not be modified
by any other code.

func (*AVIAMFMixPresentation) SetSubmixes

func (s *AVIAMFMixPresentation) SetSubmixes(value *Array[AVIAMFSubmix])

SetSubmixes sets the submixes field.

Array of submixes.

Set by av_iamf_mix_presentation_add_submix(), must not be modified
by any other code.

func (*AVIAMFMixPresentation) Submixes

func (s *AVIAMFMixPresentation) Submixes() *Array[*AVIAMFSubmix]

Submixes gets the submixes field.

Array of submixes.

Set by av_iamf_mix_presentation_add_submix(), must not be modified
by any other code.

type AVIAMFParamDefinition

type AVIAMFParamDefinition struct {
	// contains filtered or unexported fields
}

AVIAMFParamDefinition wraps AVIAMFParamDefinition.

Parameters as defined in section 3.6.1 of IAMF.

The struct is allocated by av_iamf_param_definition_alloc() along with an
array of subblocks, its type depending on the value of type.
This array is placed subblocks_offset bytes after the start of this struct.

@note This struct's size is not a part of the public ABI.

func AVIamfParamDefinitionAlloc

func AVIamfParamDefinitionAlloc(_type AVIAMFParamDefinitionType, nbSubblocks uint, size *uint64) *AVIAMFParamDefinition

AVIamfParamDefinitionAlloc wraps av_iamf_param_definition_alloc.

Allocates memory for AVIAMFParamDefinition, plus an array of {@code nb_subblocks}
amount of subblocks of the given type and initializes the variables. Can be
freed with a normal av_free() call.

@param size if non-NULL, the size in bytes of the resulting data array is written here.

func (*AVIAMFParamDefinition) AvClass

func (s *AVIAMFParamDefinition) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFParamDefinition) ConstantSubblockDuration

func (s *AVIAMFParamDefinition) ConstantSubblockDuration() uint

ConstantSubblockDuration gets the constant_subblock_duration field.

The duration of every subblock in the case where all subblocks, with
the optional exception of the last subblock, have equal durations.

Must be 0 if subblocks have different durations.

func (*AVIAMFParamDefinition) Duration

func (s *AVIAMFParamDefinition) Duration() uint

Duration gets the duration field.

The accumulated duration of all blocks in this parameter definition,
in units of 1 / @ref parameter_rate.

May be 0, in which case all duration values should be specified in
another parameter definition referencing the same parameter_id.

func (*AVIAMFParamDefinition) NbSubblocks

func (s *AVIAMFParamDefinition) NbSubblocks() uint

NbSubblocks gets the nb_subblocks field.

Number of subblocks in the array.

func (*AVIAMFParamDefinition) ParameterId

func (s *AVIAMFParamDefinition) ParameterId() uint

ParameterId gets the parameter_id field.

Identifier for the parameter substream.

func (*AVIAMFParamDefinition) ParameterRate

func (s *AVIAMFParamDefinition) ParameterRate() uint

ParameterRate gets the parameter_rate field.

Sample rate for the parameter substream. It must not be 0.

func (*AVIAMFParamDefinition) RawPtr

func (s *AVIAMFParamDefinition) RawPtr() unsafe.Pointer

func (*AVIAMFParamDefinition) SetAvClass

func (s *AVIAMFParamDefinition) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFParamDefinition) SetConstantSubblockDuration

func (s *AVIAMFParamDefinition) SetConstantSubblockDuration(value uint)

SetConstantSubblockDuration sets the constant_subblock_duration field.

The duration of every subblock in the case where all subblocks, with
the optional exception of the last subblock, have equal durations.

Must be 0 if subblocks have different durations.

func (*AVIAMFParamDefinition) SetDuration

func (s *AVIAMFParamDefinition) SetDuration(value uint)

SetDuration sets the duration field.

The accumulated duration of all blocks in this parameter definition,
in units of 1 / @ref parameter_rate.

May be 0, in which case all duration values should be specified in
another parameter definition referencing the same parameter_id.

func (*AVIAMFParamDefinition) SetNbSubblocks

func (s *AVIAMFParamDefinition) SetNbSubblocks(value uint)

SetNbSubblocks sets the nb_subblocks field.

Number of subblocks in the array.

func (*AVIAMFParamDefinition) SetParameterId

func (s *AVIAMFParamDefinition) SetParameterId(value uint)

SetParameterId sets the parameter_id field.

Identifier for the parameter substream.

func (*AVIAMFParamDefinition) SetParameterRate

func (s *AVIAMFParamDefinition) SetParameterRate(value uint)

SetParameterRate sets the parameter_rate field.

Sample rate for the parameter substream. It must not be 0.

func (*AVIAMFParamDefinition) SetSubblockSize

func (s *AVIAMFParamDefinition) SetSubblockSize(value uint64)

SetSubblockSize sets the subblock_size field.

Size in bytes of each element in the subblocks array.

func (*AVIAMFParamDefinition) SetSubblocksOffset

func (s *AVIAMFParamDefinition) SetSubblocksOffset(value uint64)

SetSubblocksOffset sets the subblocks_offset field.

Offset in bytes from the start of this struct, at which the subblocks
array is located.

func (*AVIAMFParamDefinition) SetType

SetType sets the type field.

Parameters type. Determines the type of the subblock elements.

func (*AVIAMFParamDefinition) SubblockSize

func (s *AVIAMFParamDefinition) SubblockSize() uint64

SubblockSize gets the subblock_size field.

Size in bytes of each element in the subblocks array.

func (*AVIAMFParamDefinition) SubblocksOffset

func (s *AVIAMFParamDefinition) SubblocksOffset() uint64

SubblocksOffset gets the subblocks_offset field.

Offset in bytes from the start of this struct, at which the subblocks
array is located.

func (*AVIAMFParamDefinition) Type

Type gets the type field.

Parameters type. Determines the type of the subblock elements.

type AVIAMFParamDefinitionType

type AVIAMFParamDefinitionType C.enum_AVIAMFParamDefinitionType

AVIAMFParamDefinitionType wraps AVIAMFParamDefinitionType.

const (
	// AVIamfParameterDefinitionMixGain wraps AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN.
	//
	//	Subblocks are of struct type AVIAMFMixGain
	AVIamfParameterDefinitionMixGain AVIAMFParamDefinitionType = C.AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN
	// AVIamfParameterDefinitionDemixing wraps AV_IAMF_PARAMETER_DEFINITION_DEMIXING.
	//
	//	Subblocks are of struct type AVIAMFDemixingInfo
	AVIamfParameterDefinitionDemixing AVIAMFParamDefinitionType = C.AV_IAMF_PARAMETER_DEFINITION_DEMIXING
	// AVIamfParameterDefinitionReconGain wraps AV_IAMF_PARAMETER_DEFINITION_RECON_GAIN.
	//
	//	Subblocks are of struct type AVIAMFReconGain
	AVIamfParameterDefinitionReconGain AVIAMFParamDefinitionType = C.AV_IAMF_PARAMETER_DEFINITION_RECON_GAIN
)

type AVIAMFReconGain

type AVIAMFReconGain struct {
	// contains filtered or unexported fields
}

AVIAMFReconGain wraps AVIAMFReconGain.

Recon Gain Info Parameter Data as defined in section 3.8.3 of IAMF.

@note This struct's size is not a part of the public ABI.

func (*AVIAMFReconGain) AvClass

func (s *AVIAMFReconGain) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFReconGain) RawPtr

func (s *AVIAMFReconGain) RawPtr() unsafe.Pointer

func (*AVIAMFReconGain) SetAvClass

func (s *AVIAMFReconGain) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFReconGain) SetSubblockDuration

func (s *AVIAMFReconGain) SetSubblockDuration(value uint)

SetSubblockDuration sets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

func (*AVIAMFReconGain) SubblockDuration

func (s *AVIAMFReconGain) SubblockDuration() uint

SubblockDuration gets the subblock_duration field.

Duration for the given subblock, in units of
1 / @ref AVIAMFParamDefinition.parameter_rate "parameter_rate".
It must not be 0.

type AVIAMFSubmix

type AVIAMFSubmix struct {
	// contains filtered or unexported fields
}

AVIAMFSubmix wraps AVIAMFSubmix.

Submix layout as defined in section 3.7 of IAMF.

@note The struct should be allocated with av_iamf_mix_presentation_add_submix()
      and its size is not a part of the public ABI.

func AVIamfMixPresentationAddSubmix

func AVIamfMixPresentationAddSubmix(mixPresentation *AVIAMFMixPresentation) *AVIAMFSubmix

AVIamfMixPresentationAddSubmix wraps av_iamf_mix_presentation_add_submix.

Allocate a submix and add it to a given AVIAMFMixPresentation.
It is freed by av_iamf_mix_presentation_free() alongside the rest of the
parent AVIAMFMixPresentation.

@return a pointer to the allocated submix.

func (*AVIAMFSubmix) AvClass

func (s *AVIAMFSubmix) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFSubmix) DefaultMixGain

func (s *AVIAMFSubmix) DefaultMixGain() *AVRational

DefaultMixGain gets the default_mix_gain field.

Default mix gain value to apply when there are no AVIAMFParamDefinition
with @ref output_mix_config "output_mix_config's"
@ref AVIAMFParamDefinition.parameter_id "parameter_id" available for a
given audio frame.

func (*AVIAMFSubmix) Elements

func (s *AVIAMFSubmix) Elements() *Array[*AVIAMFSubmixElement]

Elements gets the elements field.

Array of submix elements.

Set by av_iamf_submix_add_element(), must not be modified by any
other code.

func (*AVIAMFSubmix) Layouts

func (s *AVIAMFSubmix) Layouts() *Array[*AVIAMFSubmixLayout]

Layouts gets the layouts field.

Array of submix layouts.

Set by av_iamf_submix_add_layout(), must not be modified by any
other code.

func (*AVIAMFSubmix) NbElements

func (s *AVIAMFSubmix) NbElements() uint

NbElements gets the nb_elements field.

Number of elements in the submix.

Set by av_iamf_submix_add_element(), must not be modified by any
other code.

func (*AVIAMFSubmix) NbLayouts

func (s *AVIAMFSubmix) NbLayouts() uint

NbLayouts gets the nb_layouts field.

Number of layouts in the submix.

Set by av_iamf_submix_add_layout(), must not be modified by any
other code.

func (*AVIAMFSubmix) OutputMixConfig

func (s *AVIAMFSubmix) OutputMixConfig() *AVIAMFParamDefinition

OutputMixConfig gets the output_mix_config field.

Information required for post-processing the mixed audio signal to
generate the audio signal for playback.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN.

func (*AVIAMFSubmix) RawPtr

func (s *AVIAMFSubmix) RawPtr() unsafe.Pointer

func (*AVIAMFSubmix) SetAvClass

func (s *AVIAMFSubmix) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFSubmix) SetDefaultMixGain

func (s *AVIAMFSubmix) SetDefaultMixGain(value *AVRational)

SetDefaultMixGain sets the default_mix_gain field.

Default mix gain value to apply when there are no AVIAMFParamDefinition
with @ref output_mix_config "output_mix_config's"
@ref AVIAMFParamDefinition.parameter_id "parameter_id" available for a
given audio frame.

func (*AVIAMFSubmix) SetElements

func (s *AVIAMFSubmix) SetElements(value *Array[AVIAMFSubmixElement])

SetElements sets the elements field.

Array of submix elements.

Set by av_iamf_submix_add_element(), must not be modified by any
other code.

func (*AVIAMFSubmix) SetLayouts

func (s *AVIAMFSubmix) SetLayouts(value *Array[AVIAMFSubmixLayout])

SetLayouts sets the layouts field.

Array of submix layouts.

Set by av_iamf_submix_add_layout(), must not be modified by any
other code.

func (*AVIAMFSubmix) SetNbElements

func (s *AVIAMFSubmix) SetNbElements(value uint)

SetNbElements sets the nb_elements field.

Number of elements in the submix.

Set by av_iamf_submix_add_element(), must not be modified by any
other code.

func (*AVIAMFSubmix) SetNbLayouts

func (s *AVIAMFSubmix) SetNbLayouts(value uint)

SetNbLayouts sets the nb_layouts field.

Number of layouts in the submix.

Set by av_iamf_submix_add_layout(), must not be modified by any
other code.

func (*AVIAMFSubmix) SetOutputMixConfig

func (s *AVIAMFSubmix) SetOutputMixConfig(value *AVIAMFParamDefinition)

SetOutputMixConfig sets the output_mix_config field.

Information required for post-processing the mixed audio signal to
generate the audio signal for playback.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN.

type AVIAMFSubmixElement

type AVIAMFSubmixElement struct {
	// contains filtered or unexported fields
}

AVIAMFSubmixElement wraps AVIAMFSubmixElement.

Submix element as defined in section 3.7 of IAMF.

@note The struct should be allocated with av_iamf_submix_add_element()
      and its size is not a part of the public ABI.

func AVIamfSubmixAddElement

func AVIamfSubmixAddElement(submix *AVIAMFSubmix) *AVIAMFSubmixElement

AVIamfSubmixAddElement wraps av_iamf_submix_add_element.

Allocate a submix element and add it to a given AVIAMFSubmix.
It is freed by av_iamf_mix_presentation_free() alongside the rest of the
parent AVIAMFSubmix.

@return a pointer to the allocated submix.

func (*AVIAMFSubmixElement) Annotations

func (s *AVIAMFSubmixElement) Annotations() *AVDictionary

Annotations gets the annotations field.

A dictionary of strings describing the submix in different languages.
Must have the same amount of entries as
@ref AVIAMFMixPresentation.annotations "the mix's annotations", stored
in the same order, and with the same key strings.

@ref AVDictionaryEntry.key "key" is a string conforming to BCP-47 that
specifies the language for the string stored in
@ref AVDictionaryEntry.value "value".

func (*AVIAMFSubmixElement) AudioElementId

func (s *AVIAMFSubmixElement) AudioElementId() uint

AudioElementId gets the audio_element_id field.

The id of the Audio Element this submix element references.

func (*AVIAMFSubmixElement) AvClass

func (s *AVIAMFSubmixElement) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFSubmixElement) DefaultMixGain

func (s *AVIAMFSubmixElement) DefaultMixGain() *AVRational

DefaultMixGain gets the default_mix_gain field.

Default mix gain value to apply when there are no AVIAMFParamDefinition
with @ref element_mix_config "element_mix_config's"
@ref AVIAMFParamDefinition.parameter_id "parameter_id" available for a
given audio frame.

func (*AVIAMFSubmixElement) ElementMixConfig

func (s *AVIAMFSubmixElement) ElementMixConfig() *AVIAMFParamDefinition

ElementMixConfig gets the element_mix_config field.

Information required required for applying any processing to the
referenced and rendered Audio Element before being summed with other
processed Audio Elements.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN.

func (*AVIAMFSubmixElement) HeadphonesRenderingMode

func (s *AVIAMFSubmixElement) HeadphonesRenderingMode() AVIAMFHeadphonesMode

HeadphonesRenderingMode gets the headphones_rendering_mode field.

A value that indicates whether the referenced channel-based Audio Element
shall be rendered to stereo loudspeakers or spatialized with a binaural
renderer when played back on headphones.
If the Audio Element is not of @ref AVIAMFAudioElement.audio_element_type
"type" AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL, then this field is undefined.

func (*AVIAMFSubmixElement) RawPtr

func (s *AVIAMFSubmixElement) RawPtr() unsafe.Pointer

func (*AVIAMFSubmixElement) SetAnnotations

func (s *AVIAMFSubmixElement) SetAnnotations(value *AVDictionary)

SetAnnotations sets the annotations field.

A dictionary of strings describing the submix in different languages.
Must have the same amount of entries as
@ref AVIAMFMixPresentation.annotations "the mix's annotations", stored
in the same order, and with the same key strings.

@ref AVDictionaryEntry.key "key" is a string conforming to BCP-47 that
specifies the language for the string stored in
@ref AVDictionaryEntry.value "value".

func (*AVIAMFSubmixElement) SetAudioElementId

func (s *AVIAMFSubmixElement) SetAudioElementId(value uint)

SetAudioElementId sets the audio_element_id field.

The id of the Audio Element this submix element references.

func (*AVIAMFSubmixElement) SetAvClass

func (s *AVIAMFSubmixElement) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFSubmixElement) SetDefaultMixGain

func (s *AVIAMFSubmixElement) SetDefaultMixGain(value *AVRational)

SetDefaultMixGain sets the default_mix_gain field.

Default mix gain value to apply when there are no AVIAMFParamDefinition
with @ref element_mix_config "element_mix_config's"
@ref AVIAMFParamDefinition.parameter_id "parameter_id" available for a
given audio frame.

func (*AVIAMFSubmixElement) SetElementMixConfig

func (s *AVIAMFSubmixElement) SetElementMixConfig(value *AVIAMFParamDefinition)

SetElementMixConfig sets the element_mix_config field.

Information required required for applying any processing to the
referenced and rendered Audio Element before being summed with other
processed Audio Elements.
The @ref AVIAMFParamDefinition.type "type" must be
AV_IAMF_PARAMETER_DEFINITION_MIX_GAIN.

func (*AVIAMFSubmixElement) SetHeadphonesRenderingMode

func (s *AVIAMFSubmixElement) SetHeadphonesRenderingMode(value AVIAMFHeadphonesMode)

SetHeadphonesRenderingMode sets the headphones_rendering_mode field.

A value that indicates whether the referenced channel-based Audio Element
shall be rendered to stereo loudspeakers or spatialized with a binaural
renderer when played back on headphones.
If the Audio Element is not of @ref AVIAMFAudioElement.audio_element_type
"type" AV_IAMF_AUDIO_ELEMENT_TYPE_CHANNEL, then this field is undefined.

type AVIAMFSubmixLayout

type AVIAMFSubmixLayout struct {
	// contains filtered or unexported fields
}

AVIAMFSubmixLayout wraps AVIAMFSubmixLayout.

Submix layout as defined in section 3.7.6 of IAMF.

@note The struct should be allocated with av_iamf_submix_add_layout()
      and its size is not a part of the public ABI.

func AVIamfSubmixAddLayout

func AVIamfSubmixAddLayout(submix *AVIAMFSubmix) *AVIAMFSubmixLayout

AVIamfSubmixAddLayout wraps av_iamf_submix_add_layout.

Allocate a submix layout and add it to a given AVIAMFSubmix.
It is freed by av_iamf_mix_presentation_free() alongside the rest of the
parent AVIAMFSubmix.

@return a pointer to the allocated submix.

func (*AVIAMFSubmixLayout) AlbumAnchoredLoudness

func (s *AVIAMFSubmixLayout) AlbumAnchoredLoudness() *AVRational

AlbumAnchoredLoudness gets the album_anchored_loudness field.

The Album loudness information, as defined in ITU-1770-4.

func (*AVIAMFSubmixLayout) AvClass

func (s *AVIAMFSubmixLayout) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVIAMFSubmixLayout) DialogueAnchoredLoudness

func (s *AVIAMFSubmixLayout) DialogueAnchoredLoudness() *AVRational

DialogueAnchoredLoudness gets the dialogue_anchored_loudness field.

The Dialogue loudness information, as defined in ITU-1770-4.

func (*AVIAMFSubmixLayout) DigitalPeak

func (s *AVIAMFSubmixLayout) DigitalPeak() *AVRational

DigitalPeak gets the digital_peak field.

The digital (sampled) peak value of the audio signal, as defined
in ITU-1770-4.

func (*AVIAMFSubmixLayout) IntegratedLoudness

func (s *AVIAMFSubmixLayout) IntegratedLoudness() *AVRational

IntegratedLoudness gets the integrated_loudness field.

The program integrated loudness information, as defined in
ITU-1770-4.

func (*AVIAMFSubmixLayout) LayoutType

LayoutType gets the layout_type field.

func (*AVIAMFSubmixLayout) RawPtr

func (s *AVIAMFSubmixLayout) RawPtr() unsafe.Pointer

func (*AVIAMFSubmixLayout) SetAlbumAnchoredLoudness

func (s *AVIAMFSubmixLayout) SetAlbumAnchoredLoudness(value *AVRational)

SetAlbumAnchoredLoudness sets the album_anchored_loudness field.

The Album loudness information, as defined in ITU-1770-4.

func (*AVIAMFSubmixLayout) SetAvClass

func (s *AVIAMFSubmixLayout) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVIAMFSubmixLayout) SetDialogueAnchoredLoudness

func (s *AVIAMFSubmixLayout) SetDialogueAnchoredLoudness(value *AVRational)

SetDialogueAnchoredLoudness sets the dialogue_anchored_loudness field.

The Dialogue loudness information, as defined in ITU-1770-4.

func (*AVIAMFSubmixLayout) SetDigitalPeak

func (s *AVIAMFSubmixLayout) SetDigitalPeak(value *AVRational)

SetDigitalPeak sets the digital_peak field.

The digital (sampled) peak value of the audio signal, as defined
in ITU-1770-4.

func (*AVIAMFSubmixLayout) SetIntegratedLoudness

func (s *AVIAMFSubmixLayout) SetIntegratedLoudness(value *AVRational)

SetIntegratedLoudness sets the integrated_loudness field.

The program integrated loudness information, as defined in
ITU-1770-4.

func (*AVIAMFSubmixLayout) SetLayoutType

func (s *AVIAMFSubmixLayout) SetLayoutType(value AVIAMFSubmixLayoutType)

SetLayoutType sets the layout_type field.

func (*AVIAMFSubmixLayout) SetTruePeak

func (s *AVIAMFSubmixLayout) SetTruePeak(value *AVRational)

SetTruePeak sets the true_peak field.

The true peak of the audio signal, as defined in ITU-1770-4.

func (*AVIAMFSubmixLayout) SoundSystem

func (s *AVIAMFSubmixLayout) SoundSystem() *AVChannelLayout

SoundSystem gets the sound_system field.

Channel layout matching one of Sound Systems A to J of ITU-2051-3, plus
7.1.2ch, 3.1.2ch, and binaural.
If layout_type is not AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS or
AV_IAMF_SUBMIX_LAYOUT_TYPE_BINAURAL, this field is undefined.

func (*AVIAMFSubmixLayout) TruePeak

func (s *AVIAMFSubmixLayout) TruePeak() *AVRational

TruePeak gets the true_peak field.

The true peak of the audio signal, as defined in ITU-1770-4.

type AVIAMFSubmixLayoutType

type AVIAMFSubmixLayoutType C.enum_AVIAMFSubmixLayoutType

AVIAMFSubmixLayoutType wraps AVIAMFSubmixLayoutType.

const (
	// AVIamfSubmixLayoutTypeLoudspeakers wraps AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS.
	/*
	   The layout follows the loudspeaker sound system convention of ITU-2051-3.
	   @ref AVIAMFSubmixLayout.sound_system must be set.
	*/
	AVIamfSubmixLayoutTypeLoudspeakers AVIAMFSubmixLayoutType = C.AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS
	// AVIamfSubmixLayoutTypeBinaural wraps AV_IAMF_SUBMIX_LAYOUT_TYPE_BINAURAL.
	/*
	   The layout is binaural.

	   @note @ref AVIAMFSubmixLayout.sound_system may be set to
	   AV_CHANNEL_LAYOUT_BINAURAL to simplify API usage, but it's not mandatory.
	*/
	AVIamfSubmixLayoutTypeBinaural AVIAMFSubmixLayoutType = C.AV_IAMF_SUBMIX_LAYOUT_TYPE_BINAURAL
)

type AVIOContext

type AVIOContext struct {
	// contains filtered or unexported fields
}

AVIOContext wraps AVIOContext.

Bytestream IO Context.
New public fields can be added with minor version bumps.
Removal, reordering and changes to existing public fields require
a major version bump.
sizeof(AVIOContext) must not be used outside libav*.

@note None of the function pointers in AVIOContext should be called
      directly, they should only be set by the client application
      when implementing custom I/O. Normally these are set to the
      function pointers specified in avio_alloc_context()

func (*AVIOContext) AvClass

func (s *AVIOContext) AvClass() *AVClass

AvClass gets the av_class field.

A class for private options.

If this AVIOContext is created by avio_open2(), av_class is set and
passes the options down to protocols.

If this AVIOContext is manually allocated, then av_class may be set by
the caller.

warning -- this field can be NULL, be sure to not pass this AVIOContext
to any av_opt_* functions in that case.

func (*AVIOContext) BufferSize

func (s *AVIOContext) BufferSize() int

BufferSize gets the buffer_size field.

Maximum buffer size

func (*AVIOContext) BytesRead

func (s *AVIOContext) BytesRead() int64

BytesRead gets the bytes_read field.

Read-only statistic of bytes read for this AVIOContext.

func (*AVIOContext) BytesWritten

func (s *AVIOContext) BytesWritten() int64

BytesWritten gets the bytes_written field.

Read-only statistic of bytes written for this AVIOContext.

func (*AVIOContext) Checksum

func (s *AVIOContext) Checksum() uint32

Checksum gets the checksum field.

func (*AVIOContext) Direct

func (s *AVIOContext) Direct() int

Direct gets the direct field.

avio_read and avio_write should if possible be satisfied directly
instead of going through a buffer, and avio_seek will always
call the underlying seek function directly.

func (*AVIOContext) EofReached

func (s *AVIOContext) EofReached() int

EofReached gets the eof_reached field.

true if was unable to read due to error or eof

func (*AVIOContext) Error

func (s *AVIOContext) Error() int

Error gets the error field.

contains the error code or 0 if no error happened

func (*AVIOContext) IgnoreBoundaryPoint

func (s *AVIOContext) IgnoreBoundaryPoint() int

IgnoreBoundaryPoint gets the ignore_boundary_point field.

If set, don't call write_data_type separately for AVIO_DATA_MARKER_BOUNDARY_POINT,
but ignore them and treat them as AVIO_DATA_MARKER_UNKNOWN (to avoid needlessly
small chunks of data returned from the callback).

func (*AVIOContext) MaxPacketSize

func (s *AVIOContext) MaxPacketSize() int

MaxPacketSize gets the max_packet_size field.

func (*AVIOContext) MinPacketSize

func (s *AVIOContext) MinPacketSize() int

MinPacketSize gets the min_packet_size field.

< Try to buffer at least this amount of data
before flushing it.

func (*AVIOContext) Opaque

func (s *AVIOContext) Opaque() unsafe.Pointer

Opaque gets the opaque field.

< A private pointer, passed to the read/write/seek/...
functions.

func (*AVIOContext) Pos

func (s *AVIOContext) Pos() int64

Pos gets the pos field.

position in the file of the current buffer

func (*AVIOContext) ProtocolBlacklist

func (s *AVIOContext) ProtocolBlacklist() *CStr

ProtocolBlacklist gets the protocol_blacklist field.

',' separated list of disallowed protocols.

func (*AVIOContext) ProtocolWhitelist

func (s *AVIOContext) ProtocolWhitelist() *CStr

ProtocolWhitelist gets the protocol_whitelist field.

',' separated list of allowed protocols.

func (*AVIOContext) RawPtr

func (s *AVIOContext) RawPtr() unsafe.Pointer

func (*AVIOContext) Seekable

func (s *AVIOContext) Seekable() int

Seekable gets the seekable field.

A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.

func (*AVIOContext) SetAvClass

func (s *AVIOContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for private options.

If this AVIOContext is created by avio_open2(), av_class is set and
passes the options down to protocols.

If this AVIOContext is manually allocated, then av_class may be set by
the caller.

warning -- this field can be NULL, be sure to not pass this AVIOContext
to any av_opt_* functions in that case.

func (*AVIOContext) SetBufferSize

func (s *AVIOContext) SetBufferSize(value int)

SetBufferSize sets the buffer_size field.

Maximum buffer size

func (*AVIOContext) SetBytesRead

func (s *AVIOContext) SetBytesRead(value int64)

SetBytesRead sets the bytes_read field.

Read-only statistic of bytes read for this AVIOContext.

func (*AVIOContext) SetBytesWritten

func (s *AVIOContext) SetBytesWritten(value int64)

SetBytesWritten sets the bytes_written field.

Read-only statistic of bytes written for this AVIOContext.

func (*AVIOContext) SetChecksum

func (s *AVIOContext) SetChecksum(value uint32)

SetChecksum sets the checksum field.

func (*AVIOContext) SetDirect

func (s *AVIOContext) SetDirect(value int)

SetDirect sets the direct field.

avio_read and avio_write should if possible be satisfied directly
instead of going through a buffer, and avio_seek will always
call the underlying seek function directly.

func (*AVIOContext) SetEofReached

func (s *AVIOContext) SetEofReached(value int)

SetEofReached sets the eof_reached field.

true if was unable to read due to error or eof

func (*AVIOContext) SetError

func (s *AVIOContext) SetError(value int)

SetError sets the error field.

contains the error code or 0 if no error happened

func (*AVIOContext) SetIgnoreBoundaryPoint

func (s *AVIOContext) SetIgnoreBoundaryPoint(value int)

SetIgnoreBoundaryPoint sets the ignore_boundary_point field.

If set, don't call write_data_type separately for AVIO_DATA_MARKER_BOUNDARY_POINT,
but ignore them and treat them as AVIO_DATA_MARKER_UNKNOWN (to avoid needlessly
small chunks of data returned from the callback).

func (*AVIOContext) SetMaxPacketSize

func (s *AVIOContext) SetMaxPacketSize(value int)

SetMaxPacketSize sets the max_packet_size field.

func (*AVIOContext) SetMinPacketSize

func (s *AVIOContext) SetMinPacketSize(value int)

SetMinPacketSize sets the min_packet_size field.

< Try to buffer at least this amount of data
before flushing it.

func (*AVIOContext) SetOpaque

func (s *AVIOContext) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

< A private pointer, passed to the read/write/seek/...
functions.

func (*AVIOContext) SetPos

func (s *AVIOContext) SetPos(value int64)

SetPos sets the pos field.

position in the file of the current buffer

func (*AVIOContext) SetProtocolBlacklist

func (s *AVIOContext) SetProtocolBlacklist(value *CStr)

SetProtocolBlacklist sets the protocol_blacklist field.

',' separated list of disallowed protocols.

func (*AVIOContext) SetProtocolWhitelist

func (s *AVIOContext) SetProtocolWhitelist(value *CStr)

SetProtocolWhitelist sets the protocol_whitelist field.

',' separated list of allowed protocols.

func (*AVIOContext) SetSeekable

func (s *AVIOContext) SetSeekable(value int)

SetSeekable sets the seekable field.

A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.

func (*AVIOContext) SetWriteFlag

func (s *AVIOContext) SetWriteFlag(value int)

SetWriteFlag sets the write_flag field.

true if open for writing

func (*AVIOContext) WriteFlag

func (s *AVIOContext) WriteFlag() int

WriteFlag gets the write_flag field.

true if open for writing

type AVIODataMarkerType

type AVIODataMarkerType C.enum_AVIODataMarkerType

AVIODataMarkerType wraps AVIODataMarkerType.

Different data types that can be returned via the AVIO
write_data_type callback.
const (
	// AVIODataMarkerHeader wraps AVIO_DATA_MARKER_HEADER.
	//
	//	Header data; this needs to be present for the stream to be decodeable.
	AVIODataMarkerHeader AVIODataMarkerType = C.AVIO_DATA_MARKER_HEADER
	// AVIODataMarkerSyncPoint wraps AVIO_DATA_MARKER_SYNC_POINT.
	/*
	   A point in the output bytestream where a decoder can start decoding
	   (i.e. a keyframe). A demuxer/decoder given the data flagged with
	   AVIO_DATA_MARKER_HEADER, followed by any AVIO_DATA_MARKER_SYNC_POINT,
	   should give decodeable results.
	*/
	AVIODataMarkerSyncPoint AVIODataMarkerType = C.AVIO_DATA_MARKER_SYNC_POINT
	// AVIODataMarkerBoundaryPoint wraps AVIO_DATA_MARKER_BOUNDARY_POINT.
	/*
	   A point in the output bytestream where a demuxer can start parsing
	   (for non self synchronizing bytestream formats). That is, any
	   non-keyframe packet start point.
	*/
	AVIODataMarkerBoundaryPoint AVIODataMarkerType = C.AVIO_DATA_MARKER_BOUNDARY_POINT
	// AVIODataMarkerUnknown wraps AVIO_DATA_MARKER_UNKNOWN.
	/*
	   This is any, unlabelled data. It can either be a muxer not marking
	   any positions at all, it can be an actual boundary/sync point
	   that the muxer chooses not to mark, or a later part of a packet/fragment
	   that is cut into multiple write callbacks due to limited IO buffer size.
	*/
	AVIODataMarkerUnknown AVIODataMarkerType = C.AVIO_DATA_MARKER_UNKNOWN
	// AVIODataMarkerTrailer wraps AVIO_DATA_MARKER_TRAILER.
	/*
	   Trailer data, which doesn't contain actual content, but only for
	   finalizing the output file.
	*/
	AVIODataMarkerTrailer AVIODataMarkerType = C.AVIO_DATA_MARKER_TRAILER
	// AVIODataMarkerFlushPoint wraps AVIO_DATA_MARKER_FLUSH_POINT.
	/*
	   A point in the output bytestream where the underlying AVIOContext might
	   flush the buffer depending on latency or buffering requirements. Typically
	   means the end of a packet.
	*/
	AVIODataMarkerFlushPoint AVIODataMarkerType = C.AVIO_DATA_MARKER_FLUSH_POINT
)

type AVIODirContext

type AVIODirContext struct {
	// contains filtered or unexported fields
}

AVIODirContext wraps AVIODirContext.

func (*AVIODirContext) RawPtr

func (s *AVIODirContext) RawPtr() unsafe.Pointer

type AVIODirEntry

type AVIODirEntry struct {
	// contains filtered or unexported fields
}

AVIODirEntry wraps AVIODirEntry.

Describes single entry of the directory.

Only name and type fields are guaranteed be set.
Rest of fields are protocol or/and platform dependent and might be unknown.

func (*AVIODirEntry) AccessTimestamp

func (s *AVIODirEntry) AccessTimestamp() int64

AccessTimestamp gets the access_timestamp field.

< Time of last access in microseconds since unix epoch,
-1 if unknown.

func (*AVIODirEntry) Filemode

func (s *AVIODirEntry) Filemode() int64

Filemode gets the filemode field.

Unix file mode, -1 if unknown.

func (*AVIODirEntry) GroupId

func (s *AVIODirEntry) GroupId() int64

GroupId gets the group_id field.

Group ID of owner, -1 if unknown.

func (*AVIODirEntry) ModificationTimestamp

func (s *AVIODirEntry) ModificationTimestamp() int64

ModificationTimestamp gets the modification_timestamp field.

< Time of last modification in microseconds since unix
epoch, -1 if unknown.

func (*AVIODirEntry) Name

func (s *AVIODirEntry) Name() *CStr

Name gets the name field.

Filename

func (*AVIODirEntry) RawPtr

func (s *AVIODirEntry) RawPtr() unsafe.Pointer

func (*AVIODirEntry) SetAccessTimestamp

func (s *AVIODirEntry) SetAccessTimestamp(value int64)

SetAccessTimestamp sets the access_timestamp field.

< Time of last access in microseconds since unix epoch,
-1 if unknown.

func (*AVIODirEntry) SetFilemode

func (s *AVIODirEntry) SetFilemode(value int64)

SetFilemode sets the filemode field.

Unix file mode, -1 if unknown.

func (*AVIODirEntry) SetGroupId

func (s *AVIODirEntry) SetGroupId(value int64)

SetGroupId sets the group_id field.

Group ID of owner, -1 if unknown.

func (*AVIODirEntry) SetModificationTimestamp

func (s *AVIODirEntry) SetModificationTimestamp(value int64)

SetModificationTimestamp sets the modification_timestamp field.

< Time of last modification in microseconds since unix
epoch, -1 if unknown.

func (*AVIODirEntry) SetName

func (s *AVIODirEntry) SetName(value *CStr)

SetName sets the name field.

Filename

func (*AVIODirEntry) SetSize

func (s *AVIODirEntry) SetSize(value int64)

SetSize sets the size field.

File size in bytes, -1 if unknown.

func (*AVIODirEntry) SetStatusChangeTimestamp

func (s *AVIODirEntry) SetStatusChangeTimestamp(value int64)

SetStatusChangeTimestamp sets the status_change_timestamp field.

< Time of last status change in microseconds since unix
epoch, -1 if unknown.

func (*AVIODirEntry) SetType

func (s *AVIODirEntry) SetType(value int)

SetType sets the type field.

Type of the entry

func (*AVIODirEntry) SetUserId

func (s *AVIODirEntry) SetUserId(value int64)

SetUserId sets the user_id field.

User ID of owner, -1 if unknown.

func (*AVIODirEntry) SetUtf8

func (s *AVIODirEntry) SetUtf8(value int)

SetUtf8 sets the utf8 field.

< Set to 1 when name is encoded with UTF-8, 0 otherwise.
Name can be encoded with UTF-8 even though 0 is set.

func (*AVIODirEntry) Size

func (s *AVIODirEntry) Size() int64

Size gets the size field.

File size in bytes, -1 if unknown.

func (*AVIODirEntry) StatusChangeTimestamp

func (s *AVIODirEntry) StatusChangeTimestamp() int64

StatusChangeTimestamp gets the status_change_timestamp field.

< Time of last status change in microseconds since unix
epoch, -1 if unknown.

func (*AVIODirEntry) Type

func (s *AVIODirEntry) Type() int

Type gets the type field.

Type of the entry

func (*AVIODirEntry) UserId

func (s *AVIODirEntry) UserId() int64

UserId gets the user_id field.

User ID of owner, -1 if unknown.

func (*AVIODirEntry) Utf8

func (s *AVIODirEntry) Utf8() int

Utf8 gets the utf8 field.

< Set to 1 when name is encoded with UTF-8, 0 otherwise.
Name can be encoded with UTF-8 even though 0 is set.

type AVIODirEntryType

type AVIODirEntryType C.enum_AVIODirEntryType

AVIODirEntryType wraps AVIODirEntryType.

Directory entry types.
const (
	// AVIOEntryUnknown wraps AVIO_ENTRY_UNKNOWN.
	AVIOEntryUnknown AVIODirEntryType = C.AVIO_ENTRY_UNKNOWN
	// AVIOEntryBlockDevice wraps AVIO_ENTRY_BLOCK_DEVICE.
	AVIOEntryBlockDevice AVIODirEntryType = C.AVIO_ENTRY_BLOCK_DEVICE
	// AVIOEntryCharacterDevice wraps AVIO_ENTRY_CHARACTER_DEVICE.
	AVIOEntryCharacterDevice AVIODirEntryType = C.AVIO_ENTRY_CHARACTER_DEVICE
	// AVIOEntryDirectory wraps AVIO_ENTRY_DIRECTORY.
	AVIOEntryDirectory AVIODirEntryType = C.AVIO_ENTRY_DIRECTORY
	// AVIOEntryNamedPipe wraps AVIO_ENTRY_NAMED_PIPE.
	AVIOEntryNamedPipe AVIODirEntryType = C.AVIO_ENTRY_NAMED_PIPE
	// AVIOEntrySymbolicLink wraps AVIO_ENTRY_SYMBOLIC_LINK.
	AVIOEntrySymbolicLink AVIODirEntryType = C.AVIO_ENTRY_SYMBOLIC_LINK
	// AVIOEntrySocket wraps AVIO_ENTRY_SOCKET.
	AVIOEntrySocket AVIODirEntryType = C.AVIO_ENTRY_SOCKET
	// AVIOEntryFile wraps AVIO_ENTRY_FILE.
	AVIOEntryFile AVIODirEntryType = C.AVIO_ENTRY_FILE
	// AVIOEntryServer wraps AVIO_ENTRY_SERVER.
	AVIOEntryServer AVIODirEntryType = C.AVIO_ENTRY_SERVER
	// AVIOEntryShare wraps AVIO_ENTRY_SHARE.
	AVIOEntryShare AVIODirEntryType = C.AVIO_ENTRY_SHARE
	// AVIOEntryWorkgroup wraps AVIO_ENTRY_WORKGROUP.
	AVIOEntryWorkgroup AVIODirEntryType = C.AVIO_ENTRY_WORKGROUP
)

type AVIOInterruptCB

type AVIOInterruptCB struct {
	// contains filtered or unexported fields
}

AVIOInterruptCB wraps AVIOInterruptCB.

Callback for checking whether to abort blocking functions.
AVERROR_EXIT is returned in this case by the interrupted
function. During blocking operations, callback is called with
opaque as parameter. If the callback returns 1, the
blocking operation will be aborted.

No members can be added to this struct without a major bump, if
new elements have been added after this struct in AVFormatContext
or AVIOContext.

func (*AVIOInterruptCB) Opaque

func (s *AVIOInterruptCB) Opaque() unsafe.Pointer

Opaque gets the opaque field.

func (*AVIOInterruptCB) RawPtr

func (s *AVIOInterruptCB) RawPtr() unsafe.Pointer

func (*AVIOInterruptCB) SetOpaque

func (s *AVIOInterruptCB) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

type AVIndexEntry

type AVIndexEntry struct {
	// contains filtered or unexported fields
}

AVIndexEntry wraps AVIndexEntry.

func AVFormatIndexGetEntry

func AVFormatIndexGetEntry(st *AVStream, idx int) *AVIndexEntry

AVFormatIndexGetEntry wraps avformat_index_get_entry.

Get the AVIndexEntry corresponding to the given index.

@param st          Stream containing the requested AVIndexEntry.
@param idx         The desired index.
@return A pointer to the requested AVIndexEntry if it exists, NULL otherwise.

@note The pointer returned by this function is only guaranteed to be valid
      until any function that takes the stream or the parent AVFormatContext
      as input argument is called.

func AVFormatIndexGetEntryFromTimestamp

func AVFormatIndexGetEntryFromTimestamp(st *AVStream, wantedTimestamp int64, flags int) *AVIndexEntry

AVFormatIndexGetEntryFromTimestamp wraps avformat_index_get_entry_from_timestamp.

Get the AVIndexEntry corresponding to the given timestamp.

@param st          Stream containing the requested AVIndexEntry.
@param wanted_timestamp   Timestamp to retrieve the index entry for.
@param flags       If AVSEEK_FLAG_BACKWARD then the returned entry will correspond
                   to the timestamp which is <= the requested one, if backward
                   is 0, then it will be >=
                   if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwise.
@return A pointer to the requested AVIndexEntry if it exists, NULL otherwise.

@note The pointer returned by this function is only guaranteed to be valid
      until any function that takes the stream or the parent AVFormatContext
      as input argument is called.

func (*AVIndexEntry) MinDistance

func (s *AVIndexEntry) MinDistance() int

MinDistance gets the min_distance field.

Minimum distance between this and the previous keyframe, used to avoid unneeded searching.

func (*AVIndexEntry) Pos

func (s *AVIndexEntry) Pos() int64

Pos gets the pos field.

func (*AVIndexEntry) RawPtr

func (s *AVIndexEntry) RawPtr() unsafe.Pointer

func (*AVIndexEntry) SetMinDistance

func (s *AVIndexEntry) SetMinDistance(value int)

SetMinDistance sets the min_distance field.

Minimum distance between this and the previous keyframe, used to avoid unneeded searching.

func (*AVIndexEntry) SetPos

func (s *AVIndexEntry) SetPos(value int64)

SetPos sets the pos field.

func (*AVIndexEntry) SetTimestamp

func (s *AVIndexEntry) SetTimestamp(value int64)

SetTimestamp sets the timestamp field.

<
Timestamp in AVStream.time_base units, preferably the time from which on correctly decoded frames are available
when seeking to this entry. That means preferable PTS on keyframe based formats.
But demuxers can choose to store a different timestamp, if it is more convenient for the implementation or nothing better
is known

func (*AVIndexEntry) Timestamp

func (s *AVIndexEntry) Timestamp() int64

Timestamp gets the timestamp field.

<
Timestamp in AVStream.time_base units, preferably the time from which on correctly decoded frames are available
when seeking to this entry. That means preferable PTS on keyframe based formats.
But demuxers can choose to store a different timestamp, if it is more convenient for the implementation or nothing better
is known

type AVInputFormat

type AVInputFormat struct {
	// contains filtered or unexported fields
}

AVInputFormat wraps AVInputFormat.

func AVDemuxerIterate

func AVDemuxerIterate(opaque *unsafe.Pointer) *AVInputFormat

AVDemuxerIterate iterates over all registered demuxers.

@param opaque a pointer where libavformat will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered demuxer or NULL when the iteration is finished

func AVFindInputFormat

func AVFindInputFormat(shortName *CStr) *AVInputFormat

AVFindInputFormat wraps av_find_input_format.

Find AVInputFormat based on the short name of the input format.

func AVInputAudioDeviceNext

func AVInputAudioDeviceNext(d *AVInputFormat) *AVInputFormat

AVInputAudioDeviceNext wraps av_input_audio_device_next.

Audio input devices iterator.

If d is NULL, returns the first registered input audio/video device,
if d is non-NULL, returns the next registered input audio/video device after d
or NULL if d is the last one.

func AVInputVideoDeviceNext

func AVInputVideoDeviceNext(d *AVInputFormat) *AVInputFormat

AVInputVideoDeviceNext wraps av_input_video_device_next.

Video input devices iterator.

If d is NULL, returns the first registered input audio/video device,
if d is non-NULL, returns the next registered input audio/video device after d
or NULL if d is the last one.

func AVProbeInputFormat

func AVProbeInputFormat(pd *AVProbeData, isOpened int) *AVInputFormat

AVProbeInputFormat wraps av_probe_input_format.

Guess the file format.

@param pd        data to be probed
@param is_opened Whether the file is already opened; determines whether
                 demuxers with or without AVFMT_NOFILE are probed.

func AVProbeInputFormat3

func AVProbeInputFormat3(pd *AVProbeData, isOpened int, scoreRet *int) *AVInputFormat

AVProbeInputFormat3 wraps av_probe_input_format3.

Guess the file format.

@param is_opened Whether the file is already opened; determines whether
                 demuxers with or without AVFMT_NOFILE are probed.
@param score_ret The score of the best detection.

func (*AVInputFormat) CodecTag

func (s *AVInputFormat) CodecTag() *Array[*AVCodecTag]

CodecTag gets the codec_tag field.

func (*AVInputFormat) Extensions

func (s *AVInputFormat) Extensions() *CStr

Extensions gets the extensions field.

If extensions are defined, then no probe is done. You should
usually not use extension format guessing because it is not
reliable enough

func (*AVInputFormat) Flags

func (s *AVInputFormat) Flags() int

Flags gets the flags field.

Can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_SHOW_IDS,
AVFMT_NOTIMESTAMPS, AVFMT_GENERIC_INDEX, AVFMT_TS_DISCONT, AVFMT_NOBINSEARCH,
AVFMT_NOGENSEARCH, AVFMT_NO_BYTE_SEEK, AVFMT_SEEK_TO_PTS.

func (*AVInputFormat) LongName

func (s *AVInputFormat) LongName() *CStr

LongName gets the long_name field.

Descriptive name for the format, meant to be more human-readable
than name. You should use the NULL_IF_CONFIG_SMALL() macro
to define it.

func (*AVInputFormat) MimeType

func (s *AVInputFormat) MimeType() *CStr

MimeType gets the mime_type field.

Comma-separated list of mime types.
It is used check for matching mime types while probing.
@see av_probe_input_format2

func (*AVInputFormat) Name

func (s *AVInputFormat) Name() *CStr

Name gets the name field.

A comma separated list of short names for the format. New names
may be appended with a minor bump.

func (*AVInputFormat) PrivClass

func (s *AVInputFormat) PrivClass() *AVClass

PrivClass gets the priv_class field.

AVClass for the private context

func (*AVInputFormat) RawPtr

func (s *AVInputFormat) RawPtr() unsafe.Pointer

func (*AVInputFormat) SetCodecTag

func (s *AVInputFormat) SetCodecTag(value *Array[AVCodecTag])

SetCodecTag sets the codec_tag field.

func (*AVInputFormat) SetExtensions

func (s *AVInputFormat) SetExtensions(value *CStr)

SetExtensions sets the extensions field.

If extensions are defined, then no probe is done. You should
usually not use extension format guessing because it is not
reliable enough

func (*AVInputFormat) SetFlags

func (s *AVInputFormat) SetFlags(value int)

SetFlags sets the flags field.

Can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_SHOW_IDS,
AVFMT_NOTIMESTAMPS, AVFMT_GENERIC_INDEX, AVFMT_TS_DISCONT, AVFMT_NOBINSEARCH,
AVFMT_NOGENSEARCH, AVFMT_NO_BYTE_SEEK, AVFMT_SEEK_TO_PTS.

func (*AVInputFormat) SetLongName

func (s *AVInputFormat) SetLongName(value *CStr)

SetLongName sets the long_name field.

Descriptive name for the format, meant to be more human-readable
than name. You should use the NULL_IF_CONFIG_SMALL() macro
to define it.

func (*AVInputFormat) SetMimeType

func (s *AVInputFormat) SetMimeType(value *CStr)

SetMimeType sets the mime_type field.

Comma-separated list of mime types.
It is used check for matching mime types while probing.
@see av_probe_input_format2

func (*AVInputFormat) SetName

func (s *AVInputFormat) SetName(value *CStr)

SetName sets the name field.

A comma separated list of short names for the format. New names
may be appended with a minor bump.

func (*AVInputFormat) SetPrivClass

func (s *AVInputFormat) SetPrivClass(value *AVClass)

SetPrivClass sets the priv_class field.

AVClass for the private context

type AVLFG

type AVLFG struct {
	// contains filtered or unexported fields
}

AVLFG wraps AVLFG.

Context structure for the Lagged Fibonacci PRNG.
The exact layout, types and content of this struct may change and should
not be accessed directly. Only its `sizeof()` is guaranteed to stay the same
to allow easy instantiation.

func (*AVLFG) Index

func (s *AVLFG) Index() int

Index gets the index field.

func (*AVLFG) RawPtr

func (s *AVLFG) RawPtr() unsafe.Pointer

func (*AVLFG) SetIndex

func (s *AVLFG) SetIndex(value int)

SetIndex sets the index field.

func (*AVLFG) State

func (s *AVLFG) State() *Array[uint]

State gets the state field.

type AVLumaCoefficients

type AVLumaCoefficients struct {
	// contains filtered or unexported fields
}

AVLumaCoefficients wraps AVLumaCoefficients.

Struct containing luma coefficients to be used for RGB to YUV/YCoCg, or similar
calculations.

func AVCspLumaCoeffsFromAVCsp

func AVCspLumaCoeffsFromAVCsp(csp AVColorSpace) *AVLumaCoefficients

AVCspLumaCoeffsFromAVCsp wraps av_csp_luma_coeffs_from_avcsp.

Retrieves the Luma coefficients necessary to construct a conversion matrix
from an enum constant describing the colorspace.
@param csp An enum constant indicating YUV or similar colorspace.
@return The Luma coefficients associated with that colorspace, or NULL
    if the constant is unknown to libavutil.

func (*AVLumaCoefficients) Cb

func (s *AVLumaCoefficients) Cb() *AVRational

Cb gets the cb field.

func (*AVLumaCoefficients) Cg

func (s *AVLumaCoefficients) Cg() *AVRational

Cg gets the cg field.

func (*AVLumaCoefficients) Cr

func (s *AVLumaCoefficients) Cr() *AVRational

Cr gets the cr field.

func (*AVLumaCoefficients) RawPtr

func (s *AVLumaCoefficients) RawPtr() unsafe.Pointer

func (*AVLumaCoefficients) SetCb

func (s *AVLumaCoefficients) SetCb(value *AVRational)

SetCb sets the cb field.

func (*AVLumaCoefficients) SetCg

func (s *AVLumaCoefficients) SetCg(value *AVRational)

SetCg sets the cg field.

func (*AVLumaCoefficients) SetCr

func (s *AVLumaCoefficients) SetCr(value *AVRational)

SetCr sets the cr field.

type AVMasteringDisplayMetadata

type AVMasteringDisplayMetadata struct {
	// contains filtered or unexported fields
}

AVMasteringDisplayMetadata wraps AVMasteringDisplayMetadata.

Mastering display metadata capable of representing the color volume of
the display used to master the content (SMPTE 2086:2014).

To be used as payload of a AVFrameSideData or AVPacketSideData with the
appropriate type.

@note The struct should be allocated with av_mastering_display_metadata_alloc()
      and its size is not a part of the public ABI.

func AVMasteringDisplayMetadataAlloc

func AVMasteringDisplayMetadataAlloc() *AVMasteringDisplayMetadata

AVMasteringDisplayMetadataAlloc wraps av_mastering_display_metadata_alloc.

Allocate an AVMasteringDisplayMetadata structure and set its fields to
default values. The resulting struct can be freed using av_freep().

@return An AVMasteringDisplayMetadata filled with default values or NULL
        on failure.

func AVMasteringDisplayMetadataAllocSize

func AVMasteringDisplayMetadataAllocSize(size *uint64) *AVMasteringDisplayMetadata

AVMasteringDisplayMetadataAllocSize wraps av_mastering_display_metadata_alloc_size.

Allocate an AVMasteringDisplayMetadata structure and set its fields to
default values. The resulting struct can be freed using av_freep().

@return An AVMasteringDisplayMetadata filled with default values or NULL
        on failure.

func AVMasteringDisplayMetadataCreateSideData

func AVMasteringDisplayMetadataCreateSideData(frame *AVFrame) *AVMasteringDisplayMetadata

AVMasteringDisplayMetadataCreateSideData wraps av_mastering_display_metadata_create_side_data.

Allocate a complete AVMasteringDisplayMetadata and add it to the frame.

@param frame The frame which side data is added to.

@return The AVMasteringDisplayMetadata structure to be filled by caller.

func (*AVMasteringDisplayMetadata) HasLuminance

func (s *AVMasteringDisplayMetadata) HasLuminance() int

HasLuminance gets the has_luminance field.

Flag indicating whether the luminance (min_ and max_) have been set.

func (*AVMasteringDisplayMetadata) HasPrimaries

func (s *AVMasteringDisplayMetadata) HasPrimaries() int

HasPrimaries gets the has_primaries field.

Flag indicating whether the display primaries (and white point) are set.

func (*AVMasteringDisplayMetadata) MaxLuminance

func (s *AVMasteringDisplayMetadata) MaxLuminance() *AVRational

MaxLuminance gets the max_luminance field.

Max luminance of mastering display (cd/m^2).

func (*AVMasteringDisplayMetadata) MinLuminance

func (s *AVMasteringDisplayMetadata) MinLuminance() *AVRational

MinLuminance gets the min_luminance field.

Min luminance of mastering display (cd/m^2).

func (*AVMasteringDisplayMetadata) RawPtr

func (*AVMasteringDisplayMetadata) SetHasLuminance

func (s *AVMasteringDisplayMetadata) SetHasLuminance(value int)

SetHasLuminance sets the has_luminance field.

Flag indicating whether the luminance (min_ and max_) have been set.

func (*AVMasteringDisplayMetadata) SetHasPrimaries

func (s *AVMasteringDisplayMetadata) SetHasPrimaries(value int)

SetHasPrimaries sets the has_primaries field.

Flag indicating whether the display primaries (and white point) are set.

func (*AVMasteringDisplayMetadata) SetMaxLuminance

func (s *AVMasteringDisplayMetadata) SetMaxLuminance(value *AVRational)

SetMaxLuminance sets the max_luminance field.

Max luminance of mastering display (cd/m^2).

func (*AVMasteringDisplayMetadata) SetMinLuminance

func (s *AVMasteringDisplayMetadata) SetMinLuminance(value *AVRational)

SetMinLuminance sets the min_luminance field.

Min luminance of mastering display (cd/m^2).

func (*AVMasteringDisplayMetadata) WhitePoint

func (s *AVMasteringDisplayMetadata) WhitePoint() *Array[*AVRational]

WhitePoint gets the white_point field.

CIE 1931 xy chromaticity coords of white point.

type AVMatrixEncoding

type AVMatrixEncoding C.enum_AVMatrixEncoding

AVMatrixEncoding wraps AVMatrixEncoding.

const (
	// AVMatrixEncodingNone wraps AV_MATRIX_ENCODING_NONE.
	AVMatrixEncodingNone AVMatrixEncoding = C.AV_MATRIX_ENCODING_NONE
	// AVMatrixEncodingDolby wraps AV_MATRIX_ENCODING_DOLBY.
	AVMatrixEncodingDolby AVMatrixEncoding = C.AV_MATRIX_ENCODING_DOLBY
	// AVMatrixEncodingDplii wraps AV_MATRIX_ENCODING_DPLII.
	AVMatrixEncodingDplii AVMatrixEncoding = C.AV_MATRIX_ENCODING_DPLII
	// AVMatrixEncodingDpliix wraps AV_MATRIX_ENCODING_DPLIIX.
	AVMatrixEncodingDpliix AVMatrixEncoding = C.AV_MATRIX_ENCODING_DPLIIX
	// AVMatrixEncodingDpliiz wraps AV_MATRIX_ENCODING_DPLIIZ.
	AVMatrixEncodingDpliiz AVMatrixEncoding = C.AV_MATRIX_ENCODING_DPLIIZ
	// AVMatrixEncodingDolbyex wraps AV_MATRIX_ENCODING_DOLBYEX.
	AVMatrixEncodingDolbyex AVMatrixEncoding = C.AV_MATRIX_ENCODING_DOLBYEX
	// AVMatrixEncodingDolbyheadphone wraps AV_MATRIX_ENCODING_DOLBYHEADPHONE.
	AVMatrixEncodingDolbyheadphone AVMatrixEncoding = C.AV_MATRIX_ENCODING_DOLBYHEADPHONE
	// AVMatrixEncodingNb wraps AV_MATRIX_ENCODING_NB.
	AVMatrixEncodingNb AVMatrixEncoding = C.AV_MATRIX_ENCODING_NB
)

type AVMediaType

type AVMediaType C.enum_AVMediaType

AVMediaType wraps AVMediaType.

@brief Media Type
const (
	// AVMediaTypeUnknown wraps AVMEDIA_TYPE_UNKNOWN.
	//
	//	Usually treated as AVMEDIA_TYPE_DATA
	AVMediaTypeUnknown AVMediaType = C.AVMEDIA_TYPE_UNKNOWN
	// AVMediaTypeVideo wraps AVMEDIA_TYPE_VIDEO.
	AVMediaTypeVideo AVMediaType = C.AVMEDIA_TYPE_VIDEO
	// AVMediaTypeAudio wraps AVMEDIA_TYPE_AUDIO.
	AVMediaTypeAudio AVMediaType = C.AVMEDIA_TYPE_AUDIO
	// AVMediaTypeData wraps AVMEDIA_TYPE_DATA.
	//
	//	Opaque data information usually continuous
	AVMediaTypeData AVMediaType = C.AVMEDIA_TYPE_DATA
	// AVMediaTypeSubtitle wraps AVMEDIA_TYPE_SUBTITLE.
	AVMediaTypeSubtitle AVMediaType = C.AVMEDIA_TYPE_SUBTITLE
	// AVMediaTypeAttachment wraps AVMEDIA_TYPE_ATTACHMENT.
	//
	//	Opaque data information usually sparse
	AVMediaTypeAttachment AVMediaType = C.AVMEDIA_TYPE_ATTACHMENT
	// AVMediaTypeNb wraps AVMEDIA_TYPE_NB.
	AVMediaTypeNb AVMediaType = C.AVMEDIA_TYPE_NB
)

func AVBuffersinkGetType

func AVBuffersinkGetType(ctx *AVFilterContext) AVMediaType

AVBuffersinkGetType wraps av_buffersink_get_type.

func AVCodecGetType

func AVCodecGetType(codecId AVCodecID) AVMediaType

AVCodecGetType wraps avcodec_get_type.

Get the type of the given codec.

func AVFilterPadGetType

func AVFilterPadGetType(pads *AVFilterPad, padIdx int) AVMediaType

AVFilterPadGetType wraps avfilter_pad_get_type.

Get the type of an AVFilterPad.

@param pads an array of AVFilterPads
@param pad_idx index of the pad in the array; it is the caller's
               responsibility to ensure the index is valid

@return type of the pad_idx'th pad in pads

type AVMotionVector

type AVMotionVector struct {
	// contains filtered or unexported fields
}

AVMotionVector wraps AVMotionVector.

func (*AVMotionVector) DstX

func (s *AVMotionVector) DstX() int16

DstX gets the dst_x field.

Absolute destination position. Can be outside the frame area.

func (*AVMotionVector) DstY

func (s *AVMotionVector) DstY() int16

DstY gets the dst_y field.

Absolute destination position. Can be outside the frame area.

func (*AVMotionVector) Flags

func (s *AVMotionVector) Flags() uint64

Flags gets the flags field.

Extra flag information.
Currently unused.

func (*AVMotionVector) H

func (s *AVMotionVector) H() uint8

H gets the h field.

Width and height of the block.

func (*AVMotionVector) MotionScale

func (s *AVMotionVector) MotionScale() uint16

MotionScale gets the motion_scale field.

func (*AVMotionVector) MotionX

func (s *AVMotionVector) MotionX() int32

MotionX gets the motion_x field.

Motion vector
src_x = dst_x + motion_x / motion_scale
src_y = dst_y + motion_y / motion_scale

func (*AVMotionVector) MotionY

func (s *AVMotionVector) MotionY() int32

MotionY gets the motion_y field.

Motion vector
src_x = dst_x + motion_x / motion_scale
src_y = dst_y + motion_y / motion_scale

func (*AVMotionVector) RawPtr

func (s *AVMotionVector) RawPtr() unsafe.Pointer

func (*AVMotionVector) SetDstX

func (s *AVMotionVector) SetDstX(value int16)

SetDstX sets the dst_x field.

Absolute destination position. Can be outside the frame area.

func (*AVMotionVector) SetDstY

func (s *AVMotionVector) SetDstY(value int16)

SetDstY sets the dst_y field.

Absolute destination position. Can be outside the frame area.

func (*AVMotionVector) SetFlags

func (s *AVMotionVector) SetFlags(value uint64)

SetFlags sets the flags field.

Extra flag information.
Currently unused.

func (*AVMotionVector) SetH

func (s *AVMotionVector) SetH(value uint8)

SetH sets the h field.

Width and height of the block.

func (*AVMotionVector) SetMotionScale

func (s *AVMotionVector) SetMotionScale(value uint16)

SetMotionScale sets the motion_scale field.

func (*AVMotionVector) SetMotionX

func (s *AVMotionVector) SetMotionX(value int32)

SetMotionX sets the motion_x field.

Motion vector
src_x = dst_x + motion_x / motion_scale
src_y = dst_y + motion_y / motion_scale

func (*AVMotionVector) SetMotionY

func (s *AVMotionVector) SetMotionY(value int32)

SetMotionY sets the motion_y field.

Motion vector
src_x = dst_x + motion_x / motion_scale
src_y = dst_y + motion_y / motion_scale

func (*AVMotionVector) SetSource

func (s *AVMotionVector) SetSource(value int32)

SetSource sets the source field.

Where the current macroblock comes from; negative value when it comes
from the past, positive value when it comes from the future.
XXX: set exact relative ref frame reference instead of a +/- 1 "direction".

func (*AVMotionVector) SetSrcX

func (s *AVMotionVector) SetSrcX(value int16)

SetSrcX sets the src_x field.

Absolute source position. Can be outside the frame area.

func (*AVMotionVector) SetSrcY

func (s *AVMotionVector) SetSrcY(value int16)

SetSrcY sets the src_y field.

Absolute source position. Can be outside the frame area.

func (*AVMotionVector) SetW

func (s *AVMotionVector) SetW(value uint8)

SetW sets the w field.

Width and height of the block.

func (*AVMotionVector) Source

func (s *AVMotionVector) Source() int32

Source gets the source field.

Where the current macroblock comes from; negative value when it comes
from the past, positive value when it comes from the future.
XXX: set exact relative ref frame reference instead of a +/- 1 "direction".

func (*AVMotionVector) SrcX

func (s *AVMotionVector) SrcX() int16

SrcX gets the src_x field.

Absolute source position. Can be outside the frame area.

func (*AVMotionVector) SrcY

func (s *AVMotionVector) SrcY() int16

SrcY gets the src_y field.

Absolute source position. Can be outside the frame area.

func (*AVMotionVector) W

func (s *AVMotionVector) W() uint8

W gets the w field.

Width and height of the block.

type AVMurMur3

type AVMurMur3 struct {
	// contains filtered or unexported fields
}

AVMurMur3 wraps AVMurMur3.

func AVMurmur3Alloc

func AVMurmur3Alloc() *AVMurMur3

AVMurmur3Alloc wraps av_murmur3_alloc.

Allocate an AVMurMur3 hash context.

@return Uninitialized hash context or `NULL` in case of error

func (*AVMurMur3) RawPtr

func (s *AVMurMur3) RawPtr() unsafe.Pointer

type AVOpencallback

type AVOpencallback unsafe.Pointer

AVOpencallback is a function pointer typedef for AVOpenCallback.

type AVOption

type AVOption struct {
	// contains filtered or unexported fields
}

AVOption wraps AVOption.

AVOption

func AVOptFind

func AVOptFind(obj unsafe.Pointer, name *CStr, unit *CStr, optFlags int, searchFlags int) *AVOption

AVOptFind wraps av_opt_find.

Look for an option in an object. Consider only options which
have all the specified flags set.

@param[in] obj A pointer to a struct whose first element is a
               pointer to an AVClass.
               Alternatively a double pointer to an AVClass, if
               AV_OPT_SEARCH_FAKE_OBJ search flag is set.
@param[in] name The name of the option to look for.
@param[in] unit When searching for named constants, name of the unit
                it belongs to.
@param opt_flags Find only options with all the specified flags set (AV_OPT_FLAG).
@param search_flags A combination of AV_OPT_SEARCH_*.

@return A pointer to the option found, or NULL if no option
        was found.

@note Options found with AV_OPT_SEARCH_CHILDREN flag may not be settable
directly with av_opt_set(). Use special calls which take an options
AVDictionary (e.g. avformat_open_input()) to set options found with this
flag.

func AVOptNext

func AVOptNext(obj unsafe.Pointer, prev *AVOption) *AVOption

AVOptNext wraps av_opt_next.

Iterate over all AVOptions belonging to obj.

@param obj an AVOptions-enabled struct or a double pointer to an
           AVClass describing it.
@param prev result of the previous call to av_opt_next() on this object
            or NULL
@return next AVOption or NULL

func (*AVOption) Flags

func (s *AVOption) Flags() int

Flags gets the flags field.

A combination of AV_OPT_FLAG_*.

func (*AVOption) Help

func (s *AVOption) Help() *CStr

Help gets the help field.

short English help text
@todo What about other languages?

func (*AVOption) Max

func (s *AVOption) Max() float64

Max gets the max field.

maximum valid value for the option

func (*AVOption) Min

func (s *AVOption) Min() float64

Min gets the min field.

minimum valid value for the option

func (*AVOption) Name

func (s *AVOption) Name() *CStr

Name gets the name field.

func (*AVOption) Offset

func (s *AVOption) Offset() int

Offset gets the offset field.

Native access only.

The offset relative to the context structure where the option
value is stored. It should be 0 for named constants.

func (*AVOption) RawPtr

func (s *AVOption) RawPtr() unsafe.Pointer

func (*AVOption) SetFlags

func (s *AVOption) SetFlags(value int)

SetFlags sets the flags field.

A combination of AV_OPT_FLAG_*.

func (*AVOption) SetHelp

func (s *AVOption) SetHelp(value *CStr)

SetHelp sets the help field.

short English help text
@todo What about other languages?

func (*AVOption) SetMax

func (s *AVOption) SetMax(value float64)

SetMax sets the max field.

maximum valid value for the option

func (*AVOption) SetMin

func (s *AVOption) SetMin(value float64)

SetMin sets the min field.

minimum valid value for the option

func (*AVOption) SetName

func (s *AVOption) SetName(value *CStr)

SetName sets the name field.

func (*AVOption) SetOffset

func (s *AVOption) SetOffset(value int)

SetOffset sets the offset field.

Native access only.

The offset relative to the context structure where the option
value is stored. It should be 0 for named constants.

func (*AVOption) SetType

func (s *AVOption) SetType(value AVOptionType)

SetType sets the type field.

func (*AVOption) SetUnit

func (s *AVOption) SetUnit(value *CStr)

SetUnit sets the unit field.

The logical unit to which the option belongs. Non-constant
options and corresponding named constants share the same
unit. May be NULL.

func (*AVOption) Type

func (s *AVOption) Type() AVOptionType

Type gets the type field.

func (*AVOption) Unit

func (s *AVOption) Unit() *CStr

Unit gets the unit field.

The logical unit to which the option belongs. Non-constant
options and corresponding named constants share the same
unit. May be NULL.

type AVOptionArrayDef

type AVOptionArrayDef struct {
	// contains filtered or unexported fields
}

AVOptionArrayDef wraps AVOptionArrayDef.

May be set as default_val for AV_OPT_TYPE_FLAG_ARRAY options.

func (*AVOptionArrayDef) Def

func (s *AVOptionArrayDef) Def() *CStr

Def gets the def field.

Native access only.

Default value of the option, as would be serialized by av_opt_get() (i.e.
using the value of sep as the separator).

func (*AVOptionArrayDef) RawPtr

func (s *AVOptionArrayDef) RawPtr() unsafe.Pointer

func (*AVOptionArrayDef) Sep

func (s *AVOptionArrayDef) Sep() uint8

Sep gets the sep field.

Separator between array elements in string representations of this
option, used by av_opt_set() and av_opt_get(). It must be a printable
ASCII character, excluding alphanumeric and the backslash. A comma is
used when sep=0.

The separator and the backslash must be backslash-escaped in order to
appear in string representations of the option value.

func (*AVOptionArrayDef) SetDef

func (s *AVOptionArrayDef) SetDef(value *CStr)

SetDef sets the def field.

Native access only.

Default value of the option, as would be serialized by av_opt_get() (i.e.
using the value of sep as the separator).

func (*AVOptionArrayDef) SetSep

func (s *AVOptionArrayDef) SetSep(value uint8)

SetSep sets the sep field.

Separator between array elements in string representations of this
option, used by av_opt_set() and av_opt_get(). It must be a printable
ASCII character, excluding alphanumeric and the backslash. A comma is
used when sep=0.

The separator and the backslash must be backslash-escaped in order to
appear in string representations of the option value.

func (*AVOptionArrayDef) SetSizeMax

func (s *AVOptionArrayDef) SetSizeMax(value uint)

SetSizeMax sets the size_max field.

Maximum number of elements in the array, 0 when unlimited.

func (*AVOptionArrayDef) SetSizeMin

func (s *AVOptionArrayDef) SetSizeMin(value uint)

SetSizeMin sets the size_min field.

Minimum number of elements in the array. When this field is non-zero, def
must be non-NULL and contain at least this number of elements.

func (*AVOptionArrayDef) SizeMax

func (s *AVOptionArrayDef) SizeMax() uint

SizeMax gets the size_max field.

Maximum number of elements in the array, 0 when unlimited.

func (*AVOptionArrayDef) SizeMin

func (s *AVOptionArrayDef) SizeMin() uint

SizeMin gets the size_min field.

Minimum number of elements in the array. When this field is non-zero, def
must be non-NULL and contain at least this number of elements.

type AVOptionRange

type AVOptionRange struct {
	// contains filtered or unexported fields
}

AVOptionRange wraps AVOptionRange.

A single allowed range of values, or a single allowed value.

func (*AVOptionRange) ComponentMax

func (s *AVOptionRange) ComponentMax() float64

ComponentMax gets the component_max field.

Value's component range.
For string this represents the unicode range for chars, 0-127 limits to ASCII.

func (*AVOptionRange) ComponentMin

func (s *AVOptionRange) ComponentMin() float64

ComponentMin gets the component_min field.

Value's component range.
For string this represents the unicode range for chars, 0-127 limits to ASCII.

func (*AVOptionRange) IsRange

func (s *AVOptionRange) IsRange() int

IsRange gets the is_range field.

Range flag.
If set to 1 the struct encodes a range, if set to 0 a single value.

func (*AVOptionRange) RawPtr

func (s *AVOptionRange) RawPtr() unsafe.Pointer

func (*AVOptionRange) SetComponentMax

func (s *AVOptionRange) SetComponentMax(value float64)

SetComponentMax sets the component_max field.

Value's component range.
For string this represents the unicode range for chars, 0-127 limits to ASCII.

func (*AVOptionRange) SetComponentMin

func (s *AVOptionRange) SetComponentMin(value float64)

SetComponentMin sets the component_min field.

Value's component range.
For string this represents the unicode range for chars, 0-127 limits to ASCII.

func (*AVOptionRange) SetIsRange

func (s *AVOptionRange) SetIsRange(value int)

SetIsRange sets the is_range field.

Range flag.
If set to 1 the struct encodes a range, if set to 0 a single value.

func (*AVOptionRange) SetStr

func (s *AVOptionRange) SetStr(value *CStr)

SetStr sets the str field.

func (*AVOptionRange) SetValueMax

func (s *AVOptionRange) SetValueMax(value float64)

SetValueMax sets the value_max field.

Value range.
For string ranges this represents the min/max length.
For dimensions this represents the min/max pixel count or width/height in multi-component case.

func (*AVOptionRange) SetValueMin

func (s *AVOptionRange) SetValueMin(value float64)

SetValueMin sets the value_min field.

Value range.
For string ranges this represents the min/max length.
For dimensions this represents the min/max pixel count or width/height in multi-component case.

func (*AVOptionRange) Str

func (s *AVOptionRange) Str() *CStr

Str gets the str field.

func (*AVOptionRange) ValueMax

func (s *AVOptionRange) ValueMax() float64

ValueMax gets the value_max field.

Value range.
For string ranges this represents the min/max length.
For dimensions this represents the min/max pixel count or width/height in multi-component case.

func (*AVOptionRange) ValueMin

func (s *AVOptionRange) ValueMin() float64

ValueMin gets the value_min field.

Value range.
For string ranges this represents the min/max length.
For dimensions this represents the min/max pixel count or width/height in multi-component case.

type AVOptionRanges

type AVOptionRanges struct {
	// contains filtered or unexported fields
}

AVOptionRanges wraps AVOptionRanges.

List of AVOptionRange structs.

func (*AVOptionRanges) NbComponents

func (s *AVOptionRanges) NbComponents() int

NbComponents gets the nb_components field.

Number of components.

func (*AVOptionRanges) NbRanges

func (s *AVOptionRanges) NbRanges() int

NbRanges gets the nb_ranges field.

Number of ranges per component.

func (*AVOptionRanges) Range

func (s *AVOptionRanges) Range() *Array[*AVOptionRange]

Range gets the range field.

Array of option ranges.

Most of option types use just one component.
Following describes multi-component option types:

AV_OPT_TYPE_IMAGE_SIZE:
component index 0: range of pixel count (width * height).
component index 1: range of width.
component index 2: range of height.

@note To obtain multi-component version of this structure, user must
      provide AV_OPT_MULTI_COMPONENT_RANGE to av_opt_query_ranges or
      av_opt_query_ranges_default function.

Multi-component range can be read as in following example:

@code
int range_index, component_index;
AVOptionRanges *ranges;
AVOptionRange *range[3]; //may require more than 3 in the future.
av_opt_query_ranges(&ranges, obj, key, AV_OPT_MULTI_COMPONENT_RANGE);
for (range_index = 0; range_index < ranges->nb_ranges; range_index++) {
    for (component_index = 0; component_index < ranges->nb_components; component_index++)
        range[component_index] = ranges->range[ranges->nb_ranges * component_index + range_index];
    //do something with range here.
}
av_opt_freep_ranges(&ranges);
@endcode

func (*AVOptionRanges) RawPtr

func (s *AVOptionRanges) RawPtr() unsafe.Pointer

func (*AVOptionRanges) SetNbComponents

func (s *AVOptionRanges) SetNbComponents(value int)

SetNbComponents sets the nb_components field.

Number of components.

func (*AVOptionRanges) SetNbRanges

func (s *AVOptionRanges) SetNbRanges(value int)

SetNbRanges sets the nb_ranges field.

Number of ranges per component.

func (*AVOptionRanges) SetRange

func (s *AVOptionRanges) SetRange(value *Array[AVOptionRange])

SetRange sets the range field.

Array of option ranges.

Most of option types use just one component.
Following describes multi-component option types:

AV_OPT_TYPE_IMAGE_SIZE:
component index 0: range of pixel count (width * height).
component index 1: range of width.
component index 2: range of height.

@note To obtain multi-component version of this structure, user must
      provide AV_OPT_MULTI_COMPONENT_RANGE to av_opt_query_ranges or
      av_opt_query_ranges_default function.

Multi-component range can be read as in following example:

@code
int range_index, component_index;
AVOptionRanges *ranges;
AVOptionRange *range[3]; //may require more than 3 in the future.
av_opt_query_ranges(&ranges, obj, key, AV_OPT_MULTI_COMPONENT_RANGE);
for (range_index = 0; range_index < ranges->nb_ranges; range_index++) {
    for (component_index = 0; component_index < ranges->nb_components; component_index++)
        range[component_index] = ranges->range[ranges->nb_ranges * component_index + range_index];
    //do something with range here.
}
av_opt_freep_ranges(&ranges);
@endcode

type AVOptionType

type AVOptionType C.enum_AVOptionType

AVOptionType wraps AVOptionType.

const (
	// AVOptTypeFlags wraps AV_OPT_TYPE_FLAGS.
	//
	//	Underlying C type is unsigned int.
	AVOptTypeFlags AVOptionType = C.AV_OPT_TYPE_FLAGS
	// AVOptTypeInt wraps AV_OPT_TYPE_INT.
	//
	//	Underlying C type is int.
	AVOptTypeInt AVOptionType = C.AV_OPT_TYPE_INT
	// AVOptTypeInt64 wraps AV_OPT_TYPE_INT64.
	//
	//	Underlying C type is int64_t.
	AVOptTypeInt64 AVOptionType = C.AV_OPT_TYPE_INT64
	// AVOptTypeDouble wraps AV_OPT_TYPE_DOUBLE.
	//
	//	Underlying C type is double.
	AVOptTypeDouble AVOptionType = C.AV_OPT_TYPE_DOUBLE
	// AVOptTypeFloat wraps AV_OPT_TYPE_FLOAT.
	//
	//	Underlying C type is float.
	AVOptTypeFloat AVOptionType = C.AV_OPT_TYPE_FLOAT
	// AVOptTypeString wraps AV_OPT_TYPE_STRING.
	/*
	   Underlying C type is a uint8_t* that is either NULL or points to a C
	   string allocated with the av_malloc() family of functions.
	*/
	AVOptTypeString AVOptionType = C.AV_OPT_TYPE_STRING
	// AVOptTypeRational wraps AV_OPT_TYPE_RATIONAL.
	//
	//	Underlying C type is AVRational.
	AVOptTypeRational AVOptionType = C.AV_OPT_TYPE_RATIONAL
	// AVOptTypeBinary wraps AV_OPT_TYPE_BINARY.
	/*
	   Underlying C type is a uint8_t* that is either NULL or points to an array
	   allocated with the av_malloc() family of functions. The pointer is
	   immediately followed by an int containing the array length in bytes.
	*/
	AVOptTypeBinary AVOptionType = C.AV_OPT_TYPE_BINARY
	// AVOptTypeDict wraps AV_OPT_TYPE_DICT.
	//
	//	Underlying C type is AVDictionary*.
	AVOptTypeDict AVOptionType = C.AV_OPT_TYPE_DICT
	// AVOptTypeUint64 wraps AV_OPT_TYPE_UINT64.
	//
	//	Underlying C type is uint64_t.
	AVOptTypeUint64 AVOptionType = C.AV_OPT_TYPE_UINT64
	// AVOptTypeConst wraps AV_OPT_TYPE_CONST.
	/*
	   Special option type for declaring named constants. Does not correspond to
	   an actual field in the object, offset must be 0.
	*/
	AVOptTypeConst AVOptionType = C.AV_OPT_TYPE_CONST
	// AVOptTypeImageSize wraps AV_OPT_TYPE_IMAGE_SIZE.
	//
	//	Underlying C type is two consecutive integers.
	AVOptTypeImageSize AVOptionType = C.AV_OPT_TYPE_IMAGE_SIZE
	// AVOptTypePixelFmt wraps AV_OPT_TYPE_PIXEL_FMT.
	//
	//	Underlying C type is enum AVPixelFormat.
	AVOptTypePixelFmt AVOptionType = C.AV_OPT_TYPE_PIXEL_FMT
	// AVOptTypeSampleFmt wraps AV_OPT_TYPE_SAMPLE_FMT.
	//
	//	Underlying C type is enum AVSampleFormat.
	AVOptTypeSampleFmt AVOptionType = C.AV_OPT_TYPE_SAMPLE_FMT
	// AVOptTypeVideoRate wraps AV_OPT_TYPE_VIDEO_RATE.
	//
	//	Underlying C type is AVRational.
	AVOptTypeVideoRate AVOptionType = C.AV_OPT_TYPE_VIDEO_RATE
	// AVOptTypeDuration wraps AV_OPT_TYPE_DURATION.
	//
	//	Underlying C type is int64_t.
	AVOptTypeDuration AVOptionType = C.AV_OPT_TYPE_DURATION
	// AVOptTypeColor wraps AV_OPT_TYPE_COLOR.
	//
	//	Underlying C type is uint8_t[4].
	AVOptTypeColor AVOptionType = C.AV_OPT_TYPE_COLOR
	// AVOptTypeBool wraps AV_OPT_TYPE_BOOL.
	//
	//	Underlying C type is int.
	AVOptTypeBool AVOptionType = C.AV_OPT_TYPE_BOOL
	// AVOptTypeChlayout wraps AV_OPT_TYPE_CHLAYOUT.
	//
	//	Underlying C type is AVChannelLayout.
	AVOptTypeChlayout AVOptionType = C.AV_OPT_TYPE_CHLAYOUT
	// AVOptTypeUint wraps AV_OPT_TYPE_UINT.
	//
	//	Underlying C type is unsigned int.
	AVOptTypeUint AVOptionType = C.AV_OPT_TYPE_UINT
	// AVOptTypeFlagArray wraps AV_OPT_TYPE_FLAG_ARRAY.
	/*
	   May be combined with another regular option type to declare an array
	   option.

	   For array options, @ref AVOption.offset should refer to a pointer
	   corresponding to the option type. The pointer should be immediately
	   followed by an unsigned int that will store the number of elements in the
	   array.
	*/
	AVOptTypeFlagArray AVOptionType = C.AV_OPT_TYPE_FLAG_ARRAY
)

type AVOutputFormat

type AVOutputFormat struct {
	// contains filtered or unexported fields
}

AVOutputFormat wraps AVOutputFormat.

func AVGuessFormat

func AVGuessFormat(shortName *CStr, filename *CStr, mimeType *CStr) *AVOutputFormat

AVGuessFormat wraps av_guess_format.

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.

@param short_name if non-NULL checks if short_name matches with the
                  names of the registered formats
@param filename   if non-NULL checks if filename terminates with the
                  extensions of the registered formats
@param mime_type  if non-NULL checks if mime_type matches with the
                  MIME type of the registered formats

func AVMuxerIterate

func AVMuxerIterate(opaque *unsafe.Pointer) *AVOutputFormat

AVMuxerIterate iterates over all registered muxers.

@param opaque a pointer where libavformat will store the iteration state. Must

point to NULL to start the iteration.

@return the next registered muxer or NULL when the iteration is finished

func AVOutputAudioDeviceNext

func AVOutputAudioDeviceNext(d *AVOutputFormat) *AVOutputFormat

AVOutputAudioDeviceNext wraps av_output_audio_device_next.

Audio output devices iterator.

If d is NULL, returns the first registered output audio/video device,
if d is non-NULL, returns the next registered output audio/video device after d
or NULL if d is the last one.

func AVOutputVideoDeviceNext

func AVOutputVideoDeviceNext(d *AVOutputFormat) *AVOutputFormat

AVOutputVideoDeviceNext wraps av_output_video_device_next.

Video output devices iterator.

If d is NULL, returns the first registered output audio/video device,
if d is non-NULL, returns the next registered output audio/video device after d
or NULL if d is the last one.

func (*AVOutputFormat) AudioCodec

func (s *AVOutputFormat) AudioCodec() AVCodecID

AudioCodec gets the audio_codec field.

default audio codec

func (*AVOutputFormat) CodecTag

func (s *AVOutputFormat) CodecTag() *Array[*AVCodecTag]

CodecTag gets the codec_tag field.

List of supported codec_id-codec_tag pairs, ordered by "better
choice first". The arrays are all terminated by AV_CODEC_ID_NONE.

func (*AVOutputFormat) Extensions

func (s *AVOutputFormat) Extensions() *CStr

Extensions gets the extensions field.

comma-separated filename extensions

func (*AVOutputFormat) Flags

func (s *AVOutputFormat) Flags() int

Flags gets the flags field.

can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER,
AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS,
AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS,
AVFMT_TS_NONSTRICT, AVFMT_TS_NEGATIVE

func (*AVOutputFormat) LongName

func (s *AVOutputFormat) LongName() *CStr

LongName gets the long_name field.

Descriptive name for the format, meant to be more human-readable
than name. You should use the NULL_IF_CONFIG_SMALL() macro
to define it.

func (*AVOutputFormat) MimeType

func (s *AVOutputFormat) MimeType() *CStr

MimeType gets the mime_type field.

func (*AVOutputFormat) Name

func (s *AVOutputFormat) Name() *CStr

Name gets the name field.

func (*AVOutputFormat) PrivClass

func (s *AVOutputFormat) PrivClass() *AVClass

PrivClass gets the priv_class field.

AVClass for the private context

func (*AVOutputFormat) RawPtr

func (s *AVOutputFormat) RawPtr() unsafe.Pointer

func (*AVOutputFormat) SetAudioCodec

func (s *AVOutputFormat) SetAudioCodec(value AVCodecID)

SetAudioCodec sets the audio_codec field.

default audio codec

func (*AVOutputFormat) SetCodecTag

func (s *AVOutputFormat) SetCodecTag(value *Array[AVCodecTag])

SetCodecTag sets the codec_tag field.

List of supported codec_id-codec_tag pairs, ordered by "better
choice first". The arrays are all terminated by AV_CODEC_ID_NONE.

func (*AVOutputFormat) SetExtensions

func (s *AVOutputFormat) SetExtensions(value *CStr)

SetExtensions sets the extensions field.

comma-separated filename extensions

func (*AVOutputFormat) SetFlags

func (s *AVOutputFormat) SetFlags(value int)

SetFlags sets the flags field.

can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER,
AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS,
AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS,
AVFMT_TS_NONSTRICT, AVFMT_TS_NEGATIVE

func (*AVOutputFormat) SetLongName

func (s *AVOutputFormat) SetLongName(value *CStr)

SetLongName sets the long_name field.

Descriptive name for the format, meant to be more human-readable
than name. You should use the NULL_IF_CONFIG_SMALL() macro
to define it.

func (*AVOutputFormat) SetMimeType

func (s *AVOutputFormat) SetMimeType(value *CStr)

SetMimeType sets the mime_type field.

func (*AVOutputFormat) SetName

func (s *AVOutputFormat) SetName(value *CStr)

SetName sets the name field.

func (*AVOutputFormat) SetPrivClass

func (s *AVOutputFormat) SetPrivClass(value *AVClass)

SetPrivClass sets the priv_class field.

AVClass for the private context

func (*AVOutputFormat) SetSubtitleCodec

func (s *AVOutputFormat) SetSubtitleCodec(value AVCodecID)

SetSubtitleCodec sets the subtitle_codec field.

default subtitle codec

func (*AVOutputFormat) SetVideoCodec

func (s *AVOutputFormat) SetVideoCodec(value AVCodecID)

SetVideoCodec sets the video_codec field.

default video codec

func (*AVOutputFormat) SubtitleCodec

func (s *AVOutputFormat) SubtitleCodec() AVCodecID

SubtitleCodec gets the subtitle_codec field.

default subtitle codec

func (*AVOutputFormat) VideoCodec

func (s *AVOutputFormat) VideoCodec() AVCodecID

VideoCodec gets the video_codec field.

default video codec

type AVPacket

type AVPacket struct {
	// contains filtered or unexported fields
}

AVPacket wraps AVPacket.

This structure stores compressed data. It is typically exported by demuxers
and then passed as input to decoders, or received as output from encoders and
then passed to muxers.

For video, it should typically contain one compressed frame. For audio it may
contain several compressed frames. Encoders are allowed to output empty
packets, with no compressed data, containing only side data
(e.g. to update some stream parameters at the end of encoding).

The semantics of data ownership depends on the buf field.
If it is set, the packet data is dynamically allocated and is
valid indefinitely until a call to av_packet_unref() reduces the
reference count to 0.

If the buf field is not set av_packet_ref() would make a copy instead
of increasing the reference count.

The side data is always allocated with av_malloc(), copied by
av_packet_ref() and freed by av_packet_unref().

sizeof(AVPacket) being a part of the public ABI is deprecated. once
av_init_packet() is removed, new packets will only be able to be allocated
with av_packet_alloc(), and new fields may be added to the end of the struct
with a minor bump.

@see av_packet_alloc
@see av_packet_ref
@see av_packet_unref

func AVPacketAlloc

func AVPacketAlloc() *AVPacket

AVPacketAlloc wraps av_packet_alloc.

Allocate an AVPacket and set its fields to default values.  The resulting
struct must be freed using av_packet_free().

@return An AVPacket filled with default values or NULL on failure.

@note this only allocates the AVPacket itself, not the data buffers. Those
must be allocated through other means such as av_new_packet.

@see av_new_packet

func AVPacketClone

func AVPacketClone(src *AVPacket) *AVPacket

AVPacketClone wraps av_packet_clone.

Create a new packet that references the same data as src.

This is a shortcut for av_packet_alloc()+av_packet_ref().

@return newly created AVPacket on success, NULL on error.

@see av_packet_alloc
@see av_packet_ref

func (*AVPacket) Buf

func (s *AVPacket) Buf() *AVBufferRef

Buf gets the buf field.

A reference to the reference-counted buffer where the packet data is
stored.
May be NULL, then the packet data is not reference-counted.

func (*AVPacket) Data

func (s *AVPacket) Data() unsafe.Pointer

Data gets the data field.

func (*AVPacket) Dts

func (s *AVPacket) Dts() int64

Dts gets the dts field.

Decompression timestamp in AVStream->time_base units; the time at which
the packet is decompressed.
Can be AV_NOPTS_VALUE if it is not stored in the file.

func (*AVPacket) Duration

func (s *AVPacket) Duration() int64

Duration gets the duration field.

Duration of this packet in AVStream->time_base units, 0 if unknown.
Equals next_pts - this_pts in presentation order.

func (*AVPacket) Flags

func (s *AVPacket) Flags() int

Flags gets the flags field.

A combination of AV_PKT_FLAG values

func (*AVPacket) Opaque

func (s *AVPacket) Opaque() unsafe.Pointer

Opaque gets the opaque field.

for some private data of the user

func (*AVPacket) OpaqueRef

func (s *AVPacket) OpaqueRef() *AVBufferRef

OpaqueRef gets the opaque_ref field.

AVBufferRef for free use by the API user. FFmpeg will never check the
contents of the buffer ref. FFmpeg calls av_buffer_unref() on it when
the packet is unreferenced. av_packet_copy_props() calls create a new
reference with av_buffer_ref() for the target packet's opaque_ref field.

This is unrelated to the opaque field, although it serves a similar
purpose.

func (*AVPacket) Pos

func (s *AVPacket) Pos() int64

Pos gets the pos field.

byte position in stream, -1 if unknown

func (*AVPacket) Pts

func (s *AVPacket) Pts() int64

Pts gets the pts field.

Presentation timestamp in AVStream->time_base units; the time at which
the decompressed packet will be presented to the user.
Can be AV_NOPTS_VALUE if it is not stored in the file.
pts MUST be larger or equal to dts as presentation cannot happen before
decompression, unless one wants to view hex dumps. Some formats misuse
the terms dts and pts/cts to mean something different. Such timestamps
must be converted to true pts/dts before they are stored in AVPacket.

func (*AVPacket) RawPtr

func (s *AVPacket) RawPtr() unsafe.Pointer

func (*AVPacket) SetBuf

func (s *AVPacket) SetBuf(value *AVBufferRef)

SetBuf sets the buf field.

A reference to the reference-counted buffer where the packet data is
stored.
May be NULL, then the packet data is not reference-counted.

func (*AVPacket) SetData

func (s *AVPacket) SetData(value unsafe.Pointer)

SetData sets the data field.

func (*AVPacket) SetDts

func (s *AVPacket) SetDts(value int64)

SetDts sets the dts field.

Decompression timestamp in AVStream->time_base units; the time at which
the packet is decompressed.
Can be AV_NOPTS_VALUE if it is not stored in the file.

func (*AVPacket) SetDuration

func (s *AVPacket) SetDuration(value int64)

SetDuration sets the duration field.

Duration of this packet in AVStream->time_base units, 0 if unknown.
Equals next_pts - this_pts in presentation order.

func (*AVPacket) SetFlags

func (s *AVPacket) SetFlags(value int)

SetFlags sets the flags field.

A combination of AV_PKT_FLAG values

func (*AVPacket) SetOpaque

func (s *AVPacket) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

for some private data of the user

func (*AVPacket) SetOpaqueRef

func (s *AVPacket) SetOpaqueRef(value *AVBufferRef)

SetOpaqueRef sets the opaque_ref field.

AVBufferRef for free use by the API user. FFmpeg will never check the
contents of the buffer ref. FFmpeg calls av_buffer_unref() on it when
the packet is unreferenced. av_packet_copy_props() calls create a new
reference with av_buffer_ref() for the target packet's opaque_ref field.

This is unrelated to the opaque field, although it serves a similar
purpose.

func (*AVPacket) SetPos

func (s *AVPacket) SetPos(value int64)

SetPos sets the pos field.

byte position in stream, -1 if unknown

func (*AVPacket) SetPts

func (s *AVPacket) SetPts(value int64)

SetPts sets the pts field.

Presentation timestamp in AVStream->time_base units; the time at which
the decompressed packet will be presented to the user.
Can be AV_NOPTS_VALUE if it is not stored in the file.
pts MUST be larger or equal to dts as presentation cannot happen before
decompression, unless one wants to view hex dumps. Some formats misuse
the terms dts and pts/cts to mean something different. Such timestamps
must be converted to true pts/dts before they are stored in AVPacket.

func (*AVPacket) SetSideData

func (s *AVPacket) SetSideData(value *AVPacketSideData)

SetSideData sets the side_data field.

Additional packet data that can be provided by the container.
Packet can contain several types of side information.

func (*AVPacket) SetSideDataElems

func (s *AVPacket) SetSideDataElems(value int)

SetSideDataElems sets the side_data_elems field.

func (*AVPacket) SetSize

func (s *AVPacket) SetSize(value int)

SetSize sets the size field.

func (*AVPacket) SetStreamIndex

func (s *AVPacket) SetStreamIndex(value int)

SetStreamIndex sets the stream_index field.

func (*AVPacket) SetTimeBase

func (s *AVPacket) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

Time base of the packet's timestamps.
In the future, this field may be set on packets output by encoders or
demuxers, but its value will be by default ignored on input to decoders
or muxers.

func (*AVPacket) SideData

func (s *AVPacket) SideData() *AVPacketSideData

SideData gets the side_data field.

Additional packet data that can be provided by the container.
Packet can contain several types of side information.

func (*AVPacket) SideDataElems

func (s *AVPacket) SideDataElems() int

SideDataElems gets the side_data_elems field.

func (*AVPacket) Size

func (s *AVPacket) Size() int

Size gets the size field.

func (*AVPacket) StreamIndex

func (s *AVPacket) StreamIndex() int

StreamIndex gets the stream_index field.

func (*AVPacket) TimeBase

func (s *AVPacket) TimeBase() *AVRational

TimeBase gets the time_base field.

Time base of the packet's timestamps.
In the future, this field may be set on packets output by encoders or
demuxers, but its value will be by default ignored on input to decoders
or muxers.

type AVPacketList

type AVPacketList struct {
	// contains filtered or unexported fields
}

AVPacketList wraps AVPacketList.

func (*AVPacketList) Next

func (s *AVPacketList) Next() *AVPacketList

Next gets the next field.

func (*AVPacketList) Pkt

func (s *AVPacketList) Pkt() *AVPacket

Pkt gets the pkt field.

func (*AVPacketList) RawPtr

func (s *AVPacketList) RawPtr() unsafe.Pointer

func (*AVPacketList) SetNext

func (s *AVPacketList) SetNext(value *AVPacketList)

SetNext sets the next field.

type AVPacketSideData

type AVPacketSideData struct {
	// contains filtered or unexported fields
}

AVPacketSideData wraps AVPacketSideData.

This structure stores auxiliary information for decoding, presenting, or
otherwise processing the coded stream. It is typically exported by demuxers
and encoders and can be fed to decoders and muxers either in a per packet
basis, or as global side data (applying to the entire coded stream).

Global side data is handled as follows:
- During demuxing, it may be exported through
  @ref AVCodecParameters.coded_side_data "AVStream's codec parameters", which can
  then be passed as input to decoders through the
  @ref AVCodecContext.coded_side_data "decoder context's side data", for
  initialization.
- For muxing, it can be fed through @ref AVCodecParameters.coded_side_data
  "AVStream's codec parameters", typically  the output of encoders through
  the @ref AVCodecContext.coded_side_data "encoder context's side data", for
  initialization.

Packet specific side data is handled as follows:
- During demuxing, it may be exported through @ref AVPacket.side_data
  "AVPacket's side data", which can then be passed as input to decoders.
- For muxing, it can be fed through @ref AVPacket.side_data "AVPacket's
  side data", typically the output of encoders.

Different modules may accept or export different types of side data
depending on media type and codec. Refer to @ref AVPacketSideDataType for a
list of defined types and where they may be found or used.

func AVPacketSideDataAdd

func AVPacketSideDataAdd(sd **AVPacketSideData, nbSd *int, _type AVPacketSideDataType, data unsafe.Pointer, size uint64, flags int) *AVPacketSideData

AVPacketSideDataAdd wraps av_packet_side_data_add.

Wrap existing data as packet side data.

@param sd    pointer to an array of side data to which the side data should
             be added. *sd may be NULL, in which case the array will be
             initialized
@param nb_sd pointer to an integer containing the number of entries in
             the array. The integer value will be increased by 1 on success.
@param type  side data type
@param data  a data array. It must be allocated with the av_malloc() family
             of functions. The ownership of the data is transferred to the
             side data array on success
@param size  size of the data array
@param flags currently unused. Must be zero

@return pointer to freshly allocated side data on success, or NULL otherwise
        On failure, the side data array is unchanged and the data remains
        owned by the caller.

func AVPacketSideDataGet

func AVPacketSideDataGet(sd *AVPacketSideData, nbSd int, _type AVPacketSideDataType) *AVPacketSideData

AVPacketSideDataGet wraps av_packet_side_data_get.

Get side information from a side data array.

@param sd    the array from which the side data should be fetched
@param nb_sd value containing the number of entries in the array.
@param type  desired side information type

@return pointer to side data if present or NULL otherwise

func AVPacketSideDataNew

func AVPacketSideDataNew(psd **AVPacketSideData, pnbSd *int, _type AVPacketSideDataType, size uint64, flags int) *AVPacketSideData

AVPacketSideDataNew wraps av_packet_side_data_new.

Allocate a new packet side data.

@param sd    pointer to an array of side data to which the side data should
             be added. *sd may be NULL, in which case the array will be
             initialized.
@param nb_sd pointer to an integer containing the number of entries in
             the array. The integer value will be increased by 1 on success.
@param type  side data type
@param size  desired side data size
@param flags currently unused. Must be zero

@return pointer to freshly allocated side data on success, or NULL otherwise.

func (*AVPacketSideData) Data

func (s *AVPacketSideData) Data() unsafe.Pointer

Data gets the data field.

func (*AVPacketSideData) RawPtr

func (s *AVPacketSideData) RawPtr() unsafe.Pointer

func (*AVPacketSideData) SetData

func (s *AVPacketSideData) SetData(value unsafe.Pointer)

SetData sets the data field.

func (*AVPacketSideData) SetSize

func (s *AVPacketSideData) SetSize(value uint64)

SetSize sets the size field.

func (*AVPacketSideData) SetType

func (s *AVPacketSideData) SetType(value AVPacketSideDataType)

SetType sets the type field.

func (*AVPacketSideData) Size

func (s *AVPacketSideData) Size() uint64

Size gets the size field.

func (*AVPacketSideData) Type

Type gets the type field.

type AVPacketSideDataType

type AVPacketSideDataType C.enum_AVPacketSideDataType

AVPacketSideDataType wraps AVPacketSideDataType.

const (
	// AVPktDataPalette wraps AV_PKT_DATA_PALETTE.
	/*
	   An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE
	   bytes worth of palette. This side data signals that a new palette is
	   present.
	*/
	AVPktDataPalette AVPacketSideDataType = C.AV_PKT_DATA_PALETTE
	// AVPktDataNewExtradata wraps AV_PKT_DATA_NEW_EXTRADATA.
	/*
	   The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format
	   that the extradata buffer was changed and the receiving side should
	   act upon it appropriately. The new extradata is embedded in the side
	   data buffer and should be immediately used for processing the current
	   frame or packet.
	*/
	AVPktDataNewExtradata AVPacketSideDataType = C.AV_PKT_DATA_NEW_EXTRADATA
	// AVPktDataParamChange wraps AV_PKT_DATA_PARAM_CHANGE.
	/*
	   An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:
	   @code
	   u32le param_flags
	   if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE)
	       s32le sample_rate
	   if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS)
	       s32le width
	       s32le height
	   @endcode
	*/
	AVPktDataParamChange AVPacketSideDataType = C.AV_PKT_DATA_PARAM_CHANGE
	// AVPktDataH263MbInfo wraps AV_PKT_DATA_H263_MB_INFO.
	/*
	   An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of
	   structures with info about macroblocks relevant to splitting the
	   packet into smaller packets on macroblock edges (e.g. as for RFC 2190).
	   That is, it does not necessarily contain info about all macroblocks,
	   as long as the distance between macroblocks in the info is smaller
	   than the target payload size.
	   Each MB info structure is 12 bytes, and is laid out as follows:
	   @code
	   u32le bit offset from the start of the packet
	   u8    current quantizer at the start of the macroblock
	   u8    GOB number
	   u16le macroblock address within the GOB
	   u8    horizontal MV predictor
	   u8    vertical MV predictor
	   u8    horizontal MV predictor for block number 3
	   u8    vertical MV predictor for block number 3
	   @endcode
	*/
	AVPktDataH263MbInfo AVPacketSideDataType = C.AV_PKT_DATA_H263_MB_INFO
	// AVPktDataReplaygain wraps AV_PKT_DATA_REPLAYGAIN.
	/*
	   This side data should be associated with an audio stream and contains
	   ReplayGain information in form of the AVReplayGain struct.
	*/
	AVPktDataReplaygain AVPacketSideDataType = C.AV_PKT_DATA_REPLAYGAIN
	// AVPktDataDisplaymatrix wraps AV_PKT_DATA_DISPLAYMATRIX.
	/*
	   This side data contains a 3x3 transformation matrix describing an affine
	   transformation that needs to be applied to the decoded video frames for
	   correct presentation.

	   See libavutil/display.h for a detailed description of the data.
	*/
	AVPktDataDisplaymatrix AVPacketSideDataType = C.AV_PKT_DATA_DISPLAYMATRIX
	// AVPktDataStereo3D wraps AV_PKT_DATA_STEREO3D.
	/*
	   This side data should be associated with a video stream and contains
	   Stereoscopic 3D information in form of the AVStereo3D struct.
	*/
	AVPktDataStereo3D AVPacketSideDataType = C.AV_PKT_DATA_STEREO3D
	// AVPktDataAudioServiceType wraps AV_PKT_DATA_AUDIO_SERVICE_TYPE.
	/*
	   This side data should be associated with an audio stream and corresponds
	   to enum AVAudioServiceType.
	*/
	AVPktDataAudioServiceType AVPacketSideDataType = C.AV_PKT_DATA_AUDIO_SERVICE_TYPE
	// AVPktDataQualityStats wraps AV_PKT_DATA_QUALITY_STATS.
	/*
	   This side data contains quality related information from the encoder.
	   @code
	   u32le quality factor of the compressed frame. Allowed range is between 1 (good) and FF_LAMBDA_MAX (bad).
	   u8    picture type
	   u8    error count
	   u16   reserved
	   u64le[error count] sum of squared differences between encoder in and output
	   @endcode
	*/
	AVPktDataQualityStats AVPacketSideDataType = C.AV_PKT_DATA_QUALITY_STATS
	// AVPktDataFallbackTrack wraps AV_PKT_DATA_FALLBACK_TRACK.
	/*
	   This side data contains an integer value representing the stream index
	   of a "fallback" track.  A fallback track indicates an alternate
	   track to use when the current track can not be decoded for some reason.
	   e.g. no decoder available for codec.
	*/
	AVPktDataFallbackTrack AVPacketSideDataType = C.AV_PKT_DATA_FALLBACK_TRACK
	// AVPktDataCpbProperties wraps AV_PKT_DATA_CPB_PROPERTIES.
	//
	//	This side data corresponds to the AVCPBProperties struct.
	AVPktDataCpbProperties AVPacketSideDataType = C.AV_PKT_DATA_CPB_PROPERTIES
	// AVPktDataSkipSamples wraps AV_PKT_DATA_SKIP_SAMPLES.
	/*
	   Recommends skipping the specified number of samples
	   @code
	   u32le number of samples to skip from start of this packet
	   u32le number of samples to skip from end of this packet
	   u8    reason for start skip
	   u8    reason for end   skip (0=padding silence, 1=convergence)
	   @endcode
	*/
	AVPktDataSkipSamples AVPacketSideDataType = C.AV_PKT_DATA_SKIP_SAMPLES
	// AVPktDataJpDualmono wraps AV_PKT_DATA_JP_DUALMONO.
	/*
	   An AV_PKT_DATA_JP_DUALMONO side data packet indicates that
	   the packet may contain "dual mono" audio specific to Japanese DTV
	   and if it is true, recommends only the selected channel to be used.
	   @code
	   u8    selected channels (0=main/left, 1=sub/right, 2=both)
	   @endcode
	*/
	AVPktDataJpDualmono AVPacketSideDataType = C.AV_PKT_DATA_JP_DUALMONO
	// AVPktDataStringsMetadata wraps AV_PKT_DATA_STRINGS_METADATA.
	/*
	   A list of zero terminated key/value strings. There is no end marker for
	   the list, so it is required to rely on the side data size to stop.
	*/
	AVPktDataStringsMetadata AVPacketSideDataType = C.AV_PKT_DATA_STRINGS_METADATA
	// AVPktDataSubtitlePosition wraps AV_PKT_DATA_SUBTITLE_POSITION.
	/*
	   Subtitle event position
	   @code
	   u32le x1
	   u32le y1
	   u32le x2
	   u32le y2
	   @endcode
	*/
	AVPktDataSubtitlePosition AVPacketSideDataType = C.AV_PKT_DATA_SUBTITLE_POSITION
	// AVPktDataMatroskaBlockadditional wraps AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL.
	/*
	   Data found in BlockAdditional element of matroska container. There is
	   no end marker for the data, so it is required to rely on the side data
	   size to recognize the end. 8 byte id (as found in BlockAddId) followed
	   by data.
	*/
	AVPktDataMatroskaBlockadditional AVPacketSideDataType = C.AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL
	// AVPktDataWebvttIdentifier wraps AV_PKT_DATA_WEBVTT_IDENTIFIER.
	//
	//	The optional first identifier line of a WebVTT cue.
	AVPktDataWebvttIdentifier AVPacketSideDataType = C.AV_PKT_DATA_WEBVTT_IDENTIFIER
	// AVPktDataWebvttSettings wraps AV_PKT_DATA_WEBVTT_SETTINGS.
	/*
	   The optional settings (rendering instructions) that immediately
	   follow the timestamp specifier of a WebVTT cue.
	*/
	AVPktDataWebvttSettings AVPacketSideDataType = C.AV_PKT_DATA_WEBVTT_SETTINGS
	// AVPktDataMetadataUpdate wraps AV_PKT_DATA_METADATA_UPDATE.
	/*
	   A list of zero terminated key/value strings. There is no end marker for
	   the list, so it is required to rely on the side data size to stop. This
	   side data includes updated metadata which appeared in the stream.
	*/
	AVPktDataMetadataUpdate AVPacketSideDataType = C.AV_PKT_DATA_METADATA_UPDATE
	// AVPktDataMpegtsStreamId wraps AV_PKT_DATA_MPEGTS_STREAM_ID.
	/*
	   MPEGTS stream ID as uint8_t, this is required to pass the stream ID
	   information from the demuxer to the corresponding muxer.
	*/
	AVPktDataMpegtsStreamId AVPacketSideDataType = C.AV_PKT_DATA_MPEGTS_STREAM_ID
	// AVPktDataMasteringDisplayMetadata wraps AV_PKT_DATA_MASTERING_DISPLAY_METADATA.
	/*
	   Mastering display metadata (based on SMPTE-2086:2014). This metadata
	   should be associated with a video stream and contains data in the form
	   of the AVMasteringDisplayMetadata struct.
	*/
	AVPktDataMasteringDisplayMetadata AVPacketSideDataType = C.AV_PKT_DATA_MASTERING_DISPLAY_METADATA
	// AVPktDataSpherical wraps AV_PKT_DATA_SPHERICAL.
	/*
	   This side data should be associated with a video stream and corresponds
	   to the AVSphericalMapping structure.
	*/
	AVPktDataSpherical AVPacketSideDataType = C.AV_PKT_DATA_SPHERICAL
	// AVPktDataContentLightLevel wraps AV_PKT_DATA_CONTENT_LIGHT_LEVEL.
	/*
	   Content light level (based on CTA-861.3). This metadata should be
	   associated with a video stream and contains data in the form of the
	   AVContentLightMetadata struct.
	*/
	AVPktDataContentLightLevel AVPacketSideDataType = C.AV_PKT_DATA_CONTENT_LIGHT_LEVEL
	// AVPktDataA53Cc wraps AV_PKT_DATA_A53_CC.
	/*
	   ATSC A53 Part 4 Closed Captions. This metadata should be associated with
	   a video stream. A53 CC bitstream is stored as uint8_t in AVPacketSideData.data.
	   The number of bytes of CC data is AVPacketSideData.size.
	*/
	AVPktDataA53Cc AVPacketSideDataType = C.AV_PKT_DATA_A53_CC
	// AVPktDataEncryptionInitInfo wraps AV_PKT_DATA_ENCRYPTION_INIT_INFO.
	/*
	   This side data is encryption initialization data.
	   The format is not part of ABI, use av_encryption_init_info_* methods to
	   access.
	*/
	AVPktDataEncryptionInitInfo AVPacketSideDataType = C.AV_PKT_DATA_ENCRYPTION_INIT_INFO
	// AVPktDataEncryptionInfo wraps AV_PKT_DATA_ENCRYPTION_INFO.
	/*
	   This side data contains encryption info for how to decrypt the packet.
	   The format is not part of ABI, use av_encryption_info_* methods to access.
	*/
	AVPktDataEncryptionInfo AVPacketSideDataType = C.AV_PKT_DATA_ENCRYPTION_INFO
	// AVPktDataAfd wraps AV_PKT_DATA_AFD.
	/*
	   Active Format Description data consisting of a single byte as specified
	   in ETSI TS 101 154 using AVActiveFormatDescription enum.
	*/
	AVPktDataAfd AVPacketSideDataType = C.AV_PKT_DATA_AFD
	// AVPktDataPrft wraps AV_PKT_DATA_PRFT.
	/*
	   Producer Reference Time data corresponding to the AVProducerReferenceTime struct,
	   usually exported by some encoders (on demand through the prft flag set in the
	   AVCodecContext export_side_data field).
	*/
	AVPktDataPrft AVPacketSideDataType = C.AV_PKT_DATA_PRFT
	// AVPktDataIccProfile wraps AV_PKT_DATA_ICC_PROFILE.
	/*
	   ICC profile data consisting of an opaque octet buffer following the
	   format described by ISO 15076-1.
	*/
	AVPktDataIccProfile AVPacketSideDataType = C.AV_PKT_DATA_ICC_PROFILE
	// AVPktDataDoviConf wraps AV_PKT_DATA_DOVI_CONF.
	/*
	   DOVI configuration
	   ref:
	   dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2
	   dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3
	   Tags are stored in struct AVDOVIDecoderConfigurationRecord.
	*/
	AVPktDataDoviConf AVPacketSideDataType = C.AV_PKT_DATA_DOVI_CONF
	// AVPktDataS12MTimecode wraps AV_PKT_DATA_S12M_TIMECODE.
	/*
	   Timecode which conforms to SMPTE ST 12-1:2014. The data is an array of 4 uint32_t
	   where the first uint32_t describes how many (1-3) of the other timecodes are used.
	   The timecode format is described in the documentation of av_timecode_get_smpte_from_framenum()
	   function in libavutil/timecode.h.
	*/
	AVPktDataS12MTimecode AVPacketSideDataType = C.AV_PKT_DATA_S12M_TIMECODE
	// AVPktDataDynamicHdr10Plus wraps AV_PKT_DATA_DYNAMIC_HDR10_PLUS.
	/*
	   HDR10+ dynamic metadata associated with a video frame. The metadata is in
	   the form of the AVDynamicHDRPlus struct and contains
	   information for color volume transform - application 4 of
	   SMPTE 2094-40:2016 standard.
	*/
	AVPktDataDynamicHdr10Plus AVPacketSideDataType = C.AV_PKT_DATA_DYNAMIC_HDR10_PLUS
	// AVPktDataIamfMixGainParam wraps AV_PKT_DATA_IAMF_MIX_GAIN_PARAM.
	/*
	   IAMF Mix Gain Parameter Data associated with the audio frame. This metadata
	   is in the form of the AVIAMFParamDefinition struct and contains information
	   defined in sections 3.6.1 and 3.8.1 of the Immersive Audio Model and
	   Formats standard.
	*/
	AVPktDataIamfMixGainParam AVPacketSideDataType = C.AV_PKT_DATA_IAMF_MIX_GAIN_PARAM
	// AVPktDataIamfDemixingInfoParam wraps AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM.
	/*
	   IAMF Demixing Info Parameter Data associated with the audio frame. This
	   metadata is in the form of the AVIAMFParamDefinition struct and contains
	   information defined in sections 3.6.1 and 3.8.2 of the Immersive Audio Model
	   and Formats standard.
	*/
	AVPktDataIamfDemixingInfoParam AVPacketSideDataType = C.AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM
	// AVPktDataIamfReconGainInfoParam wraps AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM.
	/*
	   IAMF Recon Gain Info Parameter Data associated with the audio frame. This
	   metadata is in the form of the AVIAMFParamDefinition struct and contains
	   information defined in sections 3.6.1 and 3.8.3 of the Immersive Audio Model
	   and Formats standard.
	*/
	AVPktDataIamfReconGainInfoParam AVPacketSideDataType = C.AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM
	// AVPktDataAmbientViewingEnvironment wraps AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT.
	/*
	   Ambient viewing environment metadata, as defined by H.274. This metadata
	   should be associated with a video stream and contains data in the form
	   of the AVAmbientViewingEnvironment struct.
	*/
	AVPktDataAmbientViewingEnvironment AVPacketSideDataType = C.AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT
	// AVPktDataFrameCropping wraps AV_PKT_DATA_FRAME_CROPPING.
	/*
	   The number of pixels to discard from the top/bottom/left/right border of the
	   decoded frame to obtain the sub-rectangle intended for presentation.

	   @code
	   u32le crop_top
	   u32le crop_bottom
	   u32le crop_left
	   u32le crop_right
	   @endcode
	*/
	AVPktDataFrameCropping AVPacketSideDataType = C.AV_PKT_DATA_FRAME_CROPPING
	// AVPktDataLcevc wraps AV_PKT_DATA_LCEVC.
	/*
	   Raw LCEVC payload data, as a uint8_t array, with NAL emulation
	   bytes intact.
	*/
	AVPktDataLcevc AVPacketSideDataType = C.AV_PKT_DATA_LCEVC
	// AVPktData3DReferenceDisplays wraps AV_PKT_DATA_3D_REFERENCE_DISPLAYS.
	/*
	   This side data contains information about the reference display width(s)
	   and reference viewing distance(s) as well as information about the
	   corresponding reference stereo pair(s), i.e., the pair(s) of views to be
	   displayed for the viewer's left and right eyes on the reference display
	   at the reference viewing distance.
	   The payload is the AV3DReferenceDisplaysInfo struct defined in
	   libavutil/tdrdi.h.
	*/
	AVPktData3DReferenceDisplays AVPacketSideDataType = C.AV_PKT_DATA_3D_REFERENCE_DISPLAYS
	// AVPktDataRtcpSr wraps AV_PKT_DATA_RTCP_SR.
	/*
	   Contains the last received RTCP SR (Sender Report) information
	   in the form of the AVRTCPSenderReport struct.
	*/
	AVPktDataRtcpSr AVPacketSideDataType = C.AV_PKT_DATA_RTCP_SR
	// AVPktDataNb wraps AV_PKT_DATA_NB.
	/*
	   The number of side data types.
	   This is not part of the public API/ABI in the sense that it may
	   change when new side data types are added.
	   This must stay the last enum value.
	   If its value becomes huge, some code using it
	   needs to be updated as it assumes it to be smaller than other limits.
	*/
	AVPktDataNb AVPacketSideDataType = C.AV_PKT_DATA_NB
)

type AVPanScan

type AVPanScan struct {
	// contains filtered or unexported fields
}

AVPanScan wraps AVPanScan.

Pan Scan area.
This specifies the area which should be displayed.
Note there may be multiple such areas for one frame.

func (*AVPanScan) Height

func (s *AVPanScan) Height() int

Height gets the height field.

func (*AVPanScan) Id

func (s *AVPanScan) Id() int

Id gets the id field.

id
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVPanScan) RawPtr

func (s *AVPanScan) RawPtr() unsafe.Pointer

func (*AVPanScan) SetHeight

func (s *AVPanScan) SetHeight(value int)

SetHeight sets the height field.

func (*AVPanScan) SetId

func (s *AVPanScan) SetId(value int)

SetId sets the id field.

id
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVPanScan) SetWidth

func (s *AVPanScan) SetWidth(value int)

SetWidth sets the width field.

width and height in 1/16 pel
- encoding: Set by user.
- decoding: Set by libavcodec.

func (*AVPanScan) Width

func (s *AVPanScan) Width() int

Width gets the width field.

width and height in 1/16 pel
- encoding: Set by user.
- decoding: Set by libavcodec.

type AVPictureStructure

type AVPictureStructure C.enum_AVPictureStructure

AVPictureStructure wraps AVPictureStructure.

const (
	// AVPictureStructureUnknown wraps AV_PICTURE_STRUCTURE_UNKNOWN.
	//
	//	unknown
	AVPictureStructureUnknown AVPictureStructure = C.AV_PICTURE_STRUCTURE_UNKNOWN
	// AVPictureStructureTopField wraps AV_PICTURE_STRUCTURE_TOP_FIELD.
	//
	//	coded as top field
	AVPictureStructureTopField AVPictureStructure = C.AV_PICTURE_STRUCTURE_TOP_FIELD
	// AVPictureStructureBottomField wraps AV_PICTURE_STRUCTURE_BOTTOM_FIELD.
	//
	//	coded as bottom field
	AVPictureStructureBottomField AVPictureStructure = C.AV_PICTURE_STRUCTURE_BOTTOM_FIELD
	// AVPictureStructureFrame wraps AV_PICTURE_STRUCTURE_FRAME.
	//
	//	coded as frame
	AVPictureStructureFrame AVPictureStructure = C.AV_PICTURE_STRUCTURE_FRAME
)

type AVPictureType

type AVPictureType C.enum_AVPictureType

AVPictureType wraps AVPictureType.

const (
	// AVPictureTypeNone wraps AV_PICTURE_TYPE_NONE.
	//
	//	Undefined
	AVPictureTypeNone AVPictureType = C.AV_PICTURE_TYPE_NONE
	// AVPictureTypeI wraps AV_PICTURE_TYPE_I.
	//
	//	Intra
	AVPictureTypeI AVPictureType = C.AV_PICTURE_TYPE_I
	// AVPictureTypeP wraps AV_PICTURE_TYPE_P.
	//
	//	Predicted
	AVPictureTypeP AVPictureType = C.AV_PICTURE_TYPE_P
	// AVPictureTypeB wraps AV_PICTURE_TYPE_B.
	//
	//	Bi-dir predicted
	AVPictureTypeB AVPictureType = C.AV_PICTURE_TYPE_B
	// AVPictureTypeS wraps AV_PICTURE_TYPE_S.
	//
	//	S(GMC)-VOP MPEG-4
	AVPictureTypeS AVPictureType = C.AV_PICTURE_TYPE_S
	// AVPictureTypeSi wraps AV_PICTURE_TYPE_SI.
	//
	//	Switching Intra
	AVPictureTypeSi AVPictureType = C.AV_PICTURE_TYPE_SI
	// AVPictureTypeSp wraps AV_PICTURE_TYPE_SP.
	//
	//	Switching Predicted
	AVPictureTypeSp AVPictureType = C.AV_PICTURE_TYPE_SP
	// AVPictureTypeBi wraps AV_PICTURE_TYPE_BI.
	//
	//	BI type
	AVPictureTypeBi AVPictureType = C.AV_PICTURE_TYPE_BI
)

type AVPixFmtDescriptor

type AVPixFmtDescriptor struct {
	// contains filtered or unexported fields
}

AVPixFmtDescriptor wraps AVPixFmtDescriptor.

Descriptor that unambiguously describes how the bits of a pixel are
stored in the up to 4 data planes of an image. It also stores the
subsampling factors and number of components.

@note This is separate of the colorspace (RGB, YCbCr, YPbPr, JPEG-style YUV
      and all the YUV variants) AVPixFmtDescriptor just stores how values
      are stored not what these values represent.

func AVPixFmtDescGet

func AVPixFmtDescGet(pixFmt AVPixelFormat) *AVPixFmtDescriptor

AVPixFmtDescGet wraps av_pix_fmt_desc_get.

@return a pixel format descriptor for provided pixel format or NULL if
this pixel format is unknown.

func AVPixFmtDescNext

func AVPixFmtDescNext(prev *AVPixFmtDescriptor) *AVPixFmtDescriptor

AVPixFmtDescNext wraps av_pix_fmt_desc_next.

Iterate over all pixel format descriptors known to libavutil.

@param prev previous descriptor. NULL to get the first descriptor.

@return next descriptor or NULL after the last descriptor

func (*AVPixFmtDescriptor) Alias

func (s *AVPixFmtDescriptor) Alias() *CStr

Alias gets the alias field.

Alternative comma-separated names.

func (*AVPixFmtDescriptor) Flags

func (s *AVPixFmtDescriptor) Flags() uint64

Flags gets the flags field.

Combination of AV_PIX_FMT_FLAG_... flags.

func (*AVPixFmtDescriptor) Log2ChromaH

func (s *AVPixFmtDescriptor) Log2ChromaH() uint8

Log2ChromaH gets the log2_chroma_h field.

Amount to shift the luma height right to find the chroma height.
For YV12 this is 1 for example.
chroma_height= AV_CEIL_RSHIFT(luma_height, log2_chroma_h)
The note above is needed to ensure rounding up.
This value only refers to the chroma components.

func (*AVPixFmtDescriptor) Log2ChromaW

func (s *AVPixFmtDescriptor) Log2ChromaW() uint8

Log2ChromaW gets the log2_chroma_w field.

Amount to shift the luma width right to find the chroma width.
For YV12 this is 1 for example.
chroma_width = AV_CEIL_RSHIFT(luma_width, log2_chroma_w)
The note above is needed to ensure rounding up.
This value only refers to the chroma components.

func (*AVPixFmtDescriptor) Name

func (s *AVPixFmtDescriptor) Name() *CStr

Name gets the name field.

func (*AVPixFmtDescriptor) NbComponents

func (s *AVPixFmtDescriptor) NbComponents() uint8

NbComponents gets the nb_components field.

The number of components each pixel has, (1-4)

func (*AVPixFmtDescriptor) RawPtr

func (s *AVPixFmtDescriptor) RawPtr() unsafe.Pointer

func (*AVPixFmtDescriptor) SetAlias

func (s *AVPixFmtDescriptor) SetAlias(value *CStr)

SetAlias sets the alias field.

Alternative comma-separated names.

func (*AVPixFmtDescriptor) SetFlags

func (s *AVPixFmtDescriptor) SetFlags(value uint64)

SetFlags sets the flags field.

Combination of AV_PIX_FMT_FLAG_... flags.

func (*AVPixFmtDescriptor) SetLog2ChromaH

func (s *AVPixFmtDescriptor) SetLog2ChromaH(value uint8)

SetLog2ChromaH sets the log2_chroma_h field.

Amount to shift the luma height right to find the chroma height.
For YV12 this is 1 for example.
chroma_height= AV_CEIL_RSHIFT(luma_height, log2_chroma_h)
The note above is needed to ensure rounding up.
This value only refers to the chroma components.

func (*AVPixFmtDescriptor) SetLog2ChromaW

func (s *AVPixFmtDescriptor) SetLog2ChromaW(value uint8)

SetLog2ChromaW sets the log2_chroma_w field.

Amount to shift the luma width right to find the chroma width.
For YV12 this is 1 for example.
chroma_width = AV_CEIL_RSHIFT(luma_width, log2_chroma_w)
The note above is needed to ensure rounding up.
This value only refers to the chroma components.

func (*AVPixFmtDescriptor) SetName

func (s *AVPixFmtDescriptor) SetName(value *CStr)

SetName sets the name field.

func (*AVPixFmtDescriptor) SetNbComponents

func (s *AVPixFmtDescriptor) SetNbComponents(value uint8)

SetNbComponents sets the nb_components field.

The number of components each pixel has, (1-4)

type AVPixelFormat

type AVPixelFormat C.enum_AVPixelFormat

AVPixelFormat wraps AVPixelFormat.

Pixel format.

@note
AV_PIX_FMT_RGB32 is handled in an endian-specific manner. An RGBA
color is put together as:
 (A << 24) | (R << 16) | (G << 8) | B
This is stored as BGRA on little-endian CPU architectures and ARGB on
big-endian CPUs.

@note
If the resolution is not a multiple of the chroma subsampling factor
then the chroma plane resolution must be rounded up.

@par
When the pixel format is palettized RGB32 (AV_PIX_FMT_PAL8), the palettized
image data is stored in AVFrame.data[0]. The palette is transported in
AVFrame.data[1], is 1024 bytes long (256 4-byte entries) and is
formatted the same as in AV_PIX_FMT_RGB32 described above (i.e., it is
also endian-specific). Note also that the individual RGB32 palette
components stored in AVFrame.data[1] should be in the range 0..255.
This is important as many custom PAL8 video codecs that were designed
to run on the IBM VGA graphics adapter use 6-bit palette components.

@par
For all the 8 bits per pixel formats, an RGB32 palette is in data[1] like
for pal8. This palette is filled in automatically by the function
allocating the picture.
const (
	// AVPixFmtNone wraps AV_PIX_FMT_NONE.
	AVPixFmtNone AVPixelFormat = C.AV_PIX_FMT_NONE
	// AVPixFmtYuv420P wraps AV_PIX_FMT_YUV420P.
	//
	//	planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
	AVPixFmtYuv420P AVPixelFormat = C.AV_PIX_FMT_YUV420P
	// AVPixFmtYuyv422 wraps AV_PIX_FMT_YUYV422.
	//
	//	packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
	AVPixFmtYuyv422 AVPixelFormat = C.AV_PIX_FMT_YUYV422
	// AVPixFmtRgb24 wraps AV_PIX_FMT_RGB24.
	//
	//	packed RGB 8:8:8, 24bpp, RGBRGB...
	AVPixFmtRgb24 AVPixelFormat = C.AV_PIX_FMT_RGB24
	// AVPixFmtBgr24 wraps AV_PIX_FMT_BGR24.
	//
	//	packed RGB 8:8:8, 24bpp, BGRBGR...
	AVPixFmtBgr24 AVPixelFormat = C.AV_PIX_FMT_BGR24
	// AVPixFmtYuv422P wraps AV_PIX_FMT_YUV422P.
	//
	//	planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
	AVPixFmtYuv422P AVPixelFormat = C.AV_PIX_FMT_YUV422P
	// AVPixFmtYuv444P wraps AV_PIX_FMT_YUV444P.
	//
	//	planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
	AVPixFmtYuv444P AVPixelFormat = C.AV_PIX_FMT_YUV444P
	// AVPixFmtYuv410P wraps AV_PIX_FMT_YUV410P.
	//
	//	planar YUV 4:1:0,  9bpp, (1 Cr & Cb sample per 4x4 Y samples)
	AVPixFmtYuv410P AVPixelFormat = C.AV_PIX_FMT_YUV410P
	// AVPixFmtYuv411P wraps AV_PIX_FMT_YUV411P.
	//
	//	planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
	AVPixFmtYuv411P AVPixelFormat = C.AV_PIX_FMT_YUV411P
	// AVPixFmtGray8 wraps AV_PIX_FMT_GRAY8.
	//
	//	Y        ,  8bpp
	AVPixFmtGray8 AVPixelFormat = C.AV_PIX_FMT_GRAY8
	// AVPixFmtMonowhite wraps AV_PIX_FMT_MONOWHITE.
	//
	//	Y        ,  1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb
	AVPixFmtMonowhite AVPixelFormat = C.AV_PIX_FMT_MONOWHITE
	// AVPixFmtMonoblack wraps AV_PIX_FMT_MONOBLACK.
	//
	//	Y        ,  1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb
	AVPixFmtMonoblack AVPixelFormat = C.AV_PIX_FMT_MONOBLACK
	// AVPixFmtPal8 wraps AV_PIX_FMT_PAL8.
	//
	//	8 bits with AV_PIX_FMT_RGB32 palette
	AVPixFmtPal8 AVPixelFormat = C.AV_PIX_FMT_PAL8
	// AVPixFmtYuvj420P wraps 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
	AVPixFmtYuvj420P AVPixelFormat = C.AV_PIX_FMT_YUVJ420P
	// AVPixFmtYuvj422P wraps 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
	AVPixFmtYuvj422P AVPixelFormat = C.AV_PIX_FMT_YUVJ422P
	// AVPixFmtYuvj444P wraps 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
	AVPixFmtYuvj444P AVPixelFormat = C.AV_PIX_FMT_YUVJ444P
	// AVPixFmtUyvy422 wraps AV_PIX_FMT_UYVY422.
	//
	//	packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
	AVPixFmtUyvy422 AVPixelFormat = C.AV_PIX_FMT_UYVY422
	// AVPixFmtUyyvyy411 wraps AV_PIX_FMT_UYYVYY411.
	//
	//	packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
	AVPixFmtUyyvyy411 AVPixelFormat = C.AV_PIX_FMT_UYYVYY411
	// AVPixFmtBgr8 wraps AV_PIX_FMT_BGR8.
	//
	//	packed RGB 3:3:2,  8bpp, (msb)2B 3G 3R(lsb)
	AVPixFmtBgr8 AVPixelFormat = C.AV_PIX_FMT_BGR8
	// AVPixFmtBgr4 wraps 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
	AVPixFmtBgr4 AVPixelFormat = C.AV_PIX_FMT_BGR4
	// AVPixFmtBgr4Byte wraps AV_PIX_FMT_BGR4_BYTE.
	//
	//	packed RGB 1:2:1,  8bpp, (msb)1B 2G 1R(lsb)
	AVPixFmtBgr4Byte AVPixelFormat = C.AV_PIX_FMT_BGR4_BYTE
	// AVPixFmtRgb8 wraps AV_PIX_FMT_RGB8.
	//
	//	packed RGB 3:3:2,  8bpp, (msb)3R 3G 2B(lsb)
	AVPixFmtRgb8 AVPixelFormat = C.AV_PIX_FMT_RGB8
	// AVPixFmtRgb4 wraps 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
	AVPixFmtRgb4 AVPixelFormat = C.AV_PIX_FMT_RGB4
	// AVPixFmtRgb4Byte wraps AV_PIX_FMT_RGB4_BYTE.
	//
	//	packed RGB 1:2:1,  8bpp, (msb)1R 2G 1B(lsb)
	AVPixFmtRgb4Byte AVPixelFormat = C.AV_PIX_FMT_RGB4_BYTE
	// AVPixFmtNv12 wraps 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)
	AVPixFmtNv12 AVPixelFormat = C.AV_PIX_FMT_NV12
	// AVPixFmtNv21 wraps AV_PIX_FMT_NV21.
	//
	//	as above, but U and V bytes are swapped
	AVPixFmtNv21 AVPixelFormat = C.AV_PIX_FMT_NV21
	// AVPixFmtArgb wraps AV_PIX_FMT_ARGB.
	//
	//	packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
	AVPixFmtArgb AVPixelFormat = C.AV_PIX_FMT_ARGB
	// AVPixFmtRgba wraps AV_PIX_FMT_RGBA.
	//
	//	packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
	AVPixFmtRgba AVPixelFormat = C.AV_PIX_FMT_RGBA
	// AVPixFmtAbgr wraps AV_PIX_FMT_ABGR.
	//
	//	packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
	AVPixFmtAbgr AVPixelFormat = C.AV_PIX_FMT_ABGR
	// AVPixFmtBgra wraps AV_PIX_FMT_BGRA.
	//
	//	packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
	AVPixFmtBgra AVPixelFormat = C.AV_PIX_FMT_BGRA
	// AVPixFmtGray16Be wraps AV_PIX_FMT_GRAY16BE.
	//
	//	Y        , 16bpp, big-endian
	AVPixFmtGray16Be AVPixelFormat = C.AV_PIX_FMT_GRAY16BE
	// AVPixFmtGray16Le wraps AV_PIX_FMT_GRAY16LE.
	//
	//	Y        , 16bpp, little-endian
	AVPixFmtGray16Le AVPixelFormat = C.AV_PIX_FMT_GRAY16LE
	// AVPixFmtYuv440P wraps AV_PIX_FMT_YUV440P.
	//
	//	planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
	AVPixFmtYuv440P AVPixelFormat = C.AV_PIX_FMT_YUV440P
	// AVPixFmtYuvj440P wraps AV_PIX_FMT_YUVJ440P.
	//
	//	planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
	AVPixFmtYuvj440P AVPixelFormat = C.AV_PIX_FMT_YUVJ440P
	// AVPixFmtYuva420P wraps AV_PIX_FMT_YUVA420P.
	//
	//	planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
	AVPixFmtYuva420P AVPixelFormat = C.AV_PIX_FMT_YUVA420P
	// AVPixFmtRgb48Be wraps 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
	AVPixFmtRgb48Be AVPixelFormat = C.AV_PIX_FMT_RGB48BE
	// AVPixFmtRgb48Le wraps 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
	AVPixFmtRgb48Le AVPixelFormat = C.AV_PIX_FMT_RGB48LE
	// AVPixFmtRgb565Be wraps AV_PIX_FMT_RGB565BE.
	//
	//	packed RGB 5:6:5, 16bpp, (msb)   5R 6G 5B(lsb), big-endian
	AVPixFmtRgb565Be AVPixelFormat = C.AV_PIX_FMT_RGB565BE
	// AVPixFmtRgb565Le wraps AV_PIX_FMT_RGB565LE.
	//
	//	packed RGB 5:6:5, 16bpp, (msb)   5R 6G 5B(lsb), little-endian
	AVPixFmtRgb565Le AVPixelFormat = C.AV_PIX_FMT_RGB565LE
	// AVPixFmtRgb555Be wraps AV_PIX_FMT_RGB555BE.
	//
	//	packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian   , X=unused/undefined
	AVPixFmtRgb555Be AVPixelFormat = C.AV_PIX_FMT_RGB555BE
	// AVPixFmtRgb555Le wraps AV_PIX_FMT_RGB555LE.
	//
	//	packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined
	AVPixFmtRgb555Le AVPixelFormat = C.AV_PIX_FMT_RGB555LE
	// AVPixFmtBgr565Be wraps AV_PIX_FMT_BGR565BE.
	//
	//	packed BGR 5:6:5, 16bpp, (msb)   5B 6G 5R(lsb), big-endian
	AVPixFmtBgr565Be AVPixelFormat = C.AV_PIX_FMT_BGR565BE
	// AVPixFmtBgr565Le wraps AV_PIX_FMT_BGR565LE.
	//
	//	packed BGR 5:6:5, 16bpp, (msb)   5B 6G 5R(lsb), little-endian
	AVPixFmtBgr565Le AVPixelFormat = C.AV_PIX_FMT_BGR565LE
	// AVPixFmtBgr555Be wraps AV_PIX_FMT_BGR555BE.
	//
	//	packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian   , X=unused/undefined
	AVPixFmtBgr555Be AVPixelFormat = C.AV_PIX_FMT_BGR555BE
	// AVPixFmtBgr555Le wraps AV_PIX_FMT_BGR555LE.
	//
	//	packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined
	AVPixFmtBgr555Le AVPixelFormat = C.AV_PIX_FMT_BGR555LE
	// AVPixFmtVaapi wraps AV_PIX_FMT_VAAPI.
	/*
	   Hardware acceleration through VA-API, data[3] contains a
	   VASurfaceID.
	*/
	AVPixFmtVaapi AVPixelFormat = C.AV_PIX_FMT_VAAPI
	// AVPixFmtYuv420P16Le wraps AV_PIX_FMT_YUV420P16LE.
	//
	//	planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
	AVPixFmtYuv420P16Le AVPixelFormat = C.AV_PIX_FMT_YUV420P16LE
	// AVPixFmtYuv420P16Be wraps AV_PIX_FMT_YUV420P16BE.
	//
	//	planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
	AVPixFmtYuv420P16Be AVPixelFormat = C.AV_PIX_FMT_YUV420P16BE
	// AVPixFmtYuv422P16Le wraps AV_PIX_FMT_YUV422P16LE.
	//
	//	planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtYuv422P16Le AVPixelFormat = C.AV_PIX_FMT_YUV422P16LE
	// AVPixFmtYuv422P16Be wraps AV_PIX_FMT_YUV422P16BE.
	//
	//	planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtYuv422P16Be AVPixelFormat = C.AV_PIX_FMT_YUV422P16BE
	// AVPixFmtYuv444P16Le wraps AV_PIX_FMT_YUV444P16LE.
	//
	//	planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
	AVPixFmtYuv444P16Le AVPixelFormat = C.AV_PIX_FMT_YUV444P16LE
	// AVPixFmtYuv444P16Be wraps AV_PIX_FMT_YUV444P16BE.
	//
	//	planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
	AVPixFmtYuv444P16Be AVPixelFormat = C.AV_PIX_FMT_YUV444P16BE
	// AVPixFmtDxva2Vld wraps AV_PIX_FMT_DXVA2_VLD.
	//
	//	HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer
	AVPixFmtDxva2Vld AVPixelFormat = C.AV_PIX_FMT_DXVA2_VLD
	// AVPixFmtRgb444Le wraps AV_PIX_FMT_RGB444LE.
	//
	//	packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined
	AVPixFmtRgb444Le AVPixelFormat = C.AV_PIX_FMT_RGB444LE
	// AVPixFmtRgb444Be wraps AV_PIX_FMT_RGB444BE.
	//
	//	packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian,    X=unused/undefined
	AVPixFmtRgb444Be AVPixelFormat = C.AV_PIX_FMT_RGB444BE
	// AVPixFmtBgr444Le wraps AV_PIX_FMT_BGR444LE.
	//
	//	packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined
	AVPixFmtBgr444Le AVPixelFormat = C.AV_PIX_FMT_BGR444LE
	// AVPixFmtBgr444Be wraps AV_PIX_FMT_BGR444BE.
	//
	//	packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian,    X=unused/undefined
	AVPixFmtBgr444Be AVPixelFormat = C.AV_PIX_FMT_BGR444BE
	// AVPixFmtYa8 wraps AV_PIX_FMT_YA8.
	//
	//	8 bits gray, 8 bits alpha
	AVPixFmtYa8 AVPixelFormat = C.AV_PIX_FMT_YA8
	// AVPixFmtY400A wraps AV_PIX_FMT_Y400A.
	//
	//	alias for AV_PIX_FMT_YA8
	AVPixFmtY400A AVPixelFormat = C.AV_PIX_FMT_Y400A
	// AVPixFmtGray8A wraps AV_PIX_FMT_GRAY8A.
	//
	//	alias for AV_PIX_FMT_YA8
	AVPixFmtGray8A AVPixelFormat = C.AV_PIX_FMT_GRAY8A
	// AVPixFmtBgr48Be wraps 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
	AVPixFmtBgr48Be AVPixelFormat = C.AV_PIX_FMT_BGR48BE
	// AVPixFmtBgr48Le wraps 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
	AVPixFmtBgr48Le AVPixelFormat = C.AV_PIX_FMT_BGR48LE
	// AVPixFmtYuv420P9Be wraps AV_PIX_FMT_YUV420P9BE.
	//
	//	planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
	AVPixFmtYuv420P9Be AVPixelFormat = C.AV_PIX_FMT_YUV420P9BE
	// AVPixFmtYuv420P9Le wraps AV_PIX_FMT_YUV420P9LE.
	//
	//	planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
	AVPixFmtYuv420P9Le AVPixelFormat = C.AV_PIX_FMT_YUV420P9LE
	// AVPixFmtYuv420P10Be wraps AV_PIX_FMT_YUV420P10BE.
	//
	//	planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
	AVPixFmtYuv420P10Be AVPixelFormat = C.AV_PIX_FMT_YUV420P10BE
	// AVPixFmtYuv420P10Le wraps AV_PIX_FMT_YUV420P10LE.
	//
	//	planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
	AVPixFmtYuv420P10Le AVPixelFormat = C.AV_PIX_FMT_YUV420P10LE
	// AVPixFmtYuv422P10Be wraps AV_PIX_FMT_YUV422P10BE.
	//
	//	planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtYuv422P10Be AVPixelFormat = C.AV_PIX_FMT_YUV422P10BE
	// AVPixFmtYuv422P10Le wraps AV_PIX_FMT_YUV422P10LE.
	//
	//	planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtYuv422P10Le AVPixelFormat = C.AV_PIX_FMT_YUV422P10LE
	// AVPixFmtYuv444P9Be wraps AV_PIX_FMT_YUV444P9BE.
	//
	//	planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
	AVPixFmtYuv444P9Be AVPixelFormat = C.AV_PIX_FMT_YUV444P9BE
	// AVPixFmtYuv444P9Le wraps AV_PIX_FMT_YUV444P9LE.
	//
	//	planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
	AVPixFmtYuv444P9Le AVPixelFormat = C.AV_PIX_FMT_YUV444P9LE
	// AVPixFmtYuv444P10Be wraps AV_PIX_FMT_YUV444P10BE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
	AVPixFmtYuv444P10Be AVPixelFormat = C.AV_PIX_FMT_YUV444P10BE
	// AVPixFmtYuv444P10Le wraps AV_PIX_FMT_YUV444P10LE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
	AVPixFmtYuv444P10Le AVPixelFormat = C.AV_PIX_FMT_YUV444P10LE
	// AVPixFmtYuv422P9Be wraps AV_PIX_FMT_YUV422P9BE.
	//
	//	planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtYuv422P9Be AVPixelFormat = C.AV_PIX_FMT_YUV422P9BE
	// AVPixFmtYuv422P9Le wraps AV_PIX_FMT_YUV422P9LE.
	//
	//	planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtYuv422P9Le AVPixelFormat = C.AV_PIX_FMT_YUV422P9LE
	// AVPixFmtGbrp wraps AV_PIX_FMT_GBRP.
	//
	//	planar GBR 4:4:4 24bpp
	AVPixFmtGbrp AVPixelFormat = C.AV_PIX_FMT_GBRP
	// AVPixFmtGbr24P wraps AV_PIX_FMT_GBR24P.
	//
	//	alias for #AV_PIX_FMT_GBRP
	AVPixFmtGbr24P AVPixelFormat = C.AV_PIX_FMT_GBR24P
	// AVPixFmtGbrp9Be wraps AV_PIX_FMT_GBRP9BE.
	//
	//	planar GBR 4:4:4 27bpp, big-endian
	AVPixFmtGbrp9Be AVPixelFormat = C.AV_PIX_FMT_GBRP9BE
	// AVPixFmtGbrp9Le wraps AV_PIX_FMT_GBRP9LE.
	//
	//	planar GBR 4:4:4 27bpp, little-endian
	AVPixFmtGbrp9Le AVPixelFormat = C.AV_PIX_FMT_GBRP9LE
	// AVPixFmtGbrp10Be wraps AV_PIX_FMT_GBRP10BE.
	//
	//	planar GBR 4:4:4 30bpp, big-endian
	AVPixFmtGbrp10Be AVPixelFormat = C.AV_PIX_FMT_GBRP10BE
	// AVPixFmtGbrp10Le wraps AV_PIX_FMT_GBRP10LE.
	//
	//	planar GBR 4:4:4 30bpp, little-endian
	AVPixFmtGbrp10Le AVPixelFormat = C.AV_PIX_FMT_GBRP10LE
	// AVPixFmtGbrp16Be wraps AV_PIX_FMT_GBRP16BE.
	//
	//	planar GBR 4:4:4 48bpp, big-endian
	AVPixFmtGbrp16Be AVPixelFormat = C.AV_PIX_FMT_GBRP16BE
	// AVPixFmtGbrp16Le wraps AV_PIX_FMT_GBRP16LE.
	//
	//	planar GBR 4:4:4 48bpp, little-endian
	AVPixFmtGbrp16Le AVPixelFormat = C.AV_PIX_FMT_GBRP16LE
	// AVPixFmtYuva422P wraps AV_PIX_FMT_YUVA422P.
	//
	//	planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
	AVPixFmtYuva422P AVPixelFormat = C.AV_PIX_FMT_YUVA422P
	// AVPixFmtYuva444P wraps AV_PIX_FMT_YUVA444P.
	//
	//	planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
	AVPixFmtYuva444P AVPixelFormat = C.AV_PIX_FMT_YUVA444P
	// AVPixFmtYuva420P9Be wraps AV_PIX_FMT_YUVA420P9BE.
	//
	//	planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), big-endian
	AVPixFmtYuva420P9Be AVPixelFormat = C.AV_PIX_FMT_YUVA420P9BE
	// AVPixFmtYuva420P9Le wraps AV_PIX_FMT_YUVA420P9LE.
	//
	//	planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), little-endian
	AVPixFmtYuva420P9Le AVPixelFormat = C.AV_PIX_FMT_YUVA420P9LE
	// AVPixFmtYuva422P9Be wraps AV_PIX_FMT_YUVA422P9BE.
	//
	//	planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), big-endian
	AVPixFmtYuva422P9Be AVPixelFormat = C.AV_PIX_FMT_YUVA422P9BE
	// AVPixFmtYuva422P9Le wraps AV_PIX_FMT_YUVA422P9LE.
	//
	//	planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), little-endian
	AVPixFmtYuva422P9Le AVPixelFormat = C.AV_PIX_FMT_YUVA422P9LE
	// AVPixFmtYuva444P9Be wraps AV_PIX_FMT_YUVA444P9BE.
	//
	//	planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), big-endian
	AVPixFmtYuva444P9Be AVPixelFormat = C.AV_PIX_FMT_YUVA444P9BE
	// AVPixFmtYuva444P9Le wraps AV_PIX_FMT_YUVA444P9LE.
	//
	//	planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), little-endian
	AVPixFmtYuva444P9Le AVPixelFormat = C.AV_PIX_FMT_YUVA444P9LE
	// AVPixFmtYuva420P10Be wraps AV_PIX_FMT_YUVA420P10BE.
	//
	//	planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
	AVPixFmtYuva420P10Be AVPixelFormat = C.AV_PIX_FMT_YUVA420P10BE
	// AVPixFmtYuva420P10Le wraps AV_PIX_FMT_YUVA420P10LE.
	//
	//	planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
	AVPixFmtYuva420P10Le AVPixelFormat = C.AV_PIX_FMT_YUVA420P10LE
	// AVPixFmtYuva422P10Be wraps AV_PIX_FMT_YUVA422P10BE.
	//
	//	planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
	AVPixFmtYuva422P10Be AVPixelFormat = C.AV_PIX_FMT_YUVA422P10BE
	// AVPixFmtYuva422P10Le wraps AV_PIX_FMT_YUVA422P10LE.
	//
	//	planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
	AVPixFmtYuva422P10Le AVPixelFormat = C.AV_PIX_FMT_YUVA422P10LE
	// AVPixFmtYuva444P10Be wraps AV_PIX_FMT_YUVA444P10BE.
	//
	//	planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
	AVPixFmtYuva444P10Be AVPixelFormat = C.AV_PIX_FMT_YUVA444P10BE
	// AVPixFmtYuva444P10Le wraps AV_PIX_FMT_YUVA444P10LE.
	//
	//	planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
	AVPixFmtYuva444P10Le AVPixelFormat = C.AV_PIX_FMT_YUVA444P10LE
	// AVPixFmtYuva420P16Be wraps AV_PIX_FMT_YUVA420P16BE.
	//
	//	planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
	AVPixFmtYuva420P16Be AVPixelFormat = C.AV_PIX_FMT_YUVA420P16BE
	// AVPixFmtYuva420P16Le wraps AV_PIX_FMT_YUVA420P16LE.
	//
	//	planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
	AVPixFmtYuva420P16Le AVPixelFormat = C.AV_PIX_FMT_YUVA420P16LE
	// AVPixFmtYuva422P16Be wraps AV_PIX_FMT_YUVA422P16BE.
	//
	//	planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
	AVPixFmtYuva422P16Be AVPixelFormat = C.AV_PIX_FMT_YUVA422P16BE
	// AVPixFmtYuva422P16Le wraps AV_PIX_FMT_YUVA422P16LE.
	//
	//	planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
	AVPixFmtYuva422P16Le AVPixelFormat = C.AV_PIX_FMT_YUVA422P16LE
	// AVPixFmtYuva444P16Be wraps AV_PIX_FMT_YUVA444P16BE.
	//
	//	planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
	AVPixFmtYuva444P16Be AVPixelFormat = C.AV_PIX_FMT_YUVA444P16BE
	// AVPixFmtYuva444P16Le wraps AV_PIX_FMT_YUVA444P16LE.
	//
	//	planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
	AVPixFmtYuva444P16Le AVPixelFormat = C.AV_PIX_FMT_YUVA444P16LE
	// AVPixFmtVdpau wraps AV_PIX_FMT_VDPAU.
	//
	//	HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface
	AVPixFmtVdpau AVPixelFormat = C.AV_PIX_FMT_VDPAU
	// AVPixFmtXyz12Le wraps 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
	AVPixFmtXyz12Le AVPixelFormat = C.AV_PIX_FMT_XYZ12LE
	// AVPixFmtXyz12Be wraps 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
	AVPixFmtXyz12Be AVPixelFormat = C.AV_PIX_FMT_XYZ12BE
	// AVPixFmtNv16 wraps AV_PIX_FMT_NV16.
	//
	//	interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
	AVPixFmtNv16 AVPixelFormat = C.AV_PIX_FMT_NV16
	// AVPixFmtNv20Le wraps AV_PIX_FMT_NV20LE.
	//
	//	interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtNv20Le AVPixelFormat = C.AV_PIX_FMT_NV20LE
	// AVPixFmtNv20Be wraps AV_PIX_FMT_NV20BE.
	//
	//	interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtNv20Be AVPixelFormat = C.AV_PIX_FMT_NV20BE
	// AVPixFmtRgba64Be wraps 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
	AVPixFmtRgba64Be AVPixelFormat = C.AV_PIX_FMT_RGBA64BE
	// AVPixFmtRgba64Le wraps 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
	AVPixFmtRgba64Le AVPixelFormat = C.AV_PIX_FMT_RGBA64LE
	// AVPixFmtBgra64Be wraps 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
	AVPixFmtBgra64Be AVPixelFormat = C.AV_PIX_FMT_BGRA64BE
	// AVPixFmtBgra64Le wraps 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
	AVPixFmtBgra64Le AVPixelFormat = C.AV_PIX_FMT_BGRA64LE
	// AVPixFmtYvyu422 wraps AV_PIX_FMT_YVYU422.
	//
	//	packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
	AVPixFmtYvyu422 AVPixelFormat = C.AV_PIX_FMT_YVYU422
	// AVPixFmtYa16Be wraps AV_PIX_FMT_YA16BE.
	//
	//	16 bits gray, 16 bits alpha (big-endian)
	AVPixFmtYa16Be AVPixelFormat = C.AV_PIX_FMT_YA16BE
	// AVPixFmtYa16Le wraps AV_PIX_FMT_YA16LE.
	//
	//	16 bits gray, 16 bits alpha (little-endian)
	AVPixFmtYa16Le AVPixelFormat = C.AV_PIX_FMT_YA16LE
	// AVPixFmtGbrap wraps AV_PIX_FMT_GBRAP.
	//
	//	planar GBRA 4:4:4:4 32bpp
	AVPixFmtGbrap AVPixelFormat = C.AV_PIX_FMT_GBRAP
	// AVPixFmtGbrap16Be wraps AV_PIX_FMT_GBRAP16BE.
	//
	//	planar GBRA 4:4:4:4 64bpp, big-endian
	AVPixFmtGbrap16Be AVPixelFormat = C.AV_PIX_FMT_GBRAP16BE
	// AVPixFmtGbrap16Le wraps AV_PIX_FMT_GBRAP16LE.
	//
	//	planar GBRA 4:4:4:4 64bpp, little-endian
	AVPixFmtGbrap16Le AVPixelFormat = C.AV_PIX_FMT_GBRAP16LE
	// AVPixFmtQsv wraps AV_PIX_FMT_QSV.
	/*
	   HW acceleration through QSV, data[3] contains a pointer to the
	   mfxFrameSurface1 structure.

	   Before FFmpeg 5.0:
	   mfxFrameSurface1.Data.MemId contains a pointer when importing
	   the following frames as QSV frames:

	   VAAPI:
	   mfxFrameSurface1.Data.MemId contains a pointer to VASurfaceID

	   DXVA2:
	   mfxFrameSurface1.Data.MemId contains a pointer to IDirect3DSurface9

	   FFmpeg 5.0 and above:
	   mfxFrameSurface1.Data.MemId contains a pointer to the mfxHDLPair
	   structure when importing the following frames as QSV frames:

	   VAAPI:
	   mfxHDLPair.first contains a VASurfaceID pointer.
	   mfxHDLPair.second is always MFX_INFINITE.

	   DXVA2:
	   mfxHDLPair.first contains IDirect3DSurface9 pointer.
	   mfxHDLPair.second is always MFX_INFINITE.

	   D3D11:
	   mfxHDLPair.first contains a ID3D11Texture2D pointer.
	   mfxHDLPair.second contains the texture array index of the frame if the
	   ID3D11Texture2D is an array texture, or always MFX_INFINITE if it is a
	   normal texture.
	*/
	AVPixFmtQsv AVPixelFormat = C.AV_PIX_FMT_QSV
	// AVPixFmtMmal wraps AV_PIX_FMT_MMAL.
	/*
	   HW acceleration though MMAL, data[3] contains a pointer to the
	   MMAL_BUFFER_HEADER_T structure.
	*/
	AVPixFmtMmal AVPixelFormat = C.AV_PIX_FMT_MMAL
	// AVPixFmtD3D11VaVld wraps AV_PIX_FMT_D3D11VA_VLD.
	//
	//	HW decoding through Direct3D11 via old API, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer
	AVPixFmtD3D11VaVld AVPixelFormat = C.AV_PIX_FMT_D3D11VA_VLD
	// AVPixFmtCuda wraps AV_PIX_FMT_CUDA.
	/*
	   HW acceleration through CUDA. data[i] contain CUdeviceptr pointers
	   exactly as for system memory frames.
	*/
	AVPixFmtCuda AVPixelFormat = C.AV_PIX_FMT_CUDA
	// AVPixFmt0Rgb wraps AV_PIX_FMT_0RGB.
	//
	//	packed RGB 8:8:8, 32bpp, XRGBXRGB...   X=unused/undefined
	AVPixFmt0Rgb AVPixelFormat = C.AV_PIX_FMT_0RGB
	// AVPixFmtRgb0 wraps AV_PIX_FMT_RGB0.
	//
	//	packed RGB 8:8:8, 32bpp, RGBXRGBX...   X=unused/undefined
	AVPixFmtRgb0 AVPixelFormat = C.AV_PIX_FMT_RGB0
	// AVPixFmt0Bgr wraps AV_PIX_FMT_0BGR.
	//
	//	packed BGR 8:8:8, 32bpp, XBGRXBGR...   X=unused/undefined
	AVPixFmt0Bgr AVPixelFormat = C.AV_PIX_FMT_0BGR
	// AVPixFmtBgr0 wraps AV_PIX_FMT_BGR0.
	//
	//	packed BGR 8:8:8, 32bpp, BGRXBGRX...   X=unused/undefined
	AVPixFmtBgr0 AVPixelFormat = C.AV_PIX_FMT_BGR0
	// AVPixFmtYuv420P12Be wraps AV_PIX_FMT_YUV420P12BE.
	//
	//	planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
	AVPixFmtYuv420P12Be AVPixelFormat = C.AV_PIX_FMT_YUV420P12BE
	// AVPixFmtYuv420P12Le wraps AV_PIX_FMT_YUV420P12LE.
	//
	//	planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
	AVPixFmtYuv420P12Le AVPixelFormat = C.AV_PIX_FMT_YUV420P12LE
	// AVPixFmtYuv420P14Be wraps AV_PIX_FMT_YUV420P14BE.
	//
	//	planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
	AVPixFmtYuv420P14Be AVPixelFormat = C.AV_PIX_FMT_YUV420P14BE
	// AVPixFmtYuv420P14Le wraps AV_PIX_FMT_YUV420P14LE.
	//
	//	planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
	AVPixFmtYuv420P14Le AVPixelFormat = C.AV_PIX_FMT_YUV420P14LE
	// AVPixFmtYuv422P12Be wraps AV_PIX_FMT_YUV422P12BE.
	//
	//	planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtYuv422P12Be AVPixelFormat = C.AV_PIX_FMT_YUV422P12BE
	// AVPixFmtYuv422P12Le wraps AV_PIX_FMT_YUV422P12LE.
	//
	//	planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtYuv422P12Le AVPixelFormat = C.AV_PIX_FMT_YUV422P12LE
	// AVPixFmtYuv422P14Be wraps AV_PIX_FMT_YUV422P14BE.
	//
	//	planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
	AVPixFmtYuv422P14Be AVPixelFormat = C.AV_PIX_FMT_YUV422P14BE
	// AVPixFmtYuv422P14Le wraps AV_PIX_FMT_YUV422P14LE.
	//
	//	planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
	AVPixFmtYuv422P14Le AVPixelFormat = C.AV_PIX_FMT_YUV422P14LE
	// AVPixFmtYuv444P12Be wraps AV_PIX_FMT_YUV444P12BE.
	//
	//	planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
	AVPixFmtYuv444P12Be AVPixelFormat = C.AV_PIX_FMT_YUV444P12BE
	// AVPixFmtYuv444P12Le wraps AV_PIX_FMT_YUV444P12LE.
	//
	//	planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
	AVPixFmtYuv444P12Le AVPixelFormat = C.AV_PIX_FMT_YUV444P12LE
	// AVPixFmtYuv444P14Be wraps AV_PIX_FMT_YUV444P14BE.
	//
	//	planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
	AVPixFmtYuv444P14Be AVPixelFormat = C.AV_PIX_FMT_YUV444P14BE
	// AVPixFmtYuv444P14Le wraps AV_PIX_FMT_YUV444P14LE.
	//
	//	planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
	AVPixFmtYuv444P14Le AVPixelFormat = C.AV_PIX_FMT_YUV444P14LE
	// AVPixFmtGbrp12Be wraps AV_PIX_FMT_GBRP12BE.
	//
	//	planar GBR 4:4:4 36bpp, big-endian
	AVPixFmtGbrp12Be AVPixelFormat = C.AV_PIX_FMT_GBRP12BE
	// AVPixFmtGbrp12Le wraps AV_PIX_FMT_GBRP12LE.
	//
	//	planar GBR 4:4:4 36bpp, little-endian
	AVPixFmtGbrp12Le AVPixelFormat = C.AV_PIX_FMT_GBRP12LE
	// AVPixFmtGbrp14Be wraps AV_PIX_FMT_GBRP14BE.
	//
	//	planar GBR 4:4:4 42bpp, big-endian
	AVPixFmtGbrp14Be AVPixelFormat = C.AV_PIX_FMT_GBRP14BE
	// AVPixFmtGbrp14Le wraps AV_PIX_FMT_GBRP14LE.
	//
	//	planar GBR 4:4:4 42bpp, little-endian
	AVPixFmtGbrp14Le AVPixelFormat = C.AV_PIX_FMT_GBRP14LE
	// AVPixFmtYuvj411P wraps 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
	AVPixFmtYuvj411P AVPixelFormat = C.AV_PIX_FMT_YUVJ411P
	// AVPixFmtBayerBggr8 wraps AV_PIX_FMT_BAYER_BGGR8.
	//
	//	bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples
	AVPixFmtBayerBggr8 AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR8
	// AVPixFmtBayerRggb8 wraps AV_PIX_FMT_BAYER_RGGB8.
	//
	//	bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples
	AVPixFmtBayerRggb8 AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB8
	// AVPixFmtBayerGbrg8 wraps AV_PIX_FMT_BAYER_GBRG8.
	//
	//	bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples
	AVPixFmtBayerGbrg8 AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG8
	// AVPixFmtBayerGrbg8 wraps AV_PIX_FMT_BAYER_GRBG8.
	//
	//	bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples
	AVPixFmtBayerGrbg8 AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG8
	// AVPixFmtBayerBggr16Le wraps AV_PIX_FMT_BAYER_BGGR16LE.
	//
	//	bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian
	AVPixFmtBayerBggr16Le AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR16LE
	// AVPixFmtBayerBggr16Be wraps AV_PIX_FMT_BAYER_BGGR16BE.
	//
	//	bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian
	AVPixFmtBayerBggr16Be AVPixelFormat = C.AV_PIX_FMT_BAYER_BGGR16BE
	// AVPixFmtBayerRggb16Le wraps AV_PIX_FMT_BAYER_RGGB16LE.
	//
	//	bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian
	AVPixFmtBayerRggb16Le AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB16LE
	// AVPixFmtBayerRggb16Be wraps AV_PIX_FMT_BAYER_RGGB16BE.
	//
	//	bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian
	AVPixFmtBayerRggb16Be AVPixelFormat = C.AV_PIX_FMT_BAYER_RGGB16BE
	// AVPixFmtBayerGbrg16Le wraps AV_PIX_FMT_BAYER_GBRG16LE.
	//
	//	bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian
	AVPixFmtBayerGbrg16Le AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG16LE
	// AVPixFmtBayerGbrg16Be wraps AV_PIX_FMT_BAYER_GBRG16BE.
	//
	//	bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian
	AVPixFmtBayerGbrg16Be AVPixelFormat = C.AV_PIX_FMT_BAYER_GBRG16BE
	// AVPixFmtBayerGrbg16Le wraps AV_PIX_FMT_BAYER_GRBG16LE.
	//
	//	bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian
	AVPixFmtBayerGrbg16Le AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG16LE
	// AVPixFmtBayerGrbg16Be wraps AV_PIX_FMT_BAYER_GRBG16BE.
	//
	//	bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian
	AVPixFmtBayerGrbg16Be AVPixelFormat = C.AV_PIX_FMT_BAYER_GRBG16BE
	// AVPixFmtYuv440P10Le wraps AV_PIX_FMT_YUV440P10LE.
	//
	//	planar YUV 4:4:0,20bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian
	AVPixFmtYuv440P10Le AVPixelFormat = C.AV_PIX_FMT_YUV440P10LE
	// AVPixFmtYuv440P10Be wraps AV_PIX_FMT_YUV440P10BE.
	//
	//	planar YUV 4:4:0,20bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian
	AVPixFmtYuv440P10Be AVPixelFormat = C.AV_PIX_FMT_YUV440P10BE
	// AVPixFmtYuv440P12Le wraps AV_PIX_FMT_YUV440P12LE.
	//
	//	planar YUV 4:4:0,24bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian
	AVPixFmtYuv440P12Le AVPixelFormat = C.AV_PIX_FMT_YUV440P12LE
	// AVPixFmtYuv440P12Be wraps AV_PIX_FMT_YUV440P12BE.
	//
	//	planar YUV 4:4:0,24bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian
	AVPixFmtYuv440P12Be AVPixelFormat = C.AV_PIX_FMT_YUV440P12BE
	// AVPixFmtAyuv64Le wraps AV_PIX_FMT_AYUV64LE.
	//
	//	packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), little-endian
	AVPixFmtAyuv64Le AVPixelFormat = C.AV_PIX_FMT_AYUV64LE
	// AVPixFmtAyuv64Be wraps AV_PIX_FMT_AYUV64BE.
	//
	//	packed AYUV 4:4:4,64bpp (1 Cr & Cb sample per 1x1 Y & A samples), big-endian
	AVPixFmtAyuv64Be AVPixelFormat = C.AV_PIX_FMT_AYUV64BE
	// AVPixFmtVideotoolbox wraps AV_PIX_FMT_VIDEOTOOLBOX.
	//
	//	hardware decoding through Videotoolbox
	AVPixFmtVideotoolbox AVPixelFormat = C.AV_PIX_FMT_VIDEOTOOLBOX
	// AVPixFmtP010Le wraps AV_PIX_FMT_P010LE.
	//
	//	like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, little-endian
	AVPixFmtP010Le AVPixelFormat = C.AV_PIX_FMT_P010LE
	// AVPixFmtP010Be wraps AV_PIX_FMT_P010BE.
	//
	//	like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, big-endian
	AVPixFmtP010Be AVPixelFormat = C.AV_PIX_FMT_P010BE
	// AVPixFmtGbrap12Be wraps AV_PIX_FMT_GBRAP12BE.
	//
	//	planar GBR 4:4:4:4 48bpp, big-endian
	AVPixFmtGbrap12Be AVPixelFormat = C.AV_PIX_FMT_GBRAP12BE
	// AVPixFmtGbrap12Le wraps AV_PIX_FMT_GBRAP12LE.
	//
	//	planar GBR 4:4:4:4 48bpp, little-endian
	AVPixFmtGbrap12Le AVPixelFormat = C.AV_PIX_FMT_GBRAP12LE
	// AVPixFmtGbrap10Be wraps AV_PIX_FMT_GBRAP10BE.
	//
	//	planar GBR 4:4:4:4 40bpp, big-endian
	AVPixFmtGbrap10Be AVPixelFormat = C.AV_PIX_FMT_GBRAP10BE
	// AVPixFmtGbrap10Le wraps AV_PIX_FMT_GBRAP10LE.
	//
	//	planar GBR 4:4:4:4 40bpp, little-endian
	AVPixFmtGbrap10Le AVPixelFormat = C.AV_PIX_FMT_GBRAP10LE
	// AVPixFmtMediacodec wraps AV_PIX_FMT_MEDIACODEC.
	//
	//	hardware decoding through MediaCodec
	AVPixFmtMediacodec AVPixelFormat = C.AV_PIX_FMT_MEDIACODEC
	// AVPixFmtGray12Be wraps AV_PIX_FMT_GRAY12BE.
	//
	//	Y        , 12bpp, big-endian
	AVPixFmtGray12Be AVPixelFormat = C.AV_PIX_FMT_GRAY12BE
	// AVPixFmtGray12Le wraps AV_PIX_FMT_GRAY12LE.
	//
	//	Y        , 12bpp, little-endian
	AVPixFmtGray12Le AVPixelFormat = C.AV_PIX_FMT_GRAY12LE
	// AVPixFmtGray10Be wraps AV_PIX_FMT_GRAY10BE.
	//
	//	Y        , 10bpp, big-endian
	AVPixFmtGray10Be AVPixelFormat = C.AV_PIX_FMT_GRAY10BE
	// AVPixFmtGray10Le wraps AV_PIX_FMT_GRAY10LE.
	//
	//	Y        , 10bpp, little-endian
	AVPixFmtGray10Le AVPixelFormat = C.AV_PIX_FMT_GRAY10LE
	// AVPixFmtP016Le wraps AV_PIX_FMT_P016LE.
	//
	//	like NV12, with 16bpp per component, little-endian
	AVPixFmtP016Le AVPixelFormat = C.AV_PIX_FMT_P016LE
	// AVPixFmtP016Be wraps AV_PIX_FMT_P016BE.
	//
	//	like NV12, with 16bpp per component, big-endian
	AVPixFmtP016Be AVPixelFormat = C.AV_PIX_FMT_P016BE
	// AVPixFmtD3D11 wraps AV_PIX_FMT_D3D11.
	/*
	   Hardware surfaces for Direct3D11.

	   This is preferred over the legacy AV_PIX_FMT_D3D11VA_VLD. The new D3D11
	   hwaccel API and filtering support AV_PIX_FMT_D3D11 only.

	   data[0] contains a ID3D11Texture2D pointer, and data[1] contains the
	   texture array index of the frame as intptr_t if the ID3D11Texture2D is
	   an array texture (or always 0 if it's a normal texture).
	*/
	AVPixFmtD3D11 AVPixelFormat = C.AV_PIX_FMT_D3D11
	// AVPixFmtGray9Be wraps AV_PIX_FMT_GRAY9BE.
	//
	//	Y        , 9bpp, big-endian
	AVPixFmtGray9Be AVPixelFormat = C.AV_PIX_FMT_GRAY9BE
	// AVPixFmtGray9Le wraps AV_PIX_FMT_GRAY9LE.
	//
	//	Y        , 9bpp, little-endian
	AVPixFmtGray9Le AVPixelFormat = C.AV_PIX_FMT_GRAY9LE
	// AVPixFmtGbrpf32Be wraps AV_PIX_FMT_GBRPF32BE.
	//
	//	IEEE-754 single precision planar GBR 4:4:4,     96bpp, big-endian
	AVPixFmtGbrpf32Be AVPixelFormat = C.AV_PIX_FMT_GBRPF32BE
	// AVPixFmtGbrpf32Le wraps AV_PIX_FMT_GBRPF32LE.
	//
	//	IEEE-754 single precision planar GBR 4:4:4,     96bpp, little-endian
	AVPixFmtGbrpf32Le AVPixelFormat = C.AV_PIX_FMT_GBRPF32LE
	// AVPixFmtGbrapf32Be wraps AV_PIX_FMT_GBRAPF32BE.
	//
	//	IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, big-endian
	AVPixFmtGbrapf32Be AVPixelFormat = C.AV_PIX_FMT_GBRAPF32BE
	// AVPixFmtGbrapf32Le wraps AV_PIX_FMT_GBRAPF32LE.
	//
	//	IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, little-endian
	AVPixFmtGbrapf32Le AVPixelFormat = C.AV_PIX_FMT_GBRAPF32LE
	// AVPixFmtDrmPrime wraps AV_PIX_FMT_DRM_PRIME.
	/*
	   DRM-managed buffers exposed through PRIME buffer sharing.

	   data[0] points to an AVDRMFrameDescriptor.
	*/
	AVPixFmtDrmPrime AVPixelFormat = C.AV_PIX_FMT_DRM_PRIME
	// AVPixFmtOpencl wraps AV_PIX_FMT_OPENCL.
	/*
	   Hardware surfaces for OpenCL.

	   data[i] contain 2D image objects (typed in C as cl_mem, used
	   in OpenCL as image2d_t) for each plane of the surface.
	*/
	AVPixFmtOpencl AVPixelFormat = C.AV_PIX_FMT_OPENCL
	// AVPixFmtGray14Be wraps AV_PIX_FMT_GRAY14BE.
	//
	//	Y        , 14bpp, big-endian
	AVPixFmtGray14Be AVPixelFormat = C.AV_PIX_FMT_GRAY14BE
	// AVPixFmtGray14Le wraps AV_PIX_FMT_GRAY14LE.
	//
	//	Y        , 14bpp, little-endian
	AVPixFmtGray14Le AVPixelFormat = C.AV_PIX_FMT_GRAY14LE
	// AVPixFmtGrayf32Be wraps AV_PIX_FMT_GRAYF32BE.
	//
	//	IEEE-754 single precision Y, 32bpp, big-endian
	AVPixFmtGrayf32Be AVPixelFormat = C.AV_PIX_FMT_GRAYF32BE
	// AVPixFmtGrayf32Le wraps AV_PIX_FMT_GRAYF32LE.
	//
	//	IEEE-754 single precision Y, 32bpp, little-endian
	AVPixFmtGrayf32Le AVPixelFormat = C.AV_PIX_FMT_GRAYF32LE
	// AVPixFmtYuva422P12Be wraps AV_PIX_FMT_YUVA422P12BE.
	//
	//	planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, big-endian
	AVPixFmtYuva422P12Be AVPixelFormat = C.AV_PIX_FMT_YUVA422P12BE
	// AVPixFmtYuva422P12Le wraps AV_PIX_FMT_YUVA422P12LE.
	//
	//	planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, little-endian
	AVPixFmtYuva422P12Le AVPixelFormat = C.AV_PIX_FMT_YUVA422P12LE
	// AVPixFmtYuva444P12Be wraps AV_PIX_FMT_YUVA444P12BE.
	//
	//	planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, big-endian
	AVPixFmtYuva444P12Be AVPixelFormat = C.AV_PIX_FMT_YUVA444P12BE
	// AVPixFmtYuva444P12Le wraps AV_PIX_FMT_YUVA444P12LE.
	//
	//	planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, little-endian
	AVPixFmtYuva444P12Le AVPixelFormat = C.AV_PIX_FMT_YUVA444P12LE
	// AVPixFmtNv24 wraps 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)
	AVPixFmtNv24 AVPixelFormat = C.AV_PIX_FMT_NV24
	// AVPixFmtNv42 wraps AV_PIX_FMT_NV42.
	//
	//	as above, but U and V bytes are swapped
	AVPixFmtNv42 AVPixelFormat = C.AV_PIX_FMT_NV42
	// AVPixFmtVulkan wraps AV_PIX_FMT_VULKAN.
	/*
	   Vulkan hardware images.

	   data[0] points to an AVVkFrame
	*/
	AVPixFmtVulkan AVPixelFormat = C.AV_PIX_FMT_VULKAN
	// AVPixFmtY210Be wraps AV_PIX_FMT_Y210BE.
	//
	//	packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, big-endian
	AVPixFmtY210Be AVPixelFormat = C.AV_PIX_FMT_Y210BE
	// AVPixFmtY210Le wraps AV_PIX_FMT_Y210LE.
	//
	//	packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, little-endian
	AVPixFmtY210Le AVPixelFormat = C.AV_PIX_FMT_Y210LE
	// AVPixFmtX2Rgb10Le wraps AV_PIX_FMT_X2RGB10LE.
	//
	//	packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), little-endian, X=unused/undefined
	AVPixFmtX2Rgb10Le AVPixelFormat = C.AV_PIX_FMT_X2RGB10LE
	// AVPixFmtX2Rgb10Be wraps AV_PIX_FMT_X2RGB10BE.
	//
	//	packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), big-endian, X=unused/undefined
	AVPixFmtX2Rgb10Be AVPixelFormat = C.AV_PIX_FMT_X2RGB10BE
	// AVPixFmtX2Bgr10Le wraps AV_PIX_FMT_X2BGR10LE.
	//
	//	packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), little-endian, X=unused/undefined
	AVPixFmtX2Bgr10Le AVPixelFormat = C.AV_PIX_FMT_X2BGR10LE
	// AVPixFmtX2Bgr10Be wraps AV_PIX_FMT_X2BGR10BE.
	//
	//	packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), big-endian, X=unused/undefined
	AVPixFmtX2Bgr10Be AVPixelFormat = C.AV_PIX_FMT_X2BGR10BE
	// AVPixFmtP210Be wraps AV_PIX_FMT_P210BE.
	//
	//	interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, big-endian
	AVPixFmtP210Be AVPixelFormat = C.AV_PIX_FMT_P210BE
	// AVPixFmtP210Le wraps AV_PIX_FMT_P210LE.
	//
	//	interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, little-endian
	AVPixFmtP210Le AVPixelFormat = C.AV_PIX_FMT_P210LE
	// AVPixFmtP410Be wraps AV_PIX_FMT_P410BE.
	//
	//	interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, big-endian
	AVPixFmtP410Be AVPixelFormat = C.AV_PIX_FMT_P410BE
	// AVPixFmtP410Le wraps AV_PIX_FMT_P410LE.
	//
	//	interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, little-endian
	AVPixFmtP410Le AVPixelFormat = C.AV_PIX_FMT_P410LE
	// AVPixFmtP216Be wraps AV_PIX_FMT_P216BE.
	//
	//	interleaved chroma YUV 4:2:2, 32bpp, big-endian
	AVPixFmtP216Be AVPixelFormat = C.AV_PIX_FMT_P216BE
	// AVPixFmtP216Le wraps AV_PIX_FMT_P216LE.
	//
	//	interleaved chroma YUV 4:2:2, 32bpp, little-endian
	AVPixFmtP216Le AVPixelFormat = C.AV_PIX_FMT_P216LE
	// AVPixFmtP416Be wraps AV_PIX_FMT_P416BE.
	//
	//	interleaved chroma YUV 4:4:4, 48bpp, big-endian
	AVPixFmtP416Be AVPixelFormat = C.AV_PIX_FMT_P416BE
	// AVPixFmtP416Le wraps AV_PIX_FMT_P416LE.
	//
	//	interleaved chroma YUV 4:4:4, 48bpp, little-endian
	AVPixFmtP416Le AVPixelFormat = C.AV_PIX_FMT_P416LE
	// AVPixFmtVuya wraps AV_PIX_FMT_VUYA.
	//
	//	packed VUYA 4:4:4:4, 32bpp (1 Cr & Cb sample per 1x1 Y & A samples), VUYAVUYA...
	AVPixFmtVuya AVPixelFormat = C.AV_PIX_FMT_VUYA
	// AVPixFmtRgbaf16Be wraps AV_PIX_FMT_RGBAF16BE.
	//
	//	IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., big-endian
	AVPixFmtRgbaf16Be AVPixelFormat = C.AV_PIX_FMT_RGBAF16BE
	// AVPixFmtRgbaf16Le wraps AV_PIX_FMT_RGBAF16LE.
	//
	//	IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., little-endian
	AVPixFmtRgbaf16Le AVPixelFormat = C.AV_PIX_FMT_RGBAF16LE
	// AVPixFmtVuyx wraps AV_PIX_FMT_VUYX.
	//
	//	packed VUYX 4:4:4:4, 32bpp, Variant of VUYA where alpha channel is left undefined
	AVPixFmtVuyx AVPixelFormat = C.AV_PIX_FMT_VUYX
	// AVPixFmtP012Le wraps AV_PIX_FMT_P012LE.
	//
	//	like NV12, with 12bpp per component, data in the high bits, zeros in the low bits, little-endian
	AVPixFmtP012Le AVPixelFormat = C.AV_PIX_FMT_P012LE
	// AVPixFmtP012Be wraps AV_PIX_FMT_P012BE.
	//
	//	like NV12, with 12bpp per component, data in the high bits, zeros in the low bits, big-endian
	AVPixFmtP012Be AVPixelFormat = C.AV_PIX_FMT_P012BE
	// AVPixFmtY212Be wraps AV_PIX_FMT_Y212BE.
	//
	//	packed YUV 4:2:2 like YUYV422, 24bpp, data in the high bits, zeros in the low bits, big-endian
	AVPixFmtY212Be AVPixelFormat = C.AV_PIX_FMT_Y212BE
	// AVPixFmtY212Le wraps AV_PIX_FMT_Y212LE.
	//
	//	packed YUV 4:2:2 like YUYV422, 24bpp, data in the high bits, zeros in the low bits, little-endian
	AVPixFmtY212Le AVPixelFormat = C.AV_PIX_FMT_Y212LE
	// AVPixFmtXv30Be wraps AV_PIX_FMT_XV30BE.
	//
	//	packed XVYU 4:4:4, 32bpp, (msb)2X 10V 10Y 10U(lsb), big-endian, variant of Y410 where alpha channel is left undefined
	AVPixFmtXv30Be AVPixelFormat = C.AV_PIX_FMT_XV30BE
	// AVPixFmtXv30Le wraps AV_PIX_FMT_XV30LE.
	//
	//	packed XVYU 4:4:4, 32bpp, (msb)2X 10V 10Y 10U(lsb), little-endian, variant of Y410 where alpha channel is left undefined
	AVPixFmtXv30Le AVPixelFormat = C.AV_PIX_FMT_XV30LE
	// AVPixFmtXv36Be wraps AV_PIX_FMT_XV36BE.
	//
	//	packed XVYU 4:4:4, 48bpp, data in the high bits, zeros in the low bits, big-endian, variant of Y412 where alpha channel is left undefined
	AVPixFmtXv36Be AVPixelFormat = C.AV_PIX_FMT_XV36BE
	// AVPixFmtXv36Le wraps AV_PIX_FMT_XV36LE.
	//
	//	packed XVYU 4:4:4, 48bpp, data in the high bits, zeros in the low bits, little-endian, variant of Y412 where alpha channel is left undefined
	AVPixFmtXv36Le AVPixelFormat = C.AV_PIX_FMT_XV36LE
	// AVPixFmtRgbf32Be wraps AV_PIX_FMT_RGBF32BE.
	//
	//	IEEE-754 single precision packed RGB 32:32:32, 96bpp, RGBRGB..., big-endian
	AVPixFmtRgbf32Be AVPixelFormat = C.AV_PIX_FMT_RGBF32BE
	// AVPixFmtRgbf32Le wraps AV_PIX_FMT_RGBF32LE.
	//
	//	IEEE-754 single precision packed RGB 32:32:32, 96bpp, RGBRGB..., little-endian
	AVPixFmtRgbf32Le AVPixelFormat = C.AV_PIX_FMT_RGBF32LE
	// AVPixFmtRgbaf32Be wraps AV_PIX_FMT_RGBAF32BE.
	//
	//	IEEE-754 single precision packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., big-endian
	AVPixFmtRgbaf32Be AVPixelFormat = C.AV_PIX_FMT_RGBAF32BE
	// AVPixFmtRgbaf32Le wraps AV_PIX_FMT_RGBAF32LE.
	//
	//	IEEE-754 single precision packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., little-endian
	AVPixFmtRgbaf32Le AVPixelFormat = C.AV_PIX_FMT_RGBAF32LE
	// AVPixFmtP212Be wraps AV_PIX_FMT_P212BE.
	//
	//	interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, big-endian
	AVPixFmtP212Be AVPixelFormat = C.AV_PIX_FMT_P212BE
	// AVPixFmtP212Le wraps AV_PIX_FMT_P212LE.
	//
	//	interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, little-endian
	AVPixFmtP212Le AVPixelFormat = C.AV_PIX_FMT_P212LE
	// AVPixFmtP412Be wraps AV_PIX_FMT_P412BE.
	//
	//	interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, big-endian
	AVPixFmtP412Be AVPixelFormat = C.AV_PIX_FMT_P412BE
	// AVPixFmtP412Le wraps AV_PIX_FMT_P412LE.
	//
	//	interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, little-endian
	AVPixFmtP412Le AVPixelFormat = C.AV_PIX_FMT_P412LE
	// AVPixFmtGbrap14Be wraps AV_PIX_FMT_GBRAP14BE.
	//
	//	planar GBR 4:4:4:4 56bpp, big-endian
	AVPixFmtGbrap14Be AVPixelFormat = C.AV_PIX_FMT_GBRAP14BE
	// AVPixFmtGbrap14Le wraps AV_PIX_FMT_GBRAP14LE.
	//
	//	planar GBR 4:4:4:4 56bpp, little-endian
	AVPixFmtGbrap14Le AVPixelFormat = C.AV_PIX_FMT_GBRAP14LE
	// AVPixFmtD3D12 wraps AV_PIX_FMT_D3D12.
	/*
	   Hardware surfaces for Direct3D 12.

	   data[0] points to an AVD3D12VAFrame
	*/
	AVPixFmtD3D12 AVPixelFormat = C.AV_PIX_FMT_D3D12
	// AVPixFmtAyuv wraps AV_PIX_FMT_AYUV.
	//
	//	packed AYUV 4:4:4:4, 32bpp (1 Cr & Cb sample per 1x1 Y & A samples), AYUVAYUV...
	AVPixFmtAyuv AVPixelFormat = C.AV_PIX_FMT_AYUV
	// AVPixFmtUyva wraps AV_PIX_FMT_UYVA.
	//
	//	packed UYVA 4:4:4:4, 32bpp (1 Cr & Cb sample per 1x1 Y & A samples), UYVAUYVA...
	AVPixFmtUyva AVPixelFormat = C.AV_PIX_FMT_UYVA
	// AVPixFmtVyu444 wraps AV_PIX_FMT_VYU444.
	//
	//	packed VYU 4:4:4, 24bpp (1 Cr & Cb sample per 1x1 Y), VYUVYU...
	AVPixFmtVyu444 AVPixelFormat = C.AV_PIX_FMT_VYU444
	// AVPixFmtV30Xbe wraps AV_PIX_FMT_V30XBE.
	//
	//	packed VYUX 4:4:4 like XV30, 32bpp, (msb)10V 10Y 10U 2X(lsb), big-endian
	AVPixFmtV30Xbe AVPixelFormat = C.AV_PIX_FMT_V30XBE
	// AVPixFmtV30Xle wraps AV_PIX_FMT_V30XLE.
	//
	//	packed VYUX 4:4:4 like XV30, 32bpp, (msb)10V 10Y 10U 2X(lsb), little-endian
	AVPixFmtV30Xle AVPixelFormat = C.AV_PIX_FMT_V30XLE
	// AVPixFmtRgbf16Be wraps AV_PIX_FMT_RGBF16BE.
	//
	//	IEEE-754 half precision packed RGB 16:16:16, 48bpp, RGBRGB..., big-endian
	AVPixFmtRgbf16Be AVPixelFormat = C.AV_PIX_FMT_RGBF16BE
	// AVPixFmtRgbf16Le wraps AV_PIX_FMT_RGBF16LE.
	//
	//	IEEE-754 half precision packed RGB 16:16:16, 48bpp, RGBRGB..., little-endian
	AVPixFmtRgbf16Le AVPixelFormat = C.AV_PIX_FMT_RGBF16LE
	// AVPixFmtRgba128Be wraps AV_PIX_FMT_RGBA128BE.
	//
	//	packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., big-endian
	AVPixFmtRgba128Be AVPixelFormat = C.AV_PIX_FMT_RGBA128BE
	// AVPixFmtRgba128Le wraps AV_PIX_FMT_RGBA128LE.
	//
	//	packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., little-endian
	AVPixFmtRgba128Le AVPixelFormat = C.AV_PIX_FMT_RGBA128LE
	// AVPixFmtRgb96Be wraps AV_PIX_FMT_RGB96BE.
	//
	//	packed RGBA 32:32:32, 96bpp, RGBRGB..., big-endian
	AVPixFmtRgb96Be AVPixelFormat = C.AV_PIX_FMT_RGB96BE
	// AVPixFmtRgb96Le wraps AV_PIX_FMT_RGB96LE.
	//
	//	packed RGBA 32:32:32, 96bpp, RGBRGB..., little-endian
	AVPixFmtRgb96Le AVPixelFormat = C.AV_PIX_FMT_RGB96LE
	// AVPixFmtY216Be wraps AV_PIX_FMT_Y216BE.
	//
	//	packed YUV 4:2:2 like YUYV422, 32bpp, big-endian
	AVPixFmtY216Be AVPixelFormat = C.AV_PIX_FMT_Y216BE
	// AVPixFmtY216Le wraps AV_PIX_FMT_Y216LE.
	//
	//	packed YUV 4:2:2 like YUYV422, 32bpp, little-endian
	AVPixFmtY216Le AVPixelFormat = C.AV_PIX_FMT_Y216LE
	// AVPixFmtXv48Be wraps AV_PIX_FMT_XV48BE.
	//
	//	packed XVYU 4:4:4, 64bpp, big-endian, variant of Y416 where alpha channel is left undefined
	AVPixFmtXv48Be AVPixelFormat = C.AV_PIX_FMT_XV48BE
	// AVPixFmtXv48Le wraps AV_PIX_FMT_XV48LE.
	//
	//	packed XVYU 4:4:4, 64bpp, little-endian, variant of Y416 where alpha channel is left undefined
	AVPixFmtXv48Le AVPixelFormat = C.AV_PIX_FMT_XV48LE
	// AVPixFmtGbrpf16Be wraps AV_PIX_FMT_GBRPF16BE.
	//
	//	IEEE-754 half precision planer GBR 4:4:4, 48bpp, big-endian
	AVPixFmtGbrpf16Be AVPixelFormat = C.AV_PIX_FMT_GBRPF16BE
	// AVPixFmtGbrpf16Le wraps AV_PIX_FMT_GBRPF16LE.
	//
	//	IEEE-754 half precision planer GBR 4:4:4, 48bpp, little-endian
	AVPixFmtGbrpf16Le AVPixelFormat = C.AV_PIX_FMT_GBRPF16LE
	// AVPixFmtGbrapf16Be wraps AV_PIX_FMT_GBRAPF16BE.
	//
	//	IEEE-754 half precision planar GBRA 4:4:4:4, 64bpp, big-endian
	AVPixFmtGbrapf16Be AVPixelFormat = C.AV_PIX_FMT_GBRAPF16BE
	// AVPixFmtGbrapf16Le wraps AV_PIX_FMT_GBRAPF16LE.
	//
	//	IEEE-754 half precision planar GBRA 4:4:4:4, 64bpp, little-endian
	AVPixFmtGbrapf16Le AVPixelFormat = C.AV_PIX_FMT_GBRAPF16LE
	// AVPixFmtGrayf16Be wraps AV_PIX_FMT_GRAYF16BE.
	//
	//	IEEE-754 half precision Y, 16bpp, big-endian
	AVPixFmtGrayf16Be AVPixelFormat = C.AV_PIX_FMT_GRAYF16BE
	// AVPixFmtGrayf16Le wraps AV_PIX_FMT_GRAYF16LE.
	//
	//	IEEE-754 half precision Y, 16bpp, little-endian
	AVPixFmtGrayf16Le AVPixelFormat = C.AV_PIX_FMT_GRAYF16LE
	// AVPixFmtAmfSurface wraps AV_PIX_FMT_AMF_SURFACE.
	//
	//	HW acceleration through AMF. data[0] contain AMFSurface pointer
	AVPixFmtAmfSurface AVPixelFormat = C.AV_PIX_FMT_AMF_SURFACE
	// AVPixFmtGray32Be wraps AV_PIX_FMT_GRAY32BE.
	//
	//	Y        , 32bpp, big-endian
	AVPixFmtGray32Be AVPixelFormat = C.AV_PIX_FMT_GRAY32BE
	// AVPixFmtGray32Le wraps AV_PIX_FMT_GRAY32LE.
	//
	//	Y        , 32bpp, little-endian
	AVPixFmtGray32Le AVPixelFormat = C.AV_PIX_FMT_GRAY32LE
	// AVPixFmtYaf32Be wraps AV_PIX_FMT_YAF32BE.
	//
	//	IEEE-754 single precision packed YA, 32 bits gray, 32 bits alpha, 64bpp, big-endian
	AVPixFmtYaf32Be AVPixelFormat = C.AV_PIX_FMT_YAF32BE
	// AVPixFmtYaf32Le wraps AV_PIX_FMT_YAF32LE.
	//
	//	IEEE-754 single precision packed YA, 32 bits gray, 32 bits alpha, 64bpp, little-endian
	AVPixFmtYaf32Le AVPixelFormat = C.AV_PIX_FMT_YAF32LE
	// AVPixFmtYaf16Be wraps AV_PIX_FMT_YAF16BE.
	//
	//	IEEE-754 half precision packed YA, 16 bits gray, 16 bits alpha, 32bpp, big-endian
	AVPixFmtYaf16Be AVPixelFormat = C.AV_PIX_FMT_YAF16BE
	// AVPixFmtYaf16Le wraps AV_PIX_FMT_YAF16LE.
	//
	//	IEEE-754 half precision packed YA, 16 bits gray, 16 bits alpha, 32bpp, little-endian
	AVPixFmtYaf16Le AVPixelFormat = C.AV_PIX_FMT_YAF16LE
	// AVPixFmtGbrap32Be wraps AV_PIX_FMT_GBRAP32BE.
	//
	//	planar GBRA 4:4:4:4 128bpp, big-endian
	AVPixFmtGbrap32Be AVPixelFormat = C.AV_PIX_FMT_GBRAP32BE
	// AVPixFmtGbrap32Le wraps AV_PIX_FMT_GBRAP32LE.
	//
	//	planar GBRA 4:4:4:4 128bpp, little-endian
	AVPixFmtGbrap32Le AVPixelFormat = C.AV_PIX_FMT_GBRAP32LE
	// AVPixFmtYuv444P10Msbbe wraps AV_PIX_FMT_YUV444P10MSBBE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), lowest bits zero, big-endian
	AVPixFmtYuv444P10Msbbe AVPixelFormat = C.AV_PIX_FMT_YUV444P10MSBBE
	// AVPixFmtYuv444P10Msble wraps AV_PIX_FMT_YUV444P10MSBLE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), lowest bits zero, little-endian
	AVPixFmtYuv444P10Msble AVPixelFormat = C.AV_PIX_FMT_YUV444P10MSBLE
	// AVPixFmtYuv444P12Msbbe wraps AV_PIX_FMT_YUV444P12MSBBE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), lowest bits zero, big-endian
	AVPixFmtYuv444P12Msbbe AVPixelFormat = C.AV_PIX_FMT_YUV444P12MSBBE
	// AVPixFmtYuv444P12Msble wraps AV_PIX_FMT_YUV444P12MSBLE.
	//
	//	planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), lowest bits zero, little-endian
	AVPixFmtYuv444P12Msble AVPixelFormat = C.AV_PIX_FMT_YUV444P12MSBLE
	// AVPixFmtGbrp10Msbbe wraps AV_PIX_FMT_GBRP10MSBBE.
	//
	//	planar GBR 4:4:4 30bpp, lowest bits zero, big-endian
	AVPixFmtGbrp10Msbbe AVPixelFormat = C.AV_PIX_FMT_GBRP10MSBBE
	// AVPixFmtGbrp10Msble wraps AV_PIX_FMT_GBRP10MSBLE.
	//
	//	planar GBR 4:4:4 30bpp, lowest bits zero, little-endian
	AVPixFmtGbrp10Msble AVPixelFormat = C.AV_PIX_FMT_GBRP10MSBLE
	// AVPixFmtGbrp12Msbbe wraps AV_PIX_FMT_GBRP12MSBBE.
	//
	//	planar GBR 4:4:4 36bpp, lowest bits zero, big-endian
	AVPixFmtGbrp12Msbbe AVPixelFormat = C.AV_PIX_FMT_GBRP12MSBBE
	// AVPixFmtGbrp12Msble wraps AV_PIX_FMT_GBRP12MSBLE.
	//
	//	planar GBR 4:4:4 36bpp, lowest bits zero, little-endian
	AVPixFmtGbrp12Msble AVPixelFormat = C.AV_PIX_FMT_GBRP12MSBLE
	// AVPixFmtOhcodec wraps AV_PIX_FMT_OHCODEC.
	AVPixFmtOhcodec AVPixelFormat = C.AV_PIX_FMT_OHCODEC
	// AVPixFmtNb wraps AV_PIX_FMT_NB.
	//
	//	number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
	AVPixFmtNb AVPixelFormat = C.AV_PIX_FMT_NB
)

func AVCodecDefaultGetFormat

func AVCodecDefaultGetFormat(s *AVCodecContext, fmt *AVPixelFormat) AVPixelFormat

AVCodecDefaultGetFormat wraps avcodec_default_get_format.

func AVCodecFindBestPixFmtOfList

func AVCodecFindBestPixFmtOfList(pixFmtList *AVPixelFormat, srcPixFmt AVPixelFormat, hasAlpha int, lossPtr *int) AVPixelFormat

AVCodecFindBestPixFmtOfList wraps avcodec_find_best_pix_fmt_of_list.

Find the best pixel format to convert to given a certain source pixel
format.  When converting from one pixel format to another, information loss
may occur.  For example, when converting from RGB24 to GRAY, the color
information will be lost. Similarly, other losses occur when converting from
some formats to other formats. avcodec_find_best_pix_fmt_of_2() searches which of
the given pixel formats should be used to suffer the least amount of loss.
The pixel formats from which it chooses one, are determined by the
pix_fmt_list parameter.

@param[in] pix_fmt_list AV_PIX_FMT_NONE terminated array of pixel formats to choose from
@param[in] src_pix_fmt source pixel format
@param[in] has_alpha Whether the source pixel format alpha channel is used.
@param[out] loss_ptr Combination of flags informing you what kind of losses will occur.
@return The best pixel format to convert to or -1 if none was found.

func AVFindBestPixFmtOf2

func AVFindBestPixFmtOf2(dstPixFmt1 AVPixelFormat, dstPixFmt2 AVPixelFormat, srcPixFmt AVPixelFormat, hasAlpha int, lossPtr *int) AVPixelFormat

AVFindBestPixFmtOf2 wraps av_find_best_pix_fmt_of_2.

Compute what kind of losses will occur when converting from one specific
pixel format to another.
When converting from one pixel format to another, information loss may occur.
For example, when converting from RGB24 to GRAY, the color information will
be lost. Similarly, other losses occur when converting from some formats to
other formats. These losses can involve loss of chroma, but also loss of
resolution, loss of color depth, loss due to the color space conversion, loss
of the alpha bits or loss due to color quantization.
av_get_fix_fmt_loss() informs you about the various types of losses
which will occur when converting from one pixel format to another.

@param[in] dst_pix_fmt destination pixel format
@param[in] src_pix_fmt source pixel format
@param[in] has_alpha Whether the source pixel format alpha channel is used.
@return Combination of flags informing you what kind of losses will occur
(maximum loss for an invalid dst_pix_fmt).

func AVGetPixFmt

func AVGetPixFmt(name *CStr) AVPixelFormat

AVGetPixFmt wraps av_get_pix_fmt.

Return the pixel format corresponding to name.

If there is no pixel format with name name, then looks for a
pixel format with the name corresponding to the native endian
format of name.
For example in a little-endian system, first looks for "gray16",
then for "gray16le".

Finally if no pixel format has been found, returns AV_PIX_FMT_NONE.

func AVPixFmtDescGetId

func AVPixFmtDescGetId(desc *AVPixFmtDescriptor) AVPixelFormat

AVPixFmtDescGetId wraps av_pix_fmt_desc_get_id.

@return an AVPixelFormat id described by desc, or AV_PIX_FMT_NONE if desc
is not a valid pointer to a pixel format descriptor.

func AVPixFmtSwapEndianness

func AVPixFmtSwapEndianness(pixFmt AVPixelFormat) AVPixelFormat

AVPixFmtSwapEndianness wraps av_pix_fmt_swap_endianness.

Utility function to swap the endianness of a pixel format.

@param[in]  pix_fmt the pixel format

@return pixel format with swapped endianness if it exists,
otherwise AV_PIX_FMT_NONE

type AVPixelutilsSadFn

type AVPixelutilsSadFn unsafe.Pointer

AVPixelutilsSadFn is a function pointer typedef for av_pixelutils_sad_fn.

func AVPixelutilsGetSadFn

func AVPixelutilsGetSadFn(wBits int, hBits int, aligned int, logCtx unsafe.Pointer) AVPixelutilsSadFn

AVPixelutilsGetSadFn wraps av_pixelutils_get_sad_fn.

Get a potentially optimized pointer to a Sum-of-absolute-differences
function (see the av_pixelutils_sad_fn prototype).

@param w_bits  1<<w_bits is the requested width of the block size
@param h_bits  1<<h_bits is the requested height of the block size
@param aligned If set to 2, the returned sad function will assume src1 and
               src2 addresses are aligned on the block size.
               If set to 1, the returned sad function will assume src1 is
               aligned on the block size.
               If set to 0, the returned sad function assume no particular
               alignment.
@param log_ctx context used for logging, can be NULL

@return a pointer to the SAD function or NULL in case of error (because of
        invalid parameters)

type AVPrimaryCoefficients

type AVPrimaryCoefficients struct {
	// contains filtered or unexported fields
}

AVPrimaryCoefficients wraps AVPrimaryCoefficients.

Struct defining the red, green, and blue primary locations in terms of CIE
1931 chromaticity x and y.

func (*AVPrimaryCoefficients) B

B gets the b field.

func (*AVPrimaryCoefficients) G

G gets the g field.

func (*AVPrimaryCoefficients) R

R gets the r field.

func (*AVPrimaryCoefficients) RawPtr

func (s *AVPrimaryCoefficients) RawPtr() unsafe.Pointer

type AVProbeData

type AVProbeData struct {
	// contains filtered or unexported fields
}

AVProbeData wraps AVProbeData.

This structure contains the data a format has to probe a file.

func (*AVProbeData) BufSize

func (s *AVProbeData) BufSize() int

BufSize gets the buf_size field.

Size of buf except extra allocated bytes

func (*AVProbeData) Filename

func (s *AVProbeData) Filename() *CStr

Filename gets the filename field.

func (*AVProbeData) MimeType

func (s *AVProbeData) MimeType() *CStr

MimeType gets the mime_type field.

mime_type, when known.

func (*AVProbeData) RawPtr

func (s *AVProbeData) RawPtr() unsafe.Pointer

func (*AVProbeData) SetBufSize

func (s *AVProbeData) SetBufSize(value int)

SetBufSize sets the buf_size field.

Size of buf except extra allocated bytes

func (*AVProbeData) SetFilename

func (s *AVProbeData) SetFilename(value *CStr)

SetFilename sets the filename field.

func (*AVProbeData) SetMimeType

func (s *AVProbeData) SetMimeType(value *CStr)

SetMimeType sets the mime_type field.

mime_type, when known.

type AVProducerReferenceTime

type AVProducerReferenceTime struct {
	// contains filtered or unexported fields
}

AVProducerReferenceTime wraps AVProducerReferenceTime.

This structure supplies correlation between a packet timestamp and a wall clock
production time. The definition follows the Producer Reference Time ('prft')
as defined in ISO/IEC 14496-12

func (*AVProducerReferenceTime) Flags

func (s *AVProducerReferenceTime) Flags() int

Flags gets the flags field.

func (*AVProducerReferenceTime) RawPtr

func (*AVProducerReferenceTime) SetFlags

func (s *AVProducerReferenceTime) SetFlags(value int)

SetFlags sets the flags field.

func (*AVProducerReferenceTime) SetWallclock

func (s *AVProducerReferenceTime) SetWallclock(value int64)

SetWallclock sets the wallclock field.

A UTC timestamp, in microseconds, since Unix epoch (e.g, av_gettime()).

func (*AVProducerReferenceTime) Wallclock

func (s *AVProducerReferenceTime) Wallclock() int64

Wallclock gets the wallclock field.

A UTC timestamp, in microseconds, since Unix epoch (e.g, av_gettime()).

type AVProfile

type AVProfile struct {
	// contains filtered or unexported fields
}

AVProfile wraps AVProfile.

AVProfile.

func (*AVProfile) Name

func (s *AVProfile) Name() *CStr

Name gets the name field.

short name for the profile

func (*AVProfile) Profile

func (s *AVProfile) Profile() int

Profile gets the profile field.

func (*AVProfile) RawPtr

func (s *AVProfile) RawPtr() unsafe.Pointer

func (*AVProfile) SetName

func (s *AVProfile) SetName(value *CStr)

SetName sets the name field.

short name for the profile

func (*AVProfile) SetProfile

func (s *AVProfile) SetProfile(value int)

SetProfile sets the profile field.

type AVProgram

type AVProgram struct {
	// contains filtered or unexported fields
}

AVProgram wraps AVProgram.

New fields can be added to the end with minor version bumps.
Removal, reordering and changes to existing fields require a major
version bump.
sizeof(AVProgram) must not be used outside libav*.

func AVFindProgramFromStream

func AVFindProgramFromStream(ic *AVFormatContext, last *AVProgram, s int) *AVProgram

AVFindProgramFromStream wraps av_find_program_from_stream.

Find the programs which belong to a given stream.

@param ic    media file handle
@param last  the last found program, the search will start after this
             program, or from the beginning if it is NULL
@param s     stream index

@return the next program which belongs to s, NULL if no program is found or
        the last program is not among the programs of ic.

func AVNewProgram

func AVNewProgram(s *AVFormatContext, id int) *AVProgram

AVNewProgram wraps av_new_program.

func (*AVProgram) Discard

func (s *AVProgram) Discard() AVDiscard

Discard gets the discard field.

selects which program to discard and which to feed to the caller

func (*AVProgram) EndTime

func (s *AVProgram) EndTime() int64

EndTime gets the end_time field.

func (*AVProgram) Flags

func (s *AVProgram) Flags() int

Flags gets the flags field.

func (*AVProgram) Id

func (s *AVProgram) Id() int

Id gets the id field.

func (*AVProgram) Metadata

func (s *AVProgram) Metadata() *AVDictionary

Metadata gets the metadata field.

func (*AVProgram) NbStreamIndexes

func (s *AVProgram) NbStreamIndexes() uint

NbStreamIndexes gets the nb_stream_indexes field.

func (*AVProgram) PcrPid

func (s *AVProgram) PcrPid() int

PcrPid gets the pcr_pid field.

func (*AVProgram) PmtPid

func (s *AVProgram) PmtPid() int

PmtPid gets the pmt_pid field.

func (*AVProgram) PmtVersion

func (s *AVProgram) PmtVersion() int

PmtVersion gets the pmt_version field.

func (*AVProgram) ProgramNum

func (s *AVProgram) ProgramNum() int

ProgramNum gets the program_num field.

func (*AVProgram) PtsWrapBehavior

func (s *AVProgram) PtsWrapBehavior() int

PtsWrapBehavior gets the pts_wrap_behavior field.

behavior on wrap detection

func (*AVProgram) PtsWrapReference

func (s *AVProgram) PtsWrapReference() int64

PtsWrapReference gets the pts_wrap_reference field.

reference dts for wrap detection

func (*AVProgram) RawPtr

func (s *AVProgram) RawPtr() unsafe.Pointer

func (*AVProgram) SetDiscard

func (s *AVProgram) SetDiscard(value AVDiscard)

SetDiscard sets the discard field.

selects which program to discard and which to feed to the caller

func (*AVProgram) SetEndTime

func (s *AVProgram) SetEndTime(value int64)

SetEndTime sets the end_time field.

func (*AVProgram) SetFlags

func (s *AVProgram) SetFlags(value int)

SetFlags sets the flags field.

func (*AVProgram) SetId

func (s *AVProgram) SetId(value int)

SetId sets the id field.

func (*AVProgram) SetMetadata

func (s *AVProgram) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

func (*AVProgram) SetNbStreamIndexes

func (s *AVProgram) SetNbStreamIndexes(value uint)

SetNbStreamIndexes sets the nb_stream_indexes field.

func (*AVProgram) SetPcrPid

func (s *AVProgram) SetPcrPid(value int)

SetPcrPid sets the pcr_pid field.

func (*AVProgram) SetPmtPid

func (s *AVProgram) SetPmtPid(value int)

SetPmtPid sets the pmt_pid field.

func (*AVProgram) SetPmtVersion

func (s *AVProgram) SetPmtVersion(value int)

SetPmtVersion sets the pmt_version field.

func (*AVProgram) SetProgramNum

func (s *AVProgram) SetProgramNum(value int)

SetProgramNum sets the program_num field.

func (*AVProgram) SetPtsWrapBehavior

func (s *AVProgram) SetPtsWrapBehavior(value int)

SetPtsWrapBehavior sets the pts_wrap_behavior field.

behavior on wrap detection

func (*AVProgram) SetPtsWrapReference

func (s *AVProgram) SetPtsWrapReference(value int64)

SetPtsWrapReference sets the pts_wrap_reference field.

reference dts for wrap detection

func (*AVProgram) SetStartTime

func (s *AVProgram) SetStartTime(value int64)

SetStartTime sets the start_time field.

***************************************************************
All fields below this line are not part of the public API. They
may not be used outside of libavformat and can be changed and
removed at will.
New public fields should be added right above.
*****************************************************************

func (*AVProgram) StartTime

func (s *AVProgram) StartTime() int64

StartTime gets the start_time field.

***************************************************************
All fields below this line are not part of the public API. They
may not be used outside of libavformat and can be changed and
removed at will.
New public fields should be added right above.
*****************************************************************

type AVRC4

type AVRC4 struct {
	// contains filtered or unexported fields
}

AVRC4 wraps AVRC4.

func AVRc4Alloc

func AVRc4Alloc() *AVRC4

AVRc4Alloc wraps av_rc4_alloc.

Allocate an AVRC4 context.

func (*AVRC4) RawPtr

func (s *AVRC4) RawPtr() unsafe.Pointer

func (*AVRC4) SetX

func (s *AVRC4) SetX(value int)

SetX sets the x field.

func (*AVRC4) SetY

func (s *AVRC4) SetY(value int)

SetY sets the y field.

func (*AVRC4) State

func (s *AVRC4) State() *Array[uint8]

State gets the state field.

func (*AVRC4) X

func (s *AVRC4) X() int

X gets the x field.

func (*AVRC4) Y

func (s *AVRC4) Y() int

Y gets the y field.

type AVRIPEMD

type AVRIPEMD struct {
	// contains filtered or unexported fields
}

AVRIPEMD wraps AVRIPEMD.

func AVRipemdAlloc

func AVRipemdAlloc() *AVRIPEMD

AVRipemdAlloc wraps av_ripemd_alloc.

Allocate an AVRIPEMD context.

func (*AVRIPEMD) RawPtr

func (s *AVRIPEMD) RawPtr() unsafe.Pointer

type AVRTCPSenderReport

type AVRTCPSenderReport struct {
	// contains filtered or unexported fields
}

AVRTCPSenderReport wraps AVRTCPSenderReport.

RTCP SR (Sender Report) information

The received sender report information for an RTSP
stream, exposed as AV_PKT_DATA_RTCP_SR side data.

func (*AVRTCPSenderReport) NtpTimestamp

func (s *AVRTCPSenderReport) NtpTimestamp() uint64

NtpTimestamp gets the ntp_timestamp field.

NTP time when the report was sent

func (*AVRTCPSenderReport) RawPtr

func (s *AVRTCPSenderReport) RawPtr() unsafe.Pointer

func (*AVRTCPSenderReport) RtpTimestamp

func (s *AVRTCPSenderReport) RtpTimestamp() uint32

RtpTimestamp gets the rtp_timestamp field.

RTP time when the report was sent

func (*AVRTCPSenderReport) SenderNbBytes

func (s *AVRTCPSenderReport) SenderNbBytes() uint32

SenderNbBytes gets the sender_nb_bytes field.

Total number of bytes sent (excluding headers or padding)

func (*AVRTCPSenderReport) SenderNbPackets

func (s *AVRTCPSenderReport) SenderNbPackets() uint32

SenderNbPackets gets the sender_nb_packets field.

Total number of packets sent

func (*AVRTCPSenderReport) SetNtpTimestamp

func (s *AVRTCPSenderReport) SetNtpTimestamp(value uint64)

SetNtpTimestamp sets the ntp_timestamp field.

NTP time when the report was sent

func (*AVRTCPSenderReport) SetRtpTimestamp

func (s *AVRTCPSenderReport) SetRtpTimestamp(value uint32)

SetRtpTimestamp sets the rtp_timestamp field.

RTP time when the report was sent

func (*AVRTCPSenderReport) SetSenderNbBytes

func (s *AVRTCPSenderReport) SetSenderNbBytes(value uint32)

SetSenderNbBytes sets the sender_nb_bytes field.

Total number of bytes sent (excluding headers or padding)

func (*AVRTCPSenderReport) SetSenderNbPackets

func (s *AVRTCPSenderReport) SetSenderNbPackets(value uint32)

SetSenderNbPackets sets the sender_nb_packets field.

Total number of packets sent

func (*AVRTCPSenderReport) SetSsrc

func (s *AVRTCPSenderReport) SetSsrc(value uint32)

SetSsrc sets the ssrc field.

Synchronization source identifier

func (*AVRTCPSenderReport) Ssrc

func (s *AVRTCPSenderReport) Ssrc() uint32

Ssrc gets the ssrc field.

Synchronization source identifier

type AVRational

type AVRational struct {
	// contains filtered or unexported fields
}

AVRational wraps AVRational.

Rational number (pair of numerator and denominator).

func AVAddQ

func AVAddQ(b *AVRational, c *AVRational) *AVRational

AVAddQ wraps av_add_q.

Add two rationals.
@param b First rational
@param c Second rational
@return b+c

func AVBuffersinkGetFrameRate

func AVBuffersinkGetFrameRate(ctx *AVFilterContext) *AVRational

AVBuffersinkGetFrameRate wraps av_buffersink_get_frame_rate.

func AVBuffersinkGetSampleAspectRatio

func AVBuffersinkGetSampleAspectRatio(ctx *AVFilterContext) *AVRational

AVBuffersinkGetSampleAspectRatio wraps av_buffersink_get_sample_aspect_ratio.

func AVBuffersinkGetTimeBase

func AVBuffersinkGetTimeBase(ctx *AVFilterContext) *AVRational

AVBuffersinkGetTimeBase wraps av_buffersink_get_time_base.

func AVD2Q

func AVD2Q(d float64, max int) *AVRational

AVD2Q wraps av_d2q.

Convert a double precision floating point number to a rational.

In case of infinity, the returned value is expressed as `{1, 0}` or
`{-1, 0}` depending on the sign.

In general rational numbers with |num| <= 1<<26 && |den| <= 1<<26
can be recovered exactly from their double representation.
(no exceptions were found within 1B random ones)

@param d   `double` to convert
@param max Maximum allowed numerator and denominator
@return `d` in AVRational form
@see av_q2d()

func AVDivQ

func AVDivQ(b *AVRational, c *AVRational) *AVRational

AVDivQ wraps av_div_q.

Divide one rational by another.
@param b First rational
@param c Second rational
@return b/c

func AVGcdQ

func AVGcdQ(a *AVRational, b *AVRational, maxDen int, def *AVRational) *AVRational

AVGcdQ wraps av_gcd_q.

Return the best rational so that a and b are multiple of it.
If the resulting denominator is larger than max_den, return def.

func AVGetTimeBaseQ

func AVGetTimeBaseQ() *AVRational

AVGetTimeBaseQ wraps av_get_time_base_q.

Return the fractional representation of the internal time base.

func AVGuessFrameRate

func AVGuessFrameRate(ctx *AVFormatContext, stream *AVStream, frame *AVFrame) *AVRational

AVGuessFrameRate wraps av_guess_frame_rate.

Guess the frame rate, based on both the container and codec information.

@param ctx the format context which the stream is part of
@param stream the stream which the frame is part of
@param frame the frame for which the frame rate should be determined, may be NULL
@return the guessed (valid) frame rate, 0/1 if no idea

func AVGuessSampleAspectRatio

func AVGuessSampleAspectRatio(format *AVFormatContext, stream *AVStream, frame *AVFrame) *AVRational

AVGuessSampleAspectRatio wraps av_guess_sample_aspect_ratio.

Guess the sample aspect ratio of a frame, based on both the stream and the
frame aspect ratio.

Since the frame aspect ratio is set by the codec but the stream aspect ratio
is set by the demuxer, these two may not be equal. This function tries to
return the value that you should use if you would like to display the frame.

Basic logic is to use the stream aspect ratio if it is set to something sane
otherwise use the frame aspect ratio. This way a container setting, which is
usually easy to modify can override the coded value in the frames.

@param format the format context which the stream is part of
@param stream the stream which the frame is part of
@param frame the frame with the aspect ratio to be determined
@return the guessed (valid) sample_aspect_ratio, 0/1 if no idea

func AVInvQ

func AVInvQ(q *AVRational) *AVRational

AVInvQ wraps av_inv_q.

Invert a rational.
@param q value
@return 1 / q

func AVMakeQ

func AVMakeQ(num int, den int) *AVRational

AVMakeQ wraps av_make_q.

Create an AVRational.

Useful for compilers that do not support compound literals.

@note The return value is not reduced.
@see av_reduce()

func AVMulQ

func AVMulQ(b *AVRational, c *AVRational) *AVRational

AVMulQ wraps av_mul_q.

Multiply two rationals.
@param b First rational
@param c Second rational
@return b*c

func AVStreamGetCodecTimebase

func AVStreamGetCodecTimebase(st *AVStream) *AVRational

AVStreamGetCodecTimebase wraps av_stream_get_codec_timebase.

@deprecated do not call this function

func AVSubQ

func AVSubQ(b *AVRational, c *AVRational) *AVRational

AVSubQ wraps av_sub_q.

Subtract one rational from another.
@param b First rational
@param c Second rational
@return b-c

func (*AVRational) Den

func (s *AVRational) Den() int

Den gets the den field.

Denominator

func (*AVRational) Num

func (s *AVRational) Num() int

Num gets the num field.

Numerator

func (*AVRational) SetDen

func (s *AVRational) SetDen(value int)

SetDen sets the den field.

Denominator

func (*AVRational) SetNum

func (s *AVRational) SetNum(value int)

SetNum sets the num field.

Numerator

func (*AVRational) String

func (s *AVRational) String() string

type AVRegionOfInterest

type AVRegionOfInterest struct {
	// contains filtered or unexported fields
}

AVRegionOfInterest wraps AVRegionOfInterest.

Structure describing a single Region Of Interest.

When multiple regions are defined in a single side-data block, they
should be ordered from most to least important - some encoders are only
capable of supporting a limited number of distinct regions, so will have
to truncate the list.

When overlapping regions are defined, the first region containing a given
area of the frame applies.

func (*AVRegionOfInterest) Bottom

func (s *AVRegionOfInterest) Bottom() int

Bottom gets the bottom field.

func (*AVRegionOfInterest) Left

func (s *AVRegionOfInterest) Left() int

Left gets the left field.

func (*AVRegionOfInterest) Qoffset

func (s *AVRegionOfInterest) Qoffset() *AVRational

Qoffset gets the qoffset field.

Quantisation offset.

Must be in the range -1 to +1.  A value of zero indicates no quality
change.  A negative value asks for better quality (less quantisation),
while a positive value asks for worse quality (greater quantisation).

The range is calibrated so that the extreme values indicate the
largest possible offset - if the rest of the frame is encoded with the
worst possible quality, an offset of -1 indicates that this region
should be encoded with the best possible quality anyway.  Intermediate
values are then interpolated in some codec-dependent way.

For example, in 10-bit H.264 the quantisation parameter varies between
-12 and 51.  A typical qoffset value of -1/10 therefore indicates that
this region should be encoded with a QP around one-tenth of the full
range better than the rest of the frame.  So, if most of the frame
were to be encoded with a QP of around 30, this region would get a QP
of around 24 (an offset of approximately -1/10 * (51 - -12) = -6.3).
An extreme value of -1 would indicate that this region should be
encoded with the best possible quality regardless of the treatment of
the rest of the frame - that is, should be encoded at a QP of -12.

func (*AVRegionOfInterest) RawPtr

func (s *AVRegionOfInterest) RawPtr() unsafe.Pointer

func (*AVRegionOfInterest) Right

func (s *AVRegionOfInterest) Right() int

Right gets the right field.

func (*AVRegionOfInterest) SelfSize

func (s *AVRegionOfInterest) SelfSize() uint32

SelfSize gets the self_size field.

Must be set to the size of this data structure (that is,
sizeof(AVRegionOfInterest)).

func (*AVRegionOfInterest) SetBottom

func (s *AVRegionOfInterest) SetBottom(value int)

SetBottom sets the bottom field.

func (*AVRegionOfInterest) SetLeft

func (s *AVRegionOfInterest) SetLeft(value int)

SetLeft sets the left field.

func (*AVRegionOfInterest) SetQoffset

func (s *AVRegionOfInterest) SetQoffset(value *AVRational)

SetQoffset sets the qoffset field.

Quantisation offset.

Must be in the range -1 to +1.  A value of zero indicates no quality
change.  A negative value asks for better quality (less quantisation),
while a positive value asks for worse quality (greater quantisation).

The range is calibrated so that the extreme values indicate the
largest possible offset - if the rest of the frame is encoded with the
worst possible quality, an offset of -1 indicates that this region
should be encoded with the best possible quality anyway.  Intermediate
values are then interpolated in some codec-dependent way.

For example, in 10-bit H.264 the quantisation parameter varies between
-12 and 51.  A typical qoffset value of -1/10 therefore indicates that
this region should be encoded with a QP around one-tenth of the full
range better than the rest of the frame.  So, if most of the frame
were to be encoded with a QP of around 30, this region would get a QP
of around 24 (an offset of approximately -1/10 * (51 - -12) = -6.3).
An extreme value of -1 would indicate that this region should be
encoded with the best possible quality regardless of the treatment of
the rest of the frame - that is, should be encoded at a QP of -12.

func (*AVRegionOfInterest) SetRight

func (s *AVRegionOfInterest) SetRight(value int)

SetRight sets the right field.

func (*AVRegionOfInterest) SetSelfSize

func (s *AVRegionOfInterest) SetSelfSize(value uint32)

SetSelfSize sets the self_size field.

Must be set to the size of this data structure (that is,
sizeof(AVRegionOfInterest)).

func (*AVRegionOfInterest) SetTop

func (s *AVRegionOfInterest) SetTop(value int)

SetTop sets the top field.

Distance in pixels from the top edge of the frame to the top and
bottom edges and from the left edge of the frame to the left and
right edges of the rectangle defining this region of interest.

The constraints on a region are encoder dependent, so the region
actually affected may be slightly larger for alignment or other
reasons.

func (*AVRegionOfInterest) Top

func (s *AVRegionOfInterest) Top() int

Top gets the top field.

Distance in pixels from the top edge of the frame to the top and
bottom edges and from the left edge of the frame to the left and
right edges of the rectangle defining this region of interest.

The constraints on a region are encoder dependent, so the region
actually affected may be slightly larger for alignment or other
reasons.

type AVReplayGain

type AVReplayGain struct {
	// contains filtered or unexported fields
}

AVReplayGain wraps AVReplayGain.

ReplayGain information (see
http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification).
The size of this struct is a part of the public ABI.

func (*AVReplayGain) AlbumGain

func (s *AVReplayGain) AlbumGain() int32

AlbumGain gets the album_gain field.

Same as track_gain, but for the whole album.

func (*AVReplayGain) AlbumPeak

func (s *AVReplayGain) AlbumPeak() uint32

AlbumPeak gets the album_peak field.

Same as track_peak, but for the whole album,

func (*AVReplayGain) RawPtr

func (s *AVReplayGain) RawPtr() unsafe.Pointer

func (*AVReplayGain) SetAlbumGain

func (s *AVReplayGain) SetAlbumGain(value int32)

SetAlbumGain sets the album_gain field.

Same as track_gain, but for the whole album.

func (*AVReplayGain) SetAlbumPeak

func (s *AVReplayGain) SetAlbumPeak(value uint32)

SetAlbumPeak sets the album_peak field.

Same as track_peak, but for the whole album,

func (*AVReplayGain) SetTrackGain

func (s *AVReplayGain) SetTrackGain(value int32)

SetTrackGain sets the track_gain field.

Track replay gain in microbels (divide by 100000 to get the value in dB).
Should be set to INT32_MIN when unknown.

func (*AVReplayGain) SetTrackPeak

func (s *AVReplayGain) SetTrackPeak(value uint32)

SetTrackPeak sets the track_peak field.

Peak track amplitude, with 100000 representing full scale (but values
may overflow). 0 when unknown.

func (*AVReplayGain) TrackGain

func (s *AVReplayGain) TrackGain() int32

TrackGain gets the track_gain field.

Track replay gain in microbels (divide by 100000 to get the value in dB).
Should be set to INT32_MIN when unknown.

func (*AVReplayGain) TrackPeak

func (s *AVReplayGain) TrackPeak() uint32

TrackPeak gets the track_peak field.

Peak track amplitude, with 100000 representing full scale (but values
may overflow). 0 when unknown.

type AVRounding

type AVRounding C.enum_AVRounding

AVRounding wraps AVRounding.

Rounding methods.
const (
	// AVRoundZero wraps AV_ROUND_ZERO.
	//
	//	Round toward zero.
	AVRoundZero AVRounding = C.AV_ROUND_ZERO
	// AVRoundInf wraps AV_ROUND_INF.
	//
	//	Round away from zero.
	AVRoundInf AVRounding = C.AV_ROUND_INF
	// AVRoundDown wraps AV_ROUND_DOWN.
	//
	//	Round toward -infinity.
	AVRoundDown AVRounding = C.AV_ROUND_DOWN
	// AVRoundUp wraps AV_ROUND_UP.
	//
	//	Round toward +infinity.
	AVRoundUp AVRounding = C.AV_ROUND_UP
	// AVRoundNearInf wraps AV_ROUND_NEAR_INF.
	//
	//	Round to nearest and halfway cases away from zero.
	AVRoundNearInf AVRounding = C.AV_ROUND_NEAR_INF
	// AVRoundPassMinmax wraps AV_ROUND_PASS_MINMAX.
	/*
	   Flag telling rescaling functions to pass `INT64_MIN`/`MAX` through
	   unchanged, avoiding special cases for #AV_NOPTS_VALUE.

	   Unlike other values of the enumeration AVRounding, this value is a
	   bitmask that must be used in conjunction with another value of the
	   enumeration through a bitwise OR, in order to set behavior for normal
	   cases.

	   @code{.c}
	   av_rescale_rnd(3, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX);
	   Rescaling 3:
	       Calculating 3 * 1 / 2
	       3 / 2 is rounded up to 2
	       => 2

	   av_rescale_rnd(AV_NOPTS_VALUE, 1, 2, AV_ROUND_UP | AV_ROUND_PASS_MINMAX);
	   Rescaling AV_NOPTS_VALUE:
	       AV_NOPTS_VALUE == INT64_MIN
	       AV_NOPTS_VALUE is passed through
	       => AV_NOPTS_VALUE
	   @endcode
	*/
	AVRoundPassMinmax AVRounding = C.AV_ROUND_PASS_MINMAX
)

type AVSHA

type AVSHA struct {
	// contains filtered or unexported fields
}

AVSHA wraps AVSHA.

func AVShaAlloc

func AVShaAlloc() *AVSHA

AVShaAlloc wraps av_sha_alloc.

Allocate an AVSHA context.

func (*AVSHA) RawPtr

func (s *AVSHA) RawPtr() unsafe.Pointer

type AVSHA512

type AVSHA512 struct {
	// contains filtered or unexported fields
}

AVSHA512 wraps AVSHA512.

func AVSha512Alloc

func AVSha512Alloc() *AVSHA512

AVSha512Alloc wraps av_sha512_alloc.

Allocate an AVSHA512 context.

func (*AVSHA512) RawPtr

func (s *AVSHA512) RawPtr() unsafe.Pointer

type AVSampleFormat

type AVSampleFormat C.enum_AVSampleFormat

AVSampleFormat wraps AVSampleFormat.

Audio sample formats

- The data described by the sample format is always in native-endian order.
  Sample values can be expressed by native C types, hence the lack of a signed
  24-bit sample format even though it is a common raw audio data format.

- The floating-point formats are based on full volume being in the range
  [-1.0, 1.0]. Any values outside this range are beyond full volume level.

- The data layout as used in av_samples_fill_arrays() and elsewhere in FFmpeg
  (such as AVFrame in libavcodec) is as follows:

@par
For planar sample formats, each audio channel is in a separate data plane,
and linesize is the buffer size, in bytes, for a single plane. All data
planes must be the same size. For packed sample formats, only the first data
plane is used, and samples for each channel are interleaved. In this case,
linesize is the buffer size, in bytes, for the 1 plane.
const (
	// AVSampleFmtNone wraps AV_SAMPLE_FMT_NONE.
	AVSampleFmtNone AVSampleFormat = C.AV_SAMPLE_FMT_NONE
	// AVSampleFmtU8 wraps AV_SAMPLE_FMT_U8.
	//
	//	unsigned 8 bits
	AVSampleFmtU8 AVSampleFormat = C.AV_SAMPLE_FMT_U8
	// AVSampleFmtS16 wraps AV_SAMPLE_FMT_S16.
	//
	//	signed 16 bits
	AVSampleFmtS16 AVSampleFormat = C.AV_SAMPLE_FMT_S16
	// AVSampleFmtS32 wraps AV_SAMPLE_FMT_S32.
	//
	//	signed 32 bits
	AVSampleFmtS32 AVSampleFormat = C.AV_SAMPLE_FMT_S32
	// AVSampleFmtFlt wraps AV_SAMPLE_FMT_FLT.
	//
	//	float
	AVSampleFmtFlt AVSampleFormat = C.AV_SAMPLE_FMT_FLT
	// AVSampleFmtDbl wraps AV_SAMPLE_FMT_DBL.
	//
	//	double
	AVSampleFmtDbl AVSampleFormat = C.AV_SAMPLE_FMT_DBL
	// AVSampleFmtU8P wraps AV_SAMPLE_FMT_U8P.
	//
	//	unsigned 8 bits, planar
	AVSampleFmtU8P AVSampleFormat = C.AV_SAMPLE_FMT_U8P
	// AVSampleFmtS16P wraps AV_SAMPLE_FMT_S16P.
	//
	//	signed 16 bits, planar
	AVSampleFmtS16P AVSampleFormat = C.AV_SAMPLE_FMT_S16P
	// AVSampleFmtS32P wraps AV_SAMPLE_FMT_S32P.
	//
	//	signed 32 bits, planar
	AVSampleFmtS32P AVSampleFormat = C.AV_SAMPLE_FMT_S32P
	// AVSampleFmtFltp wraps AV_SAMPLE_FMT_FLTP.
	//
	//	float, planar
	AVSampleFmtFltp AVSampleFormat = C.AV_SAMPLE_FMT_FLTP
	// AVSampleFmtDblp wraps AV_SAMPLE_FMT_DBLP.
	//
	//	double, planar
	AVSampleFmtDblp AVSampleFormat = C.AV_SAMPLE_FMT_DBLP
	// AVSampleFmtS64 wraps AV_SAMPLE_FMT_S64.
	//
	//	signed 64 bits
	AVSampleFmtS64 AVSampleFormat = C.AV_SAMPLE_FMT_S64
	// AVSampleFmtS64P wraps AV_SAMPLE_FMT_S64P.
	//
	//	signed 64 bits, planar
	AVSampleFmtS64P AVSampleFormat = C.AV_SAMPLE_FMT_S64P
	// AVSampleFmtNb wraps AV_SAMPLE_FMT_NB.
	//
	//	Number of sample formats. DO NOT USE if linking dynamically
	AVSampleFmtNb AVSampleFormat = C.AV_SAMPLE_FMT_NB
)

func AVGetAltSampleFmt

func AVGetAltSampleFmt(sampleFmt AVSampleFormat, planar int) AVSampleFormat

AVGetAltSampleFmt wraps av_get_alt_sample_fmt.

Return the planar<->packed alternative form of the given sample format, or
AV_SAMPLE_FMT_NONE on error. If the passed sample_fmt is already in the
requested planar/packed format, the format returned is the same as the
input.

func AVGetPackedSampleFmt

func AVGetPackedSampleFmt(sampleFmt AVSampleFormat) AVSampleFormat

AVGetPackedSampleFmt wraps av_get_packed_sample_fmt.

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.

@return  the packed alternative form of the given sample format or
AV_SAMPLE_FMT_NONE on error.

func AVGetPlanarSampleFmt

func AVGetPlanarSampleFmt(sampleFmt AVSampleFormat) AVSampleFormat

AVGetPlanarSampleFmt wraps av_get_planar_sample_fmt.

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.

@return  the planar alternative form of the given sample format or
AV_SAMPLE_FMT_NONE on error.

func AVGetSampleFmt

func AVGetSampleFmt(name *CStr) AVSampleFormat

AVGetSampleFmt wraps av_get_sample_fmt.

Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE
on error.

type AVSideDataDescriptor

type AVSideDataDescriptor struct {
	// contains filtered or unexported fields
}

AVSideDataDescriptor wraps AVSideDataDescriptor.

This struct describes the properties of a side data type. Its instance
corresponding to a given type can be obtained from av_frame_side_data_desc().

func AVFrameSideDataDesc

func AVFrameSideDataDesc(_type AVFrameSideDataType) *AVSideDataDescriptor

AVFrameSideDataDesc wraps av_frame_side_data_desc.

@return side data descriptor corresponding to a given side data type, NULL
        when not available.

func (*AVSideDataDescriptor) Name

func (s *AVSideDataDescriptor) Name() *CStr

Name gets the name field.

Human-readable side data description.

func (*AVSideDataDescriptor) Props

func (s *AVSideDataDescriptor) Props() uint

Props gets the props field.

Side data property flags, a combination of AVSideDataProps values.

func (*AVSideDataDescriptor) RawPtr

func (s *AVSideDataDescriptor) RawPtr() unsafe.Pointer

func (*AVSideDataDescriptor) SetName

func (s *AVSideDataDescriptor) SetName(value *CStr)

SetName sets the name field.

Human-readable side data description.

func (*AVSideDataDescriptor) SetProps

func (s *AVSideDataDescriptor) SetProps(value uint)

SetProps sets the props field.

Side data property flags, a combination of AVSideDataProps values.

type AVSideDataParamChangeFlags

type AVSideDataParamChangeFlags C.enum_AVSideDataParamChangeFlags

AVSideDataParamChangeFlags wraps AVSideDataParamChangeFlags.

const (
	// AVSideDataParamChangeSampleRate wraps AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE.
	AVSideDataParamChangeSampleRate AVSideDataParamChangeFlags = C.AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE
	// AVSideDataParamChangeDimensions wraps AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS.
	AVSideDataParamChangeDimensions AVSideDataParamChangeFlags = C.AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS
)

type AVSideDataProps

type AVSideDataProps C.enum_AVSideDataProps

AVSideDataProps wraps AVSideDataProps.

const (
	// AVSideDataPropGlobal wraps AV_SIDE_DATA_PROP_GLOBAL.
	/*
	   The side data type can be used in stream-global structures.
	   Side data types without this property are only meaningful on per-frame
	   basis.
	*/
	AVSideDataPropGlobal AVSideDataProps = C.AV_SIDE_DATA_PROP_GLOBAL
	// AVSideDataPropMulti wraps AV_SIDE_DATA_PROP_MULTI.
	/*
	   Multiple instances of this side data type can be meaningfully present in
	   a single side data array.
	*/
	AVSideDataPropMulti AVSideDataProps = C.AV_SIDE_DATA_PROP_MULTI
	// AVSideDataPropSizeDependent wraps AV_SIDE_DATA_PROP_SIZE_DEPENDENT.
	/*
	   Side data depends on the video dimensions. Side data with this property
	   loses its meaning when rescaling or cropping the image, unless
	   either recomputed or adjusted to the new resolution.
	*/
	AVSideDataPropSizeDependent AVSideDataProps = C.AV_SIDE_DATA_PROP_SIZE_DEPENDENT
	// AVSideDataPropColorDependent wraps AV_SIDE_DATA_PROP_COLOR_DEPENDENT.
	/*
	   Side data depends on the video color space. Side data with this property
	   loses its meaning when changing the video color encoding, e.g. by
	   adapting to a different set of primaries or transfer characteristics.
	*/
	AVSideDataPropColorDependent AVSideDataProps = C.AV_SIDE_DATA_PROP_COLOR_DEPENDENT
	// AVSideDataPropChannelDependent wraps AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT.
	/*
	   Side data depends on the channel layout. Side data with this property
	   loses its meaning when downmixing or upmixing, unless either recomputed
	   or adjusted to the new layout.
	*/
	AVSideDataPropChannelDependent AVSideDataProps = C.AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT
)

type AVSphericalMapping

type AVSphericalMapping struct {
	// contains filtered or unexported fields
}

AVSphericalMapping wraps AVSphericalMapping.

This structure describes how to handle spherical videos, outlining
information about projection, initial layout, and any other view modifier.

@note The struct must be allocated with av_spherical_alloc() and
      its size is not a part of the public ABI.

func AVSphericalAlloc

func AVSphericalAlloc(size *uint64) *AVSphericalMapping

AVSphericalAlloc wraps av_spherical_alloc.

Allocate a AVSphericalVideo structure and initialize its fields to default
values.

@return the newly allocated struct or NULL on failure

func (*AVSphericalMapping) BoundBottom

func (s *AVSphericalMapping) BoundBottom() uint32

BoundBottom gets the bound_bottom field.

Distance from the bottom edge

func (*AVSphericalMapping) BoundLeft

func (s *AVSphericalMapping) BoundLeft() uint32

BoundLeft gets the bound_left field.

Distance from the left edge

func (*AVSphericalMapping) BoundRight

func (s *AVSphericalMapping) BoundRight() uint32

BoundRight gets the bound_right field.

Distance from the right edge

func (*AVSphericalMapping) BoundTop

func (s *AVSphericalMapping) BoundTop() uint32

BoundTop gets the bound_top field.

Distance from the top edge

func (*AVSphericalMapping) Padding

func (s *AVSphericalMapping) Padding() uint32

Padding gets the padding field.

Number of pixels to pad from the edge of each cube face.

@note This value is valid for only for the cubemap projection type
      (@ref AV_SPHERICAL_CUBEMAP), and should be ignored in all other
      cases.

func (*AVSphericalMapping) Pitch

func (s *AVSphericalMapping) Pitch() int32

Pitch gets the pitch field.

Rotation around the right vector [-90, 90].

func (*AVSphericalMapping) Projection

func (s *AVSphericalMapping) Projection() AVSphericalProjection

Projection gets the projection field.

Projection type.

func (*AVSphericalMapping) RawPtr

func (s *AVSphericalMapping) RawPtr() unsafe.Pointer

func (*AVSphericalMapping) Roll

func (s *AVSphericalMapping) Roll() int32

Roll gets the roll field.

Rotation around the forward vector [-180, 180].

func (*AVSphericalMapping) SetBoundBottom

func (s *AVSphericalMapping) SetBoundBottom(value uint32)

SetBoundBottom sets the bound_bottom field.

Distance from the bottom edge

func (*AVSphericalMapping) SetBoundLeft

func (s *AVSphericalMapping) SetBoundLeft(value uint32)

SetBoundLeft sets the bound_left field.

Distance from the left edge

func (*AVSphericalMapping) SetBoundRight

func (s *AVSphericalMapping) SetBoundRight(value uint32)

SetBoundRight sets the bound_right field.

Distance from the right edge

func (*AVSphericalMapping) SetBoundTop

func (s *AVSphericalMapping) SetBoundTop(value uint32)

SetBoundTop sets the bound_top field.

Distance from the top edge

func (*AVSphericalMapping) SetPadding

func (s *AVSphericalMapping) SetPadding(value uint32)

SetPadding sets the padding field.

Number of pixels to pad from the edge of each cube face.

@note This value is valid for only for the cubemap projection type
      (@ref AV_SPHERICAL_CUBEMAP), and should be ignored in all other
      cases.

func (*AVSphericalMapping) SetPitch

func (s *AVSphericalMapping) SetPitch(value int32)

SetPitch sets the pitch field.

Rotation around the right vector [-90, 90].

func (*AVSphericalMapping) SetProjection

func (s *AVSphericalMapping) SetProjection(value AVSphericalProjection)

SetProjection sets the projection field.

Projection type.

func (*AVSphericalMapping) SetRoll

func (s *AVSphericalMapping) SetRoll(value int32)

SetRoll sets the roll field.

Rotation around the forward vector [-180, 180].

func (*AVSphericalMapping) SetYaw

func (s *AVSphericalMapping) SetYaw(value int32)

SetYaw sets the yaw field.

Rotation around the up vector [-180, 180].

func (*AVSphericalMapping) Yaw

func (s *AVSphericalMapping) Yaw() int32

Yaw gets the yaw field.

Rotation around the up vector [-180, 180].

type AVSphericalProjection

type AVSphericalProjection C.enum_AVSphericalProjection

AVSphericalProjection wraps AVSphericalProjection.

Projection of the video surface(s) on a sphere.
const (
	// AVSphericalEquirectangular wraps AV_SPHERICAL_EQUIRECTANGULAR.
	/*
	   Video represents a sphere mapped on a flat surface using
	   equirectangular projection.
	*/
	AVSphericalEquirectangular AVSphericalProjection = C.AV_SPHERICAL_EQUIRECTANGULAR
	// AVSphericalCubemap wraps AV_SPHERICAL_CUBEMAP.
	/*
	   Video frame is split into 6 faces of a cube, and arranged on a
	   3x2 layout. Faces are oriented upwards for the front, left, right,
	   and back faces. The up face is oriented so the top of the face is
	   forwards and the down face is oriented so the top of the face is
	   to the back.
	*/
	AVSphericalCubemap AVSphericalProjection = C.AV_SPHERICAL_CUBEMAP
	// AVSphericalEquirectangularTile wraps AV_SPHERICAL_EQUIRECTANGULAR_TILE.
	/*
	   Video represents a portion of a sphere mapped on a flat surface
	   using equirectangular projection. The @ref bounding fields indicate
	   the position of the current video in a larger surface.
	*/
	AVSphericalEquirectangularTile AVSphericalProjection = C.AV_SPHERICAL_EQUIRECTANGULAR_TILE
	// AVSphericalHalfEquirectangular wraps AV_SPHERICAL_HALF_EQUIRECTANGULAR.
	//
	//	Video frame displays as a 180 degree equirectangular projection.
	AVSphericalHalfEquirectangular AVSphericalProjection = C.AV_SPHERICAL_HALF_EQUIRECTANGULAR
	// AVSphericalRectilinear wraps AV_SPHERICAL_RECTILINEAR.
	//
	//	Video frame displays on a flat, rectangular 2D surface.
	AVSphericalRectilinear AVSphericalProjection = C.AV_SPHERICAL_RECTILINEAR
	// AVSphericalFisheye wraps AV_SPHERICAL_FISHEYE.
	/*
	   Fisheye projection (Apple).
	   See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye
	*/
	AVSphericalFisheye AVSphericalProjection = C.AV_SPHERICAL_FISHEYE
	// AVSphericalParametricImmersive wraps AV_SPHERICAL_PARAMETRIC_IMMERSIVE.
	/*
	   Parametric Immersive projection (Apple).
	   See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/parametricimmersive
	*/
	AVSphericalParametricImmersive AVSphericalProjection = C.AV_SPHERICAL_PARAMETRIC_IMMERSIVE
)

type AVStereo3D

type AVStereo3D struct {
	// contains filtered or unexported fields
}

AVStereo3D wraps AVStereo3D.

Stereo 3D type: this structure describes how two videos are packed
within a single video surface, with additional information as needed.

@note The struct must be allocated with av_stereo3d_alloc() and
      its size is not a part of the public ABI.

func AVStereo3DAlloc

func AVStereo3DAlloc() *AVStereo3D

AVStereo3DAlloc wraps av_stereo3d_alloc.

Allocate an AVStereo3D structure and set its fields to default values.
The resulting struct can be freed using av_freep().

@return An AVStereo3D filled with default values or NULL on failure.

func AVStereo3DAllocSize

func AVStereo3DAllocSize(size *uint64) *AVStereo3D

AVStereo3DAllocSize wraps av_stereo3d_alloc_size.

Allocate an AVStereo3D structure and set its fields to default values.
The resulting struct can be freed using av_freep().

@return An AVStereo3D filled with default values or NULL on failure.

func AVStereo3DCreateSideData

func AVStereo3DCreateSideData(frame *AVFrame) *AVStereo3D

AVStereo3DCreateSideData wraps av_stereo3d_create_side_data.

Allocate a complete AVFrameSideData and add it to the frame.

@param frame The frame which side data is added to.

@return The AVStereo3D structure to be filled by caller.

func (*AVStereo3D) Baseline

func (s *AVStereo3D) Baseline() uint32

Baseline gets the baseline field.

The distance between the centres of the lenses of the camera system,
in micrometers. Zero if unset.

func (*AVStereo3D) Flags

func (s *AVStereo3D) Flags() int

Flags gets the flags field.

Additional information about the frame packing.

func (*AVStereo3D) HorizontalDisparityAdjustment

func (s *AVStereo3D) HorizontalDisparityAdjustment() *AVRational

HorizontalDisparityAdjustment gets the horizontal_disparity_adjustment field.

Relative shift of the left and right images, which changes the zero parallax plane.
Range is -1.0 to 1.0. Zero if unset.

func (*AVStereo3D) HorizontalFieldOfView

func (s *AVStereo3D) HorizontalFieldOfView() *AVRational

HorizontalFieldOfView gets the horizontal_field_of_view field.

Horizontal field of view, in degrees. Zero if unset.

func (*AVStereo3D) PrimaryEye

func (s *AVStereo3D) PrimaryEye() AVStereo3DPrimaryEye

PrimaryEye gets the primary_eye field.

Which eye is the primary eye when rendering in 2D.

func (*AVStereo3D) RawPtr

func (s *AVStereo3D) RawPtr() unsafe.Pointer

func (*AVStereo3D) SetBaseline

func (s *AVStereo3D) SetBaseline(value uint32)

SetBaseline sets the baseline field.

The distance between the centres of the lenses of the camera system,
in micrometers. Zero if unset.

func (*AVStereo3D) SetFlags

func (s *AVStereo3D) SetFlags(value int)

SetFlags sets the flags field.

Additional information about the frame packing.

func (*AVStereo3D) SetHorizontalDisparityAdjustment

func (s *AVStereo3D) SetHorizontalDisparityAdjustment(value *AVRational)

SetHorizontalDisparityAdjustment sets the horizontal_disparity_adjustment field.

Relative shift of the left and right images, which changes the zero parallax plane.
Range is -1.0 to 1.0. Zero if unset.

func (*AVStereo3D) SetHorizontalFieldOfView

func (s *AVStereo3D) SetHorizontalFieldOfView(value *AVRational)

SetHorizontalFieldOfView sets the horizontal_field_of_view field.

Horizontal field of view, in degrees. Zero if unset.

func (*AVStereo3D) SetPrimaryEye

func (s *AVStereo3D) SetPrimaryEye(value AVStereo3DPrimaryEye)

SetPrimaryEye sets the primary_eye field.

Which eye is the primary eye when rendering in 2D.

func (*AVStereo3D) SetType

func (s *AVStereo3D) SetType(value AVStereo3DType)

SetType sets the type field.

How views are packed within the video.

func (*AVStereo3D) SetView

func (s *AVStereo3D) SetView(value AVStereo3DView)

SetView sets the view field.

Determines which views are packed.

func (*AVStereo3D) Type

func (s *AVStereo3D) Type() AVStereo3DType

Type gets the type field.

How views are packed within the video.

func (*AVStereo3D) View

func (s *AVStereo3D) View() AVStereo3DView

View gets the view field.

Determines which views are packed.

type AVStereo3DPrimaryEye

type AVStereo3DPrimaryEye C.enum_AVStereo3DPrimaryEye

AVStereo3DPrimaryEye wraps AVStereo3DPrimaryEye.

List of possible primary eyes.
const (
	// AVPrimaryEyeNone wraps AV_PRIMARY_EYE_NONE.
	//
	//	Neither eye.
	AVPrimaryEyeNone AVStereo3DPrimaryEye = C.AV_PRIMARY_EYE_NONE
	// AVPrimaryEyeLeft wraps AV_PRIMARY_EYE_LEFT.
	//
	//	Left eye.
	AVPrimaryEyeLeft AVStereo3DPrimaryEye = C.AV_PRIMARY_EYE_LEFT
	// AVPrimaryEyeRight wraps AV_PRIMARY_EYE_RIGHT.
	//
	//	Right eye
	AVPrimaryEyeRight AVStereo3DPrimaryEye = C.AV_PRIMARY_EYE_RIGHT
)

type AVStereo3DType

type AVStereo3DType C.enum_AVStereo3DType

AVStereo3DType wraps AVStereo3DType.

List of possible 3D Types
const (
	// AVStereo3D2D wraps AV_STEREO3D_2D.
	//
	//	Video is not stereoscopic (and metadata has to be there).
	AVStereo3D2D AVStereo3DType = C.AV_STEREO3D_2D
	// AVStereo3DSidebyside wraps AV_STEREO3D_SIDEBYSIDE.
	/*
	   Views are next to each other.

	   @code{.unparsed}
	      LLLLRRRR
	      LLLLRRRR
	      LLLLRRRR
	      ...
	   @endcode
	*/
	AVStereo3DSidebyside AVStereo3DType = C.AV_STEREO3D_SIDEBYSIDE
	// AVStereo3DTopbottom wraps AV_STEREO3D_TOPBOTTOM.
	/*
	   Views are on top of each other.

	   @code{.unparsed}
	      LLLLLLLL
	      LLLLLLLL
	      RRRRRRRR
	      RRRRRRRR
	   @endcode
	*/
	AVStereo3DTopbottom AVStereo3DType = C.AV_STEREO3D_TOPBOTTOM
	// AVStereo3DFramesequence wraps AV_STEREO3D_FRAMESEQUENCE.
	/*
	   Views are alternated temporally.

	   @code{.unparsed}
	       frame0   frame1   frame2   ...
	      LLLLLLLL RRRRRRRR LLLLLLLL
	      LLLLLLLL RRRRRRRR LLLLLLLL
	      LLLLLLLL RRRRRRRR LLLLLLLL
	      ...      ...      ...
	   @endcode
	*/
	AVStereo3DFramesequence AVStereo3DType = C.AV_STEREO3D_FRAMESEQUENCE
	// AVStereo3DCheckerboard wraps AV_STEREO3D_CHECKERBOARD.
	/*
	   Views are packed in a checkerboard-like structure per pixel.

	   @code{.unparsed}
	      LRLRLRLR
	      RLRLRLRL
	      LRLRLRLR
	      ...
	   @endcode
	*/
	AVStereo3DCheckerboard AVStereo3DType = C.AV_STEREO3D_CHECKERBOARD
	// AVStereo3DSidebysideQuincunx wraps AV_STEREO3D_SIDEBYSIDE_QUINCUNX.
	/*
	   Views are next to each other, but when upscaling
	   apply a checkerboard pattern.

	   @code{.unparsed}
	       LLLLRRRR          L L L L    R R R R
	       LLLLRRRR    =>     L L L L  R R R R
	       LLLLRRRR          L L L L    R R R R
	       LLLLRRRR           L L L L  R R R R
	   @endcode
	*/
	AVStereo3DSidebysideQuincunx AVStereo3DType = C.AV_STEREO3D_SIDEBYSIDE_QUINCUNX
	// AVStereo3DLines wraps AV_STEREO3D_LINES.
	/*
	   Views are packed per line, as if interlaced.

	   @code{.unparsed}
	      LLLLLLLL
	      RRRRRRRR
	      LLLLLLLL
	      ...
	   @endcode
	*/
	AVStereo3DLines AVStereo3DType = C.AV_STEREO3D_LINES
	// AVStereo3DColumns wraps AV_STEREO3D_COLUMNS.
	/*
	   Views are packed per column.

	   @code{.unparsed}
	      LRLRLRLR
	      LRLRLRLR
	      LRLRLRLR
	      ...
	   @endcode
	*/
	AVStereo3DColumns AVStereo3DType = C.AV_STEREO3D_COLUMNS
	// AVStereo3DUnspec wraps AV_STEREO3D_UNSPEC.
	//
	//	Video is stereoscopic but the packing is unspecified.
	AVStereo3DUnspec AVStereo3DType = C.AV_STEREO3D_UNSPEC
)

type AVStereo3DView

type AVStereo3DView C.enum_AVStereo3DView

AVStereo3DView wraps AVStereo3DView.

List of possible view types.
const (
	// AVStereo3DViewPacked wraps AV_STEREO3D_VIEW_PACKED.
	//
	//	Frame contains two packed views.
	AVStereo3DViewPacked AVStereo3DView = C.AV_STEREO3D_VIEW_PACKED
	// AVStereo3DViewLeft wraps AV_STEREO3D_VIEW_LEFT.
	//
	//	Frame contains only the left view.
	AVStereo3DViewLeft AVStereo3DView = C.AV_STEREO3D_VIEW_LEFT
	// AVStereo3DViewRight wraps AV_STEREO3D_VIEW_RIGHT.
	//
	//	Frame contains only the right view.
	AVStereo3DViewRight AVStereo3DView = C.AV_STEREO3D_VIEW_RIGHT
	// AVStereo3DViewUnspec wraps AV_STEREO3D_VIEW_UNSPEC.
	//
	//	Content is unspecified.
	AVStereo3DViewUnspec AVStereo3DView = C.AV_STEREO3D_VIEW_UNSPEC
)

type AVStream

type AVStream struct {
	// contains filtered or unexported fields
}

AVStream wraps AVStream.

Stream structure.
New fields can be added to the end with minor version bumps.
Removal, reordering and changes to existing fields require a major
version bump.
sizeof(AVStream) must not be used outside libav*.

func AVFormatNewStream

func AVFormatNewStream(s *AVFormatContext, c *AVCodec) *AVStream

AVFormatNewStream wraps avformat_new_stream.

Add a new stream to a media file.

When demuxing, it is called by the demuxer in read_header(). If the
flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
be called in read_packet().

When muxing, should be called by the user before avformat_write_header().

User is required to call avformat_free_context() to clean up the allocation
by avformat_new_stream().

@param s media file handle
@param c unused, does nothing

@return newly created stream or NULL on error.

func (*AVStream) AttachedPic

func (s *AVStream) AttachedPic() *AVPacket

AttachedPic gets the attached_pic field.

For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet
will contain the attached picture.

decoding: set by libavformat, must not be modified by the caller.
encoding: unused

func (*AVStream) AvClass

func (s *AVStream) AvClass() *AVClass

AvClass gets the av_class field.

A class for @ref avoptions. Set on stream creation.

func (*AVStream) AvgFrameRate

func (s *AVStream) AvgFrameRate() *AVRational

AvgFrameRate gets the avg_frame_rate field.

Average framerate

- demuxing: May be set by libavformat when creating the stream or in
            avformat_find_stream_info().
- muxing: May be set by the caller before avformat_write_header().

func (*AVStream) Codecpar

func (s *AVStream) Codecpar() *AVCodecParameters

Codecpar gets the codecpar field.

Codec parameters associated with this stream. Allocated and freed by
libavformat in avformat_new_stream() and avformat_free_context()
respectively.

- demuxing: filled by libavformat on stream creation or in
            avformat_find_stream_info()
- muxing: filled by the caller before avformat_write_header()

func (*AVStream) Discard

func (s *AVStream) Discard() AVDiscard

Discard gets the discard field.

Selects which packets can be discarded at will and do not need to be demuxed.

func (*AVStream) Disposition

func (s *AVStream) Disposition() int

Disposition gets the disposition field.

Stream disposition - a combination of AV_DISPOSITION_* flags.
- demuxing: set by libavformat when creating the stream or in
            avformat_find_stream_info().
- muxing: may be set by the caller before avformat_write_header().

func (*AVStream) Duration

func (s *AVStream) Duration() int64

Duration gets the duration field.

Decoding: duration of the stream, in stream time base.
If a source file does not specify a duration, but does specify
a bitrate, this value will be estimated from bitrate and file size.

Encoding: May be set by the caller before avformat_write_header() to
provide a hint to the muxer about the estimated duration.

func (*AVStream) EventFlags

func (s *AVStream) EventFlags() int

EventFlags gets the event_flags field.

Flags indicating events happening on the stream, a combination of
AVSTREAM_EVENT_FLAG_*.

- demuxing: may be set by the demuxer in avformat_open_input(),
  avformat_find_stream_info() and av_read_frame(). Flags must be cleared
  by the user once the event has been handled.
- muxing: may be set by the user after avformat_write_header(). to
  indicate a user-triggered event.  The muxer will clear the flags for
  events it has handled in av_[interleaved]_write_frame().

func (*AVStream) Id

func (s *AVStream) Id() int

Id gets the id field.

Format-specific stream ID.
decoding: set by libavformat
encoding: set by the user, replaced by libavformat if left unset

func (*AVStream) Index

func (s *AVStream) Index() int

Index gets the index field.

stream index in AVFormatContext

func (*AVStream) Metadata

func (s *AVStream) Metadata() *AVDictionary

Metadata gets the metadata field.

func (*AVStream) NbFrames

func (s *AVStream) NbFrames() int64

NbFrames gets the nb_frames field.

number of frames in this stream if known or 0

func (*AVStream) PrivData

func (s *AVStream) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

func (*AVStream) PtsWrapBits

func (s *AVStream) PtsWrapBits() int

PtsWrapBits gets the pts_wrap_bits field.

Number of bits in timestamps. Used for wrapping control.

- demuxing: set by libavformat
- muxing: set by libavformat

func (*AVStream) RFrameRate

func (s *AVStream) RFrameRate() *AVRational

RFrameRate gets the r_frame_rate field.

Real base framerate of the stream.
This is the lowest framerate with which all timestamps can be
represented accurately (it is the least common multiple of all
framerates in the stream). Note, this value is just a guess!
For example, if the time base is 1/90000 and all frames have either
approximately 3600 or 1800 timer ticks, then r_frame_rate will be 50/1.

func (*AVStream) RawPtr

func (s *AVStream) RawPtr() unsafe.Pointer

func (*AVStream) SampleAspectRatio

func (s *AVStream) SampleAspectRatio() *AVRational

SampleAspectRatio gets the sample_aspect_ratio field.

sample aspect ratio (0 if unknown)
- encoding: Set by user.
- decoding: Set by libavformat.

func (*AVStream) SetAvClass

func (s *AVStream) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for @ref avoptions. Set on stream creation.

func (*AVStream) SetAvgFrameRate

func (s *AVStream) SetAvgFrameRate(value *AVRational)

SetAvgFrameRate sets the avg_frame_rate field.

Average framerate

- demuxing: May be set by libavformat when creating the stream or in
            avformat_find_stream_info().
- muxing: May be set by the caller before avformat_write_header().

func (*AVStream) SetCodecpar

func (s *AVStream) SetCodecpar(value *AVCodecParameters)

SetCodecpar sets the codecpar field.

Codec parameters associated with this stream. Allocated and freed by
libavformat in avformat_new_stream() and avformat_free_context()
respectively.

- demuxing: filled by libavformat on stream creation or in
            avformat_find_stream_info()
- muxing: filled by the caller before avformat_write_header()

func (*AVStream) SetDiscard

func (s *AVStream) SetDiscard(value AVDiscard)

SetDiscard sets the discard field.

Selects which packets can be discarded at will and do not need to be demuxed.

func (*AVStream) SetDisposition

func (s *AVStream) SetDisposition(value int)

SetDisposition sets the disposition field.

Stream disposition - a combination of AV_DISPOSITION_* flags.
- demuxing: set by libavformat when creating the stream or in
            avformat_find_stream_info().
- muxing: may be set by the caller before avformat_write_header().

func (*AVStream) SetDuration

func (s *AVStream) SetDuration(value int64)

SetDuration sets the duration field.

Decoding: duration of the stream, in stream time base.
If a source file does not specify a duration, but does specify
a bitrate, this value will be estimated from bitrate and file size.

Encoding: May be set by the caller before avformat_write_header() to
provide a hint to the muxer about the estimated duration.

func (*AVStream) SetEventFlags

func (s *AVStream) SetEventFlags(value int)

SetEventFlags sets the event_flags field.

Flags indicating events happening on the stream, a combination of
AVSTREAM_EVENT_FLAG_*.

- demuxing: may be set by the demuxer in avformat_open_input(),
  avformat_find_stream_info() and av_read_frame(). Flags must be cleared
  by the user once the event has been handled.
- muxing: may be set by the user after avformat_write_header(). to
  indicate a user-triggered event.  The muxer will clear the flags for
  events it has handled in av_[interleaved]_write_frame().

func (*AVStream) SetId

func (s *AVStream) SetId(value int)

SetId sets the id field.

Format-specific stream ID.
decoding: set by libavformat
encoding: set by the user, replaced by libavformat if left unset

func (*AVStream) SetIndex

func (s *AVStream) SetIndex(value int)

SetIndex sets the index field.

stream index in AVFormatContext

func (*AVStream) SetMetadata

func (s *AVStream) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

func (*AVStream) SetNbFrames

func (s *AVStream) SetNbFrames(value int64)

SetNbFrames sets the nb_frames field.

number of frames in this stream if known or 0

func (*AVStream) SetPrivData

func (s *AVStream) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

func (*AVStream) SetPtsWrapBits

func (s *AVStream) SetPtsWrapBits(value int)

SetPtsWrapBits sets the pts_wrap_bits field.

Number of bits in timestamps. Used for wrapping control.

- demuxing: set by libavformat
- muxing: set by libavformat

func (*AVStream) SetRFrameRate

func (s *AVStream) SetRFrameRate(value *AVRational)

SetRFrameRate sets the r_frame_rate field.

Real base framerate of the stream.
This is the lowest framerate with which all timestamps can be
represented accurately (it is the least common multiple of all
framerates in the stream). Note, this value is just a guess!
For example, if the time base is 1/90000 and all frames have either
approximately 3600 or 1800 timer ticks, then r_frame_rate will be 50/1.

func (*AVStream) SetSampleAspectRatio

func (s *AVStream) SetSampleAspectRatio(value *AVRational)

SetSampleAspectRatio sets the sample_aspect_ratio field.

sample aspect ratio (0 if unknown)
- encoding: Set by user.
- decoding: Set by libavformat.

func (*AVStream) SetStartTime

func (s *AVStream) SetStartTime(value int64)

SetStartTime sets the start_time field.

Decoding: pts of the first frame of the stream in presentation order, in stream time base.
Only set this if you are absolutely 100% sure that the value you set
it to really is the pts of the first frame.
This may be undefined (AV_NOPTS_VALUE).
@note The ASF header does NOT contain a correct start_time the ASF
demuxer must NOT set this.

func (*AVStream) SetTimeBase

func (s *AVStream) SetTimeBase(value *AVRational)

SetTimeBase sets the time_base field.

This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented.

decoding: set by libavformat
encoding: May be set by the caller before avformat_write_header() to
          provide a hint to the muxer about the desired timebase. In
          avformat_write_header(), the muxer will overwrite this field
          with the timebase that will actually be used for the timestamps
          written into the file (which may or may not be related to the
          user-provided one, depending on the format).

func (*AVStream) StartTime

func (s *AVStream) StartTime() int64

StartTime gets the start_time field.

Decoding: pts of the first frame of the stream in presentation order, in stream time base.
Only set this if you are absolutely 100% sure that the value you set
it to really is the pts of the first frame.
This may be undefined (AV_NOPTS_VALUE).
@note The ASF header does NOT contain a correct start_time the ASF
demuxer must NOT set this.

func (*AVStream) TimeBase

func (s *AVStream) TimeBase() *AVRational

TimeBase gets the time_base field.

This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented.

decoding: set by libavformat
encoding: May be set by the caller before avformat_write_header() to
          provide a hint to the muxer about the desired timebase. In
          avformat_write_header(), the muxer will overwrite this field
          with the timebase that will actually be used for the timestamps
          written into the file (which may or may not be related to the
          user-provided one, depending on the format).

type AVStreamGroup

type AVStreamGroup struct {
	// contains filtered or unexported fields
}

AVStreamGroup wraps AVStreamGroup.

func AVFormatStreamGroupCreate

func AVFormatStreamGroupCreate(s *AVFormatContext, _type AVStreamGroupParamsType, options **AVDictionary) *AVStreamGroup

AVFormatStreamGroupCreate wraps avformat_stream_group_create.

Add a new empty stream group to a media file.

When demuxing, it may be called by the demuxer in read_header(). If the
flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
be called in read_packet().

When muxing, may be called by the user before avformat_write_header().

User is required to call avformat_free_context() to clean up the allocation
by avformat_stream_group_create().

New streams can be added to the group with avformat_stream_group_add_stream().

@param s media file handle

@return newly created group or NULL on error.
@see avformat_new_stream, avformat_stream_group_add_stream.

func (*AVStreamGroup) AvClass

func (s *AVStreamGroup) AvClass() *AVClass

AvClass gets the av_class field.

A class for @ref avoptions. Set by avformat_stream_group_create().

func (*AVStreamGroup) Disposition

func (s *AVStreamGroup) Disposition() int

Disposition gets the disposition field.

Stream group disposition - a combination of AV_DISPOSITION_* flags.
This field currently applies to all defined AVStreamGroupParamsType.

- demuxing: set by libavformat when creating the group or in
            avformat_find_stream_info().
- muxing: may be set by the caller before avformat_write_header().

func (*AVStreamGroup) Id

func (s *AVStreamGroup) Id() int64

Id gets the id field.

Group type-specific group ID.

decoding: set by libavformat
encoding: may set by the user

func (*AVStreamGroup) Index

func (s *AVStreamGroup) Index() uint

Index gets the index field.

Group index in AVFormatContext.

func (*AVStreamGroup) Metadata

func (s *AVStreamGroup) Metadata() *AVDictionary

Metadata gets the metadata field.

Metadata that applies to the whole group.

- demuxing: set by libavformat on group creation
- muxing: may be set by the caller before avformat_write_header()

Freed by libavformat in avformat_free_context().

func (*AVStreamGroup) NbStreams

func (s *AVStreamGroup) NbStreams() uint

NbStreams gets the nb_streams field.

Number of elements in AVStreamGroup.streams.

Set by avformat_stream_group_add_stream() must not be modified by any other code.

func (*AVStreamGroup) PrivData

func (s *AVStreamGroup) PrivData() unsafe.Pointer

PrivData gets the priv_data field.

func (*AVStreamGroup) RawPtr

func (s *AVStreamGroup) RawPtr() unsafe.Pointer

func (*AVStreamGroup) SetAvClass

func (s *AVStreamGroup) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

A class for @ref avoptions. Set by avformat_stream_group_create().

func (*AVStreamGroup) SetDisposition

func (s *AVStreamGroup) SetDisposition(value int)

SetDisposition sets the disposition field.

Stream group disposition - a combination of AV_DISPOSITION_* flags.
This field currently applies to all defined AVStreamGroupParamsType.

- demuxing: set by libavformat when creating the group or in
            avformat_find_stream_info().
- muxing: may be set by the caller before avformat_write_header().

func (*AVStreamGroup) SetId

func (s *AVStreamGroup) SetId(value int64)

SetId sets the id field.

Group type-specific group ID.

decoding: set by libavformat
encoding: may set by the user

func (*AVStreamGroup) SetIndex

func (s *AVStreamGroup) SetIndex(value uint)

SetIndex sets the index field.

Group index in AVFormatContext.

func (*AVStreamGroup) SetMetadata

func (s *AVStreamGroup) SetMetadata(value *AVDictionary)

SetMetadata sets the metadata field.

Metadata that applies to the whole group.

- demuxing: set by libavformat on group creation
- muxing: may be set by the caller before avformat_write_header()

Freed by libavformat in avformat_free_context().

func (*AVStreamGroup) SetNbStreams

func (s *AVStreamGroup) SetNbStreams(value uint)

SetNbStreams sets the nb_streams field.

Number of elements in AVStreamGroup.streams.

Set by avformat_stream_group_add_stream() must not be modified by any other code.

func (*AVStreamGroup) SetPrivData

func (s *AVStreamGroup) SetPrivData(value unsafe.Pointer)

SetPrivData sets the priv_data field.

func (*AVStreamGroup) SetStreams

func (s *AVStreamGroup) SetStreams(value *Array[AVStream])

SetStreams sets the streams field.

A list of streams in the group. New entries are created with
avformat_stream_group_add_stream().

- demuxing: entries are created by libavformat on group creation.
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new entries may also
            appear in av_read_frame().
- muxing: entries are created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVStreamGroup) SetType

func (s *AVStreamGroup) SetType(value AVStreamGroupParamsType)

SetType sets the type field.

Group type

decoding: set by libavformat on group creation
encoding: set by avformat_stream_group_create()

func (*AVStreamGroup) Streams

func (s *AVStreamGroup) Streams() *Array[*AVStream]

Streams gets the streams field.

A list of streams in the group. New entries are created with
avformat_stream_group_add_stream().

- demuxing: entries are created by libavformat on group creation.
            If AVFMTCTX_NOHEADER is set in ctx_flags, then new entries may also
            appear in av_read_frame().
- muxing: entries are created by the user before avformat_write_header().

Freed by libavformat in avformat_free_context().

func (*AVStreamGroup) Type

Type gets the type field.

Group type

decoding: set by libavformat on group creation
encoding: set by avformat_stream_group_create()

type AVStreamGroupLCEVC

type AVStreamGroupLCEVC struct {
	// contains filtered or unexported fields
}

AVStreamGroupLCEVC wraps AVStreamGroupLCEVC.

AVStreamGroupLCEVC is meant to define the relation between video streams
and a data stream containing LCEVC enhancement layer NALUs.

No more than one stream of @ref AVCodecParameters.codec_type "codec_type"
AVMEDIA_TYPE_DATA shall be present, and it must be of
@ref AVCodecParameters.codec_id "codec_id" AV_CODEC_ID_LCEVC.

func (*AVStreamGroupLCEVC) AvClass

func (s *AVStreamGroupLCEVC) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVStreamGroupLCEVC) Height

func (s *AVStreamGroupLCEVC) Height() int

Height gets the height field.

Height of the final image for presentation.

func (*AVStreamGroupLCEVC) LcevcIndex

func (s *AVStreamGroupLCEVC) LcevcIndex() uint

LcevcIndex gets the lcevc_index field.

Index of the LCEVC data stream in AVStreamGroup.

func (*AVStreamGroupLCEVC) RawPtr

func (s *AVStreamGroupLCEVC) RawPtr() unsafe.Pointer

func (*AVStreamGroupLCEVC) SetAvClass

func (s *AVStreamGroupLCEVC) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVStreamGroupLCEVC) SetHeight

func (s *AVStreamGroupLCEVC) SetHeight(value int)

SetHeight sets the height field.

Height of the final image for presentation.

func (*AVStreamGroupLCEVC) SetLcevcIndex

func (s *AVStreamGroupLCEVC) SetLcevcIndex(value uint)

SetLcevcIndex sets the lcevc_index field.

Index of the LCEVC data stream in AVStreamGroup.

func (*AVStreamGroupLCEVC) SetWidth

func (s *AVStreamGroupLCEVC) SetWidth(value int)

SetWidth sets the width field.

Width of the final stream for presentation.

func (*AVStreamGroupLCEVC) Width

func (s *AVStreamGroupLCEVC) Width() int

Width gets the width field.

Width of the final stream for presentation.

type AVStreamGroupParamsType

type AVStreamGroupParamsType C.enum_AVStreamGroupParamsType

AVStreamGroupParamsType wraps AVStreamGroupParamsType.

const (
	// AVStreamGroupParamsNone wraps AV_STREAM_GROUP_PARAMS_NONE.
	AVStreamGroupParamsNone AVStreamGroupParamsType = C.AV_STREAM_GROUP_PARAMS_NONE
	// AVStreamGroupParamsIamfAudioElement wraps AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT.
	AVStreamGroupParamsIamfAudioElement AVStreamGroupParamsType = C.AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT
	// AVStreamGroupParamsIamfMixPresentation wraps AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION.
	AVStreamGroupParamsIamfMixPresentation AVStreamGroupParamsType = C.AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION
	// AVStreamGroupParamsTileGrid wraps AV_STREAM_GROUP_PARAMS_TILE_GRID.
	AVStreamGroupParamsTileGrid AVStreamGroupParamsType = C.AV_STREAM_GROUP_PARAMS_TILE_GRID
	// AVStreamGroupParamsLcevc wraps AV_STREAM_GROUP_PARAMS_LCEVC.
	AVStreamGroupParamsLcevc AVStreamGroupParamsType = C.AV_STREAM_GROUP_PARAMS_LCEVC
)

type AVStreamGroupTileGrid

type AVStreamGroupTileGrid struct {
	// contains filtered or unexported fields
}

AVStreamGroupTileGrid wraps AVStreamGroupTileGrid.

AVStreamGroupTileGrid holds information on how to combine several
independent images on a single canvas for presentation.

The output should be a @ref AVStreamGroupTileGrid.background "background"
colored @ref AVStreamGroupTileGrid.coded_width "coded_width" x
@ref AVStreamGroupTileGrid.coded_height "coded_height" canvas where a
@ref AVStreamGroupTileGrid.nb_tiles "nb_tiles" amount of tiles are placed in
the order they appear in the @ref AVStreamGroupTileGrid.offsets "offsets"
array, at the exact offset described for them. In particular, if two or more
tiles overlap, the image with higher index in the
@ref AVStreamGroupTileGrid.offsets "offsets" array takes priority.
Note that a single image may be used multiple times, i.e. multiple entries
in @ref AVStreamGroupTileGrid.offsets "offsets" may have the same value of
idx.

The following is an example of a simple grid with 3 rows and 4 columns:

+---+---+---+---+
| 0 | 1 | 2 | 3 |
+---+---+---+---+
| 4 | 5 | 6 | 7 |
+---+---+---+---+
| 8 | 9 |10 |11 |
+---+---+---+---+

Assuming all tiles have a dimension of 512x512, the
@ref AVStreamGroupTileGrid.offsets "offset" of the topleft pixel of
the first @ref AVStreamGroup.streams "stream" in the group is "0,0", the
@ref AVStreamGroupTileGrid.offsets "offset" of the topleft pixel of
the second @ref AVStreamGroup.streams "stream" in the group is "512,0", the
@ref AVStreamGroupTileGrid.offsets "offset" of the topleft pixel of
the fifth @ref AVStreamGroup.streams "stream" in the group is "0,512", the
@ref AVStreamGroupTileGrid.offsets "offset", of the topleft pixel of
the sixth @ref AVStreamGroup.streams "stream" in the group is "512,512",
etc.

The following is an example of a canvas with overlapping tiles:

+-----------+
|   %%%%%   |
|***%%3%%@@@|
|**0%%%%%2@@|
|***##1@@@@@|
|   #####   |
+-----------+

Assuming a canvas with size 1024x1024 and all tiles with a dimension of
512x512, a possible @ref AVStreamGroupTileGrid.offsets "offset" for the
topleft pixel of the first @ref AVStreamGroup.streams "stream" in the group
would be 0x256, the @ref AVStreamGroupTileGrid.offsets "offset" for the
topleft pixel of the second @ref AVStreamGroup.streams "stream" in the group
would be 256x512, the @ref AVStreamGroupTileGrid.offsets "offset" for the
topleft pixel of the third @ref AVStreamGroup.streams "stream" in the group
would be 512x256, and the @ref AVStreamGroupTileGrid.offsets "offset" for
the topleft pixel of the fourth @ref AVStreamGroup.streams "stream" in the
group would be 256x0.

sizeof(AVStreamGroupTileGrid) is not a part of the ABI and may only be
allocated by avformat_stream_group_create().

func (*AVStreamGroupTileGrid) AvClass

func (s *AVStreamGroupTileGrid) AvClass() *AVClass

AvClass gets the av_class field.

func (*AVStreamGroupTileGrid) Background

func (s *AVStreamGroupTileGrid) Background() *Array[uint8]

Background gets the background field.

The pixel value per channel in RGBA format used if no pixel of any tile
is located at a particular pixel location.

@see av_image_fill_color().
@see av_parse_color().

func (*AVStreamGroupTileGrid) CodedHeight

func (s *AVStreamGroupTileGrid) CodedHeight() int

CodedHeight gets the coded_height field.

Width of the canvas.

Must be > 0.

func (*AVStreamGroupTileGrid) CodedSideData

func (s *AVStreamGroupTileGrid) CodedSideData() *AVPacketSideData

CodedSideData gets the coded_side_data field.

Additional data associated with the grid.

Should be allocated with av_packet_side_data_new() or
av_packet_side_data_add(), and will be freed by avformat_free_context().

func (*AVStreamGroupTileGrid) CodedWidth

func (s *AVStreamGroupTileGrid) CodedWidth() int

CodedWidth gets the coded_width field.

Width of the canvas.

Must be > 0.

func (*AVStreamGroupTileGrid) Height

func (s *AVStreamGroupTileGrid) Height() int

Height gets the height field.

Height of the final image for presentation.

Must be > 0 and <= (@ref coded_height - @ref vertical_offset).
When it's not equal to (@ref coded_height - @ref vertical_offset), the
result of (@ref coded_height - height - @ref vertical_offset) is the
amount amount of pixels to be cropped from the bottom edge of the
final image before presentation.

func (*AVStreamGroupTileGrid) HorizontalOffset

func (s *AVStreamGroupTileGrid) HorizontalOffset() int

HorizontalOffset gets the horizontal_offset field.

Offset in pixels from the left edge of the canvas where the actual image
meant for presentation starts.

This field must be >= 0 and < @ref coded_width.

func (*AVStreamGroupTileGrid) NbCodedSideData

func (s *AVStreamGroupTileGrid) NbCodedSideData() int

NbCodedSideData gets the nb_coded_side_data field.

Amount of entries in @ref coded_side_data.

func (*AVStreamGroupTileGrid) NbTiles

func (s *AVStreamGroupTileGrid) NbTiles() uint

NbTiles gets the nb_tiles field.

Amount of tiles in the grid.

Must be > 0.

func (*AVStreamGroupTileGrid) Offsets

Offsets gets the offsets field from AVStreamGroupTileGrid. Returns an array of tile grid offsets containing stream index and pixel positions. The offsets field is an anonymous struct in C, so we cast to our compatible typedef.

func (*AVStreamGroupTileGrid) RawPtr

func (s *AVStreamGroupTileGrid) RawPtr() unsafe.Pointer

func (*AVStreamGroupTileGrid) SetAvClass

func (s *AVStreamGroupTileGrid) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*AVStreamGroupTileGrid) SetCodedHeight

func (s *AVStreamGroupTileGrid) SetCodedHeight(value int)

SetCodedHeight sets the coded_height field.

Width of the canvas.

Must be > 0.

func (*AVStreamGroupTileGrid) SetCodedSideData

func (s *AVStreamGroupTileGrid) SetCodedSideData(value *AVPacketSideData)

SetCodedSideData sets the coded_side_data field.

Additional data associated with the grid.

Should be allocated with av_packet_side_data_new() or
av_packet_side_data_add(), and will be freed by avformat_free_context().

func (*AVStreamGroupTileGrid) SetCodedWidth

func (s *AVStreamGroupTileGrid) SetCodedWidth(value int)

SetCodedWidth sets the coded_width field.

Width of the canvas.

Must be > 0.

func (*AVStreamGroupTileGrid) SetHeight

func (s *AVStreamGroupTileGrid) SetHeight(value int)

SetHeight sets the height field.

Height of the final image for presentation.

Must be > 0 and <= (@ref coded_height - @ref vertical_offset).
When it's not equal to (@ref coded_height - @ref vertical_offset), the
result of (@ref coded_height - height - @ref vertical_offset) is the
amount amount of pixels to be cropped from the bottom edge of the
final image before presentation.

func (*AVStreamGroupTileGrid) SetHorizontalOffset

func (s *AVStreamGroupTileGrid) SetHorizontalOffset(value int)

SetHorizontalOffset sets the horizontal_offset field.

Offset in pixels from the left edge of the canvas where the actual image
meant for presentation starts.

This field must be >= 0 and < @ref coded_width.

func (*AVStreamGroupTileGrid) SetNbCodedSideData

func (s *AVStreamGroupTileGrid) SetNbCodedSideData(value int)

SetNbCodedSideData sets the nb_coded_side_data field.

Amount of entries in @ref coded_side_data.

func (*AVStreamGroupTileGrid) SetNbTiles

func (s *AVStreamGroupTileGrid) SetNbTiles(value uint)

SetNbTiles sets the nb_tiles field.

Amount of tiles in the grid.

Must be > 0.

func (*AVStreamGroupTileGrid) SetOffsets

func (s *AVStreamGroupTileGrid) SetOffsets(value *AVStreamGroupTileGridOffset)

SetOffsets sets the offsets field on AVStreamGroupTileGrid.

func (*AVStreamGroupTileGrid) SetVerticalOffset

func (s *AVStreamGroupTileGrid) SetVerticalOffset(value int)

SetVerticalOffset sets the vertical_offset field.

Offset in pixels from the top edge of the canvas where the actual image
meant for presentation starts.

This field must be >= 0 and < @ref coded_height.

func (*AVStreamGroupTileGrid) SetWidth

func (s *AVStreamGroupTileGrid) SetWidth(value int)

SetWidth sets the width field.

Width of the final image for presentation.

Must be > 0 and <= (@ref coded_width - @ref horizontal_offset).
When it's not equal to (@ref coded_width - @ref horizontal_offset), the
result of (@ref coded_width - width - @ref horizontal_offset) is the
amount amount of pixels to be cropped from the right edge of the
final image before presentation.

func (*AVStreamGroupTileGrid) VerticalOffset

func (s *AVStreamGroupTileGrid) VerticalOffset() int

VerticalOffset gets the vertical_offset field.

Offset in pixels from the top edge of the canvas where the actual image
meant for presentation starts.

This field must be >= 0 and < @ref coded_height.

func (*AVStreamGroupTileGrid) Width

func (s *AVStreamGroupTileGrid) Width() int

Width gets the width field.

Width of the final image for presentation.

Must be > 0 and <= (@ref coded_width - @ref horizontal_offset).
When it's not equal to (@ref coded_width - @ref horizontal_offset), the
result of (@ref coded_width - width - @ref horizontal_offset) is the
amount amount of pixels to be cropped from the right edge of the
final image before presentation.

type AVStreamGroupTileGridOffset

type AVStreamGroupTileGridOffset struct {
	// contains filtered or unexported fields
}

AVStreamGroupTileGridOffset wraps the anonymous struct used in AVStreamGroupTileGrid.offsets. This is a tile grid offset structure containing the stream index and pixel offsets.

func (*AVStreamGroupTileGridOffset) Horizontal

func (s *AVStreamGroupTileGridOffset) Horizontal() int

Horizontal gets the horizontal field. Offset in pixels from the left edge of the canvas where the tile should be placed.

func (*AVStreamGroupTileGridOffset) Idx

Idx gets the idx field. Index of the stream in the group this tile references. Must be < AVStreamGroup.nb_streams.

func (*AVStreamGroupTileGridOffset) RawPtr

RawPtr returns the underlying C pointer.

func (*AVStreamGroupTileGridOffset) SetHorizontal

func (s *AVStreamGroupTileGridOffset) SetHorizontal(value int)

SetHorizontal sets the horizontal field.

func (*AVStreamGroupTileGridOffset) SetIdx

func (s *AVStreamGroupTileGridOffset) SetIdx(value uint)

SetIdx sets the idx field.

func (*AVStreamGroupTileGridOffset) SetVertical

func (s *AVStreamGroupTileGridOffset) SetVertical(value int)

SetVertical sets the vertical field.

func (*AVStreamGroupTileGridOffset) Vertical

func (s *AVStreamGroupTileGridOffset) Vertical() int

Vertical gets the vertical field. Offset in pixels from the top edge of the canvas where the tile should be placed.

type AVStreamParseType

type AVStreamParseType C.enum_AVStreamParseType

AVStreamParseType wraps AVStreamParseType.

const (
	// AVStreamParseNone wraps AVSTREAM_PARSE_NONE.
	AVStreamParseNone AVStreamParseType = C.AVSTREAM_PARSE_NONE
	// AVStreamParseFull wraps AVSTREAM_PARSE_FULL.
	//
	//	full parsing and repack
	AVStreamParseFull AVStreamParseType = C.AVSTREAM_PARSE_FULL
	// AVStreamParseHeaders wraps AVSTREAM_PARSE_HEADERS.
	//
	//	Only parse headers, do not repack.
	AVStreamParseHeaders AVStreamParseType = C.AVSTREAM_PARSE_HEADERS
	// AVStreamParseTimestamps wraps AVSTREAM_PARSE_TIMESTAMPS.
	//
	//	full parsing and interpolation of timestamps for frames not starting on a packet boundary
	AVStreamParseTimestamps AVStreamParseType = C.AVSTREAM_PARSE_TIMESTAMPS
	// AVStreamParseFullOnce wraps AVSTREAM_PARSE_FULL_ONCE.
	//
	//	full parsing and repack of the first frame only, only implemented for H.264 currently
	AVStreamParseFullOnce AVStreamParseType = C.AVSTREAM_PARSE_FULL_ONCE
	// AVStreamParseFullRaw wraps AVSTREAM_PARSE_FULL_RAW.
	/*
	   < full parsing and repack with timestamp and position generation by parser for raw
	   this assumes that each packet in the file contains no demuxer level headers and
	   just codec level data, otherwise position generation would fail
	*/
	AVStreamParseFullRaw AVStreamParseType = C.AVSTREAM_PARSE_FULL_RAW
)

type AVSubsampleEncryptionInfo

type AVSubsampleEncryptionInfo struct {
	// contains filtered or unexported fields
}

AVSubsampleEncryptionInfo wraps AVSubsampleEncryptionInfo.

func (*AVSubsampleEncryptionInfo) BytesOfClearData

func (s *AVSubsampleEncryptionInfo) BytesOfClearData() uint

BytesOfClearData gets the bytes_of_clear_data field.

The number of bytes that are clear.

func (*AVSubsampleEncryptionInfo) BytesOfProtectedData

func (s *AVSubsampleEncryptionInfo) BytesOfProtectedData() uint

BytesOfProtectedData gets the bytes_of_protected_data field.

The number of bytes that are protected.  If using pattern encryption,
the pattern applies to only the protected bytes; if not using pattern
encryption, all these bytes are encrypted.

func (*AVSubsampleEncryptionInfo) RawPtr

func (*AVSubsampleEncryptionInfo) SetBytesOfClearData

func (s *AVSubsampleEncryptionInfo) SetBytesOfClearData(value uint)

SetBytesOfClearData sets the bytes_of_clear_data field.

The number of bytes that are clear.

func (*AVSubsampleEncryptionInfo) SetBytesOfProtectedData

func (s *AVSubsampleEncryptionInfo) SetBytesOfProtectedData(value uint)

SetBytesOfProtectedData sets the bytes_of_protected_data field.

The number of bytes that are protected.  If using pattern encryption,
the pattern applies to only the protected bytes; if not using pattern
encryption, all these bytes are encrypted.

type AVSubtitle

type AVSubtitle struct {
	// contains filtered or unexported fields
}

AVSubtitle wraps AVSubtitle.

func (*AVSubtitle) EndDisplayTime

func (s *AVSubtitle) EndDisplayTime() uint32

EndDisplayTime gets the end_display_time field.

relative to packet pts, in ms

func (*AVSubtitle) Format

func (s *AVSubtitle) Format() uint16

Format gets the format field.

0 = graphics

func (*AVSubtitle) NumRects

func (s *AVSubtitle) NumRects() uint

NumRects gets the num_rects field.

func (*AVSubtitle) Pts

func (s *AVSubtitle) Pts() int64

Pts gets the pts field.

Same as packet pts, in AV_TIME_BASE

func (*AVSubtitle) RawPtr

func (s *AVSubtitle) RawPtr() unsafe.Pointer

func (*AVSubtitle) Rects

func (s *AVSubtitle) Rects() *Array[*AVSubtitleRect]

Rects gets the rects field.

func (*AVSubtitle) SetEndDisplayTime

func (s *AVSubtitle) SetEndDisplayTime(value uint32)

SetEndDisplayTime sets the end_display_time field.

relative to packet pts, in ms

func (*AVSubtitle) SetFormat

func (s *AVSubtitle) SetFormat(value uint16)

SetFormat sets the format field.

0 = graphics

func (*AVSubtitle) SetNumRects

func (s *AVSubtitle) SetNumRects(value uint)

SetNumRects sets the num_rects field.

func (*AVSubtitle) SetPts

func (s *AVSubtitle) SetPts(value int64)

SetPts sets the pts field.

Same as packet pts, in AV_TIME_BASE

func (*AVSubtitle) SetRects

func (s *AVSubtitle) SetRects(value *Array[AVSubtitleRect])

SetRects sets the rects field.

func (*AVSubtitle) SetStartDisplayTime

func (s *AVSubtitle) SetStartDisplayTime(value uint32)

SetStartDisplayTime sets the start_display_time field.

relative to packet pts, in ms

func (*AVSubtitle) StartDisplayTime

func (s *AVSubtitle) StartDisplayTime() uint32

StartDisplayTime gets the start_display_time field.

relative to packet pts, in ms

type AVSubtitleRect

type AVSubtitleRect struct {
	// contains filtered or unexported fields
}

AVSubtitleRect wraps AVSubtitleRect.

func (*AVSubtitleRect) Ass

func (s *AVSubtitleRect) Ass() *CStr

Ass gets the ass field.

0 terminated ASS/SSA compatible event line.
The presentation of this is unaffected by the other values in this
struct.

func (*AVSubtitleRect) Data

func (s *AVSubtitleRect) Data() *Array[unsafe.Pointer]

Data gets the data field.

data+linesize for the bitmap of this subtitle.
Can be set for text/ass as well once they are rendered.

func (*AVSubtitleRect) Flags

func (s *AVSubtitleRect) Flags() int

Flags gets the flags field.

func (*AVSubtitleRect) H

func (s *AVSubtitleRect) H() int

H gets the h field.

height           of pict, undefined when pict is not set

func (*AVSubtitleRect) Linesize

func (s *AVSubtitleRect) Linesize() *Array[int]

Linesize gets the linesize field.

func (*AVSubtitleRect) NbColors

func (s *AVSubtitleRect) NbColors() int

NbColors gets the nb_colors field.

number of colors in pict, undefined when pict is not set

func (*AVSubtitleRect) RawPtr

func (s *AVSubtitleRect) RawPtr() unsafe.Pointer

func (*AVSubtitleRect) SetAss

func (s *AVSubtitleRect) SetAss(value *CStr)

SetAss sets the ass field.

0 terminated ASS/SSA compatible event line.
The presentation of this is unaffected by the other values in this
struct.

func (*AVSubtitleRect) SetFlags

func (s *AVSubtitleRect) SetFlags(value int)

SetFlags sets the flags field.

func (*AVSubtitleRect) SetH

func (s *AVSubtitleRect) SetH(value int)

SetH sets the h field.

height           of pict, undefined when pict is not set

func (*AVSubtitleRect) SetNbColors

func (s *AVSubtitleRect) SetNbColors(value int)

SetNbColors sets the nb_colors field.

number of colors in pict, undefined when pict is not set

func (*AVSubtitleRect) SetText

func (s *AVSubtitleRect) SetText(value *CStr)

SetText sets the text field.

0 terminated plain UTF-8 text

func (*AVSubtitleRect) SetType

func (s *AVSubtitleRect) SetType(value AVSubtitleType)

SetType sets the type field.

func (*AVSubtitleRect) SetW

func (s *AVSubtitleRect) SetW(value int)

SetW sets the w field.

width            of pict, undefined when pict is not set

func (*AVSubtitleRect) SetX

func (s *AVSubtitleRect) SetX(value int)

SetX sets the x field.

top left corner  of pict, undefined when pict is not set

func (*AVSubtitleRect) SetY

func (s *AVSubtitleRect) SetY(value int)

SetY sets the y field.

top left corner  of pict, undefined when pict is not set

func (*AVSubtitleRect) Text

func (s *AVSubtitleRect) Text() *CStr

Text gets the text field.

0 terminated plain UTF-8 text

func (*AVSubtitleRect) Type

func (s *AVSubtitleRect) Type() AVSubtitleType

Type gets the type field.

func (*AVSubtitleRect) W

func (s *AVSubtitleRect) W() int

W gets the w field.

width            of pict, undefined when pict is not set

func (*AVSubtitleRect) X

func (s *AVSubtitleRect) X() int

X gets the x field.

top left corner  of pict, undefined when pict is not set

func (*AVSubtitleRect) Y

func (s *AVSubtitleRect) Y() int

Y gets the y field.

top left corner  of pict, undefined when pict is not set

type AVSubtitleType

type AVSubtitleType C.enum_AVSubtitleType

AVSubtitleType wraps AVSubtitleType.

const (
	// SubtitleNone wraps SUBTITLE_NONE.
	SubtitleNone AVSubtitleType = C.SUBTITLE_NONE
	// SubtitleBitmap wraps SUBTITLE_BITMAP.
	//
	//	A bitmap, pict will be set
	SubtitleBitmap AVSubtitleType = C.SUBTITLE_BITMAP
	// SubtitleText wraps SUBTITLE_TEXT.
	/*
	   Plain text, the text field must be set by the decoder and is
	   authoritative. ass and pict fields may contain approximations.
	*/
	SubtitleText AVSubtitleType = C.SUBTITLE_TEXT
	// SubtitleAss wraps SUBTITLE_ASS.
	/*
	   Formatted text, the ass field must be set by the decoder and is
	   authoritative. pict and text fields may contain approximations.
	*/
	SubtitleAss AVSubtitleType = C.SUBTITLE_ASS
)

type AVTEA

type AVTEA struct {
	// contains filtered or unexported fields
}

AVTEA wraps AVTEA.

func AVTeaAlloc

func AVTeaAlloc() *AVTEA

AVTeaAlloc wraps av_tea_alloc.

Allocate an AVTEA context
To free the struct: av_free(ptr)

func (*AVTEA) RawPtr

func (s *AVTEA) RawPtr() unsafe.Pointer

type AVTWOFISH

type AVTWOFISH struct {
	// contains filtered or unexported fields
}

AVTWOFISH wraps AVTWOFISH.

func AVTwofishAlloc

func AVTwofishAlloc() *AVTWOFISH

AVTwofishAlloc wraps av_twofish_alloc.

Allocate an AVTWOFISH context
To free the struct: av_free(ptr)

func (*AVTWOFISH) RawPtr

func (s *AVTWOFISH) RawPtr() unsafe.Pointer

type AVTXContext

type AVTXContext struct {
	// contains filtered or unexported fields
}

AVTXContext wraps AVTXContext.

func (*AVTXContext) RawPtr

func (s *AVTXContext) RawPtr() unsafe.Pointer

type AVTXFlags

type AVTXFlags C.enum_AVTXFlags

AVTXFlags wraps AVTXFlags.

Flags for av_tx_init()
const (
	// AVTxInplace wraps AV_TX_INPLACE.
	/*
	   Allows for in-place transformations, where input == output.
	   May be unsupported or slower for some transform types.
	*/
	AVTxInplace AVTXFlags = C.AV_TX_INPLACE
	// AVTxUnaligned wraps AV_TX_UNALIGNED.
	/*
	   Relaxes alignment requirement for the in and out arrays of av_tx_fn().
	   May be slower with certain transform types.
	*/
	AVTxUnaligned AVTXFlags = C.AV_TX_UNALIGNED
	// AVTxFullImdct wraps AV_TX_FULL_IMDCT.
	/*
	   Performs a full inverse MDCT rather than leaving out samples that can be
	   derived through symmetry. Requires an output array of 'len' floats,
	   rather than the usual 'len/2' floats.
	   Ignored for all transforms but inverse MDCTs.
	*/
	AVTxFullImdct AVTXFlags = C.AV_TX_FULL_IMDCT
	// AVTxRealToReal wraps AV_TX_REAL_TO_REAL.
	/*
	   Perform a real to half-complex RDFT.
	   Only the real, or imaginary coefficients will
	   be output, depending on the flag used. Only available for forward RDFTs.
	   Output array must have enough space to hold N complex values
	   (regular size for a real to complex transform).
	*/
	AVTxRealToReal AVTXFlags = C.AV_TX_REAL_TO_REAL
	// AVTxRealToImaginary wraps AV_TX_REAL_TO_IMAGINARY.
	/*
	   Perform a real to half-complex RDFT.
	   Only the real, or imaginary coefficients will
	   be output, depending on the flag used. Only available for forward RDFTs.
	   Output array must have enough space to hold N complex values
	   (regular size for a real to complex transform).
	*/
	AVTxRealToImaginary AVTXFlags = C.AV_TX_REAL_TO_IMAGINARY
)

type AVTXType

type AVTXType C.enum_AVTXType

AVTXType wraps AVTXType.

const (
	// AVTxFloatFFT wraps AV_TX_FLOAT_FFT.
	/*
	   Standard complex to complex FFT with sample data type of AVComplexFloat,
	   AVComplexDouble or AVComplexInt32, for each respective variant.

	   Output is not 1/len normalized. Scaling currently unsupported.
	   The stride parameter must be set to the size of a single sample in bytes.
	*/
	AVTxFloatFFT AVTXType = C.AV_TX_FLOAT_FFT
	// AVTxDoubleFFT wraps AV_TX_DOUBLE_FFT.
	/*
	   Standard complex to complex FFT with sample data type of AVComplexFloat,
	   AVComplexDouble or AVComplexInt32, for each respective variant.

	   Output is not 1/len normalized. Scaling currently unsupported.
	   The stride parameter must be set to the size of a single sample in bytes.
	*/
	AVTxDoubleFFT AVTXType = C.AV_TX_DOUBLE_FFT
	// AVTxInt32FFT wraps AV_TX_INT32_FFT.
	/*
	   Standard complex to complex FFT with sample data type of AVComplexFloat,
	   AVComplexDouble or AVComplexInt32, for each respective variant.

	   Output is not 1/len normalized. Scaling currently unsupported.
	   The stride parameter must be set to the size of a single sample in bytes.
	*/
	AVTxInt32FFT AVTXType = C.AV_TX_INT32_FFT
	// AVTxFloatMdct wraps AV_TX_FLOAT_MDCT.
	/*
	   Standard MDCT with a sample data type of float, double or int32_t,
	   respectively. For the float and int32 variants, the scale type is
	   'float', while for the double variant, it's 'double'.
	   If scale is NULL, 1.0 will be used as a default.

	   Length is the frame size, not the window size (which is 2x frame).
	   For forward transforms, the stride specifies the spacing between each
	   sample in the output array in bytes. The input must be a flat array.

	   For inverse transforms, the stride specifies the spacing between each
	   sample in the input array in bytes. The output must be a flat array.

	   NOTE: the inverse transform is half-length, meaning the output will not
	   contain redundant data. This is what most codecs work with. To do a full
	   inverse transform, set the AV_TX_FULL_IMDCT flag on init.
	*/
	AVTxFloatMdct AVTXType = C.AV_TX_FLOAT_MDCT
	// AVTxDoubleMdct wraps AV_TX_DOUBLE_MDCT.
	/*
	   Standard MDCT with a sample data type of float, double or int32_t,
	   respectively. For the float and int32 variants, the scale type is
	   'float', while for the double variant, it's 'double'.
	   If scale is NULL, 1.0 will be used as a default.

	   Length is the frame size, not the window size (which is 2x frame).
	   For forward transforms, the stride specifies the spacing between each
	   sample in the output array in bytes. The input must be a flat array.

	   For inverse transforms, the stride specifies the spacing between each
	   sample in the input array in bytes. The output must be a flat array.

	   NOTE: the inverse transform is half-length, meaning the output will not
	   contain redundant data. This is what most codecs work with. To do a full
	   inverse transform, set the AV_TX_FULL_IMDCT flag on init.
	*/
	AVTxDoubleMdct AVTXType = C.AV_TX_DOUBLE_MDCT
	// AVTxInt32Mdct wraps AV_TX_INT32_MDCT.
	/*
	   Standard MDCT with a sample data type of float, double or int32_t,
	   respectively. For the float and int32 variants, the scale type is
	   'float', while for the double variant, it's 'double'.
	   If scale is NULL, 1.0 will be used as a default.

	   Length is the frame size, not the window size (which is 2x frame).
	   For forward transforms, the stride specifies the spacing between each
	   sample in the output array in bytes. The input must be a flat array.

	   For inverse transforms, the stride specifies the spacing between each
	   sample in the input array in bytes. The output must be a flat array.

	   NOTE: the inverse transform is half-length, meaning the output will not
	   contain redundant data. This is what most codecs work with. To do a full
	   inverse transform, set the AV_TX_FULL_IMDCT flag on init.
	*/
	AVTxInt32Mdct AVTXType = C.AV_TX_INT32_MDCT
	// AVTxFloatRdft wraps AV_TX_FLOAT_RDFT.
	/*
	   Real to complex and complex to real DFTs.
	   For the float and int32 variants, the scale type is 'float', while for
	   the double variant, it's a 'double'. If scale is NULL, 1.0 will be used
	   as a default.

	   For forward transforms (R2C), stride must be the spacing between two
	   samples in bytes. For inverse transforms, the stride must be set
	   to the spacing between two complex values in bytes.

	   The forward transform performs a real-to-complex DFT of N samples to
	   N/2+1 complex values.

	   The inverse transform performs a complex-to-real DFT of N/2+1 complex
	   values to N real samples. The output is not normalized, but can be
	   made so by setting the scale value to 1.0/len.
	   NOTE: the inverse transform always overwrites the input.
	*/
	AVTxFloatRdft AVTXType = C.AV_TX_FLOAT_RDFT
	// AVTxDoubleRdft wraps AV_TX_DOUBLE_RDFT.
	/*
	   Real to complex and complex to real DFTs.
	   For the float and int32 variants, the scale type is 'float', while for
	   the double variant, it's a 'double'. If scale is NULL, 1.0 will be used
	   as a default.

	   For forward transforms (R2C), stride must be the spacing between two
	   samples in bytes. For inverse transforms, the stride must be set
	   to the spacing between two complex values in bytes.

	   The forward transform performs a real-to-complex DFT of N samples to
	   N/2+1 complex values.

	   The inverse transform performs a complex-to-real DFT of N/2+1 complex
	   values to N real samples. The output is not normalized, but can be
	   made so by setting the scale value to 1.0/len.
	   NOTE: the inverse transform always overwrites the input.
	*/
	AVTxDoubleRdft AVTXType = C.AV_TX_DOUBLE_RDFT
	// AVTxInt32Rdft wraps AV_TX_INT32_RDFT.
	/*
	   Real to complex and complex to real DFTs.
	   For the float and int32 variants, the scale type is 'float', while for
	   the double variant, it's a 'double'. If scale is NULL, 1.0 will be used
	   as a default.

	   For forward transforms (R2C), stride must be the spacing between two
	   samples in bytes. For inverse transforms, the stride must be set
	   to the spacing between two complex values in bytes.

	   The forward transform performs a real-to-complex DFT of N samples to
	   N/2+1 complex values.

	   The inverse transform performs a complex-to-real DFT of N/2+1 complex
	   values to N real samples. The output is not normalized, but can be
	   made so by setting the scale value to 1.0/len.
	   NOTE: the inverse transform always overwrites the input.
	*/
	AVTxInt32Rdft AVTXType = C.AV_TX_INT32_RDFT
	// AVTxFloatDct wraps AV_TX_FLOAT_DCT.
	/*
	   Real to real (DCT) transforms.

	   The forward transform is a DCT-II.
	   The inverse transform is a DCT-III.

	   The input array is always overwritten. DCT-III requires that the
	   input be padded with 2 extra samples. Stride must be set to the
	   spacing between two samples in bytes.
	*/
	AVTxFloatDct AVTXType = C.AV_TX_FLOAT_DCT
	// AVTxDoubleDct wraps AV_TX_DOUBLE_DCT.
	/*
	   Real to real (DCT) transforms.

	   The forward transform is a DCT-II.
	   The inverse transform is a DCT-III.

	   The input array is always overwritten. DCT-III requires that the
	   input be padded with 2 extra samples. Stride must be set to the
	   spacing between two samples in bytes.
	*/
	AVTxDoubleDct AVTXType = C.AV_TX_DOUBLE_DCT
	// AVTxInt32Dct wraps AV_TX_INT32_DCT.
	/*
	   Real to real (DCT) transforms.

	   The forward transform is a DCT-II.
	   The inverse transform is a DCT-III.

	   The input array is always overwritten. DCT-III requires that the
	   input be padded with 2 extra samples. Stride must be set to the
	   spacing between two samples in bytes.
	*/
	AVTxInt32Dct AVTXType = C.AV_TX_INT32_DCT
	// AVTxFloatDctI wraps AV_TX_FLOAT_DCT_I.
	/*
	   Discrete Cosine Transform I

	   The forward transform is a DCT-I.
	   The inverse transform is a DCT-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxFloatDctI AVTXType = C.AV_TX_FLOAT_DCT_I
	// AVTxDoubleDctI wraps AV_TX_DOUBLE_DCT_I.
	/*
	   Discrete Cosine Transform I

	   The forward transform is a DCT-I.
	   The inverse transform is a DCT-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxDoubleDctI AVTXType = C.AV_TX_DOUBLE_DCT_I
	// AVTxInt32DctI wraps AV_TX_INT32_DCT_I.
	/*
	   Discrete Cosine Transform I

	   The forward transform is a DCT-I.
	   The inverse transform is a DCT-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxInt32DctI AVTXType = C.AV_TX_INT32_DCT_I
	// AVTxFloatDstI wraps AV_TX_FLOAT_DST_I.
	/*
	   Discrete Sine Transform I

	   The forward transform is a DST-I.
	   The inverse transform is a DST-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxFloatDstI AVTXType = C.AV_TX_FLOAT_DST_I
	// AVTxDoubleDstI wraps AV_TX_DOUBLE_DST_I.
	/*
	   Discrete Sine Transform I

	   The forward transform is a DST-I.
	   The inverse transform is a DST-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxDoubleDstI AVTXType = C.AV_TX_DOUBLE_DST_I
	// AVTxInt32DstI wraps AV_TX_INT32_DST_I.
	/*
	   Discrete Sine Transform I

	   The forward transform is a DST-I.
	   The inverse transform is a DST-I multiplied by 2/(N + 1).

	   The input array is always overwritten.
	*/
	AVTxInt32DstI AVTXType = C.AV_TX_INT32_DST_I
	// AVTxNb wraps AV_TX_NB.
	//
	//	Not part of the API, do not use
	AVTxNb AVTXType = C.AV_TX_NB
)

type AVTask

type AVTask struct {
	// contains filtered or unexported fields
}

AVTask wraps AVTask.

func (*AVTask) Next

func (s *AVTask) Next() *AVTask

Next gets the next field.

func (*AVTask) RawPtr

func (s *AVTask) RawPtr() unsafe.Pointer

func (*AVTask) SetNext

func (s *AVTask) SetNext(value *AVTask)

SetNext sets the next field.

type AVTaskCallbacks

type AVTaskCallbacks struct {
	// contains filtered or unexported fields
}

AVTaskCallbacks wraps AVTaskCallbacks.

func (*AVTaskCallbacks) LocalContextSize

func (s *AVTaskCallbacks) LocalContextSize() int

LocalContextSize gets the local_context_size field.

func (*AVTaskCallbacks) RawPtr

func (s *AVTaskCallbacks) RawPtr() unsafe.Pointer

func (*AVTaskCallbacks) SetLocalContextSize

func (s *AVTaskCallbacks) SetLocalContextSize(value int)

SetLocalContextSize sets the local_context_size field.

func (*AVTaskCallbacks) SetUserData

func (s *AVTaskCallbacks) SetUserData(value unsafe.Pointer)

SetUserData sets the user_data field.

func (*AVTaskCallbacks) UserData

func (s *AVTaskCallbacks) UserData() unsafe.Pointer

UserData gets the user_data field.

type AVThreadMessageFlags

type AVThreadMessageFlags C.AVThreadMessageFlags

AVThreadMessageFlags wraps AVThreadMessageFlags.

const (
	// AVThreadMessageNonblock wraps AV_THREAD_MESSAGE_NONBLOCK.
	/*
	   Perform non-blocking operation.
	   If this flag is set, send and recv operations are non-blocking and
	   return AVERROR(EAGAIN) immediately if they can not proceed.
	*/
	AVThreadMessageNonblock AVThreadMessageFlags = C.AV_THREAD_MESSAGE_NONBLOCK
)

type AVThreadMessageQueue

type AVThreadMessageQueue struct {
	// contains filtered or unexported fields
}

AVThreadMessageQueue wraps AVThreadMessageQueue.

func (*AVThreadMessageQueue) RawPtr

func (s *AVThreadMessageQueue) RawPtr() unsafe.Pointer

type AVTimebaseSource

type AVTimebaseSource C.enum_AVTimebaseSource

AVTimebaseSource wraps AVTimebaseSource.

const (
	// AVFmtTbcfAuto wraps AVFMT_TBCF_AUTO.
	AVFmtTbcfAuto AVTimebaseSource = C.AVFMT_TBCF_AUTO
	// AVFmtTbcfDecoder wraps AVFMT_TBCF_DECODER.
	AVFmtTbcfDecoder AVTimebaseSource = C.AVFMT_TBCF_DECODER
	// AVFmtTbcfDemuxer wraps AVFMT_TBCF_DEMUXER.
	AVFmtTbcfDemuxer AVTimebaseSource = C.AVFMT_TBCF_DEMUXER
	// AVFmtTbcfRFramerate wraps AVFMT_TBCF_R_FRAMERATE.
	AVFmtTbcfRFramerate AVTimebaseSource = C.AVFMT_TBCF_R_FRAMERATE
)

type AVTimecode

type AVTimecode struct {
	// contains filtered or unexported fields
}

AVTimecode wraps AVTimecode.

func (*AVTimecode) Flags

func (s *AVTimecode) Flags() uint32

Flags gets the flags field.

flags such as drop frame, +24 hours support, ...

func (*AVTimecode) Fps

func (s *AVTimecode) Fps() uint

Fps gets the fps field.

frame per second; must be consistent with the rate field

func (*AVTimecode) Rate

func (s *AVTimecode) Rate() *AVRational

Rate gets the rate field.

frame rate in rational form

func (*AVTimecode) RawPtr

func (s *AVTimecode) RawPtr() unsafe.Pointer

func (*AVTimecode) SetFlags

func (s *AVTimecode) SetFlags(value uint32)

SetFlags sets the flags field.

flags such as drop frame, +24 hours support, ...

func (*AVTimecode) SetFps

func (s *AVTimecode) SetFps(value uint)

SetFps sets the fps field.

frame per second; must be consistent with the rate field

func (*AVTimecode) SetRate

func (s *AVTimecode) SetRate(value *AVRational)

SetRate sets the rate field.

frame rate in rational form

func (*AVTimecode) SetStart

func (s *AVTimecode) SetStart(value int)

SetStart sets the start field.

timecode frame start (first base frame number)

func (*AVTimecode) Start

func (s *AVTimecode) Start() int

Start gets the start field.

timecode frame start (first base frame number)

type AVTimecodeFlag

type AVTimecodeFlag C.enum_AVTimecodeFlag

AVTimecodeFlag wraps AVTimecodeFlag.

const (
	// AVTimecodeFlagDropframe wraps AV_TIMECODE_FLAG_DROPFRAME.
	//
	//	timecode is drop frame
	AVTimecodeFlagDropframe AVTimecodeFlag = C.AV_TIMECODE_FLAG_DROPFRAME
	// AVTimecodeFlag24Hoursmax wraps AV_TIMECODE_FLAG_24HOURSMAX.
	//
	//	timecode wraps after 24 hours
	AVTimecodeFlag24Hoursmax AVTimecodeFlag = C.AV_TIMECODE_FLAG_24HOURSMAX
	// AVTimecodeFlagAllownegative wraps AV_TIMECODE_FLAG_ALLOWNEGATIVE.
	//
	//	negative time values are allowed
	AVTimecodeFlagAllownegative AVTimecodeFlag = C.AV_TIMECODE_FLAG_ALLOWNEGATIVE
)

type AVTreeNode

type AVTreeNode struct {
	// contains filtered or unexported fields
}

AVTreeNode wraps AVTreeNode.

func AVTreeNodeAlloc

func AVTreeNodeAlloc() *AVTreeNode

AVTreeNodeAlloc wraps av_tree_node_alloc.

Allocate an AVTreeNode.

func (*AVTreeNode) RawPtr

func (s *AVTreeNode) RawPtr() unsafe.Pointer

type AVTxFn

type AVTxFn unsafe.Pointer

AVTxFn is a function pointer typedef for av_tx_fn.

type AVUUID

type AVUUID = [16]uint8

AVUUID is a typedef to a 16-byte array in FFmpeg (uint8_t[16]). This represents a UUID as an opaque sequence of 16 unsigned bytes. Binary representation of a UUID per IETF RFC 4122.

type AVVideoBlockParams

type AVVideoBlockParams struct {
	// contains filtered or unexported fields
}

AVVideoBlockParams wraps AVVideoBlockParams.

Data structure for storing block-level encoding information.
It is allocated as a part of AVVideoEncParams and should be retrieved with
av_video_enc_params_block().

sizeof(AVVideoBlockParams) is not a part of the ABI and new fields may be
added to it.

func AVVideoEncParamsBlock

func AVVideoEncParamsBlock(par *AVVideoEncParams, idx uint) *AVVideoBlockParams

AVVideoEncParamsBlock wraps av_video_enc_params_block.

Get the block at the specified {@code idx}. Must be between 0 and nb_blocks - 1.

func (*AVVideoBlockParams) DeltaQp

func (s *AVVideoBlockParams) DeltaQp() int32

DeltaQp gets the delta_qp field.

Difference between this block's final quantization parameter and the
corresponding per-frame value.

func (*AVVideoBlockParams) H

func (s *AVVideoBlockParams) H() int

H gets the h field.

Width and height of the block in luma pixels.

func (*AVVideoBlockParams) RawPtr

func (s *AVVideoBlockParams) RawPtr() unsafe.Pointer

func (*AVVideoBlockParams) SetDeltaQp

func (s *AVVideoBlockParams) SetDeltaQp(value int32)

SetDeltaQp sets the delta_qp field.

Difference between this block's final quantization parameter and the
corresponding per-frame value.

func (*AVVideoBlockParams) SetH

func (s *AVVideoBlockParams) SetH(value int)

SetH sets the h field.

Width and height of the block in luma pixels.

func (*AVVideoBlockParams) SetSrcX

func (s *AVVideoBlockParams) SetSrcX(value int)

SetSrcX sets the src_x field.

Distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.

func (*AVVideoBlockParams) SetSrcY

func (s *AVVideoBlockParams) SetSrcY(value int)

SetSrcY sets the src_y field.

Distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.

func (*AVVideoBlockParams) SetW

func (s *AVVideoBlockParams) SetW(value int)

SetW sets the w field.

Width and height of the block in luma pixels.

func (*AVVideoBlockParams) SrcX

func (s *AVVideoBlockParams) SrcX() int

SrcX gets the src_x field.

Distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.

func (*AVVideoBlockParams) SrcY

func (s *AVVideoBlockParams) SrcY() int

SrcY gets the src_y field.

Distance in luma pixels from the top-left corner of the visible frame
to the top-left corner of the block.
Can be negative if top/right padding is present on the coded frame.

func (*AVVideoBlockParams) W

func (s *AVVideoBlockParams) W() int

W gets the w field.

Width and height of the block in luma pixels.

type AVVideoEncParams

type AVVideoEncParams struct {
	// contains filtered or unexported fields
}

AVVideoEncParams wraps AVVideoEncParams.

Video encoding parameters for a given frame. This struct is allocated along
with an optional array of per-block AVVideoBlockParams descriptors.
Must be allocated with av_video_enc_params_alloc().

func AVVideoEncParamsAlloc

func AVVideoEncParamsAlloc(_type AVVideoEncParamsType, nbBlocks uint, outSize *uint64) *AVVideoEncParams

AVVideoEncParamsAlloc wraps av_video_enc_params_alloc.

Allocates memory for AVVideoEncParams of the given type, plus an array of
{@code nb_blocks} AVVideoBlockParams and initializes the variables. Can be
freed with a normal av_free() call.

@param out_size if non-NULL, the size in bytes of the resulting data array is
written here.

func AVVideoEncParamsCreateSideData

func AVVideoEncParamsCreateSideData(frame *AVFrame, _type AVVideoEncParamsType, nbBlocks uint) *AVVideoEncParams

AVVideoEncParamsCreateSideData wraps av_video_enc_params_create_side_data.

Allocates memory for AVEncodeInfoFrame plus an array of
{@code nb_blocks} AVEncodeInfoBlock in the given AVFrame {@code frame}
as AVFrameSideData of type AV_FRAME_DATA_VIDEO_ENC_PARAMS
and initializes the variables.

func (*AVVideoEncParams) BlockSize

func (s *AVVideoEncParams) BlockSize() uint64

BlockSize gets the block_size field.

Size of each block in bytes. May not match sizeof(AVVideoBlockParams).

func (*AVVideoEncParams) BlocksOffset

func (s *AVVideoEncParams) BlocksOffset() uint64

BlocksOffset gets the blocks_offset field.

Offset in bytes from the beginning of this structure at which the array
of blocks starts.

func (*AVVideoEncParams) NbBlocks

func (s *AVVideoEncParams) NbBlocks() uint

NbBlocks gets the nb_blocks field.

Number of blocks in the array.

May be 0, in which case no per-block information is present. In this case
the values of blocks_offset / block_size are unspecified and should not
be accessed.

func (*AVVideoEncParams) Qp

func (s *AVVideoEncParams) Qp() int32

Qp gets the qp field.

Base quantisation parameter for the frame. The final quantiser for a
given block in a given plane is obtained from this value, possibly
combined with {@code delta_qp} and the per-block delta in a manner
documented for each type.

func (*AVVideoEncParams) RawPtr

func (s *AVVideoEncParams) RawPtr() unsafe.Pointer

func (*AVVideoEncParams) SetBlockSize

func (s *AVVideoEncParams) SetBlockSize(value uint64)

SetBlockSize sets the block_size field.

Size of each block in bytes. May not match sizeof(AVVideoBlockParams).

func (*AVVideoEncParams) SetBlocksOffset

func (s *AVVideoEncParams) SetBlocksOffset(value uint64)

SetBlocksOffset sets the blocks_offset field.

Offset in bytes from the beginning of this structure at which the array
of blocks starts.

func (*AVVideoEncParams) SetNbBlocks

func (s *AVVideoEncParams) SetNbBlocks(value uint)

SetNbBlocks sets the nb_blocks field.

Number of blocks in the array.

May be 0, in which case no per-block information is present. In this case
the values of blocks_offset / block_size are unspecified and should not
be accessed.

func (*AVVideoEncParams) SetQp

func (s *AVVideoEncParams) SetQp(value int32)

SetQp sets the qp field.

Base quantisation parameter for the frame. The final quantiser for a
given block in a given plane is obtained from this value, possibly
combined with {@code delta_qp} and the per-block delta in a manner
documented for each type.

func (*AVVideoEncParams) SetType

func (s *AVVideoEncParams) SetType(value AVVideoEncParamsType)

SetType sets the type field.

Type of the parameters (the codec they are used with).

func (*AVVideoEncParams) Type

Type gets the type field.

Type of the parameters (the codec they are used with).

type AVVideoEncParamsType

type AVVideoEncParamsType C.enum_AVVideoEncParamsType

AVVideoEncParamsType wraps AVVideoEncParamsType.

const (
	// AVVideoEncParamsNone wraps AV_VIDEO_ENC_PARAMS_NONE.
	AVVideoEncParamsNone AVVideoEncParamsType = C.AV_VIDEO_ENC_PARAMS_NONE
	// AVVideoEncParamsVp9 wraps AV_VIDEO_ENC_PARAMS_VP9.
	/*
	   VP9 stores:
	   - per-frame base (luma AC) quantizer index, exported as AVVideoEncParams.qp
	   - deltas for luma DC, chroma AC and chroma DC, exported in the
	     corresponding entries in AVVideoEncParams.delta_qp
	   - per-segment delta, exported as for each block as AVVideoBlockParams.delta_qp

	   To compute the resulting quantizer index for a block:
	   - for luma AC, add the base qp and the per-block delta_qp, saturating to
	     unsigned 8-bit.
	   - for luma DC and chroma AC/DC, add the corresponding
	     AVVideoBlockParams.delta_qp to the luma AC index, again saturating to
	     unsigned 8-bit.
	*/
	AVVideoEncParamsVp9 AVVideoEncParamsType = C.AV_VIDEO_ENC_PARAMS_VP9
	// AVVideoEncParamsH264 wraps AV_VIDEO_ENC_PARAMS_H264.
	/*
	   H.264 stores:
	   - in PPS (per-picture):
	     * initial QP_Y (luma) value, exported as AVVideoEncParams.qp
	     * delta(s) for chroma QP values (same for both, or each separately),
	       exported as in the corresponding entries in AVVideoEncParams.delta_qp
	   - per-slice QP delta, not exported directly, added to the per-MB value
	   - per-MB delta; not exported directly; the final per-MB quantizer
	     parameter - QP_Y - minus the value in AVVideoEncParams.qp is exported
	     as AVVideoBlockParams.qp_delta.
	*/
	AVVideoEncParamsH264 AVVideoEncParamsType = C.AV_VIDEO_ENC_PARAMS_H264
	// AVVideoEncParamsMpeg2 wraps AV_VIDEO_ENC_PARAMS_MPEG2.
	/*
	   MPEG-2-compatible quantizer.

	   Summing the frame-level qp with the per-block delta_qp gives the
	   resulting quantizer for the block.
	*/
	AVVideoEncParamsMpeg2 AVVideoEncParamsType = C.AV_VIDEO_ENC_PARAMS_MPEG2
)

type AVVideoHint

type AVVideoHint struct {
	// contains filtered or unexported fields
}

AVVideoHint wraps AVVideoHint.

func AVVideoHintAlloc

func AVVideoHintAlloc(nbRects uint64, outSize *uint64) *AVVideoHint

AVVideoHintAlloc wraps av_video_hint_alloc.

Allocate memory for the AVVideoHint struct along with an nb_rects-sized
arrays of AVVideoRect.

The side data contains a list of rectangles for the portions of the frame
which changed from the last encoded one (and the remainder are assumed to be
changed), or, alternately (depending on the type parameter) the unchanged
ones (and the remaining ones are those which changed).
Macroblocks will thus be hinted either to be P_SKIP-ped or go through the
regular encoding procedure.

It's responsibility of the caller to fill the AVRects accordingly, and to set
the proper AVVideoHintType field.

@param out_size if non-NULL, the size in bytes of the resulting data array is
                written here

@return newly allocated AVVideoHint struct (must be freed by the caller using
        av_free()) on success, NULL on memory allocation failure

func AVVideoHintCreateSideData

func AVVideoHintCreateSideData(frame *AVFrame, nbRects uint64) *AVVideoHint

AVVideoHintCreateSideData wraps av_video_hint_create_side_data.

Same as av_video_hint_alloc(), except newly-allocated AVVideoHint is attached
as side data of type AV_FRAME_DATA_VIDEO_HINT_INFO to frame.

func (*AVVideoHint) NbRects

func (s *AVVideoHint) NbRects() uint64

NbRects gets the nb_rects field.

Number of AVVideoRect present.

May be 0, in which case no per-rectangle information is present. In this
case the values of rect_offset / rect_size are unspecified and should
not be accessed.

func (*AVVideoHint) RawPtr

func (s *AVVideoHint) RawPtr() unsafe.Pointer

func (*AVVideoHint) RectOffset

func (s *AVVideoHint) RectOffset() uint64

RectOffset gets the rect_offset field.

Offset in bytes from the beginning of this structure at which the array
of AVVideoRect starts.

func (*AVVideoHint) RectSize

func (s *AVVideoHint) RectSize() uint64

RectSize gets the rect_size field.

Size in bytes of AVVideoRect.

func (*AVVideoHint) SetNbRects

func (s *AVVideoHint) SetNbRects(value uint64)

SetNbRects sets the nb_rects field.

Number of AVVideoRect present.

May be 0, in which case no per-rectangle information is present. In this
case the values of rect_offset / rect_size are unspecified and should
not be accessed.

func (*AVVideoHint) SetRectOffset

func (s *AVVideoHint) SetRectOffset(value uint64)

SetRectOffset sets the rect_offset field.

Offset in bytes from the beginning of this structure at which the array
of AVVideoRect starts.

func (*AVVideoHint) SetRectSize

func (s *AVVideoHint) SetRectSize(value uint64)

SetRectSize sets the rect_size field.

Size in bytes of AVVideoRect.

func (*AVVideoHint) SetType

func (s *AVVideoHint) SetType(value AVVideoHintType)

SetType sets the type field.

func (*AVVideoHint) Type

func (s *AVVideoHint) Type() AVVideoHintType

Type gets the type field.

type AVVideoHintType

type AVVideoHintType C.AVVideoHintType

AVVideoHintType wraps AVVideoHintType.

const (
	// AVVideoHintTypeConstant wraps AV_VIDEO_HINT_TYPE_CONSTANT.
	//
	//	rectangled delimit the constant areas (unchanged), default is changed
	AVVideoHintTypeConstant AVVideoHintType = C.AV_VIDEO_HINT_TYPE_CONSTANT
	// AVVideoHintTypeChanged wraps AV_VIDEO_HINT_TYPE_CHANGED.
	//
	//	rectangled delimit the constant areas (changed), default is not changed
	AVVideoHintTypeChanged AVVideoHintType = C.AV_VIDEO_HINT_TYPE_CHANGED
)

type AVVideoRect

type AVVideoRect struct {
	// contains filtered or unexported fields
}

AVVideoRect wraps AVVideoRect.

func AVVideoHintGetRect

func AVVideoHintGetRect(hints *AVVideoHint, idx uint64) *AVVideoRect

AVVideoHintGetRect wraps av_video_hint_get_rect.

func AVVideoHintRects

func AVVideoHintRects(hints *AVVideoHint) *AVVideoRect

AVVideoHintRects wraps av_video_hint_rects.

func (*AVVideoRect) Height

func (s *AVVideoRect) Height() uint32

Height gets the height field.

func (*AVVideoRect) RawPtr

func (s *AVVideoRect) RawPtr() unsafe.Pointer

func (*AVVideoRect) SetHeight

func (s *AVVideoRect) SetHeight(value uint32)

SetHeight sets the height field.

func (*AVVideoRect) SetWidth

func (s *AVVideoRect) SetWidth(value uint32)

SetWidth sets the width field.

func (*AVVideoRect) SetX

func (s *AVVideoRect) SetX(value uint32)

SetX sets the x field.

func (*AVVideoRect) SetY

func (s *AVVideoRect) SetY(value uint32)

SetY sets the y field.

func (*AVVideoRect) Width

func (s *AVVideoRect) Width() uint32

Width gets the width field.

func (*AVVideoRect) X

func (s *AVVideoRect) X() uint32

X gets the x field.

func (*AVVideoRect) Y

func (s *AVVideoRect) Y() uint32

Y gets the y field.

type AVWhitepointCoefficients

type AVWhitepointCoefficients = AVCIExy

AVWhitepointCoefficients is a typedef alias for AVCIExy in FFmpeg. This represents white point chromaticity coordinates.

type AVXTEA

type AVXTEA struct {
	// contains filtered or unexported fields
}

AVXTEA wraps AVXTEA.

func AVXteaAlloc

func AVXteaAlloc() *AVXTEA

AVXteaAlloc wraps av_xtea_alloc.

Allocate an AVXTEA context.

func (*AVXTEA) Key

func (s *AVXTEA) Key() *Array[uint32]

Key gets the key field.

func (*AVXTEA) RawPtr

func (s *AVXTEA) RawPtr() unsafe.Pointer

type Array

type Array[T any] struct {
	// contains filtered or unexported fields
}

Array is a helper utility for accessing arrays of FFmpeg types. You can not directly allocate this type, and you must use one of the inbuilt constructors, such as AllocAVCodecIDArray.

Arrays have no inbuilt length, matching the behaviour of C code. Getting or setting an out of bound index will lead to undefined behaviour.

func AllocAVActiveFormatDescriptionArray

func AllocAVActiveFormatDescriptionArray(size uint64) *Array[AVActiveFormatDescription]

func AllocAVAppToDevMessageTypeArray

func AllocAVAppToDevMessageTypeArray(size uint64) *Array[AVAppToDevMessageType]

func AllocAVAudioServiceTypeArray

func AllocAVAudioServiceTypeArray(size uint64) *Array[AVAudioServiceType]

func AllocAVCRCIdArray

func AllocAVCRCIdArray(size uint64) *Array[AVCRCId]

func AllocAVChannelArray

func AllocAVChannelArray(size uint64) *Array[AVChannel]

func AllocAVChannelOrderArray

func AllocAVChannelOrderArray(size uint64) *Array[AVChannelOrder]

func AllocAVChromaLocationArray

func AllocAVChromaLocationArray(size uint64) *Array[AVChromaLocation]

func AllocAVClassCategoryArray

func AllocAVClassCategoryArray(size uint64) *Array[AVClassCategory]

func AllocAVClassStateFlagsArray

func AllocAVClassStateFlagsArray(size uint64) *Array[AVClassStateFlags]

func AllocAVCodecConfigArray

func AllocAVCodecConfigArray(size uint64) *Array[AVCodecConfig]

func AllocAVCodecIDArray

func AllocAVCodecIDArray(size uint64) *Array[AVCodecID]

func AllocAVColorPrimariesArray

func AllocAVColorPrimariesArray(size uint64) *Array[AVColorPrimaries]

func AllocAVColorRangeArray

func AllocAVColorRangeArray(size uint64) *Array[AVColorRange]

func AllocAVColorSpaceArray

func AllocAVColorSpaceArray(size uint64) *Array[AVColorSpace]

func AllocAVColorTransferCharacteristicArray

func AllocAVColorTransferCharacteristicArray(size uint64) *Array[AVColorTransferCharacteristic]

func AllocAVContainerFifoFlagsArray

func AllocAVContainerFifoFlagsArray(size uint64) *Array[AVContainerFifoFlags]

func AllocAVDOVICompressionArray

func AllocAVDOVICompressionArray(size uint64) *Array[AVDOVICompression]

func AllocAVDOVIMappingMethodArray

func AllocAVDOVIMappingMethodArray(size uint64) *Array[AVDOVIMappingMethod]

func AllocAVDOVINLQMethodArray

func AllocAVDOVINLQMethodArray(size uint64) *Array[AVDOVINLQMethod]

func AllocAVDevToAppMessageTypeArray

func AllocAVDevToAppMessageTypeArray(size uint64) *Array[AVDevToAppMessageType]

func AllocAVDiscardArray

func AllocAVDiscardArray(size uint64) *Array[AVDiscard]

func AllocAVDownmixTypeArray

func AllocAVDownmixTypeArray(size uint64) *Array[AVDownmixType]

func AllocAVDurationEstimationMethodArray

func AllocAVDurationEstimationMethodArray(size uint64) *Array[AVDurationEstimationMethod]

func AllocAVEscapeModeArray

func AllocAVEscapeModeArray(size uint64) *Array[AVEscapeMode]

func AllocAVFieldOrderArray

func AllocAVFieldOrderArray(size uint64) *Array[AVFieldOrder]

func AllocAVFilmGrainParamsTypeArray

func AllocAVFilmGrainParamsTypeArray(size uint64) *Array[AVFilmGrainParamsType]

func AllocAVFrameSideDataTypeArray

func AllocAVFrameSideDataTypeArray(size uint64) *Array[AVFrameSideDataType]

func AllocAVHDRPlusOverlapProcessOptionArray

func AllocAVHDRPlusOverlapProcessOptionArray(size uint64) *Array[AVHDRPlusOverlapProcessOption]

func AllocAVHMACTypeArray

func AllocAVHMACTypeArray(size uint64) *Array[AVHMACType]

func AllocAVHWDeviceTypeArray

func AllocAVHWDeviceTypeArray(size uint64) *Array[AVHWDeviceType]

func AllocAVHWFrameTransferDirectionArray

func AllocAVHWFrameTransferDirectionArray(size uint64) *Array[AVHWFrameTransferDirection]

func AllocAVIAMFAmbisonicsModeArray

func AllocAVIAMFAmbisonicsModeArray(size uint64) *Array[AVIAMFAmbisonicsMode]

func AllocAVIAMFAnimationTypeArray

func AllocAVIAMFAnimationTypeArray(size uint64) *Array[AVIAMFAnimationType]

func AllocAVIAMFAudioElementTypeArray

func AllocAVIAMFAudioElementTypeArray(size uint64) *Array[AVIAMFAudioElementType]

func AllocAVIAMFHeadphonesModeArray

func AllocAVIAMFHeadphonesModeArray(size uint64) *Array[AVIAMFHeadphonesMode]

func AllocAVIAMFParamDefinitionTypeArray

func AllocAVIAMFParamDefinitionTypeArray(size uint64) *Array[AVIAMFParamDefinitionType]

func AllocAVIAMFSubmixLayoutTypeArray

func AllocAVIAMFSubmixLayoutTypeArray(size uint64) *Array[AVIAMFSubmixLayoutType]

func AllocAVIODataMarkerTypeArray

func AllocAVIODataMarkerTypeArray(size uint64) *Array[AVIODataMarkerType]

func AllocAVIODirEntryTypeArray

func AllocAVIODirEntryTypeArray(size uint64) *Array[AVIODirEntryType]

func AllocAVMatrixEncodingArray

func AllocAVMatrixEncodingArray(size uint64) *Array[AVMatrixEncoding]

func AllocAVMediaTypeArray

func AllocAVMediaTypeArray(size uint64) *Array[AVMediaType]

func AllocAVOptionTypeArray

func AllocAVOptionTypeArray(size uint64) *Array[AVOptionType]

func AllocAVPacketSideDataTypeArray

func AllocAVPacketSideDataTypeArray(size uint64) *Array[AVPacketSideDataType]

func AllocAVPictureStructureArray

func AllocAVPictureStructureArray(size uint64) *Array[AVPictureStructure]

func AllocAVPictureTypeArray

func AllocAVPictureTypeArray(size uint64) *Array[AVPictureType]

func AllocAVPixelFormatArray

func AllocAVPixelFormatArray(size uint64) *Array[AVPixelFormat]

func AllocAVRoundingArray

func AllocAVRoundingArray(size uint64) *Array[AVRounding]

func AllocAVSampleFormatArray

func AllocAVSampleFormatArray(size uint64) *Array[AVSampleFormat]

func AllocAVSideDataParamChangeFlagsArray

func AllocAVSideDataParamChangeFlagsArray(size uint64) *Array[AVSideDataParamChangeFlags]

func AllocAVSideDataPropsArray

func AllocAVSideDataPropsArray(size uint64) *Array[AVSideDataProps]

func AllocAVSphericalProjectionArray

func AllocAVSphericalProjectionArray(size uint64) *Array[AVSphericalProjection]

func AllocAVStereo3DPrimaryEyeArray

func AllocAVStereo3DPrimaryEyeArray(size uint64) *Array[AVStereo3DPrimaryEye]

func AllocAVStereo3DTypeArray

func AllocAVStereo3DTypeArray(size uint64) *Array[AVStereo3DType]

func AllocAVStereo3DViewArray

func AllocAVStereo3DViewArray(size uint64) *Array[AVStereo3DView]

func AllocAVStreamGroupParamsTypeArray

func AllocAVStreamGroupParamsTypeArray(size uint64) *Array[AVStreamGroupParamsType]

func AllocAVStreamParseTypeArray

func AllocAVStreamParseTypeArray(size uint64) *Array[AVStreamParseType]

func AllocAVSubtitleTypeArray

func AllocAVSubtitleTypeArray(size uint64) *Array[AVSubtitleType]

func AllocAVTXFlagsArray

func AllocAVTXFlagsArray(size uint64) *Array[AVTXFlags]

func AllocAVTXTypeArray

func AllocAVTXTypeArray(size uint64) *Array[AVTXType]

func AllocAVThreadMessageFlagsArray

func AllocAVThreadMessageFlagsArray(size uint64) *Array[AVThreadMessageFlags]

func AllocAVTimebaseSourceArray

func AllocAVTimebaseSourceArray(size uint64) *Array[AVTimebaseSource]

func AllocAVTimecodeFlagArray

func AllocAVTimecodeFlagArray(size uint64) *Array[AVTimecodeFlag]

func AllocAVVideoEncParamsTypeArray

func AllocAVVideoEncParamsTypeArray(size uint64) *Array[AVVideoEncParamsType]

func AllocAVVideoHintTypeArray

func AllocAVVideoHintTypeArray(size uint64) *Array[AVVideoHintType]

func AllocSwrDitherTypeArray

func AllocSwrDitherTypeArray(size uint64) *Array[SwrDitherType]

func AllocSwrEngineArray

func AllocSwrEngineArray(size uint64) *Array[SwrEngine]

func AllocSwrFilterTypeArray

func AllocSwrFilterTypeArray(size uint64) *Array[SwrFilterType]

func AllocSwsAlphaBlendArray

func AllocSwsAlphaBlendArray(size uint64) *Array[SwsAlphaBlend]

func AllocSwsDitherArray

func AllocSwsDitherArray(size uint64) *Array[SwsDither]

func AllocSwsFlagsArray

func AllocSwsFlagsArray(size uint64) *Array[SwsFlags]

func AllocSwsIntentArray

func AllocSwsIntentArray(size uint64) *Array[SwsIntent]

func ToAV3DReferenceDisplayArray

func ToAV3DReferenceDisplayArray(ptr unsafe.Pointer) *Array[*AV3DReferenceDisplay]

func ToAV3DReferenceDisplaysInfoArray

func ToAV3DReferenceDisplaysInfoArray(ptr unsafe.Pointer) *Array[*AV3DReferenceDisplaysInfo]

func ToAVAESArray

func ToAVAESArray(ptr unsafe.Pointer) *Array[*AVAES]

func ToAVAESCTRArray

func ToAVAESCTRArray(ptr unsafe.Pointer) *Array[*AVAESCTR]

func ToAVActiveFormatDescriptionArray

func ToAVActiveFormatDescriptionArray(ptr unsafe.Pointer) *Array[AVActiveFormatDescription]

func ToAVAmbientViewingEnvironmentArray

func ToAVAmbientViewingEnvironmentArray(ptr unsafe.Pointer) *Array[*AVAmbientViewingEnvironment]

func ToAVAppToDevMessageTypeArray

func ToAVAppToDevMessageTypeArray(ptr unsafe.Pointer) *Array[AVAppToDevMessageType]

func ToAVAudioFifoArray

func ToAVAudioFifoArray(ptr unsafe.Pointer) *Array[*AVAudioFifo]

func ToAVAudioServiceTypeArray

func ToAVAudioServiceTypeArray(ptr unsafe.Pointer) *Array[AVAudioServiceType]

func ToAVBPrintArray

func ToAVBPrintArray(ptr unsafe.Pointer) *Array[*AVBPrint]

func ToAVBSFContextArray

func ToAVBSFContextArray(ptr unsafe.Pointer) *Array[*AVBSFContext]

func ToAVBSFListArray

func ToAVBSFListArray(ptr unsafe.Pointer) *Array[*AVBSFList]

func ToAVBitStreamFilterArray

func ToAVBitStreamFilterArray(ptr unsafe.Pointer) *Array[*AVBitStreamFilter]

func ToAVBlowfishArray

func ToAVBlowfishArray(ptr unsafe.Pointer) *Array[*AVBlowfish]

func ToAVBufferArray

func ToAVBufferArray(ptr unsafe.Pointer) *Array[*AVBuffer]

func ToAVBufferPoolArray

func ToAVBufferPoolArray(ptr unsafe.Pointer) *Array[*AVBufferPool]

func ToAVBufferRefArray

func ToAVBufferRefArray(ptr unsafe.Pointer) *Array[*AVBufferRef]

func ToAVBufferSrcParametersArray

func ToAVBufferSrcParametersArray(ptr unsafe.Pointer) *Array[*AVBufferSrcParameters]

func ToAVCAMELLIAArray

func ToAVCAMELLIAArray(ptr unsafe.Pointer) *Array[*AVCAMELLIA]

func ToAVCAST5Array

func ToAVCAST5Array(ptr unsafe.Pointer) *Array[*AVCAST5]

func ToAVCIExyArray

func ToAVCIExyArray(ptr unsafe.Pointer) *Array[*AVCIExy]

func ToAVCPBPropertiesArray

func ToAVCPBPropertiesArray(ptr unsafe.Pointer) *Array[*AVCPBProperties]

func ToAVCRCIdArray

func ToAVCRCIdArray(ptr unsafe.Pointer) *Array[AVCRCId]

func ToAVChannelArray

func ToAVChannelArray(ptr unsafe.Pointer) *Array[AVChannel]

func ToAVChannelCustomArray

func ToAVChannelCustomArray(ptr unsafe.Pointer) *Array[*AVChannelCustom]

func ToAVChannelLayoutArray

func ToAVChannelLayoutArray(ptr unsafe.Pointer) *Array[*AVChannelLayout]

func ToAVChannelOrderArray

func ToAVChannelOrderArray(ptr unsafe.Pointer) *Array[AVChannelOrder]

func ToAVChapterArray

func ToAVChapterArray(ptr unsafe.Pointer) *Array[*AVChapter]

func ToAVChromaLocationArray

func ToAVChromaLocationArray(ptr unsafe.Pointer) *Array[AVChromaLocation]

func ToAVClassArray

func ToAVClassArray(ptr unsafe.Pointer) *Array[*AVClass]

func ToAVClassCategoryArray

func ToAVClassCategoryArray(ptr unsafe.Pointer) *Array[AVClassCategory]

func ToAVClassStateFlagsArray

func ToAVClassStateFlagsArray(ptr unsafe.Pointer) *Array[AVClassStateFlags]

func ToAVCodecArray

func ToAVCodecArray(ptr unsafe.Pointer) *Array[*AVCodec]

func ToAVCodecConfigArray

func ToAVCodecConfigArray(ptr unsafe.Pointer) *Array[AVCodecConfig]

func ToAVCodecContextArray

func ToAVCodecContextArray(ptr unsafe.Pointer) *Array[*AVCodecContext]

func ToAVCodecDescriptorArray

func ToAVCodecDescriptorArray(ptr unsafe.Pointer) *Array[*AVCodecDescriptor]

func ToAVCodecHWConfigArray

func ToAVCodecHWConfigArray(ptr unsafe.Pointer) *Array[*AVCodecHWConfig]

func ToAVCodecIDArray

func ToAVCodecIDArray(ptr unsafe.Pointer) *Array[AVCodecID]

func ToAVCodecParametersArray

func ToAVCodecParametersArray(ptr unsafe.Pointer) *Array[*AVCodecParameters]

func ToAVCodecParserArray

func ToAVCodecParserArray(ptr unsafe.Pointer) *Array[*AVCodecParser]

func ToAVCodecParserContextArray

func ToAVCodecParserContextArray(ptr unsafe.Pointer) *Array[*AVCodecParserContext]

func ToAVCodecTagArray

func ToAVCodecTagArray(ptr unsafe.Pointer) *Array[*AVCodecTag]

func ToAVColorPrimariesArray

func ToAVColorPrimariesArray(ptr unsafe.Pointer) *Array[AVColorPrimaries]

func ToAVColorPrimariesDescArray

func ToAVColorPrimariesDescArray(ptr unsafe.Pointer) *Array[*AVColorPrimariesDesc]

func ToAVColorRangeArray

func ToAVColorRangeArray(ptr unsafe.Pointer) *Array[AVColorRange]

func ToAVColorSpaceArray

func ToAVColorSpaceArray(ptr unsafe.Pointer) *Array[AVColorSpace]

func ToAVColorTransferCharacteristicArray

func ToAVColorTransferCharacteristicArray(ptr unsafe.Pointer) *Array[AVColorTransferCharacteristic]

func ToAVComplexDoubleArray

func ToAVComplexDoubleArray(ptr unsafe.Pointer) *Array[*AVComplexDouble]

func ToAVComplexFloatArray

func ToAVComplexFloatArray(ptr unsafe.Pointer) *Array[*AVComplexFloat]

func ToAVComplexInt32Array

func ToAVComplexInt32Array(ptr unsafe.Pointer) *Array[*AVComplexInt32]

func ToAVComponentDescriptorArray

func ToAVComponentDescriptorArray(ptr unsafe.Pointer) *Array[*AVComponentDescriptor]

func ToAVContainerFifoArray

func ToAVContainerFifoArray(ptr unsafe.Pointer) *Array[*AVContainerFifo]

func ToAVContainerFifoFlagsArray

func ToAVContainerFifoFlagsArray(ptr unsafe.Pointer) *Array[AVContainerFifoFlags]

func ToAVContentLightMetadataArray

func ToAVContentLightMetadataArray(ptr unsafe.Pointer) *Array[*AVContentLightMetadata]

func ToAVDESArray

func ToAVDESArray(ptr unsafe.Pointer) *Array[*AVDES]

func ToAVDOVIColorMetadataArray

func ToAVDOVIColorMetadataArray(ptr unsafe.Pointer) *Array[*AVDOVIColorMetadata]

func ToAVDOVICompressionArray

func ToAVDOVICompressionArray(ptr unsafe.Pointer) *Array[AVDOVICompression]

func ToAVDOVIDataMappingArray

func ToAVDOVIDataMappingArray(ptr unsafe.Pointer) *Array[*AVDOVIDataMapping]

func ToAVDOVIDecoderConfigurationRecordArray

func ToAVDOVIDecoderConfigurationRecordArray(ptr unsafe.Pointer) *Array[*AVDOVIDecoderConfigurationRecord]

func ToAVDOVIDmDataArray

func ToAVDOVIDmDataArray(ptr unsafe.Pointer) *Array[*AVDOVIDmData]

func ToAVDOVIDmLevel10Array

func ToAVDOVIDmLevel10Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel10]

func ToAVDOVIDmLevel11Array

func ToAVDOVIDmLevel11Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel11]

func ToAVDOVIDmLevel1Array

func ToAVDOVIDmLevel1Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel1]

func ToAVDOVIDmLevel254Array

func ToAVDOVIDmLevel254Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel254]

func ToAVDOVIDmLevel255Array

func ToAVDOVIDmLevel255Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel255]

func ToAVDOVIDmLevel2Array

func ToAVDOVIDmLevel2Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel2]

func ToAVDOVIDmLevel3Array

func ToAVDOVIDmLevel3Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel3]

func ToAVDOVIDmLevel4Array

func ToAVDOVIDmLevel4Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel4]

func ToAVDOVIDmLevel5Array

func ToAVDOVIDmLevel5Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel5]

func ToAVDOVIDmLevel6Array

func ToAVDOVIDmLevel6Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel6]

func ToAVDOVIDmLevel8Array

func ToAVDOVIDmLevel8Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel8]

func ToAVDOVIDmLevel9Array

func ToAVDOVIDmLevel9Array(ptr unsafe.Pointer) *Array[*AVDOVIDmLevel9]

func ToAVDOVIMappingMethodArray

func ToAVDOVIMappingMethodArray(ptr unsafe.Pointer) *Array[AVDOVIMappingMethod]

func ToAVDOVIMetadataArray

func ToAVDOVIMetadataArray(ptr unsafe.Pointer) *Array[*AVDOVIMetadata]

func ToAVDOVINLQMethodArray

func ToAVDOVINLQMethodArray(ptr unsafe.Pointer) *Array[AVDOVINLQMethod]

func ToAVDOVINLQParamsArray

func ToAVDOVINLQParamsArray(ptr unsafe.Pointer) *Array[*AVDOVINLQParams]

func ToAVDOVIReshapingCurveArray

func ToAVDOVIReshapingCurveArray(ptr unsafe.Pointer) *Array[*AVDOVIReshapingCurve]

func ToAVDOVIRpuDataHeaderArray

func ToAVDOVIRpuDataHeaderArray(ptr unsafe.Pointer) *Array[*AVDOVIRpuDataHeader]

func ToAVDetectionBBoxArray

func ToAVDetectionBBoxArray(ptr unsafe.Pointer) *Array[*AVDetectionBBox]

func ToAVDetectionBBoxHeaderArray

func ToAVDetectionBBoxHeaderArray(ptr unsafe.Pointer) *Array[*AVDetectionBBoxHeader]

func ToAVDevToAppMessageTypeArray

func ToAVDevToAppMessageTypeArray(ptr unsafe.Pointer) *Array[AVDevToAppMessageType]

func ToAVDeviceInfoArray

func ToAVDeviceInfoArray(ptr unsafe.Pointer) *Array[*AVDeviceInfo]

func ToAVDeviceInfoListArray

func ToAVDeviceInfoListArray(ptr unsafe.Pointer) *Array[*AVDeviceInfoList]

func ToAVDeviceRectArray

func ToAVDeviceRectArray(ptr unsafe.Pointer) *Array[*AVDeviceRect]

func ToAVDictionaryArray

func ToAVDictionaryArray(ptr unsafe.Pointer) *Array[*AVDictionary]

func ToAVDictionaryEntryArray

func ToAVDictionaryEntryArray(ptr unsafe.Pointer) *Array[*AVDictionaryEntry]

func ToAVDiscardArray

func ToAVDiscardArray(ptr unsafe.Pointer) *Array[AVDiscard]

func ToAVDownmixInfoArray

func ToAVDownmixInfoArray(ptr unsafe.Pointer) *Array[*AVDownmixInfo]

func ToAVDownmixTypeArray

func ToAVDownmixTypeArray(ptr unsafe.Pointer) *Array[AVDownmixType]

func ToAVDurationEstimationMethodArray

func ToAVDurationEstimationMethodArray(ptr unsafe.Pointer) *Array[AVDurationEstimationMethod]

func ToAVDynamicHDRPlusArray

func ToAVDynamicHDRPlusArray(ptr unsafe.Pointer) *Array[*AVDynamicHDRPlus]

func ToAVDynamicHDRVividArray

func ToAVDynamicHDRVividArray(ptr unsafe.Pointer) *Array[*AVDynamicHDRVivid]

func ToAVEncryptionInfoArray

func ToAVEncryptionInfoArray(ptr unsafe.Pointer) *Array[*AVEncryptionInfo]

func ToAVEncryptionInitInfoArray

func ToAVEncryptionInitInfoArray(ptr unsafe.Pointer) *Array[*AVEncryptionInitInfo]

func ToAVEscapeModeArray

func ToAVEscapeModeArray(ptr unsafe.Pointer) *Array[AVEscapeMode]

func ToAVExecutorArray

func ToAVExecutorArray(ptr unsafe.Pointer) *Array[*AVExecutor]

func ToAVExprArray

func ToAVExprArray(ptr unsafe.Pointer) *Array[*AVExpr]

func ToAVFieldOrderArray

func ToAVFieldOrderArray(ptr unsafe.Pointer) *Array[AVFieldOrder]

func ToAVFifoArray

func ToAVFifoArray(ptr unsafe.Pointer) *Array[*AVFifo]

func ToAVFilmGrainAOMParamsArray

func ToAVFilmGrainAOMParamsArray(ptr unsafe.Pointer) *Array[*AVFilmGrainAOMParams]

func ToAVFilmGrainH274ParamsArray

func ToAVFilmGrainH274ParamsArray(ptr unsafe.Pointer) *Array[*AVFilmGrainH274Params]

func ToAVFilmGrainParamsArray

func ToAVFilmGrainParamsArray(ptr unsafe.Pointer) *Array[*AVFilmGrainParams]

func ToAVFilmGrainParamsTypeArray

func ToAVFilmGrainParamsTypeArray(ptr unsafe.Pointer) *Array[AVFilmGrainParamsType]

func ToAVFilterArray

func ToAVFilterArray(ptr unsafe.Pointer) *Array[*AVFilter]

func ToAVFilterChainArray

func ToAVFilterChainArray(ptr unsafe.Pointer) *Array[*AVFilterChain]

func ToAVFilterChannelLayoutsArray

func ToAVFilterChannelLayoutsArray(ptr unsafe.Pointer) *Array[*AVFilterChannelLayouts]

func ToAVFilterContextArray

func ToAVFilterContextArray(ptr unsafe.Pointer) *Array[*AVFilterContext]

func ToAVFilterFormatsArray

func ToAVFilterFormatsArray(ptr unsafe.Pointer) *Array[*AVFilterFormats]

func ToAVFilterFormatsConfigArray

func ToAVFilterFormatsConfigArray(ptr unsafe.Pointer) *Array[*AVFilterFormatsConfig]

func ToAVFilterGraphArray

func ToAVFilterGraphArray(ptr unsafe.Pointer) *Array[*AVFilterGraph]

func ToAVFilterGraphSegmentArray

func ToAVFilterGraphSegmentArray(ptr unsafe.Pointer) *Array[*AVFilterGraphSegment]

func ToAVFilterInOutArray

func ToAVFilterInOutArray(ptr unsafe.Pointer) *Array[*AVFilterInOut]

func ToAVFilterLinkArray

func ToAVFilterLinkArray(ptr unsafe.Pointer) *Array[*AVFilterLink]

func ToAVFilterPadArray

func ToAVFilterPadArray(ptr unsafe.Pointer) *Array[*AVFilterPad]

func ToAVFilterPadParamsArray

func ToAVFilterPadParamsArray(ptr unsafe.Pointer) *Array[*AVFilterPadParams]

func ToAVFilterParamsArray

func ToAVFilterParamsArray(ptr unsafe.Pointer) *Array[*AVFilterParams]

func ToAVFormatContextArray

func ToAVFormatContextArray(ptr unsafe.Pointer) *Array[*AVFormatContext]

func ToAVFrameArray

func ToAVFrameArray(ptr unsafe.Pointer) *Array[*AVFrame]

func ToAVFrameSideDataArray

func ToAVFrameSideDataArray(ptr unsafe.Pointer) *Array[*AVFrameSideData]

func ToAVFrameSideDataTypeArray

func ToAVFrameSideDataTypeArray(ptr unsafe.Pointer) *Array[AVFrameSideDataType]

func ToAVHDRPlusColorTransformParamsArray

func ToAVHDRPlusColorTransformParamsArray(ptr unsafe.Pointer) *Array[*AVHDRPlusColorTransformParams]

func ToAVHDRPlusOverlapProcessOptionArray

func ToAVHDRPlusOverlapProcessOptionArray(ptr unsafe.Pointer) *Array[AVHDRPlusOverlapProcessOption]

func ToAVHDRPlusPercentileArray

func ToAVHDRPlusPercentileArray(ptr unsafe.Pointer) *Array[*AVHDRPlusPercentile]

func ToAVHDRVivid3SplineParamsArray

func ToAVHDRVivid3SplineParamsArray(ptr unsafe.Pointer) *Array[*AVHDRVivid3SplineParams]

func ToAVHDRVividColorToneMappingParamsArray

func ToAVHDRVividColorToneMappingParamsArray(ptr unsafe.Pointer) *Array[*AVHDRVividColorToneMappingParams]

func ToAVHDRVividColorTransformParamsArray

func ToAVHDRVividColorTransformParamsArray(ptr unsafe.Pointer) *Array[*AVHDRVividColorTransformParams]

func ToAVHMACArray

func ToAVHMACArray(ptr unsafe.Pointer) *Array[*AVHMAC]

func ToAVHMACTypeArray

func ToAVHMACTypeArray(ptr unsafe.Pointer) *Array[AVHMACType]

func ToAVHWAccelArray

func ToAVHWAccelArray(ptr unsafe.Pointer) *Array[*AVHWAccel]

func ToAVHWDeviceContextArray

func ToAVHWDeviceContextArray(ptr unsafe.Pointer) *Array[*AVHWDeviceContext]

func ToAVHWDeviceTypeArray

func ToAVHWDeviceTypeArray(ptr unsafe.Pointer) *Array[AVHWDeviceType]

func ToAVHWFrameTransferDirectionArray

func ToAVHWFrameTransferDirectionArray(ptr unsafe.Pointer) *Array[AVHWFrameTransferDirection]

func ToAVHWFramesConstraintsArray

func ToAVHWFramesConstraintsArray(ptr unsafe.Pointer) *Array[*AVHWFramesConstraints]

func ToAVHWFramesContextArray

func ToAVHWFramesContextArray(ptr unsafe.Pointer) *Array[*AVHWFramesContext]

func ToAVHashContextArray

func ToAVHashContextArray(ptr unsafe.Pointer) *Array[*AVHashContext]

func ToAVIAMFAmbisonicsModeArray

func ToAVIAMFAmbisonicsModeArray(ptr unsafe.Pointer) *Array[AVIAMFAmbisonicsMode]

func ToAVIAMFAnimationTypeArray

func ToAVIAMFAnimationTypeArray(ptr unsafe.Pointer) *Array[AVIAMFAnimationType]

func ToAVIAMFAudioElementArray

func ToAVIAMFAudioElementArray(ptr unsafe.Pointer) *Array[*AVIAMFAudioElement]

func ToAVIAMFAudioElementTypeArray

func ToAVIAMFAudioElementTypeArray(ptr unsafe.Pointer) *Array[AVIAMFAudioElementType]

func ToAVIAMFDemixingInfoArray

func ToAVIAMFDemixingInfoArray(ptr unsafe.Pointer) *Array[*AVIAMFDemixingInfo]

func ToAVIAMFHeadphonesModeArray

func ToAVIAMFHeadphonesModeArray(ptr unsafe.Pointer) *Array[AVIAMFHeadphonesMode]

func ToAVIAMFLayerArray

func ToAVIAMFLayerArray(ptr unsafe.Pointer) *Array[*AVIAMFLayer]

func ToAVIAMFMixGainArray

func ToAVIAMFMixGainArray(ptr unsafe.Pointer) *Array[*AVIAMFMixGain]

func ToAVIAMFMixPresentationArray

func ToAVIAMFMixPresentationArray(ptr unsafe.Pointer) *Array[*AVIAMFMixPresentation]

func ToAVIAMFParamDefinitionArray

func ToAVIAMFParamDefinitionArray(ptr unsafe.Pointer) *Array[*AVIAMFParamDefinition]

func ToAVIAMFParamDefinitionTypeArray

func ToAVIAMFParamDefinitionTypeArray(ptr unsafe.Pointer) *Array[AVIAMFParamDefinitionType]

func ToAVIAMFReconGainArray

func ToAVIAMFReconGainArray(ptr unsafe.Pointer) *Array[*AVIAMFReconGain]

func ToAVIAMFSubmixArray

func ToAVIAMFSubmixArray(ptr unsafe.Pointer) *Array[*AVIAMFSubmix]

func ToAVIAMFSubmixElementArray

func ToAVIAMFSubmixElementArray(ptr unsafe.Pointer) *Array[*AVIAMFSubmixElement]

func ToAVIAMFSubmixLayoutArray

func ToAVIAMFSubmixLayoutArray(ptr unsafe.Pointer) *Array[*AVIAMFSubmixLayout]

func ToAVIAMFSubmixLayoutTypeArray

func ToAVIAMFSubmixLayoutTypeArray(ptr unsafe.Pointer) *Array[AVIAMFSubmixLayoutType]

func ToAVIOContextArray

func ToAVIOContextArray(ptr unsafe.Pointer) *Array[*AVIOContext]

func ToAVIODataMarkerTypeArray

func ToAVIODataMarkerTypeArray(ptr unsafe.Pointer) *Array[AVIODataMarkerType]

func ToAVIODirContextArray

func ToAVIODirContextArray(ptr unsafe.Pointer) *Array[*AVIODirContext]

func ToAVIODirEntryArray

func ToAVIODirEntryArray(ptr unsafe.Pointer) *Array[*AVIODirEntry]

func ToAVIODirEntryTypeArray

func ToAVIODirEntryTypeArray(ptr unsafe.Pointer) *Array[AVIODirEntryType]

func ToAVIOInterruptCBArray

func ToAVIOInterruptCBArray(ptr unsafe.Pointer) *Array[*AVIOInterruptCB]

func ToAVIndexEntryArray

func ToAVIndexEntryArray(ptr unsafe.Pointer) *Array[*AVIndexEntry]

func ToAVInputFormatArray

func ToAVInputFormatArray(ptr unsafe.Pointer) *Array[*AVInputFormat]

func ToAVLFGArray

func ToAVLFGArray(ptr unsafe.Pointer) *Array[*AVLFG]

func ToAVLumaCoefficientsArray

func ToAVLumaCoefficientsArray(ptr unsafe.Pointer) *Array[*AVLumaCoefficients]

func ToAVMasteringDisplayMetadataArray

func ToAVMasteringDisplayMetadataArray(ptr unsafe.Pointer) *Array[*AVMasteringDisplayMetadata]

func ToAVMatrixEncodingArray

func ToAVMatrixEncodingArray(ptr unsafe.Pointer) *Array[AVMatrixEncoding]

func ToAVMediaTypeArray

func ToAVMediaTypeArray(ptr unsafe.Pointer) *Array[AVMediaType]

func ToAVMotionVectorArray

func ToAVMotionVectorArray(ptr unsafe.Pointer) *Array[*AVMotionVector]

func ToAVMurMur3Array

func ToAVMurMur3Array(ptr unsafe.Pointer) *Array[*AVMurMur3]

func ToAVOptionArray

func ToAVOptionArray(ptr unsafe.Pointer) *Array[*AVOption]

func ToAVOptionArrayDefArray

func ToAVOptionArrayDefArray(ptr unsafe.Pointer) *Array[*AVOptionArrayDef]

func ToAVOptionRangeArray

func ToAVOptionRangeArray(ptr unsafe.Pointer) *Array[*AVOptionRange]

func ToAVOptionRangesArray

func ToAVOptionRangesArray(ptr unsafe.Pointer) *Array[*AVOptionRanges]

func ToAVOptionTypeArray

func ToAVOptionTypeArray(ptr unsafe.Pointer) *Array[AVOptionType]

func ToAVOutputFormatArray

func ToAVOutputFormatArray(ptr unsafe.Pointer) *Array[*AVOutputFormat]

func ToAVPacketArray

func ToAVPacketArray(ptr unsafe.Pointer) *Array[*AVPacket]

func ToAVPacketListArray

func ToAVPacketListArray(ptr unsafe.Pointer) *Array[*AVPacketList]

func ToAVPacketSideDataArray

func ToAVPacketSideDataArray(ptr unsafe.Pointer) *Array[*AVPacketSideData]

func ToAVPacketSideDataTypeArray

func ToAVPacketSideDataTypeArray(ptr unsafe.Pointer) *Array[AVPacketSideDataType]

func ToAVPanScanArray

func ToAVPanScanArray(ptr unsafe.Pointer) *Array[*AVPanScan]

func ToAVPictureStructureArray

func ToAVPictureStructureArray(ptr unsafe.Pointer) *Array[AVPictureStructure]

func ToAVPictureTypeArray

func ToAVPictureTypeArray(ptr unsafe.Pointer) *Array[AVPictureType]

func ToAVPixFmtDescriptorArray

func ToAVPixFmtDescriptorArray(ptr unsafe.Pointer) *Array[*AVPixFmtDescriptor]

func ToAVPixelFormatArray

func ToAVPixelFormatArray(ptr unsafe.Pointer) *Array[AVPixelFormat]

func ToAVPrimaryCoefficientsArray

func ToAVPrimaryCoefficientsArray(ptr unsafe.Pointer) *Array[*AVPrimaryCoefficients]

func ToAVProbeDataArray

func ToAVProbeDataArray(ptr unsafe.Pointer) *Array[*AVProbeData]

func ToAVProducerReferenceTimeArray

func ToAVProducerReferenceTimeArray(ptr unsafe.Pointer) *Array[*AVProducerReferenceTime]

func ToAVProfileArray

func ToAVProfileArray(ptr unsafe.Pointer) *Array[*AVProfile]

func ToAVProgramArray

func ToAVProgramArray(ptr unsafe.Pointer) *Array[*AVProgram]

func ToAVRC4Array

func ToAVRC4Array(ptr unsafe.Pointer) *Array[*AVRC4]

func ToAVRIPEMDArray

func ToAVRIPEMDArray(ptr unsafe.Pointer) *Array[*AVRIPEMD]

func ToAVRTCPSenderReportArray

func ToAVRTCPSenderReportArray(ptr unsafe.Pointer) *Array[*AVRTCPSenderReport]

func ToAVRationalArray

func ToAVRationalArray(ptr unsafe.Pointer) *Array[*AVRational]

func ToAVRegionOfInterestArray

func ToAVRegionOfInterestArray(ptr unsafe.Pointer) *Array[*AVRegionOfInterest]

func ToAVReplayGainArray

func ToAVReplayGainArray(ptr unsafe.Pointer) *Array[*AVReplayGain]

func ToAVRoundingArray

func ToAVRoundingArray(ptr unsafe.Pointer) *Array[AVRounding]

func ToAVSHA512Array

func ToAVSHA512Array(ptr unsafe.Pointer) *Array[*AVSHA512]

func ToAVSHAArray

func ToAVSHAArray(ptr unsafe.Pointer) *Array[*AVSHA]

func ToAVSampleFormatArray

func ToAVSampleFormatArray(ptr unsafe.Pointer) *Array[AVSampleFormat]

func ToAVSideDataDescriptorArray

func ToAVSideDataDescriptorArray(ptr unsafe.Pointer) *Array[*AVSideDataDescriptor]

func ToAVSideDataParamChangeFlagsArray

func ToAVSideDataParamChangeFlagsArray(ptr unsafe.Pointer) *Array[AVSideDataParamChangeFlags]

func ToAVSideDataPropsArray

func ToAVSideDataPropsArray(ptr unsafe.Pointer) *Array[AVSideDataProps]

func ToAVSphericalMappingArray

func ToAVSphericalMappingArray(ptr unsafe.Pointer) *Array[*AVSphericalMapping]

func ToAVSphericalProjectionArray

func ToAVSphericalProjectionArray(ptr unsafe.Pointer) *Array[AVSphericalProjection]

func ToAVStereo3DArray

func ToAVStereo3DArray(ptr unsafe.Pointer) *Array[*AVStereo3D]

func ToAVStereo3DPrimaryEyeArray

func ToAVStereo3DPrimaryEyeArray(ptr unsafe.Pointer) *Array[AVStereo3DPrimaryEye]

func ToAVStereo3DTypeArray

func ToAVStereo3DTypeArray(ptr unsafe.Pointer) *Array[AVStereo3DType]

func ToAVStereo3DViewArray

func ToAVStereo3DViewArray(ptr unsafe.Pointer) *Array[AVStereo3DView]

func ToAVStreamArray

func ToAVStreamArray(ptr unsafe.Pointer) *Array[*AVStream]

func ToAVStreamGroupArray

func ToAVStreamGroupArray(ptr unsafe.Pointer) *Array[*AVStreamGroup]

func ToAVStreamGroupLCEVCArray

func ToAVStreamGroupLCEVCArray(ptr unsafe.Pointer) *Array[*AVStreamGroupLCEVC]

func ToAVStreamGroupParamsTypeArray

func ToAVStreamGroupParamsTypeArray(ptr unsafe.Pointer) *Array[AVStreamGroupParamsType]

func ToAVStreamGroupTileGridArray

func ToAVStreamGroupTileGridArray(ptr unsafe.Pointer) *Array[*AVStreamGroupTileGrid]

func ToAVStreamGroupTileGridOffsetArray

func ToAVStreamGroupTileGridOffsetArray(ptr unsafe.Pointer) *Array[*AVStreamGroupTileGridOffset]

ToAVStreamGroupTileGridOffsetArray creates an Array accessor for a slice of offsets.

func ToAVStreamParseTypeArray

func ToAVStreamParseTypeArray(ptr unsafe.Pointer) *Array[AVStreamParseType]

func ToAVSubsampleEncryptionInfoArray

func ToAVSubsampleEncryptionInfoArray(ptr unsafe.Pointer) *Array[*AVSubsampleEncryptionInfo]

func ToAVSubtitleArray

func ToAVSubtitleArray(ptr unsafe.Pointer) *Array[*AVSubtitle]

func ToAVSubtitleRectArray

func ToAVSubtitleRectArray(ptr unsafe.Pointer) *Array[*AVSubtitleRect]

func ToAVSubtitleTypeArray

func ToAVSubtitleTypeArray(ptr unsafe.Pointer) *Array[AVSubtitleType]

func ToAVTEAArray

func ToAVTEAArray(ptr unsafe.Pointer) *Array[*AVTEA]

func ToAVTWOFISHArray

func ToAVTWOFISHArray(ptr unsafe.Pointer) *Array[*AVTWOFISH]

func ToAVTXContextArray

func ToAVTXContextArray(ptr unsafe.Pointer) *Array[*AVTXContext]

func ToAVTXFlagsArray

func ToAVTXFlagsArray(ptr unsafe.Pointer) *Array[AVTXFlags]

func ToAVTXTypeArray

func ToAVTXTypeArray(ptr unsafe.Pointer) *Array[AVTXType]

func ToAVTaskArray

func ToAVTaskArray(ptr unsafe.Pointer) *Array[*AVTask]

func ToAVTaskCallbacksArray

func ToAVTaskCallbacksArray(ptr unsafe.Pointer) *Array[*AVTaskCallbacks]

func ToAVThreadMessageFlagsArray

func ToAVThreadMessageFlagsArray(ptr unsafe.Pointer) *Array[AVThreadMessageFlags]

func ToAVThreadMessageQueueArray

func ToAVThreadMessageQueueArray(ptr unsafe.Pointer) *Array[*AVThreadMessageQueue]

func ToAVTimebaseSourceArray

func ToAVTimebaseSourceArray(ptr unsafe.Pointer) *Array[AVTimebaseSource]

func ToAVTimecodeArray

func ToAVTimecodeArray(ptr unsafe.Pointer) *Array[*AVTimecode]

func ToAVTimecodeFlagArray

func ToAVTimecodeFlagArray(ptr unsafe.Pointer) *Array[AVTimecodeFlag]

func ToAVTreeNodeArray

func ToAVTreeNodeArray(ptr unsafe.Pointer) *Array[*AVTreeNode]

func ToAVVideoBlockParamsArray

func ToAVVideoBlockParamsArray(ptr unsafe.Pointer) *Array[*AVVideoBlockParams]

func ToAVVideoEncParamsArray

func ToAVVideoEncParamsArray(ptr unsafe.Pointer) *Array[*AVVideoEncParams]

func ToAVVideoEncParamsTypeArray

func ToAVVideoEncParamsTypeArray(ptr unsafe.Pointer) *Array[AVVideoEncParamsType]

func ToAVVideoHintArray

func ToAVVideoHintArray(ptr unsafe.Pointer) *Array[*AVVideoHint]

func ToAVVideoHintTypeArray

func ToAVVideoHintTypeArray(ptr unsafe.Pointer) *Array[AVVideoHintType]

func ToAVVideoRectArray

func ToAVVideoRectArray(ptr unsafe.Pointer) *Array[*AVVideoRect]

func ToAVXTEAArray

func ToAVXTEAArray(ptr unsafe.Pointer) *Array[*AVXTEA]

func ToFloat64Array

func ToFloat64Array(ptr unsafe.Pointer) *Array[float64]

func ToInt16Array

func ToInt16Array(ptr unsafe.Pointer) *Array[int16]

func ToInt32Array

func ToInt32Array(ptr unsafe.Pointer) *Array[int32]

func ToInt64Array

func ToInt64Array(ptr unsafe.Pointer) *Array[int64]

func ToInt8Array

func ToInt8Array(ptr unsafe.Pointer) *Array[int8]

func ToIntArray

func ToIntArray(ptr unsafe.Pointer) *Array[int]

func ToRcOverrideArray

func ToRcOverrideArray(ptr unsafe.Pointer) *Array[*RcOverride]

func ToSwrContextArray

func ToSwrContextArray(ptr unsafe.Pointer) *Array[*SwrContext]

func ToSwrDitherTypeArray

func ToSwrDitherTypeArray(ptr unsafe.Pointer) *Array[SwrDitherType]

func ToSwrEngineArray

func ToSwrEngineArray(ptr unsafe.Pointer) *Array[SwrEngine]

func ToSwrFilterTypeArray

func ToSwrFilterTypeArray(ptr unsafe.Pointer) *Array[SwrFilterType]

func ToSwsAlphaBlendArray

func ToSwsAlphaBlendArray(ptr unsafe.Pointer) *Array[SwsAlphaBlend]

func ToSwsContextArray

func ToSwsContextArray(ptr unsafe.Pointer) *Array[*SwsContext]

func ToSwsDitherArray

func ToSwsDitherArray(ptr unsafe.Pointer) *Array[SwsDither]

func ToSwsFilterArray

func ToSwsFilterArray(ptr unsafe.Pointer) *Array[*SwsFilter]

func ToSwsFlagsArray

func ToSwsFlagsArray(ptr unsafe.Pointer) *Array[SwsFlags]

func ToSwsIntentArray

func ToSwsIntentArray(ptr unsafe.Pointer) *Array[SwsIntent]

func ToSwsVectorArray

func ToSwsVectorArray(ptr unsafe.Pointer) *Array[*SwsVector]

func ToUint16Array

func ToUint16Array(ptr unsafe.Pointer) *Array[uint16]

func ToUint32Array

func ToUint32Array(ptr unsafe.Pointer) *Array[uint32]

func ToUint64Array

func ToUint64Array(ptr unsafe.Pointer) *Array[uint64]

func ToUint8Array

func ToUint8Array(ptr unsafe.Pointer) *Array[uint8]

func ToUint8PtrArray

func ToUint8PtrArray(ptr unsafe.Pointer) *Array[unsafe.Pointer]

func ToUintArray

func ToUintArray(ptr unsafe.Pointer) *Array[uint]

func Toff_pad_helper_AVBPrintArray

func Toff_pad_helper_AVBPrintArray(ptr unsafe.Pointer) *Array[*ff_pad_helper_AVBPrint]

func TotmArray

func TotmArray(ptr unsafe.Pointer) *Array[*tm]

func (*Array[T]) Free

func (a *Array[T]) Free()

Free deallocates the underlying memory. You should only call this if you own the array.

func (*Array[T]) Get

func (a *Array[T]) Get(i uintptr) T

Get returns the element at the ith offset.

func (*Array[T]) RawPtr

func (a *Array[T]) RawPtr() unsafe.Pointer

RawPtr returns a raw handle the underlying allocation.

func (*Array[T]) Set

func (a *Array[T]) Set(i uintptr, value T)

Set sets the element at the ith offset.

type CStr

type CStr struct {
	// contains filtered or unexported fields
}

CStr is a string allocated in the C memory space. You may need to call Free to clean up the string depending on the owner and use-case.

func AVAppendPathComponent

func AVAppendPathComponent(path *CStr, component *CStr) *CStr

AVAppendPathComponent wraps av_append_path_component.

Append path component to the existing path.
Path separator '/' is placed between when needed.
Resulting string have to be freed with av_free().
@param path      base path
@param component component to be appended
@return new path or NULL on error.

func AVBase64Encode

func AVBase64Encode(out *CStr, outSize int, in unsafe.Pointer, inSize int) *CStr

AVBase64Encode wraps av_base64_encode.

Encode data to base64 and null-terminate.

@param out      buffer for encoded data
@param out_size size in bytes of the out buffer (including the
                null terminator), must be at least AV_BASE64_SIZE(in_size)
@param in       input buffer containing the data to encode
@param in_size  size in bytes of the in buffer
@return         out or NULL in case of error

func AVBasename

func AVBasename(path *CStr) *CStr

AVBasename wraps av_basename.

Thread safe basename.
@param path the string to parse, on DOS both \ and / are considered separators.
@return pointer to the basename substring.
If path does not contain a slash, the function returns a copy of path.
If path is a NULL pointer or points to an empty string, a pointer
to a string "." is returned.

func AVChromaLocationName

func AVChromaLocationName(location AVChromaLocation) *CStr

AVChromaLocationName wraps av_chroma_location_name.

@return the name for provided chroma location or NULL if unknown.

func AVCodecConfiguration

func AVCodecConfiguration() *CStr

AVCodecConfiguration wraps avcodec_configuration.

Return the libavcodec build-time configuration.

func AVCodecGetName

func AVCodecGetName(id AVCodecID) *CStr

AVCodecGetName wraps avcodec_get_name.

Get the name of a codec.
@return  a static string identifying the codec; never NULL

func AVCodecLicense

func AVCodecLicense() *CStr

AVCodecLicense wraps avcodec_license.

Return the libavcodec license.

func AVCodecProfileName

func AVCodecProfileName(codecId AVCodecID, profile int) *CStr

AVCodecProfileName wraps avcodec_profile_name.

Return a name for the specified profile, if available.

@param codec_id the ID of the codec to which the requested profile belongs
@param profile the profile value for which a name is requested
@return A name for the profile if found, NULL otherwise.

@note unlike av_get_profile_name(), which searches a list of profiles
      supported by a specific decoder or encoder implementation, this
      function searches the list of profiles from the AVCodecDescriptor

func AVColorPrimariesName

func AVColorPrimariesName(primaries AVColorPrimaries) *CStr

AVColorPrimariesName wraps av_color_primaries_name.

@return the name for provided color primaries or NULL if unknown.

func AVColorRangeName

func AVColorRangeName(_range AVColorRange) *CStr

AVColorRangeName wraps av_color_range_name.

@return the name for provided color range or NULL if unknown.

func AVColorSpaceName

func AVColorSpaceName(space AVColorSpace) *CStr

AVColorSpaceName wraps av_color_space_name.

@return the name for provided color space or NULL if unknown.

func AVColorTransferName

func AVColorTransferName(transfer AVColorTransferCharacteristic) *CStr

AVColorTransferName wraps av_color_transfer_name.

@return the name for provided color transfer or NULL if unknown.

func AVDefaultItemName

func AVDefaultItemName(ctx unsafe.Pointer) *CStr

AVDefaultItemName wraps av_default_item_name.

Return the context name

@param  ctx The AVClass context

@return The AVClass class_name

func AVDeviceConfiguration

func AVDeviceConfiguration() *CStr

AVDeviceConfiguration wraps avdevice_configuration.

Return the libavdevice build-time configuration.

func AVDeviceLicense

func AVDeviceLicense() *CStr

AVDeviceLicense wraps avdevice_license.

Return the libavdevice license.

func AVDirname

func AVDirname(path *CStr) *CStr

AVDirname wraps av_dirname.

Thread safe dirname.
@param path the string to parse, on DOS both \ and / are considered separators.
@return A pointer to a string that's the parent directory of path.
If path is a NULL pointer or points to an empty string, a pointer
to a string "." is returned.
@note the function may modify the contents of the path, so copies should be passed.

func AVDispositionToString

func AVDispositionToString(disposition int) *CStr

AVDispositionToString wraps av_disposition_to_string.

@param disposition a combination of AV_DISPOSITION_* values
@return The string description corresponding to the lowest set bit in
        disposition. NULL when the lowest set bit does not correspond
        to a known disposition or when disposition is 0.

func AVFilterConfiguration

func AVFilterConfiguration() *CStr

AVFilterConfiguration wraps avfilter_configuration.

Return the libavfilter build-time configuration.

func AVFilterGraphDump

func AVFilterGraphDump(graph *AVFilterGraph, options *CStr) *CStr

AVFilterGraphDump wraps avfilter_graph_dump.

Dump a graph into a human-readable string representation.

@param graph    the graph to dump
@param options  formatting options; currently ignored
@return  a string, or NULL in case of memory allocation failure;
         the string must be freed using av_free

func AVFilterLicense

func AVFilterLicense() *CStr

AVFilterLicense wraps avfilter_license.

Return the libavfilter license.

func AVFilterPadGetName

func AVFilterPadGetName(pads *AVFilterPad, padIdx int) *CStr

AVFilterPadGetName wraps avfilter_pad_get_name.

Get the name of an AVFilterPad.

@param pads an array of AVFilterPads
@param pad_idx index of the pad in the array; it is the caller's
               responsibility to ensure the index is valid

@return name of the pad_idx'th pad in pads

func AVFormatConfiguration

func AVFormatConfiguration() *CStr

AVFormatConfiguration wraps avformat_configuration.

Return the libavformat build-time configuration.

func AVFormatLicense

func AVFormatLicense() *CStr

AVFormatLicense wraps avformat_license.

Return the libavformat license.

func AVFormatStreamGroupName

func AVFormatStreamGroupName(_type AVStreamGroupParamsType) *CStr

AVFormatStreamGroupName wraps avformat_stream_group_name.

@return a string identifying the stream group type, or NULL if unknown

func AVFourccMakeString

func AVFourccMakeString(buf *CStr, fourcc uint32) *CStr

AVFourccMakeString wraps av_fourcc_make_string.

Fill the provided buffer with a string containing a FourCC (four-character
code) representation.

@param buf    a buffer with size in bytes of at least AV_FOURCC_MAX_STRING_SIZE
@param fourcc the fourcc to represent
@return the buffer in input

func AVFrameSideDataName

func AVFrameSideDataName(_type AVFrameSideDataType) *CStr

AVFrameSideDataName wraps av_frame_side_data_name.

@return a string identifying the side data type

func AVGetMediaTypeString

func AVGetMediaTypeString(mediaType AVMediaType) *CStr

AVGetMediaTypeString wraps av_get_media_type_string.

Return a string describing the media_type enum, NULL if media_type
is unknown.

func AVGetPixFmtName

func AVGetPixFmtName(pixFmt AVPixelFormat) *CStr

AVGetPixFmtName wraps av_get_pix_fmt_name.

Return the short name for a pixel format, NULL in case pix_fmt is
unknown.

@see av_get_pix_fmt(), av_get_pix_fmt_string()

func AVGetPixFmtString

func AVGetPixFmtString(buf *CStr, bufSize int, pixFmt AVPixelFormat) *CStr

AVGetPixFmtString wraps av_get_pix_fmt_string.

Print in buf the string corresponding to the pixel format with
number pix_fmt, or a header if pix_fmt is negative.

@param buf the buffer where to write the string
@param buf_size the size of buf
@param pix_fmt the number of the pixel format to print the
corresponding info string, or a negative value to print the
corresponding header.

func AVGetProfileName

func AVGetProfileName(codec *AVCodec, profile int) *CStr

AVGetProfileName wraps av_get_profile_name.

Return a name for the specified profile, if available.

@param codec the codec that is searched for the given profile
@param profile the profile value for which a name is requested
@return A name for the profile if found, NULL otherwise.

func AVGetSampleFmtName

func AVGetSampleFmtName(sampleFmt AVSampleFormat) *CStr

AVGetSampleFmtName wraps av_get_sample_fmt_name.

Return the name of sample_fmt, or NULL if sample_fmt is not
recognized.

func AVGetSampleFmtString

func AVGetSampleFmtString(buf *CStr, bufSize int, sampleFmt AVSampleFormat) *CStr

AVGetSampleFmtString wraps av_get_sample_fmt_string.

Generate a string corresponding to the sample format with
sample_fmt, or a header if sample_fmt is negative.

@param buf the buffer where to write the string
@param buf_size the size of buf
@param sample_fmt the number of the sample format to print the
corresponding info string, or a negative value to print the
corresponding header.
@return the pointer to the filled buffer or NULL if sample_fmt is
unknown or in case of other errors

func AVHWDeviceGetTypeName

func AVHWDeviceGetTypeName(_type AVHWDeviceType) *CStr

AVHWDeviceGetTypeName wraps av_hwdevice_get_type_name.

Get the string name of an AVHWDeviceType.

@param type Type from enum AVHWDeviceType.
@return Pointer to a static string containing the name, or NULL if the type
        is not valid.

func AVHashGetName

func AVHashGetName(ctx *AVHashContext) *CStr

AVHashGetName wraps av_hash_get_name.

Get the name of the algorithm corresponding to the given hash context.

func AVHashNames

func AVHashNames(i int) *CStr

AVHashNames wraps av_hash_names.

Get the names of available hash algorithms.

This function can be used to enumerate the algorithms.

@param[in] i  Index of the hash algorithm, starting from 0
@return       Pointer to a static string or `NULL` if `i` is out of range

func AVIOFindProtocolName

func AVIOFindProtocolName(url *CStr) *CStr

AVIOFindProtocolName wraps avio_find_protocol_name.

Return the name of the protocol that will handle the passed URL.

NULL is returned if no protocol could be found for the given URL.

@return Name of the protocol or NULL.

func AVMakeErrorString

func AVMakeErrorString(errbuf *CStr, errbufSize uint64, errnum int) *CStr

AVMakeErrorString wraps av_make_error_string.

Fill the provided buffer with a string containing an error string
corresponding to the AVERROR code errnum.

@param errbuf         a buffer
@param errbuf_size    size in bytes of errbuf
@param errnum         error code to describe
@return the buffer in input, filled with the error description
@see av_strerror()

func AVPacketSideDataName

func AVPacketSideDataName(_type AVPacketSideDataType) *CStr

AVPacketSideDataName wraps av_packet_side_data_name.

func AVSphericalProjectionName

func AVSphericalProjectionName(projection AVSphericalProjection) *CStr

AVSphericalProjectionName wraps av_spherical_projection_name.

Provide a human-readable name of a given AVSphericalProjection.

@param projection The input AVSphericalProjection.

@return The name of the AVSphericalProjection, or "unknown".

func AVStereo3DPrimaryEyeName

func AVStereo3DPrimaryEyeName(eye uint) *CStr

AVStereo3DPrimaryEyeName wraps av_stereo3d_primary_eye_name.

Provide a human-readable name of a given stereo3d primary eye.

@param type The input stereo3d primary eye value.

@return The name of the stereo3d primary eye value, or "unknown".

func AVStereo3DTypeName

func AVStereo3DTypeName(_type uint) *CStr

AVStereo3DTypeName wraps av_stereo3d_type_name.

Provide a human-readable name of a given stereo3d type.

@param type The input stereo3d type value.

@return The name of the stereo3d value, or "unknown".

func AVStereo3DViewName

func AVStereo3DViewName(view uint) *CStr

AVStereo3DViewName wraps av_stereo3d_view_name.

Provide a human-readable name of a given stereo3d view.

@param type The input stereo3d view value.

@return The name of the stereo3d view value, or "unknown".

func AVStrdup

func AVStrdup(s *CStr) *CStr

AVStrdup wraps av_strdup.

Duplicate a string.

@param s String to be duplicated
@return Pointer to a newly-allocated string containing a
        copy of `s` or `NULL` if the string cannot be allocated
@see av_strndup()

func AVStrireplace

func AVStrireplace(str *CStr, from *CStr, to *CStr) *CStr

AVStrireplace wraps av_strireplace.

Locale-independent strings replace.
@note This means only ASCII-range characters are replaced.

func AVStristr

func AVStristr(haystack *CStr, needle *CStr) *CStr

AVStristr wraps av_stristr.

Locate the first case-independent occurrence in the string haystack
of the string needle.  A zero-length string needle is considered to
match at the start of haystack.

This function is a case-insensitive version of the standard strstr().

@param haystack string to search in
@param needle   string to search for
@return         pointer to the located match within haystack
                or a null pointer if no match

func AVStrndup

func AVStrndup(s *CStr, len uint64) *CStr

AVStrndup wraps av_strndup.

Duplicate a substring of a string.

@param s   String to be duplicated
@param len Maximum length of the resulting string (not counting the
           terminating byte)
@return Pointer to a newly-allocated string containing a
        substring of `s` or `NULL` if the string cannot be allocated

func AVStrnstr

func AVStrnstr(haystack *CStr, needle *CStr, hayLength uint64) *CStr

AVStrnstr wraps av_strnstr.

Locate the first occurrence of the string needle in the string haystack
where not more than hay_length characters are searched. A zero-length
string needle is considered to match at the start of haystack.

This function is a length-limited version of the standard strstr().

@param haystack   string to search in
@param needle     string to search for
@param hay_length length of string to search in
@return           pointer to the located match within haystack
                  or a null pointer if no match

func AVTimecodeMakeMpegTcString

func AVTimecodeMakeMpegTcString(buf *CStr, tc25Bit uint32) *CStr

AVTimecodeMakeMpegTcString wraps av_timecode_make_mpeg_tc_string.

Get the timecode string from the 25-bit timecode format (MPEG GOP format).

@param buf     destination buffer, must be at least AV_TIMECODE_STR_SIZE long
@param tc25bit the 25-bits timecode
@return        the buf parameter

func AVTimecodeMakeSmpteTcString

func AVTimecodeMakeSmpteTcString(buf *CStr, tcsmpte uint32, preventDf int) *CStr

AVTimecodeMakeSmpteTcString wraps av_timecode_make_smpte_tc_string.

Get the timecode string from the SMPTE timecode format.

@param buf        destination buffer, must be at least AV_TIMECODE_STR_SIZE long
@param tcsmpte    the 32-bit SMPTE timecode
@param prevent_df prevent the use of a drop flag when it is known the DF bit
                  is arbitrary
@return           the buf parameter

func AVTimecodeMakeSmpteTcString2

func AVTimecodeMakeSmpteTcString2(buf *CStr, rate *AVRational, tcsmpte uint32, preventDf int, skipField int) *CStr

AVTimecodeMakeSmpteTcString2 wraps av_timecode_make_smpte_tc_string2.

Get the timecode string from the SMPTE timecode format.

In contrast to av_timecode_make_smpte_tc_string this function supports 50/60
fps timecodes by using the field bit.

@param buf        destination buffer, must be at least AV_TIMECODE_STR_SIZE long
@param rate       frame rate of the timecode
@param tcsmpte    the 32-bit SMPTE timecode
@param prevent_df prevent the use of a drop flag when it is known the DF bit
                  is arbitrary
@param skip_field prevent the use of a field flag when it is known the field
                  bit is arbitrary (e.g. because it is used as PC flag)
@return           the buf parameter

func AVTimecodeMakeString

func AVTimecodeMakeString(tc *AVTimecode, buf *CStr, framenum int) *CStr

AVTimecodeMakeString wraps av_timecode_make_string.

Load timecode string in buf.

@param tc       timecode data correctly initialized
@param buf      destination buffer, must be at least AV_TIMECODE_STR_SIZE long
@param framenum frame number
@return         the buf parameter

@note Timecode representation can be a negative timecode and have more than
      24 hours, but will only be honored if the flags are correctly set.
@note The frame number is relative to tc->start.

func AVTsMakeString

func AVTsMakeString(buf *CStr, ts int64) *CStr

AVTsMakeString wraps av_ts_make_string.

Fill the provided buffer with a string containing a timestamp
representation.

@param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
@param ts the timestamp to represent
@return the buffer in input

func AVTsMakeTimeString2

func AVTsMakeTimeString2(buf *CStr, ts int64, tb *AVRational) *CStr

AVTsMakeTimeString2 wraps av_ts_make_time_string2.

Fill the provided buffer with a string containing a timestamp time
representation.

@param buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
@param ts the timestamp to represent
@param tb the timebase of the timestamp
@return the buffer in input

func AVUtilConfiguration

func AVUtilConfiguration() *CStr

AVUtilConfiguration wraps avutil_configuration.

Return the libavutil build-time configuration.

func AVUtilLicense

func AVUtilLicense() *CStr

AVUtilLicense wraps avutil_license.

Return the libavutil license.

func AVVersionInfo

func AVVersionInfo() *CStr

AVVersionInfo wraps av_version_info.

Return an informative version string. This usually is the actual release
version number or a git commit description. This string has no fixed format
and can change any time. It should never be parsed by code.

func AllocCStr

func AllocCStr(len uint) *CStr

AllocCStr allocates an empty string with the given length. The buffer will be initialised to 0.

func GlobalCStr

func GlobalCStr(val string) *CStr

GlobalCStr resolves the given string to a CStr. Multiple calls with the same input string will return the same CStr. You should not attempt to free the CStr returned. When passing to FFmpeg, you may need to call Dup to create a copy if the FFmpeg code expects to take ownership and will likely free the string.

func SwresampleConfiguration

func SwresampleConfiguration() *CStr

SwresampleConfiguration wraps swresample_configuration.

Return the swr build-time configuration.

@returns     the build-time @c ./configure flags

func SwresampleLicense

func SwresampleLicense() *CStr

SwresampleLicense wraps swresample_license.

Return the swr license.

@returns     the license of libswresample, determined at build-time

func SwscaleConfiguration

func SwscaleConfiguration() *CStr

SwscaleConfiguration wraps swscale_configuration.

Return the libswscale build-time configuration.

func SwscaleLicense

func SwscaleLicense() *CStr

SwscaleLicense wraps swscale_license.

Return the libswscale license.

func ToCStr

func ToCStr(val string) *CStr

ToCStr allocates a new CStr with the given content. The CStr will not be automatically garbage collected.

func (*CStr) Dup

func (s *CStr) Dup() *CStr

Dup is a wrapper for AVStrdup.

func (*CStr) Free

func (s *CStr) Free()

Free frees the backing memory for this string. You should only call this function if you are the owner of the memory.

func (*CStr) RawPtr

func (s *CStr) RawPtr() unsafe.Pointer

RawPtr returns a raw reference to the underlying allocation.

func (*CStr) String

func (s *CStr) String() string

String converts the CStr to a Go string.

type LogCallback

type LogCallback func(ctx *LogCtx, level int, msg string)

func SLogAdapter

func SLogAdapter(logger *slog.Logger) LogCallback

type LogCtx

type LogCtx struct {
	// contains filtered or unexported fields
}

func (*LogCtx) Class

func (c *LogCtx) Class() *AVClass

func (*LogCtx) RawPtr

func (c *LogCtx) RawPtr() unsafe.Pointer

type RcOverride

type RcOverride struct {
	// contains filtered or unexported fields
}

RcOverride wraps RcOverride.

func (*RcOverride) EndFrame

func (s *RcOverride) EndFrame() int

EndFrame gets the end_frame field.

func (*RcOverride) Qscale

func (s *RcOverride) Qscale() int

Qscale gets the qscale field.

If this is 0 then quality_factor will be used instead.

func (*RcOverride) QualityFactor

func (s *RcOverride) QualityFactor() float32

QualityFactor gets the quality_factor field.

func (*RcOverride) RawPtr

func (s *RcOverride) RawPtr() unsafe.Pointer

func (*RcOverride) SetEndFrame

func (s *RcOverride) SetEndFrame(value int)

SetEndFrame sets the end_frame field.

func (*RcOverride) SetQscale

func (s *RcOverride) SetQscale(value int)

SetQscale sets the qscale field.

If this is 0 then quality_factor will be used instead.

func (*RcOverride) SetQualityFactor

func (s *RcOverride) SetQualityFactor(value float32)

SetQualityFactor sets the quality_factor field.

func (*RcOverride) SetStartFrame

func (s *RcOverride) SetStartFrame(value int)

SetStartFrame sets the start_frame field.

func (*RcOverride) StartFrame

func (s *RcOverride) StartFrame() int

StartFrame gets the start_frame field.

type SwrContext

type SwrContext struct {
	// contains filtered or unexported fields
}

SwrContext wraps SwrContext.

func SwrAlloc

func SwrAlloc() *SwrContext

SwrAlloc wraps swr_alloc.

Allocate SwrContext.

If you use this function you will need to set the parameters (manually or
with swr_alloc_set_opts2()) before calling swr_init().

@see swr_alloc_set_opts2(), swr_init(), swr_free()
@return NULL on error, allocated context otherwise

func (*SwrContext) RawPtr

func (s *SwrContext) RawPtr() unsafe.Pointer

type SwrDitherType

type SwrDitherType C.enum_SwrDitherType

SwrDitherType wraps SwrDitherType.

Dithering algorithms
const (
	// SwrDitherNone wraps SWR_DITHER_NONE.
	SwrDitherNone SwrDitherType = C.SWR_DITHER_NONE
	// SwrDitherRectangular wraps SWR_DITHER_RECTANGULAR.
	SwrDitherRectangular SwrDitherType = C.SWR_DITHER_RECTANGULAR
	// SwrDitherTriangular wraps SWR_DITHER_TRIANGULAR.
	SwrDitherTriangular SwrDitherType = C.SWR_DITHER_TRIANGULAR
	// SwrDitherTriangularHighpass wraps SWR_DITHER_TRIANGULAR_HIGHPASS.
	SwrDitherTriangularHighpass SwrDitherType = C.SWR_DITHER_TRIANGULAR_HIGHPASS
	// SwrDitherNs wraps SWR_DITHER_NS.
	//
	//	not part of API/ABI
	SwrDitherNs SwrDitherType = C.SWR_DITHER_NS
	// SwrDitherNsLipshitz wraps SWR_DITHER_NS_LIPSHITZ.
	SwrDitherNsLipshitz SwrDitherType = C.SWR_DITHER_NS_LIPSHITZ
	// SwrDitherNsFWeighted wraps SWR_DITHER_NS_F_WEIGHTED.
	SwrDitherNsFWeighted SwrDitherType = C.SWR_DITHER_NS_F_WEIGHTED
	// SwrDitherNsModifiedEWeighted wraps SWR_DITHER_NS_MODIFIED_E_WEIGHTED.
	SwrDitherNsModifiedEWeighted SwrDitherType = C.SWR_DITHER_NS_MODIFIED_E_WEIGHTED
	// SwrDitherNsImprovedEWeighted wraps SWR_DITHER_NS_IMPROVED_E_WEIGHTED.
	SwrDitherNsImprovedEWeighted SwrDitherType = C.SWR_DITHER_NS_IMPROVED_E_WEIGHTED
	// SwrDitherNsShibata wraps SWR_DITHER_NS_SHIBATA.
	SwrDitherNsShibata SwrDitherType = C.SWR_DITHER_NS_SHIBATA
	// SwrDitherNsLowShibata wraps SWR_DITHER_NS_LOW_SHIBATA.
	SwrDitherNsLowShibata SwrDitherType = C.SWR_DITHER_NS_LOW_SHIBATA
	// SwrDitherNsHighShibata wraps SWR_DITHER_NS_HIGH_SHIBATA.
	SwrDitherNsHighShibata SwrDitherType = C.SWR_DITHER_NS_HIGH_SHIBATA
	// SwrDitherNb wraps SWR_DITHER_NB.
	//
	//	not part of API/ABI
	SwrDitherNb SwrDitherType = C.SWR_DITHER_NB
)

type SwrEngine

type SwrEngine C.enum_SwrEngine

SwrEngine wraps SwrEngine.

Resampling Engines
const (
	// SwrEngineSwr wraps SWR_ENGINE_SWR.
	//
	//	SW Resampler
	SwrEngineSwr SwrEngine = C.SWR_ENGINE_SWR
	// SwrEngineSoxr wraps SWR_ENGINE_SOXR.
	//
	//	SoX Resampler
	SwrEngineSoxr SwrEngine = C.SWR_ENGINE_SOXR
	// SwrEngineNb wraps SWR_ENGINE_NB.
	//
	//	not part of API/ABI
	SwrEngineNb SwrEngine = C.SWR_ENGINE_NB
)

type SwrFilterType

type SwrFilterType C.enum_SwrFilterType

SwrFilterType wraps SwrFilterType.

Resampling Filter Types
const (
	// SwrFilterTypeCubic wraps SWR_FILTER_TYPE_CUBIC.
	//
	//	Cubic
	SwrFilterTypeCubic SwrFilterType = C.SWR_FILTER_TYPE_CUBIC
	// SwrFilterTypeBlackmanNuttall wraps SWR_FILTER_TYPE_BLACKMAN_NUTTALL.
	//
	//	Blackman Nuttall windowed sinc
	SwrFilterTypeBlackmanNuttall SwrFilterType = C.SWR_FILTER_TYPE_BLACKMAN_NUTTALL
	// SwrFilterTypeKaiser wraps SWR_FILTER_TYPE_KAISER.
	//
	//	Kaiser windowed sinc
	SwrFilterTypeKaiser SwrFilterType = C.SWR_FILTER_TYPE_KAISER
)

type SwsAlphaBlend

type SwsAlphaBlend C.SwsAlphaBlend

SwsAlphaBlend wraps SwsAlphaBlend.

const (
	// SwsAlphaBlendNone wraps SWS_ALPHA_BLEND_NONE.
	SwsAlphaBlendNone SwsAlphaBlend = C.SWS_ALPHA_BLEND_NONE
	// SwsAlphaBlendUniform wraps SWS_ALPHA_BLEND_UNIFORM.
	SwsAlphaBlendUniform SwsAlphaBlend = C.SWS_ALPHA_BLEND_UNIFORM
	// SwsAlphaBlendCheckerboard wraps SWS_ALPHA_BLEND_CHECKERBOARD.
	SwsAlphaBlendCheckerboard SwsAlphaBlend = C.SWS_ALPHA_BLEND_CHECKERBOARD
	// SwsAlphaBlendNb wraps SWS_ALPHA_BLEND_NB.
	//
	//	not part of the ABI
	SwsAlphaBlendNb SwsAlphaBlend = C.SWS_ALPHA_BLEND_NB
)

type SwsContext

type SwsContext struct {
	// contains filtered or unexported fields
}

SwsContext wraps SwsContext.

Main external API structure. New fields can be added to the end with
minor version bumps. Removal, reordering and changes to existing fields
require a major version bump. sizeof(SwsContext) is not part of the ABI.

func SwsAllocContext

func SwsAllocContext() *SwsContext

SwsAllocContext wraps sws_alloc_context.

Allocate an empty SwsContext and set its fields to default values.

func (*SwsContext) AlphaBlend

func (s *SwsContext) AlphaBlend() SwsAlphaBlend

AlphaBlend gets the alpha_blend field.

Alpha blending mode. See `SwsAlphaBlend` for details.

func (*SwsContext) AvClass

func (s *SwsContext) AvClass() *AVClass

AvClass gets the av_class field.

func (*SwsContext) Dither

func (s *SwsContext) Dither() SwsDither

Dither gets the dither field.

Dither mode.

func (*SwsContext) DstFormat

func (s *SwsContext) DstFormat() int

DstFormat gets the dst_format field.

Destination pixel format

func (*SwsContext) DstH

func (s *SwsContext) DstH() int

DstH gets the dst_h field.

Width and height of the destination frame

func (*SwsContext) DstHChrPos

func (s *SwsContext) DstHChrPos() int

DstHChrPos gets the dst_h_chr_pos field.

Destination horizontal chroma position

func (*SwsContext) DstRange

func (s *SwsContext) DstRange() int

DstRange gets the dst_range field.

Destination is full range

func (*SwsContext) DstVChrPos

func (s *SwsContext) DstVChrPos() int

DstVChrPos gets the dst_v_chr_pos field.

Destination vertical chroma position

func (*SwsContext) DstW

func (s *SwsContext) DstW() int

DstW gets the dst_w field.

Width and height of the destination frame

func (*SwsContext) Flags

func (s *SwsContext) Flags() uint

Flags gets the flags field.

Bitmask of SWS_*. See `SwsFlags` for details.

func (*SwsContext) GammaFlag

func (s *SwsContext) GammaFlag() int

GammaFlag gets the gamma_flag field.

Use gamma correct scaling.

func (*SwsContext) Intent

func (s *SwsContext) Intent() int

Intent gets the intent field.

Desired ICC intent for color space conversions.

func (*SwsContext) Opaque

func (s *SwsContext) Opaque() unsafe.Pointer

Opaque gets the opaque field.

Private data of the user, can be used to carry app specific stuff.

func (*SwsContext) RawPtr

func (s *SwsContext) RawPtr() unsafe.Pointer

func (*SwsContext) ScalerParams

func (s *SwsContext) ScalerParams() *Array[float64]

ScalerParams gets the scaler_params field.

Extra parameters for fine-tuning certain scalers.

func (*SwsContext) SetAlphaBlend

func (s *SwsContext) SetAlphaBlend(value SwsAlphaBlend)

SetAlphaBlend sets the alpha_blend field.

Alpha blending mode. See `SwsAlphaBlend` for details.

func (*SwsContext) SetAvClass

func (s *SwsContext) SetAvClass(value *AVClass)

SetAvClass sets the av_class field.

func (*SwsContext) SetDither

func (s *SwsContext) SetDither(value SwsDither)

SetDither sets the dither field.

Dither mode.

func (*SwsContext) SetDstFormat

func (s *SwsContext) SetDstFormat(value int)

SetDstFormat sets the dst_format field.

Destination pixel format

func (*SwsContext) SetDstH

func (s *SwsContext) SetDstH(value int)

SetDstH sets the dst_h field.

Width and height of the destination frame

func (*SwsContext) SetDstHChrPos

func (s *SwsContext) SetDstHChrPos(value int)

SetDstHChrPos sets the dst_h_chr_pos field.

Destination horizontal chroma position

func (*SwsContext) SetDstRange

func (s *SwsContext) SetDstRange(value int)

SetDstRange sets the dst_range field.

Destination is full range

func (*SwsContext) SetDstVChrPos

func (s *SwsContext) SetDstVChrPos(value int)

SetDstVChrPos sets the dst_v_chr_pos field.

Destination vertical chroma position

func (*SwsContext) SetDstW

func (s *SwsContext) SetDstW(value int)

SetDstW sets the dst_w field.

Width and height of the destination frame

func (*SwsContext) SetFlags

func (s *SwsContext) SetFlags(value uint)

SetFlags sets the flags field.

Bitmask of SWS_*. See `SwsFlags` for details.

func (*SwsContext) SetGammaFlag

func (s *SwsContext) SetGammaFlag(value int)

SetGammaFlag sets the gamma_flag field.

Use gamma correct scaling.

func (*SwsContext) SetIntent

func (s *SwsContext) SetIntent(value int)

SetIntent sets the intent field.

Desired ICC intent for color space conversions.

func (*SwsContext) SetOpaque

func (s *SwsContext) SetOpaque(value unsafe.Pointer)

SetOpaque sets the opaque field.

Private data of the user, can be used to carry app specific stuff.

func (*SwsContext) SetSrcFormat

func (s *SwsContext) SetSrcFormat(value int)

SetSrcFormat sets the src_format field.

Source pixel format

func (*SwsContext) SetSrcH

func (s *SwsContext) SetSrcH(value int)

SetSrcH sets the src_h field.

Width and height of the source frame

func (*SwsContext) SetSrcHChrPos

func (s *SwsContext) SetSrcHChrPos(value int)

SetSrcHChrPos sets the src_h_chr_pos field.

Source horizontal chroma position

func (*SwsContext) SetSrcRange

func (s *SwsContext) SetSrcRange(value int)

SetSrcRange sets the src_range field.

Source is full range

func (*SwsContext) SetSrcVChrPos

func (s *SwsContext) SetSrcVChrPos(value int)

SetSrcVChrPos sets the src_v_chr_pos field.

Source vertical chroma position in luma grid / 256

func (*SwsContext) SetSrcW

func (s *SwsContext) SetSrcW(value int)

SetSrcW sets the src_w field.

Width and height of the source frame

func (*SwsContext) SetThreads

func (s *SwsContext) SetThreads(value int)

SetThreads sets the threads field.

How many threads to use for processing, or 0 for automatic selection.

func (*SwsContext) SrcFormat

func (s *SwsContext) SrcFormat() int

SrcFormat gets the src_format field.

Source pixel format

func (*SwsContext) SrcH

func (s *SwsContext) SrcH() int

SrcH gets the src_h field.

Width and height of the source frame

func (*SwsContext) SrcHChrPos

func (s *SwsContext) SrcHChrPos() int

SrcHChrPos gets the src_h_chr_pos field.

Source horizontal chroma position

func (*SwsContext) SrcRange

func (s *SwsContext) SrcRange() int

SrcRange gets the src_range field.

Source is full range

func (*SwsContext) SrcVChrPos

func (s *SwsContext) SrcVChrPos() int

SrcVChrPos gets the src_v_chr_pos field.

Source vertical chroma position in luma grid / 256

func (*SwsContext) SrcW

func (s *SwsContext) SrcW() int

SrcW gets the src_w field.

Width and height of the source frame

func (*SwsContext) Threads

func (s *SwsContext) Threads() int

Threads gets the threads field.

How many threads to use for processing, or 0 for automatic selection.

type SwsDither

type SwsDither C.SwsDither

SwsDither wraps SwsDither.

****************************
Flags and quality settings *
*****************************
const (
	// SwsDitherNone wraps SWS_DITHER_NONE.
	//
	//	disable dithering
	SwsDitherNone SwsDither = C.SWS_DITHER_NONE
	// SwsDitherAuto wraps SWS_DITHER_AUTO.
	//
	//	auto-select from preset
	SwsDitherAuto SwsDither = C.SWS_DITHER_AUTO
	// SwsDitherBayer wraps SWS_DITHER_BAYER.
	//
	//	ordered dither matrix
	SwsDitherBayer SwsDither = C.SWS_DITHER_BAYER
	// SwsDitherEd wraps SWS_DITHER_ED.
	//
	//	error diffusion
	SwsDitherEd SwsDither = C.SWS_DITHER_ED
	// SwsDitherADither wraps SWS_DITHER_A_DITHER.
	//
	//	arithmetic addition
	SwsDitherADither SwsDither = C.SWS_DITHER_A_DITHER
	// SwsDitherXDither wraps SWS_DITHER_X_DITHER.
	//
	//	arithmetic xor
	SwsDitherXDither SwsDither = C.SWS_DITHER_X_DITHER
	// SwsDitherNb wraps SWS_DITHER_NB.
	//
	//	not part of the ABI
	SwsDitherNb SwsDither = C.SWS_DITHER_NB
)

type SwsFilter

type SwsFilter struct {
	// contains filtered or unexported fields
}

SwsFilter wraps SwsFilter.

vectors can be shared

func SwsGetdefaultfilter

func SwsGetdefaultfilter(lumaGblur float32, chromaGblur float32, lumaSharpen float32, chromaSharpen float32, chromaHshift float32, chromaVshift float32, verbose int) *SwsFilter

SwsGetdefaultfilter wraps sws_getDefaultFilter.

func (*SwsFilter) ChrH

func (s *SwsFilter) ChrH() *SwsVector

ChrH gets the chrH field.

func (*SwsFilter) ChrV

func (s *SwsFilter) ChrV() *SwsVector

ChrV gets the chrV field.

func (*SwsFilter) LumH

func (s *SwsFilter) LumH() *SwsVector

LumH gets the lumH field.

func (*SwsFilter) LumV

func (s *SwsFilter) LumV() *SwsVector

LumV gets the lumV field.

func (*SwsFilter) RawPtr

func (s *SwsFilter) RawPtr() unsafe.Pointer

func (*SwsFilter) SetChrH

func (s *SwsFilter) SetChrH(value *SwsVector)

SetChrH sets the chrH field.

func (*SwsFilter) SetChrV

func (s *SwsFilter) SetChrV(value *SwsVector)

SetChrV sets the chrV field.

func (*SwsFilter) SetLumH

func (s *SwsFilter) SetLumH(value *SwsVector)

SetLumH sets the lumH field.

func (*SwsFilter) SetLumV

func (s *SwsFilter) SetLumV(value *SwsVector)

SetLumV sets the lumV field.

type SwsFlags

type SwsFlags C.SwsFlags

SwsFlags wraps SwsFlags.

const (
	// SwsFastBilinear wraps SWS_FAST_BILINEAR.
	//
	//	fast bilinear filtering
	SwsFastBilinear SwsFlags = C.SWS_FAST_BILINEAR
	// SwsBilinear wraps SWS_BILINEAR.
	//
	//	bilinear filtering
	SwsBilinear SwsFlags = C.SWS_BILINEAR
	// SwsBicubic wraps SWS_BICUBIC.
	//
	//	2-tap cubic B-spline
	SwsBicubic SwsFlags = C.SWS_BICUBIC
	// SwsX wraps SWS_X.
	//
	//	experimental
	SwsX SwsFlags = C.SWS_X
	// SwsPoint wraps SWS_POINT.
	//
	//	nearest neighbor
	SwsPoint SwsFlags = C.SWS_POINT
	// SwsArea wraps SWS_AREA.
	//
	//	area averaging
	SwsArea SwsFlags = C.SWS_AREA
	// SwsBicublin wraps SWS_BICUBLIN.
	//
	//	bicubic luma, bilinear chroma
	SwsBicublin SwsFlags = C.SWS_BICUBLIN
	// SwsGauss wraps SWS_GAUSS.
	//
	//	gaussian approximation
	SwsGauss SwsFlags = C.SWS_GAUSS
	// SwsSinc wraps SWS_SINC.
	//
	//	unwindowed sinc
	SwsSinc SwsFlags = C.SWS_SINC
	// SwsLanczos wraps SWS_LANCZOS.
	//
	//	3-tap sinc/sinc
	SwsLanczos SwsFlags = C.SWS_LANCZOS
	// SwsSpline wraps SWS_SPLINE.
	//
	//	cubic Keys spline
	SwsSpline SwsFlags = C.SWS_SPLINE
	// SwsStrict wraps SWS_STRICT.
	/*
	   Return an error on underspecified conversions. Without this flag,
	   unspecified fields are defaulted to sensible values.
	*/
	SwsStrict SwsFlags = C.SWS_STRICT
	// SwsPrintInfo wraps SWS_PRINT_INFO.
	//
	//	Emit verbose log of scaling parameters.
	SwsPrintInfo SwsFlags = C.SWS_PRINT_INFO
	// SwsFullChrHInt wraps SWS_FULL_CHR_H_INT.
	/*
	   Perform full chroma upsampling when upscaling to RGB.

	   For example, when converting 50x50 yuv420p to 100x100 rgba, setting this flag
	   will scale the chroma plane from 25x25 to 100x100 (4:4:4), and then convert
	   the 100x100 yuv444p image to rgba in the final output step.

	   Without this flag, the chroma plane is instead scaled to 50x100 (4:2:2),
	   with a single chroma sample being reused for both of the horizontally
	   adjacent RGBA output pixels.
	*/
	SwsFullChrHInt SwsFlags = C.SWS_FULL_CHR_H_INT
	// SwsFullChrHInp wraps SWS_FULL_CHR_H_INP.
	/*
	   Perform full chroma interpolation when downscaling RGB sources.

	   For example, when converting a 100x100 rgba source to 50x50 yuv444p, setting
	   this flag will generate a 100x100 (4:4:4) chroma plane, which is then
	   downscaled to the required 50x50.

	   Without this flag, the chroma plane is instead generated at 50x100 (dropping
	   every other pixel), before then being downscaled to the required 50x50
	   resolution.
	*/
	SwsFullChrHInp SwsFlags = C.SWS_FULL_CHR_H_INP
	// SwsAccurateRnd wraps SWS_ACCURATE_RND.
	/*
	   Force bit-exact output. This will prevent the use of platform-specific
	   optimizations that may lead to slight difference in rounding, in favor
	   of always maintaining exact bit output compatibility with the reference
	   C code.

	   Note: It is recommended to set both of these flags simultaneously.
	*/
	SwsAccurateRnd SwsFlags = C.SWS_ACCURATE_RND
	// SwsBitexact wraps SWS_BITEXACT.
	/*
	   Force bit-exact output. This will prevent the use of platform-specific
	   optimizations that may lead to slight difference in rounding, in favor
	   of always maintaining exact bit output compatibility with the reference
	   C code.

	   Note: It is recommended to set both of these flags simultaneously.
	*/
	SwsBitexact SwsFlags = C.SWS_BITEXACT
	// SwsDirectBgr wraps SWS_DIRECT_BGR.
	//
	//	This flag has no effect
	SwsDirectBgr SwsFlags = C.SWS_DIRECT_BGR
	// SwsErrorDiffusion wraps SWS_ERROR_DIFFUSION.
	//
	//	Set `SwsContext.dither` instead
	SwsErrorDiffusion SwsFlags = C.SWS_ERROR_DIFFUSION
)

type SwsIntent

type SwsIntent C.SwsIntent

SwsIntent wraps SwsIntent.

const (
	// SwsIntentPerceptual wraps SWS_INTENT_PERCEPTUAL.
	//
	//	Perceptual tone mapping
	SwsIntentPerceptual SwsIntent = C.SWS_INTENT_PERCEPTUAL
	// SwsIntentRelativeColorimetric wraps SWS_INTENT_RELATIVE_COLORIMETRIC.
	//
	//	Relative colorimetric clipping
	SwsIntentRelativeColorimetric SwsIntent = C.SWS_INTENT_RELATIVE_COLORIMETRIC
	// SwsIntentSaturation wraps SWS_INTENT_SATURATION.
	//
	//	Saturation mapping
	SwsIntentSaturation SwsIntent = C.SWS_INTENT_SATURATION
	// SwsIntentAbsoluteColorimetric wraps SWS_INTENT_ABSOLUTE_COLORIMETRIC.
	//
	//	Absolute colorimetric clipping
	SwsIntentAbsoluteColorimetric SwsIntent = C.SWS_INTENT_ABSOLUTE_COLORIMETRIC
	// SwsIntentNb wraps SWS_INTENT_NB.
	//
	//	not part of the ABI
	SwsIntentNb SwsIntent = C.SWS_INTENT_NB
)

type SwsVector

type SwsVector struct {
	// contains filtered or unexported fields
}

SwsVector wraps SwsVector.

when used for filters they must have an odd number of elements
coeffs cannot be shared between vectors

func SwsAllocvec

func SwsAllocvec(length int) *SwsVector

SwsAllocvec wraps sws_allocVec.

Allocate and return an uninitialized vector with length coefficients.

func SwsGetgaussianvec

func SwsGetgaussianvec(variance float64, quality float64) *SwsVector

SwsGetgaussianvec wraps sws_getGaussianVec.

Return a normalized Gaussian curve used to filter stuff
quality = 3 is high quality, lower is lower quality.

func (*SwsVector) Length

func (s *SwsVector) Length() int

Length gets the length field.

number of coefficients in the vector

func (*SwsVector) RawPtr

func (s *SwsVector) RawPtr() unsafe.Pointer

func (*SwsVector) SetLength

func (s *SwsVector) SetLength(value int)

SetLength sets the length field.

number of coefficients in the vector

Directories

Path Synopsis
cmd
download-lib command
download-lib is a utility to download the FFmpeg static libraries Run this program to trigger the automatic download and SHA256 verification
download-lib is a utility to download the FFmpeg static libraries Run this program to trigger the automatic download and SHA256 verification
examples
asciiplayer command
Based on doc/examples/decode_video.c
Based on doc/examples/decode_video.c
introspect command
metadata command
transcode command
Port of doc/examples/transcode.c
Port of doc/examples/transcode.c
internal
builder command
generator command

Jump to

Keyboard shortcuts

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