Lines Matching refs:compptr
767 jpeg_component_info *compptr; in tjEncodeYUVPlanes() local
835 compptr = &cinfo->comp_info[i]; in tjEncodeYUVPlanes()
837 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
838 compptr->h_samp_factor, 32) * in tjEncodeYUVPlanes()
851 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
852 compptr->h_samp_factor, 32) * row]; in tjEncodeYUVPlanes()
855 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes()
856 compptr->v_samp_factor + 32); in tjEncodeYUVPlanes()
859 tmpbuf2[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjEncodeYUVPlanes()
862 for (row = 0; row < compptr->v_samp_factor; row++) { in tjEncodeYUVPlanes()
867 &_tmpbuf2_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjEncodeYUVPlanes()
869 pw[i] = pw0 * compptr->h_samp_factor / cinfo->max_h_samp_factor; in tjEncodeYUVPlanes()
870 ph[i] = ph0 * compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjEncodeYUVPlanes()
890 for (i = 0, compptr = cinfo->comp_info; i < cinfo->num_components; in tjEncodeYUVPlanes()
891 i++, compptr++) in tjEncodeYUVPlanes()
893 row * compptr->v_samp_factor / cinfo->max_v_samp_factor, in tjEncodeYUVPlanes()
894 compptr->v_samp_factor, pw[i]); in tjEncodeYUVPlanes()
1025 jpeg_component_info *compptr = &cinfo->comp_info[i]; in tjCompressFromYUVPlanes() local
1028 iw[i] = compptr->width_in_blocks * DCTSIZE; in tjCompressFromYUVPlanes()
1029 ih = compptr->height_in_blocks * DCTSIZE; in tjCompressFromYUVPlanes()
1031 compptr->h_samp_factor / cinfo->max_h_samp_factor; in tjCompressFromYUVPlanes()
1033 compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjCompressFromYUVPlanes()
1035 th[i] = compptr->v_samp_factor * DCTSIZE; in tjCompressFromYUVPlanes()
1070 jpeg_component_info *compptr = &cinfo->comp_info[i]; in tjCompressFromYUVPlanes() local
1072 crow[i] = row * compptr->v_samp_factor / cinfo->max_v_samp_factor; in tjCompressFromYUVPlanes()
1399 jpeg_component_info *compptr = &dinfo->comp_info[i]; in setDecodeDefaults() local
1401 compptr->h_samp_factor = (i == 0) ? tjMCUWidth[subsamp] / 8 : 1; in setDecodeDefaults()
1402 compptr->v_samp_factor = (i == 0) ? tjMCUHeight[subsamp] / 8 : 1; in setDecodeDefaults()
1403 compptr->component_index = i; in setDecodeDefaults()
1404 compptr->component_id = i + 1; in setDecodeDefaults()
1405 compptr->quant_tbl_no = compptr->dc_tbl_no = in setDecodeDefaults()
1406 compptr->ac_tbl_no = (i == 0) ? 0 : 1; in setDecodeDefaults()
1407 dinfo->cur_comp_info[i] = compptr; in setDecodeDefaults()
1439 jpeg_component_info *compptr; in tjDecodeYUVPlanes() local
1516 compptr = &dinfo->comp_info[i]; in tjDecodeYUVPlanes()
1518 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjDecodeYUVPlanes()
1519 compptr->v_samp_factor + 32); in tjDecodeYUVPlanes()
1522 tmpbuf[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjDecodeYUVPlanes()
1525 for (row = 0; row < compptr->v_samp_factor; row++) { in tjDecodeYUVPlanes()
1530 &_tmpbuf_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjDecodeYUVPlanes()
1532 pw[i] = pw0 * compptr->h_samp_factor / dinfo->max_h_samp_factor; in tjDecodeYUVPlanes()
1533 ph[i] = ph0 * compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecodeYUVPlanes()
1552 for (i = 0, compptr = dinfo->comp_info; i < dinfo->num_components; in tjDecodeYUVPlanes()
1553 i++, compptr++) in tjDecodeYUVPlanes()
1555 row * compptr->v_samp_factor / dinfo->max_v_samp_factor, tmpbuf[i], 0, in tjDecodeYUVPlanes()
1556 compptr->v_samp_factor, pw[i]); in tjDecodeYUVPlanes()
1698 jpeg_component_info *compptr = &dinfo->comp_info[i]; in tjDecompressToYUVPlanes() local
1701 iw[i] = compptr->width_in_blocks * dctsize; in tjDecompressToYUVPlanes()
1702 ih = compptr->height_in_blocks * dctsize; in tjDecompressToYUVPlanes()
1706 th[i] = compptr->v_samp_factor * dctsize; in tjDecompressToYUVPlanes()
1746 jpeg_component_info *compptr = &dinfo->comp_info[i]; in tjDecompressToYUVPlanes() local
1759 compptr->_DCT_scaled_size = dctsize; in tjDecompressToYUVPlanes()
1760 compptr->MCU_sample_width = tjMCUWidth[jpegSubsamp] * in tjDecompressToYUVPlanes()
1762 compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecompressToYUVPlanes()
1765 crow[i] = row * compptr->v_samp_factor / dinfo->max_v_samp_factor; in tjDecompressToYUVPlanes()
2011 jpeg_component_info *compptr = &cinfo->comp_info[ci]; in tjTransform() local
2013 0, 0, compptr->width_in_blocks * DCTSIZE, DCTSIZE in tjTransform()
2016 0, 0, compptr->width_in_blocks * DCTSIZE, in tjTransform()
2017 compptr->height_in_blocks * DCTSIZE in tjTransform()
2020 for (by = 0; by < compptr->height_in_blocks; in tjTransform()
2021 by += compptr->v_samp_factor) { in tjTransform()
2023 ((j_common_ptr)dinfo, dstcoefs[ci], by, compptr->v_samp_factor, in tjTransform()
2026 for (y = 0; y < compptr->v_samp_factor; y++) { in tjTransform()