[−][src]Struct gfwx::color_transform::ColorTransformProgram
Methods
impl ColorTransformProgram
[src]
pub fn new() -> Self
[src]
pub fn yuv444_to_yuv444() -> Self
[src]
Stores input as yuv444. Does not perform any color transforms, just flags second and third channels as chroma channels. Decompressed output also will be in yuv44.
pub fn rgb_to_yuv() -> Self
[src]
Stores rgb data as approximated YUV444 (real order is UYV). performs the following: R -= G (chroma); B -= G (chroma); G += (R + B) / 4 (luma)
pub fn bgr_to_a710() -> Self
[src]
Stores bgr data as approximated a710. performs the following: R -= G (chroma); B -= (G * 2 + R) / 2 (chroma); G += (B * 2 + R * 3) / 8 (luma)
pub fn rgb_to_a710() -> Self
[src]
Stores rgb data as approximated a710. performs the following: R -= G (chroma); B -= (G * 2 + R) / 2 (chroma); G += (B * 2 + R * 3) / 8 (luma)
pub fn decode(
buffer: &mut impl Read,
is_chroma: &mut [bool]
) -> Result<Self, DecompressError>
[src]
buffer: &mut impl Read,
is_chroma: &mut [bool]
) -> Result<Self, DecompressError>
pub fn add_channel_transform(
&mut self,
channel_transform: ChannelTransform
) -> &mut Self
[src]
&mut self,
channel_transform: ChannelTransform
) -> &mut Self
pub fn is_channel_has_transform(&self, channel: usize) -> bool
[src]
pub fn iter(&self) -> impl DoubleEndedIterator<Item = &ChannelTransform>
[src]
pub fn encode(
&self,
channels: usize,
buffer: &mut impl Write
) -> Result<Vec<bool>>
[src]
&self,
channels: usize,
buffer: &mut impl Write
) -> Result<Vec<bool>>
pub fn transform_and_to_planar<T>(
&self,
image: &[T],
header: &Header,
aux: &mut [i16]
) where
T: Into<i16> + Copy,
[src]
&self,
image: &[T],
header: &Header,
aux: &mut [i16]
) where
T: Into<i16> + Copy,
pub fn transform<T>(&self, image: &[T], header: &Header, aux: &mut [i16]) where
T: Into<i16> + Copy,
[src]
T: Into<i16> + Copy,
pub fn detransform_and_to_interleaved<T>(
&self,
aux: &mut [i16],
header: &Header,
channel_size: usize,
image: &mut [T]
) where
T: NumCast,
[src]
&self,
aux: &mut [i16],
header: &Header,
channel_size: usize,
image: &mut [T]
) where
T: NumCast,
pub fn detransform<T>(
&self,
aux: &mut [i16],
header: &Header,
channel_size: usize,
image: &mut [T]
) where
T: NumCast,
[src]
&self,
aux: &mut [i16],
header: &Header,
channel_size: usize,
image: &mut [T]
) where
T: NumCast,
Trait Implementations
impl Clone for ColorTransformProgram
[src]
fn clone(&self) -> ColorTransformProgram
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ColorTransformProgram
[src]
impl Default for ColorTransformProgram
[src]
fn default() -> ColorTransformProgram
[src]
impl PartialEq<ColorTransformProgram> for ColorTransformProgram
[src]
fn eq(&self, other: &ColorTransformProgram) -> bool
[src]
fn ne(&self, other: &ColorTransformProgram) -> bool
[src]
impl StructuralPartialEq for ColorTransformProgram
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorTransformProgram
impl Send for ColorTransformProgram
impl Sync for ColorTransformProgram
impl Unpin for ColorTransformProgram
impl UnwindSafe for ColorTransformProgram
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,