#[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_letterbox: c_int,
pub letterbox: [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_letterbox: c_int§letterbox: [f32; 4]§frame_width: f32§frame_height: f32Trait Implementations§
Source§impl Clone for EfTilePlacement
impl Clone for EfTilePlacement
Source§fn clone(&self) -> EfTilePlacement
fn clone(&self) -> EfTilePlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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