Skip to main content

video_interop/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod dmabuf;
4#[cfg(feature = "egl")]
5pub mod egl;
6mod error;
7mod fd;
8mod format;
9mod frame;
10mod geometry;
11mod modifier;
12mod sync_file;
13#[cfg(feature = "vulkan")]
14pub mod vulkan;
15
16#[cfg(feature = "rustler")]
17mod beam;
18
19pub use dmabuf::{
20    AV_DRM_MAX_ENTRIES, Descriptor, Layer, Object, OwnedDescriptor, OwnedObject, Plane,
21    dmabuf_allocation_size,
22};
23pub use error::{DmaBufAllocationSizeError, DuplicateError, ValidationError};
24pub use format::{
25    AcquireSyncPolicy, AlphaMode, BinaryFormat, BinaryPixelFormat, Bw1Polarity, ChromaLocation,
26    ColorRange, Colorimetry, DmaBufFormat, Format, FormatValidationError, InterlaceMode, Matrix,
27    ModifierPolicy, Primaries, Rational, StorageFormat, StreamAcquireSyncPolicy,
28    StreamModifierPolicy, Transfer,
29};
30pub use frame::{BinaryPlane, BinaryStorage, FrameDescriptor, OwnedFrame, OwnedStorage, Storage};
31pub use geometry::Rect;
32pub use modifier::Modifier;
33pub use sync_file::{AcquireSync, OwnedAcquireSync, SyncFile};
34
35pub(crate) use fd::duplicate_fd_cloexec;
36
37#[cfg(feature = "rustler")]
38pub use beam::{
39    AbandonmentGuard, ClaimedLease, ClaimedVideoFrame, DispatcherHealth, DispatcherProbe, Frame,
40    Lease, PreparedLease, PreparedVideoFrame, ReleaseDispatcher, is_abandonment_guard_resource,
41    new_abandonment_guard,
42};
43#[cfg(feature = "rustler")]
44pub use error::{DispatcherError, PrepareError, ReleaseWorkerError};