#![allow(non_upper_case_globals)]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![cfg_attr(
any(target_arch = "riscv32", target_arch = "riscv64"),
feature(stdarch_riscv_feature_detection)
)]
#![cfg_attr(
not(any(feature = "asm", feature = "c-ffi", feature = "unchecked")),
forbid(unsafe_code)
)]
#![cfg_attr(any(feature = "asm", feature = "c-ffi"), deny(unsafe_op_in_unsafe_fn))]
#![allow(clippy::precedence)] #![allow(clippy::too_many_arguments)] #![allow(clippy::unnecessary_cast)] #![allow(clippy::identity_op)] #![allow(clippy::needless_range_loop)] #![allow(clippy::explicit_auto_deref)] #![allow(clippy::erasing_op)] #![allow(clippy::needless_return)] #![allow(clippy::nonminimal_bool)] #![allow(clippy::needless_borrow)] #![allow(clippy::doc_overindented_list_items)] #![allow(clippy::zero_prefixed_literal)] #![allow(clippy::collapsible_if)] #![allow(clippy::needless_late_init)] #![allow(clippy::upper_case_acronyms)] #![allow(clippy::type_complexity)] #![allow(clippy::misrefactored_assign_op)] #![allow(clippy::neg_multiply)] #![allow(clippy::eq_op)] #![allow(clippy::overly_complex_bool_expr)] #![allow(clippy::let_underscore_lock)] #![allow(clippy::module_inception)] #![allow(clippy::large_enum_variant)] #![allow(clippy::duplicated_attributes)] #![allow(clippy::manual_is_multiple_of)] #![allow(clippy::let_and_return)] #![allow(clippy::unnecessary_map_on_constructor)] #![allow(clippy::clone_on_copy)] #![allow(clippy::option_map_unit_fn)] #![allow(clippy::unnecessary_lazy_evaluations)] #![cfg_attr(
any(feature = "asm", feature = "c-ffi"),
deny(clippy::undocumented_unsafe_blocks)
)]
#![cfg_attr(
any(feature = "asm", feature = "c-ffi"),
deny(clippy::missing_safety_doc)
)]
#[cfg(not(any(feature = "bitdepth_8", feature = "bitdepth_16")))]
compile_error!(
"No bitdepths enabled. Enable one or more of the following features: `bitdepth_8`, `bitdepth_16`"
);
pub mod include {
pub mod common {
pub(crate) mod attributes;
pub(crate) mod bitdepth;
pub(crate) mod dump;
pub(crate) mod intops;
pub(crate) mod validate;
} #[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
pub mod dav1d {
pub mod common;
pub mod data;
pub mod dav1d;
pub mod headers;
pub mod picture;
} } pub mod src {
pub(crate) mod align;
#[cfg(feature = "c-ffi")]
pub(crate) mod assume;
#[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
pub(crate) mod c_arc;
#[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
pub(crate) mod c_box;
pub(crate) mod cpu;
pub(crate) mod disjoint_mut;
mod ffi_safe;
mod in_range;
pub(super) mod internal;
mod intra_edge;
#[cfg_attr(not(feature = "c-ffi"), deny(unsafe_code))]
#[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
pub(crate) mod log;
pub(crate) mod pixels;
#[cfg(any(feature = "asm", feature = "c-ffi"))]
#[allow(unsafe_code)]
pub mod send_sync_non_null;
mod tables;
mod data;
#[cfg_attr(not(feature = "c-ffi"), deny(unsafe_code))]
#[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
mod picture;
mod cdef;
mod filmgrain;
mod ipred;
mod itx;
mod lf_mask;
mod loopfilter;
mod looprestoration;
mod mc;
mod pal;
mod recon;
#[cfg_attr(feature = "asm", allow(unsafe_code))]
mod refmvs;
#[cfg_attr(feature = "asm", allow(unsafe_code))]
mod msac;
#[cfg(not(feature = "asm"))]
pub(crate) mod safe_simd;
#[cfg_attr(not(feature = "c-ffi"), deny(unsafe_code))]
#[cfg_attr(feature = "c-ffi", allow(unsafe_code))]
pub(crate) mod lib;
#[cfg(feature = "c-ffi")]
#[allow(unsafe_code)]
pub mod dav1d_api;
mod cdef_apply;
mod cdf;
mod const_fn;
mod ctx;
mod cursor;
mod decode;
mod dequant_tables;
pub(crate) mod enum_map;
mod env;
pub(crate) mod error;
mod extensions;
mod fg_apply;
mod getbits;
mod ipred_prepare;
mod iter;
mod itx_1d;
pub(crate) mod levels;
mod lf_apply;
mod lr_apply;
pub(crate) mod mem;
mod obu;
pub(crate) mod pic_or_buf;
mod qm;
pub(crate) mod relaxed_atomic;
mod scan;
pub(crate) mod strided;
mod thread_task;
mod warpmv;
mod wedge;
pub(crate) mod with_offset;
pub(crate) mod wrap_fn_ptr;
#[cfg(test)]
mod decode_test;
pub mod managed;
}
pub use src::managed::{
ColorInfo, ColorPrimaries, ColorRange, ContentLightLevel, CpuLevel, DecodeFrameType, Decoder,
Error, Frame, InloopFilters, MasteringDisplay, MatrixCoefficients, PixelLayout, PlaneView8,
PlaneView16, Planes, Planes8, Planes16, Result, Settings, TransferCharacteristics,
enabled_features,
};