#[repr(C)]pub struct AndroidHardwareBufferFormatPropertiesANDROID<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub format: Format,
pub external_format: u64,
pub format_features: FormatFeatureFlags,
pub sampler_ycbcr_conversion_components: ComponentMapping,
pub suggested_ycbcr_model: SamplerYcbcrModelConversion,
pub suggested_ycbcr_range: SamplerYcbcrRange,
pub suggested_x_chroma_offset: ChromaLocation,
pub suggested_y_chroma_offset: ChromaLocation,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *mut c_void
§format: Format
§external_format: u64
§format_features: FormatFeatureFlags
§sampler_ycbcr_conversion_components: ComponentMapping
§suggested_ycbcr_model: SamplerYcbcrModelConversion
§suggested_ycbcr_range: SamplerYcbcrRange
§suggested_x_chroma_offset: ChromaLocation
§suggested_y_chroma_offset: ChromaLocation
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> AndroidHardwareBufferFormatPropertiesANDROID<'a>
pub fn format(self, format: Format) -> Self
pub fn external_format(self, external_format: u64) -> Self
pub fn format_features(self, format_features: FormatFeatureFlags) -> Self
pub fn sampler_ycbcr_conversion_components( self, sampler_ycbcr_conversion_components: ComponentMapping, ) -> Self
pub fn suggested_ycbcr_model( self, suggested_ycbcr_model: SamplerYcbcrModelConversion, ) -> Self
pub fn suggested_ycbcr_range( self, suggested_ycbcr_range: SamplerYcbcrRange, ) -> Self
pub fn suggested_x_chroma_offset( self, suggested_x_chroma_offset: ChromaLocation, ) -> Self
pub fn suggested_y_chroma_offset( self, suggested_y_chroma_offset: ChromaLocation, ) -> Self
Trait Implementations§
source§impl<'a> Clone for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> Clone for AndroidHardwareBufferFormatPropertiesANDROID<'a>
source§fn clone(&self) -> AndroidHardwareBufferFormatPropertiesANDROID<'a>
fn clone(&self) -> AndroidHardwareBufferFormatPropertiesANDROID<'a>
Returns a copy 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<'a> Debug for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> Debug for AndroidHardwareBufferFormatPropertiesANDROID<'a>
source§impl<'a> TaggedStructure for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> TaggedStructure for AndroidHardwareBufferFormatPropertiesANDROID<'a>
const STRUCTURE_TYPE: StructureType = StructureType::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID
impl<'a> Copy for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl ExtendsAndroidHardwareBufferPropertiesANDROID for AndroidHardwareBufferFormatPropertiesANDROID<'_>
impl Send for AndroidHardwareBufferFormatPropertiesANDROID<'_>
impl Sync for AndroidHardwareBufferFormatPropertiesANDROID<'_>
Auto Trait Implementations§
impl<'a> Freeze for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> RefUnwindSafe for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> Unpin for AndroidHardwareBufferFormatPropertiesANDROID<'a>
impl<'a> UnwindSafe for AndroidHardwareBufferFormatPropertiesANDROID<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)