Trait dicom_encoding::adapters::PixelRWAdapter[][src]

pub trait PixelRWAdapter {
    fn decode(
        &self,
        src: &dyn PixelDataObject,
        dst: &mut Vec<u8>
    ) -> DecodeResult<()>;
fn encode(&self, src: &[u8], dst: &mut Vec<u8>) -> EncodeResult<()>; }
Expand description

Trait object responsible for decoding and encoding pixel data based on the Transfersyntax. Every TS with encapsulated pixel data should implement this.

Required methods

Decode complete byte stream to native pixel data

Write byte stream

Implementors

Decode TS: 1.2.840.10008.1.2.5 (RLE Lossless)