Skip to main content

shiguredo_v4l2/
lib.rs

1//! V4L2 bindings。
2//!
3//! Raspberry Pi 向け V4L2 M2M (Memory-to-Memory) デバイスへのバインディング。
4
5mod buffer;
6mod device;
7mod poller;
8mod queue;
9
10mod decoder;
11mod encoder;
12mod error;
13mod format;
14pub(crate) mod sys;
15
16/// V4L2 M2M (Memory-to-Memory) を使った H.264 エンコード/デコード。
17///
18/// Raspberry Pi の `/dev/video11` (エンコーダー) と `/dev/video10` (デコーダー) を
19/// 操作するための汎用的な V4L2 M2M ラッパー。WebRTC には依存しない。
20pub mod v4l2_m2m {
21    pub use crate::decoder::{DecodeOutput, DecodedFrame, DecoderConfig, H264Decoder};
22    pub use crate::encoder::{
23        EncodedFrame, EncoderConfig, H264Encoder, H264Level, H264Profile, InputFrame, InputMemory,
24    };
25    pub use crate::error::{Error, Result};
26    pub use crate::format::{PixelFormat, Resolution};
27}