95 boolean is_DC_band, bad;
100 is_DC_band = (cinfo->
Ss == 0);
115 if (cinfo->
Ah != 0) {
117 if (cinfo->
Al != cinfo->
Ah-1)
130 cinfo->
Ss, cinfo->
Se, cinfo->
Ah, cinfo->
Al);
138 if (!is_DC_band && coef_bit_ptr[0] < 0)
140 for (coefi = cinfo->
Ss; coefi <= cinfo->Se; coefi++) {
141 int expected = (coef_bit_ptr[coefi] < 0) ? 0 : coef_bit_ptr[coefi];
142 if (cinfo->
Ah != expected)
144 coef_bit_ptr[coefi] = cinfo->
Al;
149 if (cinfo->
Ah == 0) {
167 if (cinfo->
Ah == 0) {
184 entropy->bitstate.bits_left = 0;
185 entropy->bitstate.get_buffer = 0;
186 entropy->
pub.insufficient_data =
FALSE;
189 entropy->saved.
EOBRUN = 0;
void jpeg_make_d_derived_tbl(j_decompress_ptr cinfo, boolean isDC, int tblno, d_derived_tbl **pdtbl)
Definition: jdhuff.cpp:149
unsigned int restarts_to_go
Definition: jcphuff.cpp:49
Definition: jcphuff.cpp:24
jpeg_component_info * cur_comp_info[4]
Definition: jpeglib.h:602
int comps_in_scan
Definition: jpeglib.h:601
int Se
Definition: jpeglib.h:613
int dc_tbl_no
Definition: jpeglib.h:134
static boolean decode_mcu_AC_refine(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdphuff.cpp:491
int Ah
Definition: jpeglib.h:613
static boolean decode_mcu_DC_first(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdphuff.cpp:286
jpeg_component_info * compptr
Definition: jdct.h:102
int ac_tbl_no
Definition: jpeglib.h:135
static boolean decode_mcu_AC_first(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdphuff.cpp:357
#define WARNMS2(cinfo, code, p1, p2)
Definition: jerror.h:245
#define FALSE
Definition: jpleph.cpp:69
phuff_entropy_decoder * phuff_entropy_ptr
Definition: jdphuff.cpp:74
#define ERREXIT4(cinfo, code, p1, p2, p3, p4)
Definition: jerror.h:223
int component_index
Definition: jpeglib.h:126
int last_dc_val[4]
Definition: jcphuff.cpp:40
#define DCTSIZE2
Definition: jpeglib.h:47
int Al
Definition: jpeglib.h:613
struct jpeg_entropy_encoder pub
Definition: jcphuff.cpp:25
unsigned int restart_interval
Definition: jpeglib.h:550
int(* coef_bits)[64]
Definition: jpeglib.h:516
#define TRUE
Definition: jpleph.cpp:68
int Ss
Definition: jpeglib.h:613
c_derived_tbl * derived_tbls[4]
Definition: jcphuff.cpp:56
int cindex
Definition: agent_node.cpp:66
Definition: jpeglib.h:121
unsigned int EOBRUN
Definition: jcphuff.cpp:44
static boolean decode_mcu_DC_refine(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdphuff.cpp:442
struct jpeg_entropy_decoder * entropy
Definition: jpeglib.h:630