diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 62f6406f..bc498c3d 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -2,35 +2,45 @@ + + TurboJPEG: Data Structures + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + -
-
-
-
Data Structures
-
-
-
Here are the data structures with brief descriptions:
- - - -
tjregionCropping region
tjscalingfactorScaling factor
tjtransformLossless transform
-
+
- All Data Structures Variables
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
@@ -81,8 +80,24 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
- +
+
+
Data Structures
+
+
+
Here are the data structures with brief descriptions:
+ + + + +
oCtjregionCropping region
oCtjscalingfactorScaling factor
\CtjtransformLossless transform
+
+
+ + diff --git a/doc/html/classes.html b/doc/html/classes.html index 32bb89b7..78b87720 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -2,35 +2,45 @@ + + TurboJPEG: Data Structure Index + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + -
-
-
-
Data Structure Index
-
-
- - -
  T  
-
tjregion   tjscalingfactor   tjtransform   
-
+
- All Data Structures Variables
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
@@ -80,8 +80,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
- +
+
+
Data Structure Index
+
+
+
T
+ + + + + +
  T  
+
tjscalingfactor   tjtransform   
tjregion   
+
T
+
+ + diff --git a/doc/html/functions.html b/doc/html/functions.html index efe3a42b..e75c84e7 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -2,35 +2,45 @@ + + TurboJPEG: Data Fields + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + +
+ +
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
+ + +
+
+
Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:
-
- -
- All Data Structures Variables
- - -
- -
- - +
+ + diff --git a/doc/html/functions_vars.html b/doc/html/functions_vars.html index e8ee49f4..b0eefd72 100644 --- a/doc/html/functions_vars.html +++ b/doc/html/functions_vars.html @@ -2,35 +2,45 @@ + + TurboJPEG: Data Fields - Variables + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + +
+ +
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
+ + +
+
+
  -
- -
- All Data Structures Variables
- - -
- -
- - +
+ + diff --git a/doc/html/group___turbo_j_p_e_g.html b/doc/html/group___turbo_j_p_e_g.html index 3eff54b4..29f51dc0 100644 --- a/doc/html/group___turbo_j_p_e_g.html +++ b/doc/html/group___turbo_j_p_e_g.html @@ -2,35 +2,45 @@ + + TurboJPEG: TurboJPEG + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + +
+ +
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
+ + +
+
+
TurboJPEG
-
+

TurboJPEG API. More...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +

+

Data Structures

struct  tjscalingfactor
 Scaling factor. More...
struct  tjregion
 Cropping region. More...
struct  tjtransform
 Lossless transform. More...

-Defines

#define TJ_NUMSAMP
 The number of chrominance subsampling options.
#define TJ_NUMPF
 The number of pixel formats.
#define TJFLAG_BOTTOMUP
 The uncompressed source/destination image is stored in bottom-up (Windows, OpenGL) order, not top-down (X11) order.
#define TJFLAG_FORCEMMX
 Turn off CPU auto-detection and force TurboJPEG to use MMX code (if the underlying codec supports it.)
#define TJFLAG_FORCESSE
 Turn off CPU auto-detection and force TurboJPEG to use SSE code (if the underlying codec supports it.)
#define TJFLAG_FORCESSE2
 Turn off CPU auto-detection and force TurboJPEG to use SSE2 code (if the underlying codec supports it.)
#define TJFLAG_FORCESSE3
 Turn off CPU auto-detection and force TurboJPEG to use SSE3 code (if the underlying codec supports it.)
#define TJFLAG_FASTUPSAMPLE
 When decompressing an image that was compressed using chrominance subsampling, use the fastest chrominance upsampling algorithm available in the underlying codec.
#define TJFLAG_NOREALLOC
 Disable buffer (re)allocation.
#define TJFLAG_FASTDCT
 Use the fastest DCT/IDCT algorithm available in the underlying codec.
#define TJFLAG_ACCURATEDCT
 Use the most accurate DCT/IDCT algorithm available in the underlying codec.
#define TJ_NUMXOP
 The number of transform operations.
#define TJXOPT_PERFECT
 This option will cause tjTransform() to return an error if the transform is not perfect.
#define TJXOPT_TRIM
 This option will cause tjTransform() to discard any partial MCU blocks that cannot be transformed.
#define TJXOPT_CROP
 This option will enable lossless cropping.
#define TJXOPT_GRAY
 This option will discard the color data in the input image and produce a grayscale output image.
#define TJXOPT_NOOUTPUT
 This option will prevent tjTransform() from outputting a JPEG image for this particular transform (this can be used in conjunction with a custom filter to capture the transformed DCT coefficients without transcoding them.)
#define TJPAD(width)
 Pad the given width to the nearest 32-bit boundary.
#define TJSCALED(dimension, scalingFactor)
 Compute the scaled value of dimension using the given scaling factor.

+

struct  tjscalingfactor
 Scaling factor. More...
 
struct  tjregion
 Cropping region. More...
 
struct  tjtransform
 Lossless transform. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define TJ_NUMSAMP
 The number of chrominance subsampling options. More...
 
#define TJ_NUMPF
 The number of pixel formats. More...
 
#define TJFLAG_BOTTOMUP
 The uncompressed source/destination image is stored in bottom-up (Windows, OpenGL) order, not top-down (X11) order. More...
 
#define TJFLAG_FORCEMMX
 Turn off CPU auto-detection and force TurboJPEG to use MMX code (if the underlying codec supports it.) More...
 
#define TJFLAG_FORCESSE
 Turn off CPU auto-detection and force TurboJPEG to use SSE code (if the underlying codec supports it.) More...
 
#define TJFLAG_FORCESSE2
 Turn off CPU auto-detection and force TurboJPEG to use SSE2 code (if the underlying codec supports it.) More...
 
#define TJFLAG_FORCESSE3
 Turn off CPU auto-detection and force TurboJPEG to use SSE3 code (if the underlying codec supports it.) More...
 
#define TJFLAG_FASTUPSAMPLE
 When decompressing an image that was compressed using chrominance subsampling, use the fastest chrominance upsampling algorithm available in the underlying codec. More...
 
#define TJFLAG_NOREALLOC
 Disable buffer (re)allocation. More...
 
#define TJFLAG_FASTDCT
 Use the fastest DCT/IDCT algorithm available in the underlying codec. More...
 
#define TJFLAG_ACCURATEDCT
 Use the most accurate DCT/IDCT algorithm available in the underlying codec. More...
 
#define TJ_NUMXOP
 The number of transform operations. More...
 
#define TJXOPT_PERFECT
 This option will cause tjTransform() to return an error if the transform is not perfect. More...
 
#define TJXOPT_TRIM
 This option will cause tjTransform() to discard any partial MCU blocks that cannot be transformed. More...
 
#define TJXOPT_CROP
 This option will enable lossless cropping. More...
 
#define TJXOPT_GRAY
 This option will discard the color data in the input image and produce a grayscale output image. More...
 
#define TJXOPT_NOOUTPUT
 This option will prevent tjTransform() from outputting a JPEG image for this particular transform (this can be used in conjunction with a custom filter to capture the transformed DCT coefficients without transcoding them.) More...
 
#define TJPAD(width)
 Pad the given width to the nearest 32-bit boundary. More...
 
#define TJSCALED(dimension, scalingFactor)
 Compute the scaled value of dimension using the given scaling factor. More...
 
+ - - - - - + + + + + +

Typedefs

typedef struct tjtransform tjtransform
 Lossless transform.
