404 boolean need_buffer, do_fancy;
405 int h_in_group, v_in_group, h_out_group, v_out_group;
426 for (ci = 0, compptr = cinfo->
comp_info; ci < cinfo->num_components;
443 }
else if (h_in_group == h_out_group && v_in_group == v_out_group) {
447 }
else if (h_in_group * 2 == h_out_group &&
448 v_in_group == v_out_group) {
454 }
else if (h_in_group * 2 == h_out_group &&
455 v_in_group * 2 == v_out_group) {
462 }
else if ((h_out_group % h_in_group) == 0 &&
463 (v_out_group % v_in_group) == 0) {
466 upsample->
h_expand[ci] = (uint8_t) (h_out_group / h_in_group);
467 upsample->
v_expand[ci] = (uint8_t) (v_out_group / v_in_group);
static void h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:261
int v_samp_factor
Definition: jpeglib.h:128
JDIMENSION downsampled_width
Definition: jpeglib.h:159
static void start_pass_upsample(j_decompress_ptr cinfo)
Definition: jdsample.cpp:69
my_upsampler * my_upsample_ptr
Definition: jdsample.cpp:61
jpeg_component_info * comp_info
Definition: jpeglib.h:540
boolean do_fancy_upsampling
Definition: jpeglib.h:445
struct jpeg_common_struct * j_common_ptr
Definition: jpeglib.h:266
int min_DCT_scaled_size
Definition: jpeglib.h:583
void *(* alloc_small)()
Definition: jpeglib.h:764
long jround_up(long a, long b)
Definition: jutils.cpp:81
int DCT_scaled_size
Definition: jpeglib.h:152
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
Definition: jpeglib.h:258
JDIMENSION output_width
Definition: jpeglib.h:464
#define SIZEOF(object)
Definition: jinclude.h:80
Definition: jpegint.h:232
boolean component_needed
Definition: jpeglib.h:165
struct jpeg_upsampler pub
Definition: jdmerge.cpp:45
int rowgroup_height[10]
Definition: jdsample.cpp:52
jpeg_component_info * compptr
Definition: jdct.h:102
#define JPOOL_IMAGE
Definition: jpeglib.h:754
static void sep_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdsample.cpp:89
int max_h_samp_factor
Definition: jpeglib.h:580
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:417
#define FALSE
Definition: jpleph.cpp:69
static void h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:304
#define TRUE
Definition: jpleph.cpp:68
uint8_t h_expand[10]
Definition: jdsample.cpp:57
Definition: jdmerge.cpp:44
int max_v_samp_factor
Definition: jpeglib.h:581
static void h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:233
boolean CCIR601_sampling
Definition: jpeglib.h:565
Definition: jpeglib.h:121
JSAMPARRAY color_buf[10]
Definition: jdsample.cpp:43
upsample1_ptr methods[10]
Definition: jdsample.cpp:46
struct jpeg_upsampler * upsample
Definition: jpeglib.h:632
static void int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:189
boolean need_context_rows
Definition: jpegint.h:242
int h_samp_factor
Definition: jpeglib.h:127
uint8_t v_expand[10]
Definition: jdsample.cpp:58
static void noop_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:170
JSAMPARRAY(* alloc_sarray)()
Definition: jpeglib.h:769
unsigned int JDIMENSION
Definition: jmorecfg.h:171
static void h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:345
static void fullsize_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
Definition: jdsample.cpp:157