mediadecode-ffmpeg 0.2.0

FFmpeg adapter for the `mediadecode` abstraction layer — implements its `VideoAdapter` / `AudioAdapter` / `SubtitleAdapter` traits and the matching push-style decoder traits, with hardware-acceleration auto-probe across VideoToolbox / VAAPI / NVDEC / D3D11VA and software fallback via ffmpeg-next.
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.95.0"
name = "mediadecode-ffmpeg"
version = "0.2.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "FFmpeg adapter for the `mediadecode` abstraction layer — implements its `VideoAdapter` / `AudioAdapter` / `SubtitleAdapter` traits and the matching push-style decoder traits, with hardware-acceleration auto-probe across VideoToolbox / VAAPI / NVDEC / D3D11VA and software fallback via ffmpeg-next."
homepage = "https://github.com/findit-ai/mediadecode"
documentation = "https://docs.rs/mediadecode-ffmpeg"
readme = "README.md"
keywords = [
    "ffmpeg",
    "decoder",
    "video",
    "audio",
    "mediadecode",
]
categories = [
    "multimedia",
    "multimedia::video",
    "multimedia::audio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/findit-ai/mediadecode"

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

[features]
alloc = []
default = ["std"]
std = ["mediadecode/default"]

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

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

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

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

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

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

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

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

[[bench]]
name = "decode"
path = "benches/decode.rs"
harness = false

[dependencies.ffmpeg-next]
version = "8.1"
features = [
    "codec",
    "format",
]
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.mediadecode]
version = "0.2"
features = ["alloc"]
default-features = false

[dependencies.smol_str]
version = "0.3"
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tracing]
version = "0.1"
default-features = false

[dev-dependencies.criterion]
version = "0.8"

[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(all_tests)",
    "cfg(tarpaulin)",
    "cfg(web_sys_unstable_apis)",
]