From 992611b689d35e8c5a0f5d0ed5ab40153cebc7ce Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 26 Feb 2011 20:15:27 +0000 Subject: [PATCH] "tjScaledSize"="tjGetScaledSize" (again) git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@459 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/turbojpeg.h b/turbojpeg.h index 331a6e4..1c798fb 100644 --- a/turbojpeg.h +++ b/turbojpeg.h @@ -283,8 +283,8 @@ DLLEXPORT int DLLCALL tjGetScaledSize(int input_width, int input_height, [INPUT] dstbuf = pointer to user-allocated image buffer which will receive the bitmap image. This buffer should normally be pitch*scaled_height bytes in size, where scaled_height is determined by calling - tjScaledSize() with the height of the desired output image. This pointer - may also be used to decompress into a specific region of a + tjGetScaledSize() with the height of the desired output image. This + pointer may also be used to decompress into a specific region of a larger buffer. [INPUT] width = desired width (in pixels) of the destination image. If this is smaller than the width of the JPEG image being decompressed, then @@ -296,9 +296,10 @@ DLLEXPORT int DLLCALL tjGetScaledSize(int input_width, int input_height, scaled_width*pixelsize if the bitmap image is unpadded, else TJPAD(scaled_width*pixelsize) if each line of the bitmap is padded to the nearest 32-bit boundary, such as is the case for Windows bitmaps. - (NOTE: scaled_width can be determined by calling tjScaledSize().) You can - also be clever and use this parameter to skip lines, etc. Setting this - parameter to 0 is the equivalent of setting it to scaled_width*pixelsize. + (NOTE: scaled_width can be determined by calling tjGetScaledSize().) You + can also be clever and use this parameter to skip lines, etc. Setting + this parameter to 0 is the equivalent of setting it to + scaled_width*pixelsize. [INPUT] height = desired height (in pixels) of the destination image. If this is smaller than the height of the JPEG image being decompressed, then TurboJPEG will use scaling in the JPEG decompressor to generate the -- 2.50.0