Lines Matching refs:row_pointer
770 int i, retval=0, alloc=1; JSAMPROW *row_pointer=NULL; in tjCompress2() local
819 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*height))==NULL) in tjCompress2()
824 row_pointer[i]=(JSAMPROW)&srcBuf[(height-i-1)*(size_t)pitch]; in tjCompress2()
825 else row_pointer[i]=(JSAMPROW)&srcBuf[i*(size_t)pitch]; in tjCompress2()
829 jpeg_write_scanlines(cinfo, &row_pointer[cinfo->next_scanline], in tjCompress2()
839 if(row_pointer) free(row_pointer); in tjCompress2()
871 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjEncodeYUVPlanes() local
946 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*ph0))==NULL) in tjEncodeYUVPlanes()
951 row_pointer[i]=(JSAMPROW)&srcBuf[(height-i-1)*(size_t)pitch]; in tjEncodeYUVPlanes()
952 else row_pointer[i]=(JSAMPROW)&srcBuf[i*(size_t)pitch]; in tjEncodeYUVPlanes()
955 for(i=height; i<ph0; i++) row_pointer[i]=row_pointer[height-1]; in tjEncodeYUVPlanes()
1000 (*cinfo->cconvert->color_convert)(cinfo, &row_pointer[row], tmpbuf, 0, in tjEncodeYUVPlanes()
1016 if(row_pointer) free(row_pointer); in tjEncodeYUVPlanes()
1379 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjDecompress2() local
1447 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW) in tjDecompress2()
1453 row_pointer[i]=&dstBuf[(dinfo->output_height-i-1)*(size_t)pitch]; in tjDecompress2()
1454 else row_pointer[i]=&dstBuf[i*(size_t)pitch]; in tjDecompress2()
1458 jpeg_read_scanlines(dinfo, &row_pointer[dinfo->output_scanline], in tjDecompress2()
1472 if(row_pointer) free(row_pointer); in tjDecompress2()
1547 int i, retval=0; JSAMPROW *row_pointer=NULL; in tjDecodeYUVPlanes() local
1635 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*ph0))==NULL) in tjDecodeYUVPlanes()
1639 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&dstBuf[(height-i-1)*(size_t)pitch]; in tjDecodeYUVPlanes()
1640 else row_pointer[i]=&dstBuf[i*(size_t)pitch]; in tjDecodeYUVPlanes()
1643 for(i=height; i<ph0; i++) row_pointer[i]=row_pointer[height-1]; in tjDecodeYUVPlanes()
1680 dinfo->max_v_samp_factor, &row_pointer[row], &outrow, in tjDecodeYUVPlanes()
1694 if(row_pointer) free(row_pointer); in tjDecodeYUVPlanes()