Lines Matching refs:marker
207 if (cinfo->marker->saw_SOI) in get_soi()
233 cinfo->marker->saw_SOI = TRUE; in get_soi()
264 if (cinfo->marker->saw_SOF) in get_sof()
296 cinfo->marker->saw_SOF = TRUE; in get_sof()
312 if (!cinfo->marker->saw_SOF) in get_sos()
374 cinfo->marker->next_restart_num = 0; in get_sos()
759 my_marker_ptr marker = (my_marker_ptr)cinfo->marker; in save_marker() local
760 jpeg_saved_marker_ptr cur_marker = marker->cur_marker; in save_marker()
774 limit = marker->length_limit_COM; in save_marker()
776 limit = marker->length_limit_APPn[cinfo->unread_marker - (int)M_APP0]; in save_marker()
784 cur_marker->marker = (UINT8)cinfo->unread_marker; in save_marker()
789 marker->cur_marker = cur_marker; in save_marker()
790 marker->bytes_read = 0; in save_marker()
800 bytes_read = marker->bytes_read; in save_marker()
807 marker->bytes_read = bytes_read; in save_marker()
834 marker->cur_marker = NULL; in save_marker()
904 cinfo->marker->discarded_bytes++; in next_marker()
921 cinfo->marker->discarded_bytes += 2; in next_marker()
925 if (cinfo->marker->discarded_bytes != 0) { in next_marker()
926 WARNMS2(cinfo, JWRN_EXTRANEOUS_DATA, cinfo->marker->discarded_bytes, c); in next_marker()
927 cinfo->marker->discarded_bytes = 0; in next_marker()
976 if (!cinfo->marker->saw_SOI) { in read_markers()
1075 if (!(*((my_marker_ptr)cinfo->marker)->process_APPn[ in read_markers()
1081 if (!(*((my_marker_ptr)cinfo->marker)->process_COM) (cinfo)) in read_markers()
1140 ((int)M_RST0 + cinfo->marker->next_restart_num)) { in read_restart_marker()
1142 TRACEMS1(cinfo, 3, JTRC_RST, cinfo->marker->next_restart_num); in read_restart_marker()
1148 cinfo->marker->next_restart_num)) in read_restart_marker()
1153 cinfo->marker->next_restart_num = (cinfo->marker->next_restart_num + 1) & 7; in read_restart_marker()
1211 int marker = cinfo->unread_marker; in jpeg_resync_to_restart() local
1215 WARNMS2(cinfo, JWRN_MUST_RESYNC, marker, desired); in jpeg_resync_to_restart()
1219 if (marker < (int)M_SOF0) in jpeg_resync_to_restart()
1221 else if (marker < (int)M_RST0 || marker > (int)M_RST7) in jpeg_resync_to_restart()
1224 if (marker == ((int)M_RST0 + ((desired + 1) & 7)) || in jpeg_resync_to_restart()
1225 marker == ((int)M_RST0 + ((desired + 2) & 7))) in jpeg_resync_to_restart()
1227 else if (marker == ((int)M_RST0 + ((desired - 1) & 7)) || in jpeg_resync_to_restart()
1228 marker == ((int)M_RST0 + ((desired - 2) & 7))) in jpeg_resync_to_restart()
1233 TRACEMS2(cinfo, 4, JTRC_RECOVERY_ACTION, marker, action); in jpeg_resync_to_restart()
1243 marker = cinfo->unread_marker; in jpeg_resync_to_restart()
1261 my_marker_ptr marker = (my_marker_ptr)cinfo->marker; in reset_marker_reader() local
1266 marker->pub.saw_SOI = FALSE; /* set internal state too */ in reset_marker_reader()
1267 marker->pub.saw_SOF = FALSE; in reset_marker_reader()
1268 marker->pub.discarded_bytes = 0; in reset_marker_reader()
1269 marker->cur_marker = NULL; in reset_marker_reader()
1281 my_marker_ptr marker; in jinit_marker_reader() local
1285 marker = (my_marker_ptr) in jinit_marker_reader()
1288 cinfo->marker = (struct jpeg_marker_reader *)marker; in jinit_marker_reader()
1290 marker->pub.reset_marker_reader = reset_marker_reader; in jinit_marker_reader()
1291 marker->pub.read_markers = read_markers; in jinit_marker_reader()
1292 marker->pub.read_restart_marker = read_restart_marker; in jinit_marker_reader()
1297 marker->process_COM = skip_variable; in jinit_marker_reader()
1298 marker->length_limit_COM = 0; in jinit_marker_reader()
1300 marker->process_APPn[i] = skip_variable; in jinit_marker_reader()
1301 marker->length_limit_APPn[i] = 0; in jinit_marker_reader()
1303 marker->process_APPn[0] = get_interesting_appn; in jinit_marker_reader()
1304 marker->process_APPn[14] = get_interesting_appn; in jinit_marker_reader()
1320 my_marker_ptr marker = (my_marker_ptr)cinfo->marker; in jpeg_save_markers() local
1349 marker->process_COM = processor; in jpeg_save_markers()
1350 marker->length_limit_COM = length_limit; in jpeg_save_markers()
1352 marker->process_APPn[marker_code - (int)M_APP0] = processor; in jpeg_save_markers()
1353 marker->length_limit_APPn[marker_code - (int)M_APP0] = length_limit; in jpeg_save_markers()
1369 my_marker_ptr marker = (my_marker_ptr)cinfo->marker; in jpeg_set_marker_processor() local
1372 marker->process_COM = routine; in jpeg_set_marker_processor()
1374 marker->process_APPn[marker_code - (int)M_APP0] = routine; in jpeg_set_marker_processor()