#[non_exhaustive]pub struct ChannelMapping {
pub component: u16,
pub kind: MappingKind,
}Expand description
One channel of a file’s component mapping (cmap box): where an output
channel’s samples come from.
The decoder’s output channels follow these entries in order, before any
cdef reordering. The mapping reported is the one the default decode
applies, whatever the options: for a one-component file whose cmap
leaves a palette column unused, OpenJPEG reads the mapping as every channel
looking up its own column, and so does this decoder, so that is what is
reported. Only a cmap the default decode refuses is reported as written
(and only under raw_channels,
which does not check it).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.component: u16CMP: the codestream component this channel reads.
kind: MappingKindMTYP and PCOL: how the component becomes the channel.
Trait Implementations§
Source§impl Clone for ChannelMapping
impl Clone for ChannelMapping
Source§impl Debug for ChannelMapping
impl Debug for ChannelMapping
impl Eq for ChannelMapping
Source§impl PartialEq for ChannelMapping
impl PartialEq for ChannelMapping
impl StructuralPartialEq for ChannelMapping
Auto Trait Implementations§
impl Forget for ChannelMapping
impl Freeze for ChannelMapping
impl Move for ChannelMapping
impl RefUnwindSafe for ChannelMapping
impl Send for ChannelMapping
impl Sync for ChannelMapping
impl Unpin for ChannelMapping
impl UnsafeUnpin for ChannelMapping
impl UnwindSafe for ChannelMapping
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