• Home
  • Raw
  • Download

Lines Matching refs:img_comp

1957    } img_comp[4];  member
2195 dc = j->img_comp[b].dc_pred + diff; in stbi__jpeg_decode_block()
2196 j->img_comp[b].dc_pred = dc; in stbi__jpeg_decode_block()
2249 dc = j->img_comp[b].dc_pred + diff; in stbi__jpeg_decode_block_prog_dc()
2250 j->img_comp[b].dc_pred = dc; in stbi__jpeg_decode_block_prog_dc()
2907 …j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred … in stbi__jpeg_reset()
2927 int w = (z->img_comp[n].x+7) >> 3; in stbi__parse_entropy_coded_data()
2928 int h = (z->img_comp[n].y+7) >> 3; in stbi__parse_entropy_coded_data()
2931 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
2932 …peg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequa… in stbi__parse_entropy_coded_data()
2933 … z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); in stbi__parse_entropy_coded_data()
2955 for (y=0; y < z->img_comp[n].v; ++y) { in stbi__parse_entropy_coded_data()
2956 for (x=0; x < z->img_comp[n].h; ++x) { in stbi__parse_entropy_coded_data()
2957 int x2 = (i*z->img_comp[n].h + x)*8; in stbi__parse_entropy_coded_data()
2958 int y2 = (j*z->img_comp[n].v + y)*8; in stbi__parse_entropy_coded_data()
2959 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
2960 …peg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequa… in stbi__parse_entropy_coded_data()
2961 … z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data); in stbi__parse_entropy_coded_data()
2984 int w = (z->img_comp[n].x+7) >> 3; in stbi__parse_entropy_coded_data()
2985 int h = (z->img_comp[n].y+7) >> 3; in stbi__parse_entropy_coded_data()
2988 short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); in stbi__parse_entropy_coded_data()
2990 if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) in stbi__parse_entropy_coded_data()
2993 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
3015 for (y=0; y < z->img_comp[n].v; ++y) { in stbi__parse_entropy_coded_data()
3016 for (x=0; x < z->img_comp[n].h; ++x) { in stbi__parse_entropy_coded_data()
3017 int x2 = (i*z->img_comp[n].h + x); in stbi__parse_entropy_coded_data()
3018 int y2 = (j*z->img_comp[n].v + y); in stbi__parse_entropy_coded_data()
3019 … short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); in stbi__parse_entropy_coded_data()
3020 … if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) in stbi__parse_entropy_coded_data()
3052 int w = (z->img_comp[n].x+7) >> 3; in stbi__jpeg_finish()
3053 int h = (z->img_comp[n].y+7) >> 3; in stbi__jpeg_finish()
3056 short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); in stbi__jpeg_finish()
3057 stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); in stbi__jpeg_finish()
3058 … z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); in stbi__jpeg_finish()
3179 if (z->img_comp[which].id == id) in stbi__process_scan_header()
3182 …z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","C… in stbi__process_scan_header()
3183 …z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","C… in stbi__process_scan_header()
3211 if (z->img_comp[i].raw_data) { in stbi__free_jpeg_components()
3212 STBI_FREE(z->img_comp[i].raw_data); in stbi__free_jpeg_components()
3213 z->img_comp[i].raw_data = NULL; in stbi__free_jpeg_components()
3214 z->img_comp[i].data = NULL; in stbi__free_jpeg_components()
3216 if (z->img_comp[i].raw_coeff) { in stbi__free_jpeg_components()
3217 STBI_FREE(z->img_comp[i].raw_coeff); in stbi__free_jpeg_components()
3218 z->img_comp[i].raw_coeff = 0; in stbi__free_jpeg_components()
3219 z->img_comp[i].coeff = 0; in stbi__free_jpeg_components()
3221 if (z->img_comp[i].linebuf) { in stbi__free_jpeg_components()
3222 STBI_FREE(z->img_comp[i].linebuf); in stbi__free_jpeg_components()
3223 z->img_comp[i].linebuf = NULL; in stbi__free_jpeg_components()
3243 z->img_comp[i].data = NULL; in stbi__process_frame_header()
3244 z->img_comp[i].linebuf = NULL; in stbi__process_frame_header()
3252 z->img_comp[i].id = stbi__get8(s); in stbi__process_frame_header()
3253 if (s->img_n == 3 && z->img_comp[i].id == rgb[i]) in stbi__process_frame_header()
3256 …z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad… in stbi__process_frame_header()
3257 …z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad… in stbi__process_frame_header()
3258 …z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt … in stbi__process_frame_header()
3266 if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; in stbi__process_frame_header()
3267 if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; in stbi__process_frame_header()
3281 z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; in stbi__process_frame_header()
3282 z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; in stbi__process_frame_header()
3290 z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; in stbi__process_frame_header()
3291 z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; in stbi__process_frame_header()
3292 z->img_comp[i].coeff = 0; in stbi__process_frame_header()
3293 z->img_comp[i].raw_coeff = 0; in stbi__process_frame_header()
3294 z->img_comp[i].linebuf = NULL; in stbi__process_frame_header()
3295 z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15); in stbi__process_frame_header()
3296 if (z->img_comp[i].raw_data == NULL) in stbi__process_frame_header()
3299 z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); in stbi__process_frame_header()
3302 z->img_comp[i].coeff_w = z->img_comp[i].w2 / 8; in stbi__process_frame_header()
3303 z->img_comp[i].coeff_h = z->img_comp[i].h2 / 8; in stbi__process_frame_header()
3304 …z->img_comp[i].raw_coeff = stbi__malloc_mad3(z->img_comp[i].w2, z->img_comp[i].h2, sizeof(short), … in stbi__process_frame_header()
3305 if (z->img_comp[i].raw_coeff == NULL) in stbi__process_frame_header()
3307 z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); in stbi__process_frame_header()
3352 j->img_comp[m].raw_data = NULL; in stbi__decode_jpeg_image()
3353 j->img_comp[m].raw_coeff = NULL; in stbi__decode_jpeg_image()
3843 z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); in load_jpeg_image()
3844 …if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memo… in load_jpeg_image()
3846 r->hs = z->img_h_max / z->img_comp[k].h; in load_jpeg_image()
3847 r->vs = z->img_v_max / z->img_comp[k].v; in load_jpeg_image()
3851 r->line0 = r->line1 = z->img_comp[k].data; in load_jpeg_image()
3870 coutput[k] = r->resample(z->img_comp[k].linebuf, in load_jpeg_image()
3877 if (++r->ypos < z->img_comp[k].y) in load_jpeg_image()
3878 r->line1 += z->img_comp[k].w2; in load_jpeg_image()