Skip to content

Commit

Permalink
Rename u16 to p16
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Sep 3, 2024
1 parent 8a85f83 commit 32979f8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace = { members = ["app"] }

[package]
name = "yuvutils-rs"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
description = "High performance utilities for YUV format handling and conversion."
readme = "README.md"
Expand Down
24 changes: 12 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,18 @@ pub use rgba_to_yuv::rgba_to_yuv420;
pub use rgba_to_yuv::rgba_to_yuv422;
pub use rgba_to_yuv::rgba_to_yuv444;

pub use rgb_to_yuv_p16::bgr_to_yuv420_u16;
pub use rgb_to_yuv_p16::bgr_to_yuv422_u16;
pub use rgb_to_yuv_p16::bgr_to_yuv444_u16;
pub use rgb_to_yuv_p16::bgra_to_yuv420_u16;
pub use rgb_to_yuv_p16::bgra_to_yuv422_u16;
pub use rgb_to_yuv_p16::bgra_to_yuv444_u16;
pub use rgb_to_yuv_p16::rgb_to_yuv420_u16;
pub use rgb_to_yuv_p16::rgb_to_yuv422_u16;
pub use rgb_to_yuv_p16::rgb_to_yuv444_u16;
pub use rgb_to_yuv_p16::rgba_to_yuv420_u16;
pub use rgb_to_yuv_p16::rgba_to_yuv422_u16;
pub use rgb_to_yuv_p16::rgba_to_yuv444_u16;
pub use rgb_to_yuv_p16::bgr_to_yuv420_p16;
pub use rgb_to_yuv_p16::bgr_to_yuv422_p16;
pub use rgb_to_yuv_p16::bgr_to_yuv444_p16;
pub use rgb_to_yuv_p16::bgra_to_yuv420_p16;
pub use rgb_to_yuv_p16::bgra_to_yuv422_p16;
pub use rgb_to_yuv_p16::bgra_to_yuv444_p16;
pub use rgb_to_yuv_p16::rgb_to_yuv420_p16;
pub use rgb_to_yuv_p16::rgb_to_yuv422_p16;
pub use rgb_to_yuv_p16::rgb_to_yuv444_p16;
pub use rgb_to_yuv_p16::rgba_to_yuv420_p16;
pub use rgb_to_yuv_p16::rgba_to_yuv422_p16;
pub use rgb_to_yuv_p16::rgba_to_yuv444_p16;

pub use yuv_to_rgba_alpha::yuv420_with_alpha_to_bgra;
pub use yuv_to_rgba_alpha::yuv420_with_alpha_to_rgba;
Expand Down
24 changes: 12 additions & 12 deletions src/rgb_to_yuv_p16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn rgbx_to_yuv<
/// This function panics if the lengths of the planes or the input RGB data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgb_to_yuv422_u16(
pub fn rgb_to_yuv422_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -405,7 +405,7 @@ pub fn rgb_to_yuv422_u16(
/// This function panics if the lengths of the planes or the input BGR data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgr_to_yuv422_u16(
pub fn bgr_to_yuv422_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -497,7 +497,7 @@ pub fn bgr_to_yuv422_u16(
/// This function panics if the lengths of the planes or the input RGBA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgba_to_yuv422_u16(
pub fn rgba_to_yuv422_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -600,7 +600,7 @@ pub fn rgba_to_yuv422_u16(
/// This function panics if the lengths of the planes or the input BGRA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgra_to_yuv422_u16(
pub fn bgra_to_yuv422_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -703,7 +703,7 @@ pub fn bgra_to_yuv422_u16(
/// This function panics if the lengths of the planes or the input RGB data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgb_to_yuv420_u16(
pub fn rgb_to_yuv420_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -795,7 +795,7 @@ pub fn rgb_to_yuv420_u16(
/// This function panics if the lengths of the planes or the input RGB data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgr_to_yuv420_u16(
pub fn bgr_to_yuv420_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -887,7 +887,7 @@ pub fn bgr_to_yuv420_u16(
/// This function panics if the lengths of the planes or the input RGBA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgba_to_yuv420_u16(
pub fn rgba_to_yuv420_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -990,7 +990,7 @@ pub fn rgba_to_yuv420_u16(
/// This function panics if the lengths of the planes or the input BGRA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgra_to_yuv420_u16(
pub fn bgra_to_yuv420_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -1093,7 +1093,7 @@ pub fn bgra_to_yuv420_u16(
/// This function panics if the lengths of the planes or the input RGB data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgb_to_yuv444_u16(
pub fn rgb_to_yuv444_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -1185,7 +1185,7 @@ pub fn rgb_to_yuv444_u16(
/// This function panics if the lengths of the planes or the input BGR data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgr_to_yuv444_u16(
pub fn bgr_to_yuv444_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -1277,7 +1277,7 @@ pub fn bgr_to_yuv444_u16(
/// This function panics if the lengths of the planes or the input RGBA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn rgba_to_yuv444_u16(
pub fn rgba_to_yuv444_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down Expand Up @@ -1380,7 +1380,7 @@ pub fn rgba_to_yuv444_u16(
/// This function panics if the lengths of the planes or the input BGRA data are not valid based
/// on the specified width, height, and strides, or if invalid YUV range or matrix is provided.
///
pub fn bgra_to_yuv444_u16(
pub fn bgra_to_yuv444_p16(
y_plane: &mut [u16],
y_stride: u32,
u_plane: &mut [u16],
Expand Down

0 comments on commit 32979f8

Please sign in to comment.