typedef void * tjhandle
 TurboJPEG instance handle.

+

typedef struct tjtransform tjtransform
 Lossless transform. More...
 
typedef void * tjhandle
 TurboJPEG instance handle. More...
 
+ -   TJSAMP_440
} - - + +TJPF_ARGB
} - - + +TJXOP_ROT270
} - - + +

Enumerations

enum  TJSAMP {
+
enum  TJSAMP {
  TJSAMP_444, TJSAMP_422, TJSAMP_420, @@ -130,8 +181,9 @@ Enumerations
 Chrominance subsampling options. More...
enum  TJPF {
+
 Chrominance subsampling options. More...
 
enum  TJPF {
  TJPF_RGB, TJPF_BGR, TJPF_RGBX, @@ -147,8 +199,9 @@ Enumerations
 Pixel formats. More...
enum  TJXOP {
+
 Pixel formats. More...
 
enum  TJXOP {
  TJXOP_NONE, TJXOP_HFLIP, TJXOP_VFLIP, @@ -160,61 +213,86 @@ Enumerations
 Transform operations for tjTransform() More...

+

 Transform operations for tjTransform() More...
 
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

DLLEXPORT tjhandle DLLCALL tjInitCompress (void)
 Create a TurboJPEG compressor instance.
DLLEXPORT int DLLCALL tjCompress2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags)
 Compress an RGB or grayscale image into a JPEG image.
DLLEXPORT unsigned long DLLCALL tjBufSize (int width, int height, int jpegSubsamp)
 The maximum size of the buffer (in bytes) required to hold a JPEG image with the given parameters.
DLLEXPORT unsigned long DLLCALL tjBufSizeYUV (int width, int height, int subsamp)
 The size of the buffer (in bytes) required to hold a YUV planar image with the given parameters.
DLLEXPORT int DLLCALL tjEncodeYUV2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags)
 Encode an RGB or grayscale image into a YUV planar image.
DLLEXPORT tjhandle DLLCALL tjInitDecompress (void)
 Create a TurboJPEG decompressor instance.
DLLEXPORT int DLLCALL tjDecompressHeader2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, int *jpegSubsamp)
 Retrieve information about a JPEG image without decompressing it.
DLLEXPORT tjscalingfactor *DLLCALL tjGetScalingFactors (int *numscalingfactors)
 Returns a list of fractional scaling factors that the JPEG decompressor in this implementation of TurboJPEG supports.
DLLEXPORT int DLLCALL tjDecompress2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags)
 Decompress a JPEG image to an RGB or grayscale image.
DLLEXPORT int DLLCALL tjDecompressToYUV (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int flags)
 Decompress a JPEG image to a YUV planar image.
DLLEXPORT tjhandle DLLCALL tjInitTransform (void)
 Create a new TurboJPEG transformer instance.
DLLEXPORT int DLLCALL tjTransform (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *transforms, int flags)
 Losslessly transform a JPEG image into another JPEG image.
DLLEXPORT int DLLCALL tjDestroy (tjhandle handle)
 Destroy a TurboJPEG compressor, decompressor, or transformer instance.
DLLEXPORT unsigned char *DLLCALL tjAlloc (int bytes)
 Allocate an image buffer for use with TurboJPEG.
DLLEXPORT void DLLCALL tjFree (unsigned char *buffer)
 Free an image buffer previously allocated by TurboJPEG.
DLLEXPORT char *DLLCALL tjGetErrorStr (void)
 Returns a descriptive error message explaining why the last command failed.

+

DLLEXPORT tjhandle DLLCALL tjInitCompress (void)
 Create a TurboJPEG compressor instance. More...
 
DLLEXPORT int DLLCALL tjCompress2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags)
 Compress an RGB or grayscale image into a JPEG image. More...
 
DLLEXPORT unsigned long DLLCALL tjBufSize (int width, int height, int jpegSubsamp)
 The maximum size of the buffer (in bytes) required to hold a JPEG image with the given parameters. More...
 
DLLEXPORT unsigned long DLLCALL tjBufSizeYUV (int width, int height, int subsamp)
 The size of the buffer (in bytes) required to hold a YUV planar image with the given parameters. More...
 
DLLEXPORT int DLLCALL tjEncodeYUV2 (tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags)
 Encode an RGB or grayscale image into a YUV planar image. More...
 
DLLEXPORT tjhandle DLLCALL tjInitDecompress (void)
 Create a TurboJPEG decompressor instance. More...
 
DLLEXPORT int DLLCALL tjDecompressHeader2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, int *jpegSubsamp)
 Retrieve information about a JPEG image without decompressing it. More...
 
DLLEXPORT tjscalingfactor *DLLCALL tjGetScalingFactors (int *numscalingfactors)
 Returns a list of fractional scaling factors that the JPEG decompressor in this implementation of TurboJPEG supports. More...
 
DLLEXPORT int DLLCALL tjDecompress2 (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags)
 Decompress a JPEG image to an RGB or grayscale image. More...
 
DLLEXPORT int DLLCALL tjDecompressToYUV (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int flags)
 Decompress a JPEG image to a YUV planar image. More...
 
DLLEXPORT tjhandle DLLCALL tjInitTransform (void)
 Create a new TurboJPEG transformer instance. More...
 
DLLEXPORT int DLLCALL tjTransform (tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *transforms, int flags)
 Losslessly transform a JPEG image into another JPEG image. More...
 
DLLEXPORT int DLLCALL tjDestroy (tjhandle handle)
 Destroy a TurboJPEG compressor, decompressor, or transformer instance. More...
 
DLLEXPORT unsigned char *DLLCALL tjAlloc (int bytes)
 Allocate an image buffer for use with TurboJPEG. More...
 
DLLEXPORT void DLLCALL tjFree (unsigned char *buffer)
 Free an image buffer previously allocated by TurboJPEG. More...
 
DLLEXPORT char *DLLCALL tjGetErrorStr (void)
 Returns a descriptive error message explaining why the last command failed. More...
 
+ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +

Variables

static const int tjMCUWidth [TJ_NUMSAMP]
 MCU block width (in pixels) for a given level of chrominance subsampling.
static const int tjMCUHeight [TJ_NUMSAMP]
 MCU block height (in pixels) for a given level of chrominance subsampling.
static const int tjRedOffset [TJ_NUMPF]
 Red offset (in bytes) for a given pixel format.
static const int tjGreenOffset [TJ_NUMPF]
 Green offset (in bytes) for a given pixel format.
static const int tjBlueOffset [TJ_NUMPF]
 Blue offset (in bytes) for a given pixel format.
static const int tjPixelSize [TJ_NUMPF]
 Pixel size (in bytes) for a given pixel format.
static const int tjMCUWidth [TJ_NUMSAMP]
 MCU block width (in pixels) for a given level of chrominance subsampling. More...
 
static const int tjMCUHeight [TJ_NUMSAMP]
 MCU block height (in pixels) for a given level of chrominance subsampling. More...
 
static const int tjRedOffset [TJ_NUMPF]
 Red offset (in bytes) for a given pixel format. More...
 
static const int tjGreenOffset [TJ_NUMPF]
 Green offset (in bytes) for a given pixel format. More...
 
static const int tjBlueOffset [TJ_NUMPF]
 Blue offset (in bytes) for a given pixel format. More...
 
static const int tjPixelSize [TJ_NUMPF]
 Pixel size (in bytes) for a given pixel format. More...
 
-

Detailed Description

+

Detailed Description

TurboJPEG API.

