Skip to main content

decode_jpeg

Function decode_jpeg 

Source
pub fn decode_jpeg(data: &[u8]) -> DcmResult<JpegFrame>
Expand description

Decode a single JPEG fragment from a byte slice.

Handles JPEG Baseline (Process 1) and JPEG Extended (Process 2 & 4). Returns the decoded frame with metadata.