pub trait PixelCodec: Send + Sync {
// Required methods
fn uid(&self) -> &'static str;
fn decode_frame(
&self,
data: &[u8],
rows: u16,
cols: u16,
bits: u16,
) -> DcmResult<Vec<u8>>;
fn encode_frame(
&self,
data: &[u8],
rows: u16,
cols: u16,
bits: u16,
) -> DcmResult<Vec<u8>>;
}