Lines Matching refs:row_pointer
735 int i, retval=0, alloc=1; JSAMPROW *row_pointer=NULL; in tjCompress2() local
784 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*height))==NULL) in tjCompress2()
788 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjCompress2()
789 else row_pointer[i]=&srcBuf[i*pitch]; in tjCompress2()
793 jpeg_write_scanlines(cinfo, &row_pointer[cinfo->next_scanline], in tjCompress2()
803 if(row_pointer) free(row_pointer); in tjCompress2()
834 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjEncodeYUVPlanes() local
909 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*ph0))==NULL) in tjEncodeYUVPlanes()
913 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjEncodeYUVPlanes()
914 else row_pointer[i]=&srcBuf[i*pitch]; in tjEncodeYUVPlanes()
917 for(i=height; i<ph0; i++) row_pointer[i]=row_pointer[height-1]; in tjEncodeYUVPlanes()
962 (*cinfo->cconvert->color_convert)(cinfo, &row_pointer[row], tmpbuf, 0, in tjEncodeYUVPlanes()
978 if(row_pointer) free(row_pointer); in tjEncodeYUVPlanes()
1339 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjDecompress2() local
1407 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW) in tjDecompress2()
1413 row_pointer[i]=&dstBuf[(dinfo->output_height-i-1)*pitch]; in tjDecompress2()
1414 else row_pointer[i]=&dstBuf[i*pitch]; in tjDecompress2()
1418 jpeg_read_scanlines(dinfo, &row_pointer[dinfo->output_scanline], in tjDecompress2()
1432 if(row_pointer) free(row_pointer); in tjDecompress2()
1506 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjDecodeYUVPlanes() local
1594 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*ph0))==NULL) in tjDecodeYUVPlanes()
1598 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&dstBuf[(height-i-1)*pitch]; in tjDecodeYUVPlanes()
1599 else row_pointer[i]=&dstBuf[i*pitch]; in tjDecodeYUVPlanes()
1602 for(i=height; i<ph0; i++) row_pointer[i]=row_pointer[height-1]; in tjDecodeYUVPlanes()
1639 dinfo->max_v_samp_factor, &row_pointer[row], &outrow, in tjDecodeYUVPlanes()
1653 if(row_pointer) free(row_pointer); in tjDecodeYUVPlanes()