#[repr(C)]pub struct YcbcrConversionInfo {
pub format: Format,
pub external_format: u64,
pub ycbcr_model: SamplerYcbcrModelConversion,
pub ycbcr_range: SamplerYcbcrRange,
pub x_chroma_offset: ChromaLocation,
pub y_chroma_offset: ChromaLocation,
pub chroma_filter: Filter,
pub force_explicit_reconstruction: Bool32,
pub components: ComponentMapping,
pub format_features: FormatFeatureFlags,
/* private fields */
}Fields§
§format: Format§external_format: u64§ycbcr_model: SamplerYcbcrModelConversion§ycbcr_range: SamplerYcbcrRange§x_chroma_offset: ChromaLocation§y_chroma_offset: ChromaLocation§chroma_filter: Filter§force_explicit_reconstruction: Bool32§components: ComponentMapping§format_features: FormatFeatureFlagsImplementations§
Source§impl YcbcrConversionInfo
impl YcbcrConversionInfo
pub fn new_with_external_format( external_format: u64, ycbcr_model: SamplerYcbcrModelConversion, ycbcr_range: SamplerYcbcrRange, x_chroma_offset: ChromaLocation, y_chroma_offset: ChromaLocation, chroma_filter: Filter, force_explicit_reconstruction: Bool32, components: ComponentMapping, external_format_features: FormatFeatureFlags, ) -> Self
pub fn new_with_format( format: Format, ycbcr_model: SamplerYcbcrModelConversion, ycbcr_range: SamplerYcbcrRange, x_chroma_offset: ChromaLocation, y_chroma_offset: ChromaLocation, chroma_filter: Filter, force_explicit_reconstruction: Bool32, components: ComponentMapping, format_features: FormatFeatureFlags, ) -> Self
pub fn is_valid(&self) -> bool
pub fn format(&self) -> Format
pub fn has_external_format(&self) -> bool
pub fn external_format(&self) -> u64
pub fn model(&self) -> SamplerYcbcrModelConversion
pub fn range(&self) -> SamplerYcbcrRange
pub fn x_chroma_offset(&self) -> ChromaLocation
pub fn y_chroma_offset(&self) -> ChromaLocation
pub fn chroma_filter(&self) -> Filter
pub fn force_explicit_reconstruction(&self) -> Bool32
pub fn components(&self) -> ComponentMapping
pub fn supports_linear_filter(&self) -> bool
Trait Implementations§
Source§impl Clone for YcbcrConversionInfo
impl Clone for YcbcrConversionInfo
Source§fn clone(&self) -> YcbcrConversionInfo
fn clone(&self) -> YcbcrConversionInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for YcbcrConversionInfo
impl Debug for YcbcrConversionInfo
Source§impl Default for YcbcrConversionInfo
impl Default for YcbcrConversionInfo
Source§impl PartialEq for YcbcrConversionInfo
impl PartialEq for YcbcrConversionInfo
impl Copy for YcbcrConversionInfo
impl Eq for YcbcrConversionInfo
Auto Trait Implementations§
impl Freeze for YcbcrConversionInfo
impl RefUnwindSafe for YcbcrConversionInfo
impl Send for YcbcrConversionInfo
impl Sync for YcbcrConversionInfo
impl Unpin for YcbcrConversionInfo
impl UnwindSafe for YcbcrConversionInfo
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