Struct immeta::formats::jpeg::Metadata
[−]
[src]
pub struct Metadata { pub dimensions: Dimensions, pub sample_precision: u8, pub coding_process: CodingProcess, pub entropy_coding: EntropyCoding, pub baseline: bool, pub differential: bool, }
Represents metadata of a JPEG image.
It provides information contained in JPEG frame header, including image dimensions, coding process type and entropy coding type.
Fields
dimensions: Dimensions
Image size.
sample_precision: u8
Sample precision (in bits).
coding_process: CodingProcess
Image coding process type.
entropy_coding: EntropyCoding
Image entropy coding type.
baseline: bool
Whether this image uses a baseline DCT encoding.
differential: bool
Whether this image uses a differential encoding.
Trait Implementations
impl Clone for Metadata
[src]
fn clone(&self) -> Metadata
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Metadata
[src]
fn eq(&self, __arg_0: &Metadata) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Metadata) -> bool
[src]
This method tests for !=
.
impl Eq for Metadata
[src]
impl Debug for Metadata
[src]
impl LoadableMetadata for Metadata
[src]
fn load<R: ?Sized + BufRead>(r: &mut R) -> Result<Metadata>
[src]
Loads the implementing type from the given buffered input stream.
fn load_from_seek<R: ?Sized + BufRead + Seek>(r: &mut R) -> Result<Self>
[src]
Loads the implementing type from the given buffered and seekable input stream. Read more
fn load_from_file<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
Loads the implementing type from a file specified by the given path. Read more
fn load_from_buf(buf: &[u8]) -> Result<Self>
[src]
Loads the implementing type from an in-memory buffer. Read more