Lines Matching refs:compptr
724 jpeg_component_info *compptr; in tjEncodeYUVPlanes() local
792 compptr = &cinfo->comp_info[i]; in tjEncodeYUVPlanes()
794 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
795 compptr->h_samp_factor, 32) * in tjEncodeYUVPlanes()
808 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
809 compptr->h_samp_factor, 32) * row]; in tjEncodeYUVPlanes()
812 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes()
813 compptr->v_samp_factor + 32); in tjEncodeYUVPlanes()
816 tmpbuf2[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjEncodeYUVPlanes()
819 for (row = 0; row < compptr->v_samp_factor; row++) { in tjEncodeYUVPlanes()
824 &_tmpbuf2_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjEncodeYUVPlanes()
826 pw[i] = pw0 * compptr->h_samp_factor / cinfo->max_h_samp_factor; in tjEncodeYUVPlanes()
827 ph[i] = ph0 * compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjEncodeYUVPlanes()
847 for (i = 0, compptr = cinfo->comp_info; i < cinfo->num_components; in tjEncodeYUVPlanes()
848 i++, compptr++) in tjEncodeYUVPlanes()
850 row * compptr->v_samp_factor / cinfo->max_v_samp_factor, in tjEncodeYUVPlanes()
851 compptr->v_samp_factor, pw[i]); in tjEncodeYUVPlanes()
983 jpeg_component_info *compptr = &cinfo->comp_info[i]; in tjCompressFromYUVPlanes() local
986 iw[i] = compptr->width_in_blocks * DCTSIZE; in tjCompressFromYUVPlanes()
987 ih = compptr->height_in_blocks * DCTSIZE; in tjCompressFromYUVPlanes()
989 compptr->h_samp_factor / cinfo->max_h_samp_factor; in tjCompressFromYUVPlanes()
991 compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjCompressFromYUVPlanes()
993 th[i] = compptr->v_samp_factor * DCTSIZE; in tjCompressFromYUVPlanes()
1028 jpeg_component_info *compptr = &cinfo->comp_info[i]; in tjCompressFromYUVPlanes() local
1030 crow[i] = row * compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjCompressFromYUVPlanes()
1345 jpeg_component_info *compptr = &dinfo->comp_info[i]; in setDecodeDefaults() local
1347 compptr->h_samp_factor = (i == 0) ? tjMCUWidth[subsamp] / 8 : 1; in setDecodeDefaults()
1348 compptr->v_samp_factor = (i == 0) ? tjMCUHeight[subsamp] / 8 : 1; in setDecodeDefaults()
1349 compptr->component_index = i; in setDecodeDefaults()
1350 compptr->component_id = i + 1; in setDecodeDefaults()
1351 compptr->quant_tbl_no = compptr->dc_tbl_no = in setDecodeDefaults()
1352 compptr->ac_tbl_no = (i == 0) ? 0 : 1; in setDecodeDefaults()
1353 dinfo->cur_comp_info[i] = compptr; in setDecodeDefaults()
1385 jpeg_component_info *compptr; in tjDecodeYUVPlanes() local
1459 compptr = &dinfo->comp_info[i]; in tjDecodeYUVPlanes()
1461 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjDecodeYUVPlanes()
1462 compptr->v_samp_factor + 32); in tjDecodeYUVPlanes()
1465 tmpbuf[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjDecodeYUVPlanes()
1468 for (row = 0; row < compptr->v_samp_factor; row++) { in tjDecodeYUVPlanes()
1473 &_tmpbuf_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjDecodeYUVPlanes()
1475 pw[i] = pw0 * compptr->h_samp_factor / dinfo->max_h_samp_factor; in tjDecodeYUVPlanes()
1476 ph[i] = ph0 * compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecodeYUVPlanes()
1495 for (i = 0, compptr = dinfo->comp_info; i < dinfo->num_components; in tjDecodeYUVPlanes()
1496 i++, compptr++) in tjDecodeYUVPlanes()
1498 row * compptr->v_samp_factor / dinfo->max_v_samp_factor, tmpbuf[i], 0, in tjDecodeYUVPlanes()
1499 compptr->v_samp_factor, pw[i]); in tjDecodeYUVPlanes()
1632 jpeg_component_info *compptr = &dinfo->comp_info[i]; in tjDecompressToYUVPlanes() local
1635 iw[i] = compptr->width_in_blocks * dctsize; in tjDecompressToYUVPlanes()
1636 ih = compptr->height_in_blocks * dctsize; in tjDecompressToYUVPlanes()
1638 compptr->h_samp_factor / dinfo->max_h_samp_factor; in tjDecompressToYUVPlanes()
1640 compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecompressToYUVPlanes()
1642 th[i] = compptr->v_samp_factor * dctsize; in tjDecompressToYUVPlanes()
1682 jpeg_component_info *compptr = &dinfo->comp_info[i]; in tjDecompressToYUVPlanes() local
1695 compptr->_DCT_scaled_size = dctsize; in tjDecompressToYUVPlanes()
1696 compptr->MCU_sample_width = tjMCUWidth[jpegSubsamp] * in tjDecompressToYUVPlanes()
1698 compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecompressToYUVPlanes()
1701 crow[i] = row * compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecompressToYUVPlanes()
1937 jpeg_component_info *compptr = &cinfo->comp_info[ci]; in tjTransform() local
1939 0, 0, compptr->width_in_blocks * DCTSIZE, DCTSIZE in tjTransform()
1942 0, 0, compptr->width_in_blocks * DCTSIZE, in tjTransform()
1943 compptr->height_in_blocks * DCTSIZE in tjTransform()
1946 for (by = 0; by < compptr->height_in_blocks; in tjTransform()
1947 by += compptr->v_samp_factor) { in tjTransform()
1949 ((j_common_ptr)dinfo, dstcoefs[ci], by, compptr->v_samp_factor, in tjTransform()
1952 for (y = 0; y < compptr->v_samp_factor; y++) { in tjTransform()