Lines Matching refs:height
294 while(height--) \
309 int height, int pixelFormat, unsigned char *dst)
354 while(height--) \
370 int pitch, int height, int pixelFormat)
498 DLLEXPORT unsigned long DLLCALL tjBufSize(int width, int height,
502 if(width<1 || height<1 || jpegSubsamp<0 || jpegSubsamp>=NUMSUBOPT)
513 retval=PAD(width, mcuw) * PAD(height, mcuh) * (2 + chromasf) + 2048;
520 DLLEXPORT unsigned long DLLCALL TJBUFSIZE(int width, int height)
523 if(width<1 || height<1)
531 retval=PAD(width, 16) * PAD(height, 16) * 6 + 2048;
539 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf,
551 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0
568 rgbBuf=(unsigned char *)malloc(width*height*RGB_PIXELSIZE);
570 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf);
576 cinfo->image_height=height;
586 this->jdst.free_in_buffer=tjBufSize(width, height, jpegSubsamp);
589 if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW)*height))==NULL)
591 for(i=0; i<height; i++)
593 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch];
602 *jpegSize=tjBufSize(width, height, jpegSubsamp)
615 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf,
619 retval=tjCompress2(handle, srcBuf, width, pitch, height,
685 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height,
694 if(jpegBuf==NULL || jpegSize<=0 || width==NULL || height==NULL
709 *height=dinfo->image_height;
716 if(*width<1 || *height<1)
724 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height)
727 return tjDecompressHeader2(handle, jpegBuf, jpegSize, width, height,
748 int height, int pixelFormat, int flags)
762 || height<0 || pixelFormat<0 || pixelFormat>=TJ_NUMPF)
788 if(height==0) height=jpegheight;
793 if(scaledw<=width && scaledh<=height)
796 if(scaledw>width || scaledh>height)
798 width=scaledw; height=scaledh;
812 rgbBuf=(unsigned char *)malloc(width*height*3);
836 fromRGB(rgbBuf, _dstBuf, width, _pitch, height, pixelFormat);
850 int height, int pixelSize, int flags)
853 height, getPixelFormat(pixelSize, flags), flags);