• Home
  • Raw
  • Download

Lines Matching refs:PAD

53 #define PAD(v, p)  ((v + (p) - 1) & (~((p) - 1)))  macro
536 retval = PAD(width, mcuw) * PAD(height, mcuh) * (2ULL + chromasf) + 2048ULL; in tjBufSize()
554 retval = PAD(width, 16) * PAD(height, 16) * 6ULL + 2048ULL; in TJBUFSIZE()
575 int stride = PAD(pw, pad); in tjBufSizeYUV2()
609 pw = PAD(width, tjMCUWidth[subsamp] / 8); in tjPlaneWidth()
630 ph = PAD(height, tjMCUHeight[subsamp] / 8); in tjPlaneHeight()
820 pw0 = PAD(width, cinfo->max_h_samp_factor); in tjEncodeYUVPlanes()
821 ph0 = PAD(height, cinfo->max_v_samp_factor); in tjEncodeYUVPlanes()
837 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
848 (unsigned char *)PAD((size_t)_tmpbuf[i], 32); in tjEncodeYUVPlanes()
851 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
855 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes()
864 (unsigned char *)PAD((size_t)_tmpbuf2[i], 32); in tjEncodeYUVPlanes()
867 &_tmpbuf2_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjEncodeYUVPlanes()
933 strides[0] = PAD(pw0, pad); in tjEncodeYUV3()
941 strides[1] = strides[2] = PAD(pw1, pad); in tjEncodeYUV3()
1030 pw[i] = PAD(cinfo->image_width, cinfo->max_h_samp_factor) * in tjCompressFromYUVPlanes()
1032 ph[i] = PAD(cinfo->image_height, cinfo->max_v_samp_factor) * in tjCompressFromYUVPlanes()
1128 strides[0] = PAD(pw0, pad); in tjCompressFromYUV()
1136 strides[1] = strides[2] = PAD(pw1, pad); in tjCompressFromYUV()
1499 pw0 = PAD(width, dinfo->max_h_samp_factor); in tjDecodeYUVPlanes()
1500 ph0 = PAD(height, dinfo->max_v_samp_factor); in tjDecodeYUVPlanes()
1518 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjDecodeYUVPlanes()
1527 (unsigned char *)PAD((size_t)_tmpbuf[i], 32); in tjDecodeYUVPlanes()
1530 &_tmpbuf_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjDecodeYUVPlanes()
1595 strides[0] = PAD(pw0, pad); in tjDecodeYUV()
1603 strides[1] = strides[2] = PAD(pw1, pad); in tjDecodeYUV()
1837 strides[0] = PAD(pw0, pad); in tjDecompressToYUV2()
1845 strides[1] = strides[2] = PAD(pw1, pad); in tjDecompressToYUV2()
2115 pitch = PAD((*width) * tjPixelSize[*pixelFormat], align); in tjLoadImage()