openshot-audio  0.1.6
Classes | Macros | Typedefs | Functions
jccolor.c File Reference
#include "jinclude.h"
#include "jpeglib.h"

Classes

struct  my_color_converter
 

Macros

#define JPEG_INTERNALS
 
#define SCALEBITS   16 /* speediest right-shift on some machines */
 
#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)
 
#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))
 
#define FIX(x)   ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
 
#define R_Y_OFF   0 /* offset to R => Y section */
 
#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
 
#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */
 
#define R_CB_OFF   (3*(MAXJSAMPLE+1))
 
#define G_CB_OFF   (4*(MAXJSAMPLE+1))
 
#define B_CB_OFF   (5*(MAXJSAMPLE+1))
 
#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */
 
#define G_CR_OFF   (6*(MAXJSAMPLE+1))
 
#define B_CR_OFF   (7*(MAXJSAMPLE+1))
 
#define TABLE_SIZE   (8*(MAXJSAMPLE+1))
 
#define JPEG_INTERNALS
 
#define SCALEBITS   16 /* speediest right-shift on some machines */
 
#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)
 
#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))
 
#define FIX(x)   ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
 
#define R_Y_OFF   0 /* offset to R => Y section */
 
#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
 
#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */
 
#define R_CB_OFF   (3*(MAXJSAMPLE+1))
 
#define G_CB_OFF   (4*(MAXJSAMPLE+1))
 
#define B_CB_OFF   (5*(MAXJSAMPLE+1))
 
#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */
 
#define G_CR_OFF   (6*(MAXJSAMPLE+1))
 
#define B_CR_OFF   (7*(MAXJSAMPLE+1))
 
#define TABLE_SIZE   (8*(MAXJSAMPLE+1))
 
#define JPEG_INTERNALS
 
#define SCALEBITS   16 /* speediest right-shift on some machines */
 
#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)
 
#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))
 
#define FIX(x)   ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
 
#define R_Y_OFF   0 /* offset to R => Y section */
 
#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
 
#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */
 
#define R_CB_OFF   (3*(MAXJSAMPLE+1))
 
#define G_CB_OFF   (4*(MAXJSAMPLE+1))
 
#define B_CB_OFF   (5*(MAXJSAMPLE+1))
 
#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */
 
#define G_CR_OFF   (6*(MAXJSAMPLE+1))
 
#define B_CR_OFF   (7*(MAXJSAMPLE+1))
 
#define TABLE_SIZE   (8*(MAXJSAMPLE+1))
 

Typedefs

typedef my_color_convertermy_cconvert_ptr
 

Functions

 rgb_ycc_start (j_compress_ptr cinfo)
 
 rgb_ycc_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
 
 rgb_gray_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
 
 cmyk_ycck_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
 
 grayscale_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
 
 null_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows)
 
 null_method (j_compress_ptr)
 
 jinit_color_converter (j_compress_ptr cinfo)
 

Macro Definition Documentation

◆ B_CB_OFF [1/3]

#define B_CB_OFF   (5*(MAXJSAMPLE+1))

◆ B_CB_OFF [2/3]

#define B_CB_OFF   (5*(MAXJSAMPLE+1))

◆ B_CB_OFF [3/3]

#define B_CB_OFF   (5*(MAXJSAMPLE+1))

◆ B_CR_OFF [1/3]

#define B_CR_OFF   (7*(MAXJSAMPLE+1))

◆ B_CR_OFF [2/3]

#define B_CR_OFF   (7*(MAXJSAMPLE+1))

◆ B_CR_OFF [3/3]

#define B_CR_OFF   (7*(MAXJSAMPLE+1))

◆ B_Y_OFF [1/3]

#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */

◆ B_Y_OFF [2/3]

#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */

◆ B_Y_OFF [3/3]

#define B_Y_OFF   (2*(MAXJSAMPLE+1)) /* etc. */

◆ CBCR_OFFSET [1/3]

#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)

◆ CBCR_OFFSET [2/3]

#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)

◆ CBCR_OFFSET [3/3]

#define CBCR_OFFSET   ((INT32) CENTERJSAMPLE << SCALEBITS)

◆ FIX [1/3]

#define FIX (   x)    ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))

