Skip to main content

bare_jpeg

Function bare_jpeg 

Source
fn bare_jpeg(bytes: &[u8]) -> Option<Bare>
Expand description

The JPEG bytes as the picture and no more. None if it is not put together as a JPEG is.

A JPEG is a row of segments, each a marker and, for most, a length and that much data; after a start of scan comes picture data, up to the next marker. It ends at the end-of-image marker, and what follows that is no part of the picture: a second picture, a video of the moment.