Microchip® Advanced Software Framework

jcmaster.c File Reference
#include "jinclude.h"
#include "jpeglib.h"

Data Structures

struct  my_comp_master
 

Macros

#define JPEG_INTERNALS
 

Typedefs

typedef my_comp_mastermy_master_ptr
 

Enumerations

enum  c_pass_type {
  main_pass,
  huff_opt_pass,
  output_pass
}
 

Functions

 ERREXIT (cinfo, JERR_WIDTH_OVERFLOW)
 
 ERREXIT1 (cinfo, JERR_BAD_PRECISION, cinfo->data_precision)
 
 ERREXIT2 (cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, MAX_COMPONENTS)
 
 finish_pass_master (j_compress_ptr cinfo)
 
 for (ci=0, compptr=cinfo->comp_info;ci< cinfo->num_components;ci++, compptr++)
 
 for (ci=0;ci< cinfo->num_components;ci++)
 
 if (cinfo->image_height<=0||cinfo->image_width<=0||cinfo->num_components<=0||cinfo->input_components<=0) ERREXIT(cinfo
 
 if ((long) cinfo->image_height >(long) JPEG_MAX_DIMENSION||(long) cinfo->image_width >(long) JPEG_MAX_DIMENSION) ERREXIT1(cinfo
 
 if (cinfo->comps_in_scan==1)
 
 if (cinfo->restart_in_rows > 0)
 
 jinit_c_master_control (j_compress_ptr cinfo, boolean transcode_only)
 
 pass_startup (j_compress_ptr cinfo)
 
 prepare_for_pass (j_compress_ptr cinfo)
 

Variables

cinfo Ah = 0
 
cinfo Al = 0
 
cinfo blocks_in_MCU = 0
 
jpeg_component_infocompptr
 
cinfo comps_in_scan = cinfo->num_components
 
 else
 
JDIMENSION jd_samplesperrow = (JDIMENSION) samplesperrow
 
 JERR_EMPTY_IMAGE
 
 JERR_IMAGE_TOO_BIG
 
unsigned int JPEG_MAX_DIMENSION
 
cinfo max_h_samp_factor = 1
 
cinfo max_v_samp_factor = 1
 
cinfo MCU_rows_in_scan
 
cinfo MCUs_per_row
 
long samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components
 
cinfo Se = DCTSIZE2-1
 
cinfo Ss = 0
 
cinfo total_iMCU_rows
 

#define JPEG_INTERNALS

Enumerator
main_pass 
huff_opt_pass 
output_pass 

ERREXIT ( cinfo  ,
JERR_WIDTH_OVERFLOW   
)
ERREXIT1 ( cinfo  ,
JERR_BAD_PRECISION  ,
cinfo->  data_precision 
)
ERREXIT2 ( cinfo  ,
JERR_COMPONENT_COUNT  ,
cinfo->  num_components,
MAX_COMPONENTS   
)
for ( ci  = 0,
compptr  = cinfo->comp_info; ci < cinfo->num_components; ci++,
compptr++   
)
for ( ci  = 0; ci < cinfo->num_components; ci++)

References ci.

if ( cinfo->image_height<=0||cinfo->image_width<=0||cinfo->num_components<=0||cinfo->input_components<=  0)
if ( (long) cinfo->  image_height,
(long) JPEG_MAX_DIMENSION||(long) cinfo->  image_width,
(long)  JPEG_MAX_DIMENSION 
)
if ( cinfo->  comps_in_scan = = 1)
if ( cinfo->  restart_in_rows,
 
)

References MIN.

pass_startup ( j_compress_ptr  cinfo)

References FALSE.

Referenced by jinit_c_master_control().

cinfo Ah = 0
cinfo blocks_in_MCU = 0
cinfo comps_in_scan = cinfo->num_components
else
Initial value:
{
ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->comps_in_scan,
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
#define ERREXIT2(cinfo, code, p1, p2)
Definition: jerror.h:212
#define MAX_COMPS_IN_SCAN
Definition: jpeglib.h:46
jd_samplesperrow = (JDIMENSION) samplesperrow

Referenced by master_selection().

JERR_EMPTY_IMAGE
JERR_IMAGE_TOO_BIG

Referenced by METHODDEF().

unsigned int JPEG_MAX_DIMENSION

Referenced by METHODDEF().

cinfo max_h_samp_factor = 1
cinfo max_v_samp_factor = 1
cinfo MCU_rows_in_scan
Initial value:
jdiv_round_up((long) cinfo->image_height,
(long) (cinfo->max_v_samp_factor*DCTSIZE))
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
#define DCTSIZE
Definition: jpeglib.h:41
unsigned int JDIMENSION
Definition: jmorecfg.h:171
cinfo MCUs_per_row
Initial value:
jdiv_round_up((long) cinfo->image_width,
(long) (cinfo->max_h_samp_factor*DCTSIZE))
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
#define DCTSIZE
Definition: jpeglib.h:41
unsigned int JDIMENSION
Definition: jmorecfg.h:171

Referenced by compress_output(), and consume_data().

samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components
cinfo Ss = 0
cinfo total_iMCU_rows
Initial value:
jdiv_round_up((long) cinfo->image_height,
(long) (cinfo->max_v_samp_factor*DCTSIZE))
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
#define DCTSIZE
Definition: jpeglib.h:41
unsigned int JDIMENSION
Definition: jmorecfg.h:171