Lines Matching defs:marker
263 * (inclusive). Because every marker begins with the same byte, they are
266 * JFIF files all begin with the Start of Image (SOI) marker, which is 0xD8.
272 * allowed to contain the End of Image marker (0xFF 0xD9), preventing us from
279 * the end of the image stream there is an End of Image (EOI) marker, which is
283 const uint8_t MARK = 0xFF; // First byte of marker
286 const size_t MARKER_LENGTH = 2; // length of a marker
291 uint8_t marker[MARKER_LENGTH];
298 // check for Start of Image marker
302 // check for End of Image marker
306 // check for arbitrary marker, returns marker type (second byte)
307 // returns 0 if no marker found. Note: 0x00 is not a valid marker type
341 ALOGE("Could not find start of JPEG marker");
349 uint8_t type = checkJpegMarker(segment->marker);
350 if (type == 0) { // invalid marker, no more segments, begin JPEG data
374 ALOGE("Could not find end of JPEG marker");