This API provides an interface for generating, decoding, and transforming planar YUV and JPEG images in memory.

-

Define Documentation

- +

Macro Definition Documentation

+
@@ -222,14 +300,13 @@ Variables
#define TJ_NUMPF
-
-
+

The number of pixel formats.

- +
@@ -237,14 +314,13 @@ Variables
#define TJ_NUMSAMP
-
-
+

The number of chrominance subsampling options.

- +
@@ -252,14 +328,13 @@ Variables
#define TJ_NUMXOP
-
-
+

The number of transform operations.

- +
@@ -267,15 +342,14 @@ Variables
#define TJFLAG_ACCURATEDCT
-
-
+

Use the most accurate DCT/IDCT algorithm available in the underlying codec.

The default if this flag is not specified is implementation-specific. The libjpeg implementation, for example, uses the fast algorithm by default when compressing, because this has been shown to have only a very slight effect on accuracy, but it uses the accurate algorithm when decompressing, because this has been shown to have a larger effect.

- +
@@ -283,14 +357,13 @@ Variables
#define TJFLAG_BOTTOMUP
-
-
+

The uncompressed source/destination image is stored in bottom-up (Windows, OpenGL) order, not top-down (X11) order.

- +
@@ -298,15 +371,14 @@ Variables
#define TJFLAG_FASTDCT
-
-
+

Use the fastest DCT/IDCT algorithm available in the underlying codec.

The default if this flag is not specified is implementation-specific. The libjpeg implementation, for example, uses the fast algorithm by default when compressing, because this has been shown to have only a very slight effect on accuracy, but it uses the accurate algorithm when decompressing, because this has been shown to have a larger effect.

- +
@@ -314,15 +386,14 @@ Variables
#define TJFLAG_FASTUPSAMPLE
-
-
+

When decompressing an image that was compressed using chrominance subsampling, use the fastest chrominance upsampling algorithm available in the underlying codec.

The default is to use smooth upsampling, which creates a smooth transition between neighboring chrominance components in order to reduce upsampling artifacts in the decompressed image.

- +
@@ -330,14 +401,13 @@ Variables
#define TJFLAG_FORCEMMX
-
-
+

Turn off CPU auto-detection and force TurboJPEG to use MMX code (if the underlying codec supports it.)

- +
@@ -345,14 +415,13 @@ Variables
#define TJFLAG_FORCESSE
-
-
+

Turn off CPU auto-detection and force TurboJPEG to use SSE code (if the underlying codec supports it.)

- +
@@ -360,14 +429,13 @@ Variables
#define TJFLAG_FORCESSE2
-
-
+

Turn off CPU auto-detection and force TurboJPEG to use SSE2 code (if the underlying codec supports it.)

- +
@@ -375,14 +443,13 @@ Variables
#define TJFLAG_FORCESSE3
-
-
+

Turn off CPU auto-detection and force TurboJPEG to use SSE3 code (if the underlying codec supports it.)

- +
@@ -390,15 +457,14 @@ Variables
#define TJFLAG_NOREALLOC
-
-
+

Disable buffer (re)allocation.

If passed to tjCompress2() or tjTransform(), this flag will cause those functions to generate an error if the JPEG image buffer is invalid or too small rather than attempting to allocate or reallocate that buffer. This reproduces the behavior of earlier versions of TurboJPEG.

- +
@@ -410,14 +476,13 @@ Variables
-
-
+

Pad the given width to the nearest 32-bit boundary.

- +
@@ -439,15 +504,14 @@ Variables
-
-
+

Compute the scaled value of dimension using the given scaling factor.

This macro performs the integer equivalent of ceil(dimension * scalingFactor).

- +
@@ -455,15 +519,14 @@ Variables
#define TJXOPT_CROP
-
-
+

This option will enable lossless cropping.

See tjTransform() for more information.

- +
@@ -471,14 +534,13 @@ Variables
#define TJXOPT_GRAY
-
-
+

This option will discard the color data in the input image and produce a grayscale output image.

- +
@@ -486,14 +548,13 @@ Variables
#define TJXOPT_NOOUTPUT
-
-
+

This option will prevent tjTransform() from outputting a JPEG image for this particular transform (this can be used in conjunction with a custom filter to capture the transformed DCT coefficients without transcoding them.)

- +
@@ -501,15 +562,14 @@ Variables
#define TJXOPT_PERFECT
-
-
+

This option will cause tjTransform() to return an error if the transform is not perfect.

Lossless transforms operate on MCU blocks, whose size depends on the level of chrominance subsampling used (see tjMCUWidth and tjMCUHeight.) If the image's width or height is not evenly divisible by the MCU block size, then there will be partial MCU blocks on the right and/or bottom edges. It is not possible to move these partial MCU blocks to the top or left of the image, so any transform that would require that is "imperfect." If this option is not specified, then any partial MCU blocks that cannot be transformed will be left in place, which will create odd-looking strips on the right or bottom edge of the image.

- +
@@ -517,15 +577,14 @@ Variables
#define TJXOPT_TRIM
-
-
+

This option will cause tjTransform() to discard any partial MCU blocks that cannot be transformed.

-

Typedef Documentation

- +

Typedef Documentation

+
@@ -533,14 +592,13 @@ Variables
typedef void* tjhandle
-
-
+

TurboJPEG instance handle.

- +
@@ -548,15 +606,14 @@ Variables
typedef struct tjtransform tjtransform
-
-
+

Lossless transform.

-

Enumeration Type Documentation

- +

Enumeration Type Documentation

+
@@ -564,62 +621,59 @@ Variables
enum TJPF
-
-
+

Pixel formats.

-
Enumerator:
-
The documentation for this struct was generated from the following file:
  • turbojpeg.h
- - - - - -
- -
- - + + +
TJPF_RGB  + + - - - - - - - - - -
Enumerator
TJPF_RGB 

RGB pixel format.

The red, green, and blue components in the image are stored in 3-byte pixels in the order R, G, B from lowest to highest byte address within each pixel.

TJPF_BGR  +
TJPF_BGR 

BGR pixel format.

The red, green, and blue components in the image are stored in 3-byte pixels in the order B, G, R from lowest to highest byte address within each pixel.

TJPF_RGBX  +
TJPF_RGBX 

RGBX pixel format.

The red, green, and blue components in the image are stored in 4-byte pixels in the order R, G, B from lowest to highest byte address within each pixel. The X component is ignored when compressing and undefined when decompressing.

TJPF_BGRX  +
TJPF_BGRX 

BGRX pixel format.

The red, green, and blue components in the image are stored in 4-byte pixels in the order B, G, R from lowest to highest byte address within each pixel. The X component is ignored when compressing and undefined when decompressing.

TJPF_XBGR  +
TJPF_XBGR 

XBGR pixel format.

The red, green, and blue components in the image are stored in 4-byte pixels in the order R, G, B from highest to lowest byte address within each pixel. The X component is ignored when compressing and undefined when decompressing.

TJPF_XRGB  +
TJPF_XRGB 

XRGB pixel format.

The red, green, and blue components in the image are stored in 4-byte pixels in the order B, G, R from highest to lowest byte address within each pixel. The X component is ignored when compressing and undefined when decompressing.

TJPF_GRAY  +
TJPF_GRAY 

Grayscale pixel format.

Each 1-byte pixel represents a luminance (brightness) level from 0 to 255.

TJPF_RGBA  +
TJPF_RGBA 

RGBA pixel format.

This is the same as TJPF_RGBX, except that when decompressing, the X component is guaranteed to be 0xFF, which can be interpreted as an opaque alpha channel.

