videoframe 0.2.0

A common vocabulary of pixel-format and color-metadata types for video processing pipelines.
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 = "videoframe"
version = "0.2.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A common vocabulary of pixel-format and color-metadata types for video processing pipelines."
homepage = "https://github.com/Findit-AI/videoframe"
documentation = "https://docs.rs/videoframe"
readme = "README.md"
keywords = [
    "video",
    "pixel-format",
    "color",
    "frame",
]
categories = [
    "multimedia",
    "multimedia::video",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Findit-AI/videoframe"

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

[features]
alloc = []
bayer = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
default = ["std"]
frame = [
    "yuv-planar",
    "yuv-semi-planar",
    "yuva",
    "yuv-packed",
    "yuv-444-packed",
    "y2xx",
    "v210",
    "rgb",
    "rgb-float",
    "rgb-legacy",
    "gbr",
    "gray",
    "bayer",
    "xyz",
    "mono",
]
gbr = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
gray = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
mono = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
rgb = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
rgb-float = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
rgb-legacy = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
std = ["thiserror/default"]
v210 = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
xyz = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
y2xx = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-444-packed = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-packed = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-planar = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-semi-planar = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuva = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]

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

[dependencies.derive_more]
version = "2"
features = [
    "display",
    "is_variant",
]
default-features = false

[dependencies.half]
version = "2"
optional = true
default-features = false

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

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

[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)",
]

[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
overflow-checks = false
incremental = false