Lines Matching refs:PAD
52 #define PAD(v, p) ((v + (p) - 1) & (~((p) - 1))) macro
504 retval = PAD(width, mcuw) * PAD(height, mcuh) * (2 + chromasf) + 2048; in tjBufSize()
520 retval = PAD(width, 16) * PAD(height, 16) * 6 + 2048; in TJBUFSIZE()
538 int stride = PAD(pw, pad); in tjBufSizeYUV2()
570 pw = PAD(width, tjMCUWidth[subsamp] / 8); in tjPlaneWidth()
591 ph = PAD(height, tjMCUHeight[subsamp] / 8); in tjPlaneHeight()
777 pw0 = PAD(width, cinfo->max_h_samp_factor); in tjEncodeYUVPlanes()
778 ph0 = PAD(height, cinfo->max_v_samp_factor); in tjEncodeYUVPlanes()
794 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
805 (unsigned char *)PAD((size_t)_tmpbuf[i], 32); in tjEncodeYUVPlanes()
808 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
812 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes()
821 (unsigned char *)PAD((size_t)_tmpbuf2[i], 32); in tjEncodeYUVPlanes()
824 &_tmpbuf2_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjEncodeYUVPlanes()
890 strides[0] = PAD(pw0, pad); in tjEncodeYUV3()
898 strides[1] = strides[2] = PAD(pw1, pad); in tjEncodeYUV3()
988 pw[i] = PAD(cinfo->image_width, cinfo->max_h_samp_factor) * in tjCompressFromYUVPlanes()
990 ph[i] = PAD(cinfo->image_height, cinfo->max_v_samp_factor) * in tjCompressFromYUVPlanes()
1083 strides[0] = PAD(pw0, pad); in tjCompressFromYUV()
1091 strides[1] = strides[2] = PAD(pw1, pad); in tjCompressFromYUV()
1442 pw0 = PAD(width, dinfo->max_h_samp_factor); in tjDecodeYUVPlanes()
1443 ph0 = PAD(height, dinfo->max_v_samp_factor); in tjDecodeYUVPlanes()
1461 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjDecodeYUVPlanes()
1470 (unsigned char *)PAD((size_t)_tmpbuf[i], 32); in tjDecodeYUVPlanes()
1473 &_tmpbuf_aligned[PAD(compptr->width_in_blocks * DCTSIZE, 32) * row]; in tjDecodeYUVPlanes()
1538 strides[0] = PAD(pw0, pad); in tjDecodeYUV()
1546 strides[1] = strides[2] = PAD(pw1, pad); in tjDecodeYUV()
1637 pw[i] = PAD(dinfo->output_width, dinfo->max_h_samp_factor) * in tjDecompressToYUVPlanes()
1639 ph[i] = PAD(dinfo->output_height, dinfo->max_v_samp_factor) * in tjDecompressToYUVPlanes()
1773 strides[0] = PAD(pw0, pad); in tjDecompressToYUV2()
1781 strides[1] = strides[2] = PAD(pw1, pad); in tjDecompressToYUV2()
2033 pitch = PAD((*width) * tjPixelSize[*pixelFormat], align); in tjLoadImage()