TJPF_BGRA  +
TJPF_BGRA 

BGRA pixel format.

This is the same as TJPF_BGRX, except that when decompressing, the X component is guaranteed to be 0xFF, which can be interpreted as an opaque alpha channel.

TJPF_ABGR  +
TJPF_ABGR 

ABGR pixel format.

This is the same as TJPF_XBGR, except that when decompressing, the X component is guaranteed to be 0xFF, which can be interpreted as an opaque alpha channel.

TJPF_ARGB  +
TJPF_ARGB 

ARGB pixel format.

This is the same as TJPF_XRGB, except that when decompressing, the X component is guaranteed to be 0xFF, which can be interpreted as an opaque alpha channel.

- - - +
@@ -627,39 +681,36 @@ Variables
enum TJSAMP
-
-
+

Chrominance subsampling options.

When an image is converted from the RGB to the YUV colorspace as part of the JPEG compression process, some of the U and V (chrominance) components can be discarded or averaged together to produce a smaller image with little perceptible loss of image clarity (the human eye is more sensitive to small changes in brightness than small changes in color.) This is called "chrominance subsampling".

-
Enumerator:
- - + +
+ +
+
tjscalingfactor Struct Reference
+
+
+ +

Scaling factor. + More...

+ +

#include <turbojpeg.h>

+
TJSAMP_444  + + - - - -
Enumerator
TJSAMP_444 

4:4:4 chrominance subsampling (no chrominance subsampling).

The JPEG or YUV image will contain one chrominance component for every pixel in the source image.

TJSAMP_422  +
TJSAMP_422 

4:2:2 chrominance subsampling.

The JPEG or YUV image will contain one chrominance component for every 2x1 block of pixels in the source image.

TJSAMP_420  +
TJSAMP_420 

4:2:0 chrominance subsampling.

The JPEG or YUV image will contain one chrominance component for every 2x2 block of pixels in the source image.

TJSAMP_GRAY  +
TJSAMP_GRAY 

Grayscale.

The JPEG or YUV image will contain no chrominance components.

TJSAMP_440  +
TJSAMP_440 

4:4:0 chrominance subsampling.

-

The JPEG or YUV image will contain one chrominance component for every 1x2 block of pixels in the source image.

+

The JPEG or YUV image will contain one chrominance component for every 1x2 block of pixels in the source image. Note that 4:4:0 subsampling is not fully accelerated in the libjpeg-turbo implementation of TurboJPEG.

- - - +
@@ -667,48 +718,45 @@ Variables
enum TJXOP
-
-
+

Transform operations for tjTransform()

-
Enumerator:
-
The documentation for this struct was generated from the following file:
  • turbojpeg.h
- - - - - -
- -
- - + + + diff --git a/doc/html/structtjscalingfactor.html b/doc/html/structtjscalingfactor.html index 30d34afc..002924b3 100644 --- a/doc/html/structtjscalingfactor.html +++ b/doc/html/structtjscalingfactor.html @@ -2,35 +2,45 @@ + +TurboJPEG: tjscalingfactor Struct Reference + + - + + - - - -
+ +
TJXOP_NONE  + + - - - - - - -
Enumerator
TJXOP_NONE 

Do not transform the position of the image pixels.

TJXOP_HFLIP  +
TJXOP_HFLIP 

Flip (mirror) image horizontally.

This transform is imperfect if there are any partial MCU blocks on the right edge (see TJXOPT_PERFECT.)

TJXOP_VFLIP  +
TJXOP_VFLIP 

Flip (mirror) image vertically.

This transform is imperfect if there are any partial MCU blocks on the bottom edge (see TJXOPT_PERFECT.)

TJXOP_TRANSPOSE  +
TJXOP_TRANSPOSE 

Transpose image (flip/mirror along upper left to lower right axis.) This transform is always perfect.

TJXOP_TRANSVERSE  +
TJXOP_TRANSVERSE 

Transverse transpose image (flip/mirror along upper right to lower left axis.) This transform is imperfect if there are any partial MCU blocks in the image (see TJXOPT_PERFECT.)

TJXOP_ROT90  +
TJXOP_ROT90 

Rotate image clockwise by 90 degrees.

This transform is imperfect if there are any partial MCU blocks on the bottom edge (see TJXOPT_PERFECT.)

TJXOP_ROT180  +
TJXOP_ROT180 

Rotate image 180 degrees.

This transform is imperfect if there are any partial MCU blocks in the image (see TJXOPT_PERFECT.)

TJXOP_ROT270  +
TJXOP_ROT270 

Rotate image counter-clockwise by 90 degrees.

This transform is imperfect if there are any partial MCU blocks on the right edge (see TJXOPT_PERFECT.)

- - -

Function Documentation

- +

Function Documentation

+
@@ -720,23 +768,22 @@ Variables
-
-
+

Allocate an image buffer for use with TurboJPEG.

You should always use this function to allocate the JPEG destination buffer(s) for tjCompress2() and tjTransform() unless you are disabling automatic buffer (re)allocation (by setting TJFLAG_NOREALLOC.)

-
Parameters:
+
Parameters
bytesthe number of bytes to allocate
-
Returns:
a pointer to a newly-allocated buffer with the specified number of bytes
-
See also:
tjFree()
+
Returns
a pointer to a newly-allocated buffer with the specified number of bytes
+
See Also
tjFree()
- +
@@ -764,12 +811,11 @@ Variables
-
-
+

The maximum size of the buffer (in bytes) required to hold a JPEG image with the given parameters.

The number of bytes returned by this function is larger than the size of the uncompressed source image. The reason for this is that the JPEG format uses 16-bit coefficients, and it is thus possible for a very high-quality JPEG image with very high-frequency content to expand rather than compress when converted to the JPEG format. Such images represent a very rare corner case, but since there is no way to predict the size of a JPEG image prior to compression, the corner case has to be handled.

-
Parameters:
+
Parameters
@@ -777,11 +823,11 @@ Variables
widthwidth of the image (in pixels)
heightheight of the image (in pixels)
-
Returns:
the maximum size of the buffer (in bytes) required to hold the image, or -1 if the arguments are out of bounds.
+
Returns
the maximum size of the buffer (in bytes) required to hold the image, or -1 if the arguments are out of bounds.
- +
@@ -809,11 +855,10 @@ Variables
-
-
+

The size of the buffer (in bytes) required to hold a YUV planar image with the given parameters.

-
Parameters:
+
Parameters
@@ -821,11 +866,11 @@ Variables
widthwidth of the image (in pixels)
heightheight of the image (in pixels)
-
Returns:
the size of the buffer (in bytes) required to hold the image, or -1 if the arguments are out of bounds.
+
Returns
the size of the buffer (in bytes) required to hold the image, or -1 if the arguments are out of bounds.
- +
@@ -901,11 +946,10 @@ Variables
-
-
+

Compress an RGB or grayscale image into a JPEG image.

-
Parameters:
+
Parameters
@@ -926,11 +970,11 @@ If you choose option 1, *jpegSize should be set to the size of your
handlea handle to a TurboJPEG compressor or transformer instance
srcBufpointer to an image buffer containing RGB or grayscale pixels to be compressed
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -994,29 +1038,31 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Decompress a JPEG image to an RGB or grayscale image.

