1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Format conversion utilities for pixel and audio formats.
//!
//! This module provides efficient and accurate format conversion functions for:
//!
//! - **Pixel format conversion**: YUV<->RGB, planar format conversions, grayscale
//! - **Audio sample format conversion**: Planar<->interleaved, sample type conversions
//!
//! # Color Space Matrices
//!
//! The module supports standard color space matrices:
//!
//! - **BT.601**: Standard definition (SD) television
//! - **BT.709**: High definition (HD) television
//!
//! # Examples
//!
//! ```
//! use oximedia_core::convert::pixel::{yuv420p_to_rgb24, ColorMatrix};
//!
//! let width = 640;
//! let height = 480;
//!
//! // YUV420p planes
//! let y_plane = vec![128u8; width * height];
//! let u_plane = vec![128u8; (width / 2) * (height / 2)];
//! let v_plane = vec![128u8; (width / 2) * (height / 2)];
//!
//! // Convert to RGB24
//! let rgb = yuv420p_to_rgb24(
//! &y_plane,
//! &u_plane,
//! &v_plane,
//! width,
//! height,
//! ColorMatrix::Bt709,
//! );
//! ```
pub use ;
pub use ;