Displaying 2 results from an estimated 2 matches for "width_blocks".
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...- max_v_oversample = MAX (max_v_oversample, dec->components[i].v_oversample);
+
+
+ for (i=0; i < dec->n_components; i++) {
+ max_h_sample = MAX (max_h_sample, dec->components[i].h_sample);
+ max_v_sample = MAX (max_v_sample, dec->components[i].v_sample);
}
+
dec->width_blocks =
- (dec->width + 8 * max_h_oversample - 1) / (8 * max_h_oversample);
+ (dec->width + 8 * max_h_sample - 1) / (8 * max_h_sample);
dec->height_blocks =
- (dec->height + 8 * max_v_oversample - 1) / (8 * max_v_oversample);
+ (dec->height + 8 * max_v_sample - 1) /...
2007 Feb 13
0
libswfdec/jpeg libswfdec/swfdec_image.c
...#define JPEG_N_COMPONENTS 4
-typedef struct jpeg_scan_struct JpegScan;
+typedef struct _JpegScan JpegScan;
#define JPEG_ENTROPY_SEGMENT 0x0001
#define JPEG_LENGTH 0x0002
-struct jpeg_decoder_struct
-{
- int width;
- int height;
- int depth;
- int n_components;
- bits_t bits;
-
- int width_blocks;
- int height_blocks;
-
- int restart_interval;
-
- unsigned char *data;
- unsigned int data_len;
-
- struct
- {
- int id;
- int h_oversample;
- int v_oversample;
- int h_subsample;
- int v_subsample;
- int quant_table;
- unsigned char *image;
- int rowstride;
- } com...