-
Parameters:
+
Parameters
- - - - + + + +
handlea handle to a TurboJPEG decompressor or transformer instance
jpegBufpointer to a buffer containing the JPEG image to decompress
jpegSizesize of the JPEG image (in bytes)
dstBufpointer to an image buffer that will receive the decompressed image. This buffer should normally be pitch * scaledHeight bytes in size, where scaledHeight can be determined by calling TJSCALED() with the JPEG image height and one of the scaling factors returned by tjGetScalingFactors(). The dstBuf pointer may also be used to decompress into a specific region of a larger buffer.
widthdesired width (in pixels) of the destination image. If this is different than the width of the JPEG image being decompressed, then TurboJPEG will use scaling in the JPEG decompressor to generate the largest possible image that will fit within the desired width. If width is set to 0, then only the height will be considered when determining the scaled image size.
pitchbytes per line of the destination image. Normally, this is scaledWidth * tjPixelSize[pixelFormat] if the decompressed image is unpadded, else TJPAD(scaledWidth * tjPixelSize[pixelFormat]) if each line of the decompressed image is padded to the nearest 32-bit boundary, as is the case for Windows bitmaps. (NOTE: scaledWidth can be determined by calling TJSCALED() with the JPEG image width and one of the scaling factors returned by tjGetScalingFactors().) You can also be clever and use the pitch parameter to skip lines, etc. Setting this parameter to 0 is the equivalent of setting it to scaledWidth * tjPixelSize[pixelFormat].
heightdesired height (in pixels) of the destination image. If this is different than the height of the JPEG image being decompressed, then TurboJPEG will use scaling in the JPEG decompressor to generate the largest possible image that will fit within the desired height. If height is set to 0, then only the width will be considered when determining the scaled image size.
pixelFormatpixel format of the destination image (see Pixel formats.)
flagsthe bitwise OR of one or more of the flags.
pitchbytes per line of the destination image. Normally, this is scaledWidth * tjPixelSize[pixelFormat] if the decompressed image is unpadded, else TJPAD(scaledWidth * tjPixelSize[pixelFormat]) if each line of the decompressed image is padded to the nearest 32-bit boundary, as is the case for Windows bitmaps. (NOTE: scaledWidth can be determined by calling TJSCALED() with the JPEG image width and one of the scaling factors returned by tjGetScalingFactors().) You can also be clever and use the pitch parameter to skip lines, etc. Setting this parameter to 0 is the equivalent of setting it to scaledWidth +
heightdesired height (in pixels) of the destination image. If this is different than the height of the JPEG image being decompressed, then TurboJPEG will use scaling in the JPEG decompressor to generate the largest possible image that will fit within the desired height. If height is set to 0, then only the width will be considered when determining the scaled image size.
pixelFormatpixel format of the destination image (see Pixel formats.)
flagsthe bitwise OR of one or more of the flags.
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -1062,11 +1108,10 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Retrieve information about a JPEG image without decompressing it.

-
Parameters:
+
Parameters
@@ -1077,11 +1122,11 @@ If you choose option 1, *jpegSize should be set to the size of your
handlea handle to a TurboJPEG decompressor or transformer instance
jpegBufpointer to a buffer containing a JPEG image
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -1121,12 +1166,11 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Decompress a JPEG image to a YUV planar image.

This function performs JPEG decompression but leaves out the color conversion step, so a planar YUV image is generated instead of an RGB image. The padding of the planes in this image is the same as in the images generated by tjEncodeYUV2(). Note that, if the width or height of the image is not an even multiple of the MCU block size (see tjMCUWidth and tjMCUHeight), then an intermediate buffer copy will be performed within TurboJPEG.

-
Parameters:
+
Parameters
@@ -1136,11 +1180,11 @@ If you choose option 1, *jpegSize should be set to the size of your
handlea handle to a TurboJPEG decompressor or transformer instance
jpegBufpointer to a buffer containing the JPEG image to decompress
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -1152,21 +1196,20 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Destroy a TurboJPEG compressor, decompressor, or transformer instance.

-
Parameters:
+
Parameters
handlea handle to a TurboJPEG compressor, decompressor or transformer instance
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -1230,12 +1273,11 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Encode an RGB or grayscale image into a YUV planar image.

This function uses the accelerated color conversion routines in TurboJPEG's underlying codec to produce a planar YUV image that is suitable for X Video. Specifically, if the chrominance components are subsampled along the horizontal dimension, then the width of the luminance plane is padded to the nearest multiple of 2 in the output image (same goes for the height of the luminance plane, if the chrominance components are subsampled along the vertical dimension.) Also, each line of each plane in the output image is padded to 4 bytes. Although this will work with any subsampling option, it is really only useful in combination with TJ_420, which produces an image compatible with the I420 (AKA "YUV420P") format.

-
Parameters:
+
Parameters
@@ -1249,11 +1291,11 @@ If you choose option 1, *jpegSize should be set to the size of your
handlea handle to a TurboJPEG compressor or transformer instance
srcBufpointer to an image buffer containing RGB or grayscale pixels to be encoded
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
- +
@@ -1265,22 +1307,21 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Free an image buffer previously allocated by TurboJPEG.

You should always use this function to free JPEG destination buffer(s) that were automatically (re)allocated by tjCompress2() or tjTransform() or that were manually allocated using tjAlloc().

-
Parameters:
+
Parameters
bufferaddress of the buffer to free
-
See also:
tjAlloc()
+
See Also
tjAlloc()
- +
@@ -1292,15 +1333,14 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Returns a descriptive error message explaining why the last command failed.

-
Returns:
a descriptive error message explaining why the last command failed.
+
Returns
a descriptive error message explaining why the last command failed.
- +
@@ -1312,21 +1352,20 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Returns a list of fractional scaling factors that the JPEG decompressor in this implementation of TurboJPEG supports.

-
Parameters:
+
Parameters
numscalingfactorspointer to an integer variable that will receive the number of elements in the list
-
Returns:
a pointer to a list of fractional scaling factors, or NULL if an error is encountered (see tjGetErrorStr().)
+
Returns
a pointer to a list of fractional scaling factors, or NULL if an error is encountered (see tjGetErrorStr().)
- +
@@ -1338,15 +1377,14 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Create a TurboJPEG compressor instance.

-
Returns:
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
+
Returns
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
- +
@@ -1358,15 +1396,14 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Create a TurboJPEG decompressor instance.

-
Returns:
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
+
Returns
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
- +
@@ -1378,15 +1415,14 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Create a new TurboJPEG transformer instance.

-
Returns:
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
+
Returns
a handle to the newly-created instance, or NULL if an error occurred (see tjGetErrorStr().)
- +
@@ -1444,12 +1480,11 @@ If you choose option 1, *jpegSize should be set to the size of your
-
-
+

Losslessly transform a JPEG image into another JPEG image.

Lossless transforms work by moving the raw coefficients from one JPEG image structure to another without altering the values of the coefficients. While this is typically faster than decompressing the image, transforming it, and re-compressing it, lossless transforms are not free. Each lossless transform requires reading and performing Huffman decoding on all of the coefficients in the source image, regardless of the size of the destination image. Thus, this function provides a means of generating multiple transformed images from the same source or applying multiple transformations simultaneously, in order to eliminate the need to read the source coefficients multiple times.

-
Parameters:
+
Parameters
@@ -1467,53 +1502,74 @@ If you choose option 1, dstSizes[i] should be set to the size of yo
handlea handle to a TurboJPEG transformer instance
jpegBufpointer to a buffer containing the JPEG image to transform
-
Returns:
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
+
Returns
0 if successful, or -1 if an error occurred (see tjGetErrorStr().)
-

Variable Documentation

- +

