| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define JPEG_INTERNALS |
| #include "jpeglib.h" |
| |
| |
| |
| typedef void (*upsample1_ptr) (j_decompress_ptr cinfo, |
| jpeg_component_info *compptr, |
| JSAMPARRAY input_data, |
| JSAMPARRAY *output_data_ptr); |
| |
| |
| |
| typedef struct { |
| struct jpeg_upsampler pub; |
| |
| |
| |
| |
| |
| |
| |
| |
| JSAMPARRAY color_buf[MAX_COMPONENTS]; |
| |
| |
| upsample1_ptr methods[MAX_COMPONENTS]; |
| |
| int next_row_out; |
| JDIMENSION rows_to_go; |
| |
| |
| int rowgroup_height[MAX_COMPONENTS]; |
| |
| |
| |
| |
| UINT8 h_expand[MAX_COMPONENTS]; |
| UINT8 v_expand[MAX_COMPONENTS]; |
| } my_upsampler; |
| |
| typedef my_upsampler *my_upsample_ptr; |