[−][src]Struct gfwx::ColorTransformProgram
Methods
impl ColorTransformProgram
[src]
impl ColorTransformProgram
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn yuv444_to_yuv444() -> Self
[src]
pub fn yuv444_to_yuv444() -> Self
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]
pub fn rgb_to_yuv() -> Self
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]
pub fn bgr_to_a710() -> Self
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]
pub fn rgb_to_a710() -> Self
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]
pub fn decode(
buffer: &mut impl Read,
is_chroma: &mut [bool]
) -> Result<Self, DecompressError>
pub fn add_channel_transform(
&mut self,
channel_transform: ChannelTransform
) -> &mut Self
[src]
pub fn add_channel_transform(
&mut self,
channel_transform: ChannelTransform
) -> &mut Self
pub fn is_channel_has_transform(&self, channel: usize) -> bool
[src]
pub fn is_channel_has_transform(&self, channel: usize) -> bool
pub fn iter(
&self
) -> impl DoubleEndedIterator<Item = &ChannelTransform>
[src]
pub fn iter(
&self
) -> impl DoubleEndedIterator<Item = &ChannelTransform>
pub fn encode(
&self,
channels: usize,
buffer: &mut impl Write
) -> Result<Vec<bool>>
[src]
pub fn encode(
&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]
pub fn transform_and_to_planar<T>(
&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]
pub fn transform<T>(&self, image: &[T], header: &Header, aux: &mut [i16]) where
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]
pub fn detransform_and_to_interleaved<T>(
&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]
pub fn detransform<T>(
&self,
aux: &mut [i16],
header: &Header,
channel_size: usize,
image: &mut [T]
) where
T: NumCast,
Trait Implementations
impl PartialEq<ColorTransformProgram> for ColorTransformProgram
[src]
impl PartialEq<ColorTransformProgram> for ColorTransformProgram
fn eq(&self, other: &ColorTransformProgram) -> bool
[src]
fn eq(&self, other: &ColorTransformProgram) -> bool
fn ne(&self, other: &ColorTransformProgram) -> bool
[src]
fn ne(&self, other: &ColorTransformProgram) -> bool
impl Clone for ColorTransformProgram
[src]
impl Clone for ColorTransformProgram
fn clone(&self) -> ColorTransformProgram
[src]
fn clone(&self) -> ColorTransformProgram
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for ColorTransformProgram
[src]
impl Default for ColorTransformProgram
fn default() -> ColorTransformProgram
[src]
fn default() -> ColorTransformProgram
impl Debug for ColorTransformProgram
[src]
impl Debug for ColorTransformProgram
Auto Trait Implementations
impl Send for ColorTransformProgram
impl Send for ColorTransformProgram
impl Sync for ColorTransformProgram
impl Sync for ColorTransformProgram
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId