#include "cdjpeg.h"
#include <ctype.h>
Go to the source code of this file.
◆ read_quant_tables()
Definition at line 75 of file rdswitch.c.
85{
90
94 }
96
102 }
109 }
111 }
115 }
116
117 if (termchar !=
EOF) {
121 }
122
125}
char boolean force_baseline
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
jpeg_add_quant_table(j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
read_text_integer(FILE *file, long *result, int *termchar)
int q_scale_factor[NUM_QUANT_TBLS]
Referenced by parse_switches().
◆ read_text_integer()
read_text_integer |
( |
FILE * |
file, |
|
|
long * |
result, |
|
|
int * |
termchar |
|
) |
| |
Definition at line 40 of file rdswitch.c.
43{
44 register int ch;
46
47
48 do {
51 *termchar = ch;
53 }
55
57 *termchar = ch;
59 }
60
64 break;
67 }
69 *termchar = ch;
71}
Referenced by read_quant_tables().
◆ set_quality_ratings()
Definition at line 267 of file rdswitch.c.
272{
275 char ch;
276
279 ch = ',';
282 if (ch != ',')
284
286 while (*
arg && *
arg++ !=
',')
287 ;
288 } else {
289
291 }
292 }
295}
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
jpeg_default_qtables(j_compress_ptr cinfo, boolean force_baseline)
jpeg_quality_scaling(int quality)
Referenced by parse_switches().
◆ set_quant_slots()
Definition at line 299 of file rdswitch.c.
304{
306 int ci;
307 char ch;
308
311 ch = ',';
314 if (ch != ',')
317 fprintf(
stderr,
"JPEG quantization tables are numbered 0..%d\n",
320 }
322 while (*
arg && *
arg++ !=
',')
323 ;
324 } else {
325
327 }
328 }
330}
jpeg_component_info * comp_info
Referenced by parse_switches().
◆ set_sample_factors()
Definition at line 334 of file rdswitch.c.
339{
340 int ci, val1, val2;
341 char ch1, ch2;
342
345 ch2 = ',';
346 if (
sscanf(
arg,
"%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3)
348 if ((ch1 != 'x' && ch1 != 'X') || ch2 != ',')
354 }
357 while (*
arg && *
arg++ !=
',')
358 ;
359 } else {
360
363 }
364 }
366}
Referenced by parse_switches().
◆ text_getc()
Definition at line 23 of file rdswitch.c.
26{
27 register int ch;
28
30 if (ch == '#') {
31 do {
33 }
while (ch !=
'\n' && ch !=
EOF);
34 }
35 return ch;
36}
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
Referenced by read_text_integer().