Lines Matching refs:img_comp

1498    } img_comp[4];  member
1732 dc = j->img_comp[b].dc_pred + diff; in stbi__jpeg_decode_block()
1733 j->img_comp[b].dc_pred = dc; in stbi__jpeg_decode_block()
1785 dc = j->img_comp[b].dc_pred + diff; in stbi__jpeg_decode_block_prog_dc()
1786 j->img_comp[b].dc_pred = dc; in stbi__jpeg_decode_block_prog_dc()
2443 j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = 0; in stbi__jpeg_reset()
2463 int w = (z->img_comp[n].x+7) >> 3; in stbi__parse_entropy_coded_data()
2464 int h = (z->img_comp[n].y+7) >> 3; in stbi__parse_entropy_coded_data()
2467 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
2468 …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()
2469 … 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()
2491 for (y=0; y < z->img_comp[n].v; ++y) { in stbi__parse_entropy_coded_data()
2492 for (x=0; x < z->img_comp[n].h; ++x) { in stbi__parse_entropy_coded_data()
2493 int x2 = (i*z->img_comp[n].h + x)*8; in stbi__parse_entropy_coded_data()
2494 int y2 = (j*z->img_comp[n].v + y)*8; in stbi__parse_entropy_coded_data()
2495 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
2496 …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()
2497 … 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()
2520 int w = (z->img_comp[n].x+7) >> 3; in stbi__parse_entropy_coded_data()
2521 int h = (z->img_comp[n].y+7) >> 3; in stbi__parse_entropy_coded_data()
2524 short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); in stbi__parse_entropy_coded_data()
2526 if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) in stbi__parse_entropy_coded_data()
2529 int ha = z->img_comp[n].ha; in stbi__parse_entropy_coded_data()
2551 for (y=0; y < z->img_comp[n].v; ++y) { in stbi__parse_entropy_coded_data()
2552 for (x=0; x < z->img_comp[n].h; ++x) { in stbi__parse_entropy_coded_data()
2553 int x2 = (i*z->img_comp[n].h + x); in stbi__parse_entropy_coded_data()
2554 int y2 = (j*z->img_comp[n].v + y); in stbi__parse_entropy_coded_data()
2555 … short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); in stbi__parse_entropy_coded_data()
2556 … if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) in stbi__parse_entropy_coded_data()
2588 int w = (z->img_comp[n].x+7) >> 3; in stbi__jpeg_finish()
2589 int h = (z->img_comp[n].y+7) >> 3; in stbi__jpeg_finish()
2592 short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); in stbi__jpeg_finish()
2593 stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); in stbi__jpeg_finish()
2594 … 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()
2676 if (z->img_comp[which].id == id) in stbi__process_scan_header()
2679 …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()
2680 …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()
2716 z->img_comp[i].data = NULL; in stbi__process_frame_header()
2717 z->img_comp[i].linebuf = NULL; in stbi__process_frame_header()
2723 z->img_comp[i].id = stbi__get8(s); in stbi__process_frame_header()
2724 if (z->img_comp[i].id != i+1) // JFIF requires in stbi__process_frame_header()
2725 if (z->img_comp[i].id != i) // some version of jpegtran outputs non-JFIF-compliant files! in stbi__process_frame_header()
2728 …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()
2729 …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()
2730 …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()
2738 if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; in stbi__process_frame_header()
2739 if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; in stbi__process_frame_header()
2752 z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; in stbi__process_frame_header()
2753 z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; in stbi__process_frame_header()
2758 z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; in stbi__process_frame_header()
2759 z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; in stbi__process_frame_header()
2760 z->img_comp[i].raw_data = stbi__malloc(z->img_comp[i].w2 * z->img_comp[i].h2+15); in stbi__process_frame_header()
2762 if (z->img_comp[i].raw_data == NULL) { in stbi__process_frame_header()
2764 STBI_FREE(z->img_comp[i].raw_data); in stbi__process_frame_header()
2765 z->img_comp[i].raw_data = NULL; in stbi__process_frame_header()
2770 z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); in stbi__process_frame_header()
2771 z->img_comp[i].linebuf = NULL; in stbi__process_frame_header()
2773 z->img_comp[i].coeff_w = (z->img_comp[i].w2 + 7) >> 3; in stbi__process_frame_header()
2774 z->img_comp[i].coeff_h = (z->img_comp[i].h2 + 7) >> 3; in stbi__process_frame_header()
2775 …z->img_comp[i].raw_coeff = STBI_MALLOC(z->img_comp[i].coeff_w * z->img_comp[i].coeff_h * 64 * size… in stbi__process_frame_header()
2776 z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); in stbi__process_frame_header()
2778 z->img_comp[i].coeff = 0; in stbi__process_frame_header()
2779 z->img_comp[i].raw_coeff = 0; in stbi__process_frame_header()
2822 j->img_comp[m].raw_data = NULL; in stbi__decode_jpeg_image()
2823 j->img_comp[m].raw_coeff = NULL; in stbi__decode_jpeg_image()
3287 if (j->img_comp[i].raw_data) { in stbi__cleanup_jpeg()
3288 STBI_FREE(j->img_comp[i].raw_data); in stbi__cleanup_jpeg()
3289 j->img_comp[i].raw_data = NULL; in stbi__cleanup_jpeg()
3290 j->img_comp[i].data = NULL; in stbi__cleanup_jpeg()
3292 if (j->img_comp[i].raw_coeff) { in stbi__cleanup_jpeg()
3293 STBI_FREE(j->img_comp[i].raw_coeff); in stbi__cleanup_jpeg()
3294 j->img_comp[i].raw_coeff = 0; in stbi__cleanup_jpeg()
3295 j->img_comp[i].coeff = 0; in stbi__cleanup_jpeg()
3297 if (j->img_comp[i].linebuf) { in stbi__cleanup_jpeg()
3298 STBI_FREE(j->img_comp[i].linebuf); in stbi__cleanup_jpeg()
3299 j->img_comp[i].linebuf = NULL; in stbi__cleanup_jpeg()
3347 z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); in load_jpeg_image()
3348 …if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memo… in load_jpeg_image()
3350 r->hs = z->img_h_max / z->img_comp[k].h; in load_jpeg_image()
3351 r->vs = z->img_v_max / z->img_comp[k].v; in load_jpeg_image()
3355 r->line0 = r->line1 = z->img_comp[k].data; in load_jpeg_image()
3374 coutput[k] = r->resample(z->img_comp[k].linebuf, in load_jpeg_image()
3381 if (++r->ypos < z->img_comp[k].y) in load_jpeg_image()
3382 r->line1 += z->img_comp[k].w2; in load_jpeg_image()