• Home
  • Raw
  • Download

Lines Matching refs:compptr

92 dequant_comp(j_decompress_ptr cinfo, jpeg_component_info *compptr,  in dequant_comp()  argument
102 qtblptr = compptr->quant_table; in dequant_comp()
103 for (blk_y = 0; blk_y < compptr->height_in_blocks; in dequant_comp()
104 blk_y += compptr->v_samp_factor) { in dequant_comp()
107 (JDIMENSION)compptr->v_samp_factor, TRUE); in dequant_comp()
108 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in dequant_comp()
110 for (blk_x = 0; blk_x < compptr->width_in_blocks; blk_x++) { in dequant_comp()
122 requant_comp(j_decompress_ptr cinfo, jpeg_component_info *compptr, in requant_comp() argument
133 qtblptr = compptr->quant_table; in requant_comp()
134 for (blk_y = 0; blk_y < compptr->height_in_blocks; in requant_comp()
135 blk_y += compptr->v_samp_factor) { in requant_comp()
138 (JDIMENSION)compptr->v_samp_factor, TRUE); in requant_comp()
139 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in requant_comp()
141 for (blk_x = 0; blk_x < compptr->width_in_blocks; blk_x++) { in requant_comp()
243 jpeg_component_info *compptr; in do_drop() local
246 compptr = dstinfo->comp_info + ci; in do_drop()
247 comp_width = drop_width * compptr->h_samp_factor; in do_drop()
248 comp_height = drop_height * compptr->v_samp_factor; in do_drop()
249 x_drop_blocks = x_crop_offset * compptr->h_samp_factor; in do_drop()
250 y_drop_blocks = y_crop_offset * compptr->v_samp_factor; in do_drop()
251 for (blk_y = 0; blk_y < comp_height; blk_y += compptr->v_samp_factor) { in do_drop()
254 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_drop()
258 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_drop()
259 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_drop()
264 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_drop()
284 jpeg_component_info *compptr; in do_crop() local
290 compptr = dstinfo->comp_info + ci; in do_crop()
291 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop()
292 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop()
293 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop()
294 dst_blk_y += compptr->v_samp_factor) { in do_crop()
297 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_crop()
300 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_crop()
301 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop()
303 dst_buffer[offset_y], compptr->width_in_blocks); in do_crop()
326 jpeg_component_info *compptr; in do_crop_ext_zero() local
334 compptr = dstinfo->comp_info + ci; in do_crop_ext_zero()
335 comp_width = MCU_cols * compptr->h_samp_factor; in do_crop_ext_zero()
336 comp_height = MCU_rows * compptr->v_samp_factor; in do_crop_ext_zero()
337 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop_ext_zero()
338 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop_ext_zero()
339 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop_ext_zero()
340 dst_blk_y += compptr->v_samp_factor) { in do_crop_ext_zero()
343 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_crop_ext_zero()
347 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_zero()
349 compptr->width_in_blocks * sizeof(JBLOCK)); in do_crop_ext_zero()
355 dst_blk_y - y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_zero()
360 dst_blk_y + y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_zero()
363 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_zero()
370 if (compptr->width_in_blocks > x_crop_blocks + comp_width) { in do_crop_ext_zero()
372 (compptr->width_in_blocks - x_crop_blocks - comp_width) * in do_crop_ext_zero()
377 dst_buffer[offset_y], compptr->width_in_blocks); in do_crop_ext_zero()
402 jpeg_component_info *compptr; in do_crop_ext_flat() local
410 compptr = dstinfo->comp_info + ci; in do_crop_ext_flat()
411 comp_width = MCU_cols * compptr->h_samp_factor; in do_crop_ext_flat()
412 comp_height = MCU_rows * compptr->v_samp_factor; in do_crop_ext_flat()
413 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop_ext_flat()
414 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop_ext_flat()
415 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop_ext_flat()
416 dst_blk_y += compptr->v_samp_factor) { in do_crop_ext_flat()
419 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_crop_ext_flat()
423 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_flat()
425 compptr->width_in_blocks * sizeof(JBLOCK)); in do_crop_ext_flat()
431 dst_blk_y - y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_flat()
436 dst_blk_y + y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_flat()
439 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_flat()
449 if (compptr->width_in_blocks > x_crop_blocks + comp_width) { in do_crop_ext_flat()
451 (compptr->width_in_blocks - x_crop_blocks - comp_width) * in do_crop_ext_flat()
455 dst_blk_x < compptr->width_in_blocks; dst_blk_x++) { in do_crop_ext_flat()
483 jpeg_component_info *compptr; in do_crop_ext_reflect() local
491 compptr = dstinfo->comp_info + ci; in do_crop_ext_reflect()
492 comp_width = MCU_cols * compptr->h_samp_factor; in do_crop_ext_reflect()
493 comp_height = MCU_rows * compptr->v_samp_factor; in do_crop_ext_reflect()
494 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop_ext_reflect()
495 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop_ext_reflect()
496 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop_ext_reflect()
497 dst_blk_y += compptr->v_samp_factor) { in do_crop_ext_reflect()
500 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_crop_ext_reflect()
504 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_reflect()
506 compptr->width_in_blocks * sizeof(JBLOCK)); in do_crop_ext_reflect()
512 dst_blk_y - y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_reflect()
517 dst_blk_y + y_crop_blocks, (JDIMENSION)compptr->v_samp_factor, in do_crop_ext_reflect()
520 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop_ext_reflect()
542 if (compptr->width_in_blocks > x_crop_blocks + comp_width) { in do_crop_ext_reflect()
545 for (dst_blk_x = compptr->width_in_blocks - x_crop_blocks - comp_width; in do_crop_ext_reflect()
580 jpeg_component_info *compptr; in do_wipe() local
583 compptr = dstinfo->comp_info + ci; in do_wipe()
584 x_wipe_blocks = x_crop_offset * compptr->h_samp_factor; in do_wipe()
585 wipe_width = drop_width * compptr->h_samp_factor; in do_wipe()
586 y_wipe_blocks = y_crop_offset * compptr->v_samp_factor; in do_wipe()
587 wipe_bottom = drop_height * compptr->v_samp_factor + y_wipe_blocks; in do_wipe()
589 y_wipe_blocks += compptr->v_samp_factor) { in do_wipe()
592 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_wipe()
593 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_wipe()
614 jpeg_component_info *compptr; in do_flatten() local
617 compptr = dstinfo->comp_info + ci; in do_flatten()
618 x_wipe_blocks = x_crop_offset * compptr->h_samp_factor; in do_flatten()
619 wipe_width = drop_width * compptr->h_samp_factor; in do_flatten()
621 y_wipe_blocks = y_crop_offset * compptr->v_samp_factor; in do_flatten()
622 wipe_bottom = drop_height * compptr->v_samp_factor + y_wipe_blocks; in do_flatten()
624 y_wipe_blocks += compptr->v_samp_factor) { in do_flatten()
627 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_flatten()
628 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_flatten()
632 if (wipe_right < compptr->width_in_blocks) { in do_flatten()
638 } else if (wipe_right < compptr->width_in_blocks) { in do_flatten()
666 jpeg_component_info *compptr; in do_reflect() local
669 compptr = dstinfo->comp_info + ci; in do_reflect()
670 x_wipe_blocks = x_crop_offset * compptr->h_samp_factor; in do_reflect()
671 wipe_width = drop_width * compptr->h_samp_factor; in do_reflect()
672 wipe_bottom = drop_height * compptr->v_samp_factor; in do_reflect()
674 y_wipe_blocks += compptr->v_samp_factor) { in do_reflect()
677 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_reflect()
678 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_reflect()
695 } else if (compptr->width_in_blocks > x_wipe_blocks + wipe_width) { in do_reflect()
700 src_blk_x = compptr->width_in_blocks - x_wipe_blocks - wipe_width; in do_reflect()
733 jpeg_component_info *compptr; in do_flip_h_no_crop() local
744 compptr = dstinfo->comp_info + ci; in do_flip_h_no_crop()
745 comp_width = MCU_cols * compptr->h_samp_factor; in do_flip_h_no_crop()
746 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_h_no_crop()
747 for (blk_y = 0; blk_y < compptr->height_in_blocks; in do_flip_h_no_crop()
748 blk_y += compptr->v_samp_factor) { in do_flip_h_no_crop()
751 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_flip_h_no_crop()
752 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_flip_h_no_crop()
775 for (blk_x = 0; blk_x < compptr->width_in_blocks; blk_x++) { in do_flip_h_no_crop()
799 jpeg_component_info *compptr; in do_flip_h() local
809 compptr = dstinfo->comp_info + ci; in do_flip_h()
810 comp_width = MCU_cols * compptr->h_samp_factor; in do_flip_h()
811 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_h()
812 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_flip_h()
813 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_flip_h()
814 dst_blk_y += compptr->v_samp_factor) { in do_flip_h()
817 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_flip_h()
820 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_flip_h()
821 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_flip_h()
824 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_flip_h()
861 jpeg_component_info *compptr; in do_flip_v() local
874 compptr = dstinfo->comp_info + ci; in do_flip_v()
875 comp_height = MCU_rows * compptr->v_samp_factor; in do_flip_v()
876 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_v()
877 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_flip_v()
878 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_flip_v()
879 dst_blk_y += compptr->v_samp_factor) { in do_flip_v()
882 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_flip_v()
888 (JDIMENSION)compptr->v_samp_factor, in do_flip_v()
889 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_flip_v()
895 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_flip_v()
897 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_flip_v()
901 src_row_ptr = src_buffer[compptr->v_samp_factor - offset_y - 1]; in do_flip_v()
903 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_flip_v()
919 dst_buffer[offset_y], compptr->width_in_blocks); in do_flip_v()
938 jpeg_component_info *compptr; in do_transpose() local
946 compptr = dstinfo->comp_info + ci; in do_transpose()
947 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_transpose()
948 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_transpose()
949 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_transpose()
950 dst_blk_y += compptr->v_samp_factor) { in do_transpose()
953 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_transpose()
954 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_transpose()
955 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_transpose()
956 dst_blk_x += compptr->h_samp_factor) { in do_transpose()
960 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_transpose()
961 for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) { in do_transpose()
992 jpeg_component_info *compptr; in do_rot_90() local
1002 compptr = dstinfo->comp_info + ci; in do_rot_90()
1003 comp_width = MCU_cols * compptr->h_samp_factor; in do_rot_90()
1004 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_rot_90()
1005 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_rot_90()
1006 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_rot_90()
1007 dst_blk_y += compptr->v_samp_factor) { in do_rot_90()
1010 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_rot_90()
1011 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_rot_90()
1012 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_rot_90()
1013 dst_blk_x += compptr->h_samp_factor) { in do_rot_90()
1019 (JDIMENSION)compptr->h_samp_factor, in do_rot_90()
1020 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_rot_90()
1026 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_rot_90()
1028 for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) { in do_rot_90()
1032 src_ptr = src_buffer[compptr->h_samp_factor - offset_x - 1] in do_rot_90()
1073 jpeg_component_info *compptr; in do_rot_270() local
1083 compptr = dstinfo->comp_info + ci; in do_rot_270()
1084 comp_height = MCU_rows * compptr->v_samp_factor; in do_rot_270()
1085 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_rot_270()
1086 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_rot_270()
1087 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_rot_270()
1088 dst_blk_y += compptr->v_samp_factor) { in do_rot_270()
1091 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_rot_270()
1092 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_rot_270()
1093 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_rot_270()
1094 dst_blk_x += compptr->h_samp_factor) { in do_rot_270()
1098 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_rot_270()
1099 for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) { in do_rot_270()
1145 jpeg_component_info *compptr; in do_rot_180() local
1153 compptr = dstinfo->comp_info + ci; in do_rot_180()
1154 comp_width = MCU_cols * compptr->h_samp_factor; in do_rot_180()
1155 comp_height = MCU_rows * compptr->v_samp_factor; in do_rot_180()
1156 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_rot_180()
1157 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_rot_180()
1158 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_rot_180()
1159 dst_blk_y += compptr->v_samp_factor) { in do_rot_180()
1162 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_rot_180()
1168 (JDIMENSION)compptr->v_samp_factor, in do_rot_180()
1169 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_rot_180()
1175 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_rot_180()
1177 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_rot_180()
1181 src_row_ptr = src_buffer[compptr->v_samp_factor - offset_y - 1]; in do_rot_180()
1182 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_rot_180()
1215 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_rot_180()
1259 jpeg_component_info *compptr; in do_transverse() local
1267 compptr = dstinfo->comp_info + ci; in do_transverse()
1268 comp_width = MCU_cols * compptr->h_samp_factor; in do_transverse()
1269 comp_height = MCU_rows * compptr->v_samp_factor; in do_transverse()
1270 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_transverse()
1271 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_transverse()
1272 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_transverse()
1273 dst_blk_y += compptr->v_samp_factor) { in do_transverse()
1276 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_transverse()
1277 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_transverse()
1278 for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks; in do_transverse()
1279 dst_blk_x += compptr->h_samp_factor) { in do_transverse()
1285 (JDIMENSION)compptr->h_samp_factor, in do_transverse()
1286 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_transverse()
1291 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_transverse()
1293 for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) { in do_transverse()
1298 src_ptr = src_buffer[compptr->h_samp_factor - offset_x - 1] in do_transverse()
1328 src_ptr = src_buffer[compptr->h_samp_factor - offset_x - 1] in do_transverse()
1495 jpeg_component_info *compptr; in jtransform_request_workspace() local
1798 compptr = srcinfo->comp_info + ci; in jtransform_request_workspace()
1803 h_samp_factor = compptr->v_samp_factor; in jtransform_request_workspace()
1804 v_samp_factor = compptr->h_samp_factor; in jtransform_request_workspace()
1806 h_samp_factor = compptr->h_samp_factor; in jtransform_request_workspace()
1807 v_samp_factor = compptr->v_samp_factor; in jtransform_request_workspace()
1829 jpeg_component_info *compptr; in transpose_critical_parameters() local
1846 compptr = dstinfo->comp_info + ci; in transpose_critical_parameters()
1847 itemp = compptr->h_samp_factor; in transpose_critical_parameters()
1848 compptr->h_samp_factor = compptr->v_samp_factor; in transpose_critical_parameters()
1849 compptr->v_samp_factor = itemp; in transpose_critical_parameters()