Lines Matching refs:marker
9 * user-supplied text as a COM (comment) marker in a JFIF file.
135 write_marker (int marker)
138 PUTBYTE(marker);
152 * JPEG markers consist of one or more 0xFF bytes, followed by a marker
153 * code byte (which is not an FF). Here are the marker codes of interest
177 * Find the next JPEG marker and return its marker code.
182 * NB: this routine must not be used after seeing SOS marker, since it will
198 /* Get marker code byte, swallowing any duplicate FF bytes. Extra FFs
214 * Read the initial marker, which should be SOI.
235 * Most types of marker are followed by a variable-length parameter segment.
236 * This routine skips over the parameters for any marker we don't otherwise
245 /* Copy an unknown or uninteresting variable-length marker */
249 /* Get the marker parameter length count */
254 ERREXIT("Erroneous JPEG marker length");
265 /* Skip over an unknown or uninteresting variable-length marker */
269 /* Get the marker parameter length count */
273 ERREXIT("Erroneous JPEG marker length");
284 * Parse the marker stream until SOFn or EOI is seen;
291 int marker;
295 ERREXIT("Expected SOI marker first");
300 marker = next_marker();
301 switch (marker) {
302 /* Note that marker codes 0xC4, 0xC8, 0xCC are not, and must not be,
318 return marker;
325 return marker;
329 write_marker(marker);
337 write_marker(marker);
421 int marker;
558 /* Copy JPEG headers until SOFn marker;
559 * we will insert the new comment marker just before SOFn.
564 marker = scan_JPEG_header(keep_COM);
565 /* Insert the new COM marker, but only if nonempty text has been supplied */
577 write_marker(marker);