Variable Documentation

+
+ + + + + +
- +
const int tjBlueOffset[TJ_NUMPF] [static]const int tjBlueOffset[TJ_NUMPF]
- -
+
+static
+

Blue offset (in bytes) for a given pixel format.

This specifies the number of bytes that the Blue component is offset from the start of the pixel. For instance, if a pixel of format TJ_BGRX is stored in char pixel[], then the blue component will be pixel[tjBlueOffset[TJ_BGRX]].

- +
+ + + + + +
- +
const int tjGreenOffset[TJ_NUMPF] [static]const int tjGreenOffset[TJ_NUMPF]
- -
+
+static
+

Green offset (in bytes) for a given pixel format.

This specifies the number of bytes that the green component is offset from the start of the pixel. For instance, if a pixel of format TJ_BGRX is stored in char pixel[], then the green component will be pixel[tjGreenOffset[TJ_BGRX]].

- +
+ + + + + +
- +
const int tjMCUHeight[TJ_NUMSAMP] [static]const int tjMCUHeight[TJ_NUMSAMP]
- -
+
+static
+

MCU block height (in pixels) for a given level of chrominance subsampling.

MCU block sizes:

@@ -1526,16 +1582,23 @@ If you choose option 1, dstSizes[i] should be set to the size of yo
- +
+ + + + + +
- +
const int tjMCUWidth[TJ_NUMSAMP] [static]const int tjMCUWidth[TJ_NUMSAMP]
- -
+
+static
+

MCU block width (in pixels) for a given level of chrominance subsampling.

MCU block sizes:

@@ -1548,54 +1611,57 @@ If you choose option 1, dstSizes[i] should be set to the size of yo
- +
+ + + + + +
- +
const int tjPixelSize[TJ_NUMPF] [static]const int tjPixelSize[TJ_NUMPF]
- -
+
+static
+

Pixel size (in bytes) for a given pixel format.

- +
+ + + + + +
- +
const int tjRedOffset[TJ_NUMPF] [static]const int tjRedOffset[TJ_NUMPF]
- -
+
+static
+

Red offset (in bytes) for a given pixel format.

This specifies the number of bytes that the red component is offset from the start of the pixel. For instance, if a pixel of format TJ_BGRX is stored in char pixel[], then the red component will be pixel[tjRedOffset[TJ_BGRX]].

