Lines Matching refs:tmpbuf
836 JSAMPROW *tmpbuf[MAX_COMPONENTS], *tmpbuf2[MAX_COMPONENTS]; in tjEncodeYUVPlanes() local
849 tmpbuf[i]=NULL; _tmpbuf[i]=NULL; in tjEncodeYUVPlanes()
926 tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*cinfo->max_v_samp_factor); in tjEncodeYUVPlanes()
927 if(!tmpbuf[i]) _throw("tjEncodeYUVPlanes(): Memory allocation failure"); in tjEncodeYUVPlanes()
932 tmpbuf[i][row]=&_tmpbuf_aligned[ in tjEncodeYUVPlanes()
962 (*cinfo->cconvert->color_convert)(cinfo, &row_pointer[row], tmpbuf, 0, in tjEncodeYUVPlanes()
964 (cinfo->downsample->downsample)(cinfo, tmpbuf, 0, tmpbuf2, 0); in tjEncodeYUVPlanes()
981 if(tmpbuf[i]!=NULL) free(tmpbuf[i]); in tjEncodeYUVPlanes()
1051 JSAMPLE *_tmpbuf=NULL, *ptr; JSAMPROW *tmpbuf[MAX_COMPONENTS]; in tjCompressFromYUVPlanes() local
1057 tmpbuf[i]=NULL; inbuf[i]=NULL; in tjCompressFromYUVPlanes()
1123 if((tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*th[i]))==NULL) in tjCompressFromYUVPlanes()
1127 tmpbuf[i][row]=ptr; in tjCompressFromYUVPlanes()
1147 memcpy(tmpbuf[i][j], inbuf[i][crow[i]+j], pw[i]); in tjCompressFromYUVPlanes()
1149 for(k=pw[i]; k<iw[i]; k++) tmpbuf[i][j][k]=tmpbuf[i][j][pw[i]-1]; in tjCompressFromYUVPlanes()
1153 memcpy(tmpbuf[i][j], tmpbuf[i][ph[i]-crow[i]-1], iw[i]); in tjCompressFromYUVPlanes()
1154 yuvptr[i]=tmpbuf[i]; in tjCompressFromYUVPlanes()
1167 if(tmpbuf[i]) free(tmpbuf[i]); in tjCompressFromYUVPlanes()
1508 JSAMPROW *tmpbuf[MAX_COMPONENTS], *inbuf[MAX_COMPONENTS]; in tjDecodeYUVPlanes() local
1523 tmpbuf[i]=NULL; _tmpbuf[i]=NULL; inbuf[i]=NULL; in tjDecodeYUVPlanes()
1610 tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*compptr->v_samp_factor); in tjDecodeYUVPlanes()
1611 if(!tmpbuf[i]) _throw("tjDecodeYUVPlanes(): Memory allocation failure"); in tjDecodeYUVPlanes()
1616 tmpbuf[i][row]=&_tmpbuf_aligned[ in tjDecodeYUVPlanes()
1636 row*compptr->v_samp_factor/dinfo->max_v_samp_factor, tmpbuf[i], 0, in tjDecodeYUVPlanes()
1638 (dinfo->upsample->upsample)(dinfo, tmpbuf, &inrow, in tjDecodeYUVPlanes()
1656 if(tmpbuf[i]!=NULL) free(tmpbuf[i]); in tjDecodeYUVPlanes()
1708 JSAMPLE *_tmpbuf=NULL, *ptr; JSAMPROW *tmpbuf[MAX_COMPONENTS]; in tjDecompressToYUVPlanes() local
1715 tmpbuf[i]=NULL; outbuf[i]=NULL; in tjDecompressToYUVPlanes()
1801 if((tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*th[i]))==NULL) in tjDecompressToYUVPlanes()
1805 tmpbuf[i][row]=ptr; in tjDecompressToYUVPlanes()
1843 if(usetmpbuf) yuvptr[i]=tmpbuf[i]; in tjDecompressToYUVPlanes()
1855 memcpy(outbuf[i][crow[i]+j], tmpbuf[i][j], pw[i]); in tjDecompressToYUVPlanes()
1866 if(tmpbuf[i]) free(tmpbuf[i]); in tjDecompressToYUVPlanes()