threers-codec 0.1.0

Pure-Rust media codecs: H.264/HEVC/VP9 encoders, H.264/HEVC/VP9/AV1 decoders, AAC/MP3/Opus/Vorbis/FLAC/WAV decoders, AAC-LC and MP3 encoders, MP4/WebM/Matroska/Ogg, GIF/APNG, captions, and VideoToolbox acceleration on macOS
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.99"
name = "threers-codec"
version = "0.1.0"
authors = ["Eugene Hauptmann"]
build = false
exclude = ["tests/support/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust media codecs: H.264/HEVC/VP9 encoders, H.264/HEVC/VP9/AV1 decoders, AAC/MP3/Opus/Vorbis/FLAC/WAV decoders, AAC-LC and MP3 encoders, MP4/WebM/Matroska/Ogg, GIF/APNG, captions, and VideoToolbox acceleration on macOS"
documentation = "https://docs.rs/threers-codec"
readme = "README.md"
keywords = [
    "codec",
    "video",
    "audio",
    "h264",
    "hevc",
]
categories = [
    "multimedia::video",
    "multimedia::audio",
    "multimedia::encoding",
    "wasm",
]
license = "MIT"
repository = "https://github.com/eugenehp/threers"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
decode = []
default = [
    "decode",
    "gif",
]
gif = []
nvidia = ["decode"]
parallel = ["dep:rayon"]
v4l2 = ["dep:libc"]
vaapi = ["decode"]
videotoolbox = []

[lib]
name = "threers_codec"
path = "src/lib.rs"

[[example]]
name = "aac_decode"
path = "examples/aac_decode.rs"

[[example]]
name = "annexb_yuv_dump"
path = "examples/annexb_yuv_dump.rs"
required-features = ["decode"]

[[example]]
name = "audio_file_decode"
path = "examples/audio_file_decode.rs"

[[example]]
name = "av1_yuv_dump"
path = "examples/av1_yuv_dump.rs"
required-features = ["decode"]

[[example]]
name = "codec_bench"
path = "examples/codec_bench.rs"

[[example]]
name = "media_banner"
path = "examples/media_banner.rs"
required-features = ["decode"]

[[example]]
name = "opus_bench"
path = "examples/opus_bench.rs"

[[example]]
name = "opus_dump"
path = "examples/opus_dump.rs"

[[example]]
name = "video_rgb_pipe"
path = "examples/video_rgb_pipe.rs"
required-features = ["decode"]

[[example]]
name = "video_yuv_dump"
path = "examples/video_yuv_dump.rs"
required-features = ["decode"]

[[example]]
name = "vp9_yuv_dump"
path = "examples/vp9_yuv_dump.rs"
required-features = ["decode"]

[[test]]
name = "aac_encode"
path = "tests/aac_encode.rs"

[[test]]
name = "animation_streaming"
path = "tests/animation_streaming.rs"

[[test]]
name = "apng"
path = "tests/apng.rs"

[[test]]
name = "av1_conformance"
path = "tests/av1_conformance.rs"
required-features = ["decode"]

[[test]]
name = "av1_encode"
path = "tests/av1_encode.rs"

[[test]]
name = "captions_mux"
path = "tests/captions_mux.rs"

[[test]]
name = "damaged_streams"
path = "tests/damaged_streams.rs"
required-features = ["decode"]

[[test]]
name = "decode_seek"
path = "tests/decode_seek.rs"
required-features = ["decode"]

[[test]]
name = "frame_parallel"
path = "tests/frame_parallel.rs"

[[test]]
name = "gif"
path = "tests/gif.rs"
required-features = ["gif"]

[[test]]
name = "h264_animation_parity"
path = "tests/h264_animation_parity.rs"

[[test]]
name = "h264_compress"
path = "tests/h264_compress.rs"

[[test]]
name = "h264_ffmpeg"
path = "tests/h264_ffmpeg.rs"

[[test]]
name = "h264_inter"
path = "tests/h264_inter.rs"
required-features = ["decode"]

[[test]]
name = "hevc_alpha"
path = "tests/hevc_alpha.rs"

[[test]]
name = "hevc_compress"
path = "tests/hevc_compress.rs"

[[test]]
name = "hevc_ffmpeg"
path = "tests/hevc_ffmpeg.rs"

[[test]]
name = "hevc_native_mp4"
path = "tests/hevc_native_mp4.rs"

[[test]]
name = "hevc_residual_conformance"
path = "tests/hevc_residual_conformance.rs"

[[test]]
name = "hw"
path = "tests/hw.rs"
required-features = ["decode"]

[[test]]
name = "mp3_encode"
path = "tests/mp3_encode.rs"

[[test]]
name = "mp4_demux"
path = "tests/mp4_demux.rs"

[[test]]
name = "native_decode"
path = "tests/native_decode.rs"
required-features = ["decode"]

[[test]]
name = "nvidia"
path = "tests/nvidia.rs"
required-features = ["nvidia"]

[[test]]
name = "opus_parity"
path = "tests/opus_parity.rs"

[[test]]
name = "rate_control"
path = "tests/rate_control.rs"

[[test]]
name = "vaapi"
path = "tests/vaapi.rs"
required-features = ["vaapi"]

[[test]]
name = "webm"
path = "tests/webm.rs"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.threers-captions]
version = "0.1.0"