- - - - - -
- -
- - + + + diff --git a/doc/html/index.html b/doc/html/index.html index 3c85393e..3c2a6622 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -38,6 +38,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -79,7 +81,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/doc/html/modules.html b/doc/html/modules.html index 6fe4726a..3795ae87 100644 --- a/doc/html/modules.html +++ b/doc/html/modules.html @@ -2,35 +2,45 @@ + + TurboJPEG: Modules + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + -
-
-
-
Modules
-
-
-
Here is a list of all modules:
-
+
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
@@ -72,8 +73,22 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
- +
+
+
Modules
+
+
+
Here is a list of all modules:
+ + +
\TurboJPEGTurboJPEG API
+
+
+ + diff --git a/doc/html/search/all_63.html b/doc/html/search/all_63.html index 8cfc38f3..e7f34db5 100644 --- a/doc/html/search/all_63.html +++ b/doc/html/search/all_63.html @@ -1,18 +1,18 @@ + +
Loading...
-
-
- customFilter - tjtransform -
-
+
+
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
+
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/enums_74.js b/doc/html/search/enums_74.js new file mode 100644 index 00000000..20bd4db4 --- /dev/null +++ b/doc/html/search/enums_74.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['tjpf',['TJPF',['../group___turbo_j_p_e_g.html#gac916144e26c3817ac514e64ae5d12e2a',1,'turbojpeg.h']]], + ['tjsamp',['TJSAMP',['../group___turbo_j_p_e_g.html#ga1d047060ea80bb9820d540bb928e9074',1,'turbojpeg.h']]], + ['tjxop',['TJXOP',['../group___turbo_j_p_e_g.html#ga2de531af4e7e6c4f124908376b354866',1,'turbojpeg.h']]] +]; diff --git a/doc/html/search/enumvalues_74.html b/doc/html/search/enumvalues_74.html new file mode 100644 index 00000000..0d69a0ac --- /dev/null +++ b/doc/html/search/enumvalues_74.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/enumvalues_74.js b/doc/html/search/enumvalues_74.js new file mode 100644 index 00000000..55664f16 --- /dev/null +++ b/doc/html/search/enumvalues_74.js @@ -0,0 +1,27 @@ +var searchData= +[ + ['tjpf_5fabgr',['TJPF_ABGR',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa1ba1a7f1631dbeaa49a0a85fc4a40081',1,'turbojpeg.h']]], + ['tjpf_5fargb',['TJPF_ARGB',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aae8f846ed9d9de99b6e1dfe448848765c',1,'turbojpeg.h']]], + ['tjpf_5fbgr',['TJPF_BGR',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aab10624437fb8ef495a0b153e65749839',1,'turbojpeg.h']]], + ['tjpf_5fbgra',['TJPF_BGRA',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aac037ff1845cf9b74bb81a3659c2b9fb4',1,'turbojpeg.h']]], + ['tjpf_5fbgrx',['TJPF_BGRX',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa2a1fbf569ca79897eae886e3376ca4c8',1,'turbojpeg.h']]], + ['tjpf_5fgray',['TJPF_GRAY',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa5431b54b015337705f13118073711a1a',1,'turbojpeg.h']]], + ['tjpf_5frgb',['TJPF_RGB',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa7ce93230bff449518ce387c17e6ed37c',1,'turbojpeg.h']]], + ['tjpf_5frgba',['TJPF_RGBA',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa88d2e88fab67f6503cf972e14851cc12',1,'turbojpeg.h']]], + ['tjpf_5frgbx',['TJPF_RGBX',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aa83973bebb7e2dc6fa8bae89ff3f42e01',1,'turbojpeg.h']]], + ['tjpf_5fxbgr',['TJPF_XBGR',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aaf6603b27147de47e212e75dac027b2af',1,'turbojpeg.h']]], + ['tjpf_5fxrgb',['TJPF_XRGB',['../group___turbo_j_p_e_g.html#ggac916144e26c3817ac514e64ae5d12e2aadae996905efcfa3b42a0bb3bea7f9d84',1,'turbojpeg.h']]], + ['tjsamp_5f420',['TJSAMP_420',['../group___turbo_j_p_e_g.html#gga1d047060ea80bb9820d540bb928e9074a63085dbf683cfe39e513cdb6343e3737',1,'turbojpeg.h']]], + ['tjsamp_5f422',['TJSAMP_422',['../group___turbo_j_p_e_g.html#gga1d047060ea80bb9820d540bb928e9074a136130902cc578f11f32429b59368404',1,'turbojpeg.h']]], + ['tjsamp_5f440',['TJSAMP_440',['../group___turbo_j_p_e_g.html#gga1d047060ea80bb9820d540bb928e9074accf740e6f3aa6ba20ba922cad13cb974',1,'turbojpeg.h']]], + ['tjsamp_5f444',['TJSAMP_444',['../group___turbo_j_p_e_g.html#gga1d047060ea80bb9820d540bb928e9074afb8da4f44197837bdec0a4f593dacae3',1,'turbojpeg.h']]], + ['tjsamp_5fgray',['TJSAMP_GRAY',['../group___turbo_j_p_e_g.html#gga1d047060ea80bb9820d540bb928e9074a3f1c9504842ddc7a48d0f690754b6248',1,'turbojpeg.h']]], + ['tjxop_5fhflip',['TJXOP_HFLIP',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866aa0df69776caa30f0fa28e26332d311ce',1,'turbojpeg.h']]], + ['tjxop_5fnone',['TJXOP_NONE',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866aad88c0366cd3f7d0eac9d7a3fa1c2c27',1,'turbojpeg.h']]], + ['tjxop_5frot180',['TJXOP_ROT180',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866a140952eb8dd0300accfcc22726d69692',1,'turbojpeg.h']]], + ['tjxop_5frot270',['TJXOP_ROT270',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866a3064ee5dfb7f032df332818587567a08',1,'turbojpeg.h']]], + ['tjxop_5frot90',['TJXOP_ROT90',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866a43b2bbb23bc4bd548422d43fbe9af128',1,'turbojpeg.h']]], + ['tjxop_5ftranspose',['TJXOP_TRANSPOSE',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866a31060aed199f886afdd417f80499c32d',1,'turbojpeg.h']]], + ['tjxop_5ftransverse',['TJXOP_TRANSVERSE',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866af3b14d488aea6ece9e5b3df73a74d6a4',1,'turbojpeg.h']]], + ['tjxop_5fvflip',['TJXOP_VFLIP',['../group___turbo_j_p_e_g.html#gga2de531af4e7e6c4f124908376b354866a324eddfbec53b7e691f61e56929d0d5d',1,'turbojpeg.h']]] +]; diff --git a/doc/html/search/functions_74.html b/doc/html/search/functions_74.html new file mode 100644 index 00000000..1605901e --- /dev/null +++ b/doc/html/search/functions_74.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/functions_74.js b/doc/html/search/functions_74.js new file mode 100644 index 00000000..c746a918 --- /dev/null +++ b/doc/html/search/functions_74.js @@ -0,0 +1,19 @@ +var searchData= +[ + ['tjalloc',['tjAlloc',['../group___turbo_j_p_e_g.html#ga5c9234bda6d993cdaffdd89bf81a00ff',1,'turbojpeg.h']]], + ['tjbufsize',['tjBufSize',['../group___turbo_j_p_e_g.html#gaccc5bca7f12fcdcc302e6e1c6d4b311b',1,'turbojpeg.h']]], + ['tjbufsizeyuv',['tjBufSizeYUV',['../group___turbo_j_p_e_g.html#ga9d0cb06fd5052d21b6f2b382db8b219c',1,'turbojpeg.h']]], + ['tjcompress2',['tjCompress2',['../group___turbo_j_p_e_g.html#gaba62b7a98f960839b588579898495cf2',1,'turbojpeg.h']]], + ['tjdecompress2',['tjDecompress2',['../group___turbo_j_p_e_g.html#gada69cc6443d1bb493b40f1626259e5e9',1,'turbojpeg.h']]], + ['tjdecompressheader2',['tjDecompressHeader2',['../group___turbo_j_p_e_g.html#gac5675fceb7997b385516cdffdb34e6aa',1,'turbojpeg.h']]], + ['tjdecompresstoyuv',['tjDecompressToYUV',['../group___turbo_j_p_e_g.html#gad7810af095624a4016e72957a50f77d8',1,'turbojpeg.h']]], + ['tjdestroy',['tjDestroy',['../group___turbo_j_p_e_g.html#ga674adee917b95ad4a896f1ba39e12540',1,'turbojpeg.h']]], + ['tjencodeyuv2',['tjEncodeYUV2',['../group___turbo_j_p_e_g.html#ga0fa4e7b1943687c6a0c0304529c55d35',1,'turbojpeg.h']]], + ['tjfree',['tjFree',['../group___turbo_j_p_e_g.html#ga8c4a1231dc06a450514c835f6471f137',1,'turbojpeg.h']]], + ['tjgeterrorstr',['tjGetErrorStr',['../group___turbo_j_p_e_g.html#ga9af79c908ec131b1ae8d52fe40375abf',1,'turbojpeg.h']]], + ['tjgetscalingfactors',['tjGetScalingFactors',['../group___turbo_j_p_e_g.html#ga6449044b9af402999ccf52f401333be8',1,'turbojpeg.h']]], + ['tjinitcompress',['tjInitCompress',['../group___turbo_j_p_e_g.html#ga3d10c47fbe4a2489a2b30c931551d01a',1,'turbojpeg.h']]], + ['tjinitdecompress',['tjInitDecompress',['../group___turbo_j_p_e_g.html#gae5408179d041e2a2f7199c8283cf649e',1,'turbojpeg.h']]], + ['tjinittransform',['tjInitTransform',['../group___turbo_j_p_e_g.html#ga3155b775bfbac9dbba869b95a0367902',1,'turbojpeg.h']]], + ['tjtransform',['tjTransform',['../group___turbo_j_p_e_g.html#gae403193ceb4aafb7e0f56ab587b48616',1,'turbojpeg.h']]] +]; diff --git a/doc/html/search/groups_74.html b/doc/html/search/groups_74.html new file mode 100644 index 00000000..a1695607 --- /dev/null +++ b/doc/html/search/groups_74.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/groups_74.js b/doc/html/search/groups_74.js new file mode 100644 index 00000000..27d4ffb2 --- /dev/null +++ b/doc/html/search/groups_74.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['turbojpeg',['TurboJPEG',['../group___turbo_j_p_e_g.html',1,'']]] +]; diff --git a/doc/html/search/search.js b/doc/html/search/search.js index d6fc154a..409672cc 100644 --- a/doc/html/search/search.js +++ b/doc/html/search/search.js @@ -7,10 +7,26 @@ var indexSectionsWithContent = { + 0: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100010000011001010011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 1: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 2: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 3: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100010000011001010011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 4: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 5: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 6: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + 7: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" }; var indexSectionNames = { + 0: "all", + 1: "classes", + 2: "functions", + 3: "variables", + 4: "typedefs", + 5: "enums", + 6: "enumvalues", + 7: "groups" }; function convertToId(search) diff --git a/doc/html/search/typedefs_74.html b/doc/html/search/typedefs_74.html new file mode 100644 index 00000000..b2f6d2a0 --- /dev/null +++ b/doc/html/search/typedefs_74.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/typedefs_74.js b/doc/html/search/typedefs_74.js new file mode 100644 index 00000000..85b00f5e --- /dev/null +++ b/doc/html/search/typedefs_74.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['tjhandle',['tjhandle',['../group___turbo_j_p_e_g.html#ga758d2634ecb4949de7815cba621f5763',1,'turbojpeg.h']]], + ['tjtransform',['tjtransform',['../group___turbo_j_p_e_g.html#gaa29f3189c41be12ec5dee7caec318a31',1,'turbojpeg.h']]] +]; diff --git a/doc/html/search/variables_63.html b/doc/html/search/variables_63.html index 8cfc38f3..422085c1 100644 --- a/doc/html/search/variables_63.html +++ b/doc/html/search/variables_63.html @@ -1,18 +1,18 @@ + +
Loading...
-
-
- customFilter - tjtransform -
-
+
+
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
+
Searching...
+
No Matches
+ +
+ + diff --git a/doc/html/search/variables_74.js b/doc/html/search/variables_74.js new file mode 100644 index 00000000..13a056e0 --- /dev/null +++ b/doc/html/search/variables_74.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['tjblueoffset',['tjBlueOffset',['../group___turbo_j_p_e_g.html#ga84e2e35d3f08025f976ec1ec53693dea',1,'turbojpeg.h']]], + ['tjgreenoffset',['tjGreenOffset',['../group___turbo_j_p_e_g.html#ga82d6e35da441112a411da41923c0ba2f',1,'turbojpeg.h']]], + ['tjmcuheight',['tjMCUHeight',['../group___turbo_j_p_e_g.html#gabd247bb9fecb393eca57366feb8327bf',1,'turbojpeg.h']]], + ['tjmcuwidth',['tjMCUWidth',['../group___turbo_j_p_e_g.html#ga9e61e7cd47a15a173283ba94e781308c',1,'turbojpeg.h']]], + ['tjpixelsize',['tjPixelSize',['../group___turbo_j_p_e_g.html#gad77cf8fe5b2bfd3cb3f53098146abb4c',1,'turbojpeg.h']]], + ['tjredoffset',['tjRedOffset',['../group___turbo_j_p_e_g.html#gadd9b446742ac8a3923f7992c7988fea8',1,'turbojpeg.h']]] +]; diff --git a/doc/html/search/variables_77.html b/doc/html/search/variables_77.html index b4c8d889..434c6df9 100644 --- a/doc/html/search/variables_77.html +++ b/doc/html/search/variables_77.html @@ -1,18 +1,18 @@ + +
Loading...
-
-
- w - tjregion -
-
+
+
Searching...
No Matches
Searching...
No Matches
Searching...
No Matches
-
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + + + + + +
+
+ +
tjregion Struct Reference
-
+
- +

Cropping region. More...

#include <turbojpeg.h>

- - - - - - - - - + + + + + + + + + + + +

+

Data Fields

int x
 The left boundary of the cropping region.
int y
 The upper boundary of the cropping region.
int w
 The width of the cropping region.
int h
 The height of the cropping region.
int x
 The left boundary of the cropping region. More...
 
int y
 The upper boundary of the cropping region. More...
 
int w
 The width of the cropping region. More...
 
int h
 The height of the cropping region. More...
 
-

Detailed Description

+

Detailed Description

Cropping region.

-

Field Documentation

- +

Field Documentation

+
- +
int tjregion::hint tjregion::h
-
-
+

The height of the cropping region.

Setting this to 0 is the equivalent of setting it to the height of the source JPEG image - y.

- +
- +
int tjregion::wint tjregion::w
-
-
+

The width of the cropping region.

Setting this to 0 is the equivalent of setting it to the width of the source JPEG image - x.

- +
- +
int tjregion::xint tjregion::x
-
-
+

The left boundary of the cropping region.

This must be evenly divisible by the MCU block width (see tjMCUWidth.)

- +
- +
int tjregion::yint tjregion::y
-
-
+

The upper boundary of the cropping region.

This must be evenly divisible by the MCU block height (see tjMCUHeight.)

@@ -150,23 +174,12 @@ Data Fields
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + -
-
- -
-
tjscalingfactor Struct Reference
-
-
- -

Scaling factor. - More...

- -

#include <turbojpeg.h>

- - - - - - -

-Data Fields

int num
 Numerator.
int denom
 Denominator.
-

Detailed Description

-

Scaling factor.

-

Field Documentation

- -
-
- - - - -
int tjscalingfactor::denom
-
-
- -

Denominator.

- -
-
- -
-
- - - - -
int tjscalingfactor::num
-
-
- -

Numerator.

- -
-
-
The documentation for this struct was generated from the following file:
    -
  • turbojpeg.h
  • -
-
+ All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups
@@ -127,8 +79,69 @@ Data Fields
+ + + + + + + +

+Data Fields

int num
 Numerator. More...
 
int denom
 Denominator. More...
 
+

Detailed Description

+

Scaling factor.

+

Field Documentation

+ +
+
+ + + + +
int tjscalingfactor::denom
+
+ +

Denominator.

+ +
+
+ +
+
+ + + + +
int tjscalingfactor::num
+
+ +

Numerator.

+ +
+
+
The documentation for this struct was generated from the following file:
    +
  • turbojpeg.h
  • +
+
+ + diff --git a/doc/html/structtjtransform.html b/doc/html/structtjtransform.html index c25ca70f..15554aee 100644 --- a/doc/html/structtjtransform.html +++ b/doc/html/structtjtransform.html @@ -2,35 +2,45 @@ + + TurboJPEG: tjtransform Struct Reference + + - + + - - - -
+ +
-
TurboJPEG 1.2.1
+
TurboJPEG +  1.2.1 +
+ + + + + + + +
+
+ +
tjtransform Struct Reference
-
+
- +

Lossless transform. More...

#include <turbojpeg.h>

- - - - - - - - - - - + + + + + + + + + + + + + + +

+

Data Fields

tjregion r
 Cropping region.
int op
 One of the transform operations.
int options
 The bitwise OR of one of more of the transform options.
void * data
 Arbitrary data that can be accessed within the body of the callback function.
int(* customFilter )(short *coeffs, tjregion arrayRegion, tjregion planeRegion, int componentIndex, int transformIndex, struct tjtransform *transform)
 A callback function that can be used to modify the DCT coefficients after they are losslessly transformed but before they are transcoded to a new JPEG file.
tjregion r
 Cropping region. More...
 
int op
 One of the transform operations. More...
 
int options
 The bitwise OR of one of more of the transform options. More...
 
void * data
 Arbitrary data that can be accessed within the body of the callback function. More...
 
int(* customFilter )(short *coeffs, tjregion arrayRegion, tjregion planeRegion, int componentIndex, int transformIndex, struct tjtransform *transform)
 A callback function that can be used to modify the DCT coefficients after they are losslessly transformed but before they are transcoded to a new JPEG file. More...
 
-

Detailed Description

+

Detailed Description

Lossless transform.

-

Field Documentation

- +

Field Documentation

+
- +
int(* tjtransform::customFilter)(short *coeffs, tjregion arrayRegion, tjregion planeRegion, int componentIndex, int transformIndex, struct tjtransform *transform)int(* tjtransform::customFilter)(short *coeffs, tjregion arrayRegion, tjregion planeRegion, int componentIndex, int transformIndex, struct tjtransform *transform)
-
-
+

A callback function that can be used to modify the DCT coefficients after they are losslessly transformed but before they are transcoded to a new JPEG file.

This allows for custom filters or other transformations to be applied in the frequency domain.

-
Parameters:
+
Parameters
@@ -109,65 +137,61 @@ Data Fields
coeffspointer to an array of transformed DCT coefficients. (NOTE: this pointer is not guaranteed to be valid once the callback returns, so applications wishing to hand off the DCT coefficients to another function or library should make a copy of them within the body of the callback.)
arrayRegiontjregion structure containing the width and height of the array pointed to by coeffs as well as its offset relative to the component plane. TurboJPEG implementations may choose to split each component plane into multiple DCT coefficient arrays and call the callback function once for each array.
-
Returns:
0 if the callback was successful, or -1 if an error occurred.
+
Returns
0 if the callback was successful, or -1 if an error occurred.
- +
- +
void* tjtransform::datavoid* tjtransform::data
-
-
+

Arbitrary data that can be accessed within the body of the callback function.

- +
- +
int tjtransform::opint tjtransform::op
-
-
+

One of the transform operations.

- +
- +
int tjtransform::optionsint tjtransform::options
-
-
+

The bitwise OR of one of more of the transform options.

- +
- +
tjregion tjtransform::rtjregion tjtransform::r
-
-
+

Cropping region.

@@ -176,23 +200,12 @@ Data Fields