33 }
while (ch !=
'\n' && ch !=
EOF);
117 if (termchar !=
EOF) {
128#ifdef C_MULTISCAN_FILES_SUPPORTED
151 if (ch !=
EOF && ch !=
';' && ch !=
':')
178 int scanno, ncomps, termchar;
191 while (read_scan_integer(fp, &
val, &termchar)) {
192 if (scanno >= MAX_SCANS) {
199 while (termchar ==
' ') {
201 fprintf(
stderr,
"Too many components in one scan in file %s\n",
206 if (! read_scan_integer(fp, &
val, &termchar))
212 if (termchar ==
':') {
213 if (! read_scan_integer(fp, &
val, &termchar) || termchar !=
' ')
216 if (! read_scan_integer(fp, &
val, &termchar) || termchar !=
' ')
219 if (! read_scan_integer(fp, &
val, &termchar) || termchar !=
' ')
222 if (! read_scan_integer(fp, &
val, &termchar))
232 if (termchar !=
';' && termchar !=
EOF) {
241 if (termchar !=
EOF) {
286 while (*
arg && *
arg++ !=
',')
317 fprintf(
stderr,
"JPEG quantization tables are numbered 0..%d\n",
321 cinfo->comp_info[ci].quant_tbl_no =
val;
322 while (*
arg && *
arg++ !=
',')
326 cinfo->comp_info[ci].quant_tbl_no =
val;
346 if (
sscanf(
arg,
"%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3)
348 if ((ch1 !=
'x' && ch1 !=
'X') || ch2 !=
',')
355 cinfo->comp_info[ci].h_samp_factor = val1;
356 cinfo->comp_info[ci].v_samp_factor = val2;
357 while (*
arg && *
arg++ !=
',')
361 cinfo->comp_info[ci].h_samp_factor = 1;
362 cinfo->comp_info[ci].v_samp_factor = 1;
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_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc(_In_ int _Ch, _Inout_ FILE *_File)
_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)
_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_add_quant_table(j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
jpeg_quality_scaling(int quality)
#define MEMCOPY(dest, src, size)
struct jpeg_common_struct * j_common_ptr
#define MAX_COMPS_IN_SCAN
read_text_integer(FILE *file, long *result, int *termchar)
set_quality_ratings(j_compress_ptr cinfo, char *arg, boolean force_baseline)
read_quant_tables(j_compress_ptr cinfo, char *filename, boolean force_baseline)
set_sample_factors(j_compress_ptr cinfo, char *arg)
set_quant_slots(j_compress_ptr cinfo, char *arg)
const jpeg_scan_info * scan_info
int component_index[MAX_COMPS_IN_SCAN]