pub trait PixelSource {
// Required methods
fn source_width(&self) -> u32;
fn source_height(&self) -> u32;
fn source_format(&self) -> &PixelFormat;
fn source_claims(&self) -> SampleClaims;
fn source_hdr(&self) -> HdrMetadata;
fn source_row(&self, y: u32) -> &[u8] ⓘ;
// Provided methods
fn source_origin(&self) -> Option<&ColorOrigin> { ... }
fn source_orientation(&self) -> Orientation { ... }
}Required Methods§
Sourcefn source_width(&self) -> u32
fn source_width(&self) -> u32
Frame width in pixels.
Sourcefn source_height(&self) -> u32
fn source_height(&self) -> u32
Frame height in rows.
Sourcefn source_format(&self) -> &PixelFormat
fn source_format(&self) -> &PixelFormat
Authoritative image specification.
Sourcefn source_claims(&self) -> SampleClaims
fn source_claims(&self) -> SampleClaims
Attached sample claims.
Sourcefn source_hdr(&self) -> HdrMetadata
fn source_hdr(&self) -> HdrMetadata
Descriptive HDR metadata.
Sourcefn source_row(&self, y: u32) -> &[u8] ⓘ
fn source_row(&self, y: u32) -> &[u8] ⓘ
Active bytes of row y.
Provided Methods§
Sourcefn source_origin(&self) -> Option<&ColorOrigin>
fn source_origin(&self) -> Option<&ColorOrigin>
Original container color provenance, if attached.
Sourcefn source_orientation(&self) -> Orientation
fn source_orientation(&self) -> Orientation
Pending EXIF display orientation (defaults to Orientation::Identity).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".