pub struct JpegResolvedDecode {
pub request: JpegDecodeRequest,
pub capabilities: JpegCapabilityReport,
pub output_rect: Rect,
pub path: JpegResolvedDecodePath,
}Expand description
Parsed JPEG metadata plus the selected backend path.
Fields§
§request: JpegDecodeRequestOriginal decode request.
capabilities: JpegCapabilityReportCapability report used for the decision.
output_rect: RectOutput rectangle after ROI and scale are applied.
path: JpegResolvedDecodePathSelected backend path.
Implementations§
Source§impl JpegResolvedDecode
impl JpegResolvedDecode
Sourcepub fn inspect(
input: &[u8],
request: JpegDecodeRequest,
) -> Result<Self, JpegError>
pub fn inspect( input: &[u8], request: JpegDecodeRequest, ) -> Result<Self, JpegError>
Inspect JPEG bytes and resolve the requested backend path.
§Errors
Returns a JPEG parse or capability error when input is malformed or
the requested operation cannot be described safely.
Sourcepub fn from_capabilities(
capabilities: JpegCapabilityReport,
request: JpegDecodeRequest,
) -> Self
pub fn from_capabilities( capabilities: JpegCapabilityReport, request: JpegDecodeRequest, ) -> Self
Resolve a path from an existing capability report.
Trait Implementations§
Source§impl Clone for JpegResolvedDecode
impl Clone for JpegResolvedDecode
Source§fn clone(&self) -> JpegResolvedDecode
fn clone(&self) -> JpegResolvedDecode
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 moreSource§impl Debug for JpegResolvedDecode
impl Debug for JpegResolvedDecode
impl Eq for JpegResolvedDecode
Source§impl PartialEq for JpegResolvedDecode
impl PartialEq for JpegResolvedDecode
impl StructuralPartialEq for JpegResolvedDecode
Auto Trait Implementations§
impl Freeze for JpegResolvedDecode
impl RefUnwindSafe for JpegResolvedDecode
impl Send for JpegResolvedDecode
impl Sync for JpegResolvedDecode
impl Unpin for JpegResolvedDecode
impl UnsafeUnpin for JpegResolvedDecode
impl UnwindSafe for JpegResolvedDecode
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more