pub struct RawCrop {
pub page_index: u32,
pub bbox: QRect,
pub width_px: u32,
pub height_px: u32,
pub stride: u32,
pub pixel_format: &'static str,
pub sha256: String,
pub bytes: Vec<u8>,
}Expand description
Raw crop rendered from a PDF page.
This is the pre-encoding renderer boundary used by ethos-render work. It
deliberately exposes raw BGRA bytes and a byte hash before PNG/JPEG encoding
is added, so callers can test the renderer itself before artifact encoding.
Fields§
§page_index: u321-based source page index.
bbox: QRectSource bbox in Ethos quantized top-left coordinates.
width_px: u32Crop width in pixels.
height_px: u32Crop height in pixels.
stride: u32Bytes per crop row.
pixel_format: &'static strPixel format for bytes.
sha256: StringSHA-256 hex digest of bytes.
bytes: Vec<u8>Tightly packed crop bytes.
Trait Implementations§
impl Eq for RawCrop
impl StructuralPartialEq for RawCrop
Auto Trait Implementations§
impl Freeze for RawCrop
impl RefUnwindSafe for RawCrop
impl Send for RawCrop
impl Sync for RawCrop
impl Unpin for RawCrop
impl UnsafeUnpin for RawCrop
impl UnwindSafe for RawCrop
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