◆ FIX [2/3]

#define FIX (   x)    ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))

◆ FIX [3/3]

#define FIX (   x)    ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))

◆ G_CB_OFF [1/3]

#define G_CB_OFF   (4*(MAXJSAMPLE+1))

◆ G_CB_OFF [2/3]

#define G_CB_OFF   (4*(MAXJSAMPLE+1))

◆ G_CB_OFF [3/3]

#define G_CB_OFF   (4*(MAXJSAMPLE+1))

◆ G_CR_OFF [1/3]

#define G_CR_OFF   (6*(MAXJSAMPLE+1))

◆ G_CR_OFF [2/3]

#define G_CR_OFF   (6*(MAXJSAMPLE+1))

◆ G_CR_OFF [3/3]

#define G_CR_OFF   (6*(MAXJSAMPLE+1))

◆ G_Y_OFF [1/3]

#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */

◆ G_Y_OFF [2/3]

#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */

◆ G_Y_OFF [3/3]

#define G_Y_OFF   (1*(MAXJSAMPLE+1)) /* offset to G => Y section */

◆ JPEG_INTERNALS [1/3]

#define JPEG_INTERNALS

◆ JPEG_INTERNALS [2/3]

#define JPEG_INTERNALS

◆ JPEG_INTERNALS [3/3]

#define JPEG_INTERNALS

◆ ONE_HALF [1/3]

#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))

◆ ONE_HALF [2/3]

#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))

◆ ONE_HALF [3/3]

#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))

◆ R_CB_OFF [1/3]

#define R_CB_OFF   (3*(MAXJSAMPLE+1))

◆ R_CB_OFF [2/3]

#define R_CB_OFF   (3*(MAXJSAMPLE+1))

◆ R_CB_OFF [3/3]

#define R_CB_OFF   (3*(MAXJSAMPLE+1))

◆ R_CR_OFF [1/3]

#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */

◆ R_CR_OFF [2/3]

#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */

◆ R_CR_OFF [3/3]

#define R_CR_OFF   B_CB_OFF /* B=>Cb, R=>Cr are the same */

◆ R_Y_OFF [1/3]

#define R_Y_OFF   0 /* offset to R => Y section */

◆ R_Y_OFF [2/3]

#define R_Y_OFF   0 /* offset to R => Y section */

◆ R_Y_OFF [3/3]

#define R_Y_OFF   0 /* offset to R => Y section */

◆ SCALEBITS [1/3]

#define SCALEBITS   16 /* speediest right-shift on some machines */

◆ SCALEBITS [2/3]

#define SCALEBITS   16 /* speediest right-shift on some machines */

◆ SCALEBITS [3/3]

#define SCALEBITS   16 /* speediest right-shift on some machines */

◆ TABLE_SIZE [1/3]

#define TABLE_SIZE   (8*(MAXJSAMPLE+1))

◆ TABLE_SIZE [2/3]

#define TABLE_SIZE   (8*(MAXJSAMPLE+1))

◆ TABLE_SIZE [3/3]

#define TABLE_SIZE   (8*(MAXJSAMPLE+1))

Typedef Documentation

◆ my_cconvert_ptr

Function Documentation

◆ cmyk_ycck_convert()

cmyk_ycck_convert ( j_compress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPIMAGE  output_buf,
JDIMENSION  output_row,
int  num_rows 
)

◆ grayscale_convert()

grayscale_convert ( j_compress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPIMAGE  output_buf,
JDIMENSION  output_row,
int  num_rows 
)

◆ jinit_color_converter()

jinit_color_converter ( j_compress_ptr  cinfo)

◆ null_convert()

null_convert ( j_compress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPIMAGE  output_buf,
JDIMENSION  output_row,
int  num_rows 
)

◆ null_method()

null_method ( j_compress_ptr  )

◆ rgb_gray_convert()

rgb_gray_convert ( j_compress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPIMAGE  output_buf,
JDIMENSION  output_row,
int  num_rows 
)

◆ rgb_ycc_convert()

rgb_ycc_convert ( j_compress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPIMAGE  output_buf,
JDIMENSION  output_row,
int  num_rows 
)

◆ rgb_ycc_start()

rgb_ycc_start ( j_compress_ptr  cinfo)