#[repr(C)]pub struct SharpYuvConversionMatrix {
pub rgb_to_y: [i32; 4],
pub rgb_to_u: [i32; 4],
pub rgb_to_v: [i32; 4],
}Expand description
RGB to YUV conversion matrix, in 16 bit fixed point.
y_ = rgb_to_y[0] * r + rgb_to_y[1] * g + rgb_to_y[2] * b + rgb_to_y[3], and
likewise for u_ and v_; the values are then divided by 1 << 16 and rounded.
Fields§
§rgb_to_y: [i32; 4]Coefficients and offset of the Y component.
rgb_to_u: [i32; 4]Coefficients and offset of the U component.
rgb_to_v: [i32; 4]Coefficients and offset of the V component.
Trait Implementations§
Source§impl Clone for SharpYuvConversionMatrix
impl Clone for SharpYuvConversionMatrix
impl Copy for SharpYuvConversionMatrix
Source§impl Debug for SharpYuvConversionMatrix
impl Debug for SharpYuvConversionMatrix
Source§impl Default for SharpYuvConversionMatrix
impl Default for SharpYuvConversionMatrix
impl Eq for SharpYuvConversionMatrix
Source§impl PartialEq for SharpYuvConversionMatrix
impl PartialEq for SharpYuvConversionMatrix
impl StructuralPartialEq for SharpYuvConversionMatrix
Auto Trait Implementations§
impl Forget for SharpYuvConversionMatrix
impl Freeze for SharpYuvConversionMatrix
impl Move for SharpYuvConversionMatrix
impl RefUnwindSafe for SharpYuvConversionMatrix
impl Send for SharpYuvConversionMatrix
impl Sync for SharpYuvConversionMatrix
impl Unpin for SharpYuvConversionMatrix
impl UnsafeUnpin for SharpYuvConversionMatrix
impl UnwindSafe for SharpYuvConversionMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more