#[repr(C)]pub struct EfTilePlacement {
pub index: usize,
pub count: usize,
pub origin_x: f32,
pub origin_y: f32,
pub crop_width: f32,
pub crop_height: f32,
pub has_content_region: c_int,
pub content_region: [f32; 4],
pub frame_width: f32,
pub frame_height: f32,
}Expand description
C layout of ef_tile_placement in detect.h.
One declaration for image-capi (producer) and decoder-capi (consumer).
cbindgen excludes this type so the header-only detect.h definition wins.
Fields§
§index: usize§count: usize§origin_x: f32§origin_y: f32§crop_width: f32§crop_height: f32§has_content_region: c_int§content_region: [f32; 4]§frame_width: f32§frame_height: f32Trait Implementations§
Source§impl Clone for EfTilePlacement
impl Clone for EfTilePlacement
impl Copy for EfTilePlacement
Source§impl Debug for EfTilePlacement
impl Debug for EfTilePlacement
Source§impl From<&EfTilePlacement> for TilePlacement
impl From<&EfTilePlacement> for TilePlacement
Source§fn from(p: &EfTilePlacement) -> Self
fn from(p: &EfTilePlacement) -> Self
Converts to this type from the input type.
Source§impl From<&TilePlacement> for EfTilePlacement
impl From<&TilePlacement> for EfTilePlacement
Source§fn from(p: &TilePlacement) -> Self
fn from(p: &TilePlacement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EfTilePlacement
impl RefUnwindSafe for EfTilePlacement
impl Send for EfTilePlacement
impl Sync for EfTilePlacement
impl Unpin for EfTilePlacement
impl UnsafeUnpin for EfTilePlacement
impl UnwindSafe for EfTilePlacement
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