Lines Matching refs:l_img_comp
377 opj_image_comp_t * l_img_comp,
1950 opj_image_comp_t * l_img_comp = 00; in opj_j2k_write_siz() local
1960 l_img_comp = l_image->comps; in opj_j2k_write_siz()
2018 opj_write_bytes(l_current_ptr, l_img_comp->prec - 1 + (l_img_comp->sgnd << 7), in opj_j2k_write_siz()
2022 opj_write_bytes(l_current_ptr, l_img_comp->dx, 1); /* XRsiz_i */ in opj_j2k_write_siz()
2025 opj_write_bytes(l_current_ptr, l_img_comp->dy, 1); /* YRsiz_i */ in opj_j2k_write_siz()
2028 ++l_img_comp; in opj_j2k_write_siz()
2062 opj_image_comp_t * l_img_comp = 00; in opj_j2k_read_siz() local
2221 l_img_comp = l_image->comps; in opj_j2k_read_siz()
2230 l_img_comp->prec = (tmp & 0x7f) + 1; in opj_j2k_read_siz()
2231 l_img_comp->sgnd = tmp >> 7; in opj_j2k_read_siz()
2235 l_prec0 = l_img_comp->prec; in opj_j2k_read_siz()
2236 l_sgnd0 = l_img_comp->sgnd; in opj_j2k_read_siz()
2238 && (l_img_comp->prec != l_prec0 || l_img_comp->sgnd != l_sgnd0)) { in opj_j2k_read_siz()
2242 i, l_img_comp->prec, l_img_comp->sgnd); in opj_j2k_read_siz()
2248 l_img_comp->dx = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2251 l_img_comp->dy = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2252 if (l_img_comp->dx < 1 || l_img_comp->dx > 255 || in opj_j2k_read_siz()
2253 l_img_comp->dy < 1 || l_img_comp->dy > 255) { in opj_j2k_read_siz()
2256 i, l_img_comp->dx, l_img_comp->dy); in opj_j2k_read_siz()
2262 if (l_img_comp->prec > 31) { in opj_j2k_read_siz()
2265 i, l_img_comp->prec); in opj_j2k_read_siz()
2297 l_img_comp->resno_decoded = in opj_j2k_read_siz()
2299 l_img_comp->factor = in opj_j2k_read_siz()
2301 ++l_img_comp; in opj_j2k_read_siz()
5038 opj_image_comp_t * l_img_comp = 00; in opj_j2k_update_rates() local
5163 l_img_comp = l_image->comps; in opj_j2k_update_rates()
5167 l_tile_size += (opj_uint_ceildiv(l_cp->tdx, l_img_comp->dx) in opj_j2k_update_rates()
5169 opj_uint_ceildiv(l_cp->tdy, l_img_comp->dy) in opj_j2k_update_rates()
5171 l_img_comp->prec in opj_j2k_update_rates()
5174 ++l_img_comp; in opj_j2k_update_rates()
9238 opj_image_comp_t* l_img_comp = NULL; in opj_j2k_update_image_dimensions() local
9240 l_img_comp = p_image->comps; in opj_j2k_update_image_dimensions()
9242 l_img_comp->x0 = opj_uint_ceildiv(p_image->x0, l_img_comp->dx); in opj_j2k_update_image_dimensions()
9243 l_img_comp->y0 = opj_uint_ceildiv(p_image->y0, l_img_comp->dy); in opj_j2k_update_image_dimensions()
9244 l_comp_x1 = opj_int_ceildiv((OPJ_INT32)p_image->x1, (OPJ_INT32)l_img_comp->dx); in opj_j2k_update_image_dimensions()
9245 l_comp_y1 = opj_int_ceildiv((OPJ_INT32)p_image->y1, (OPJ_INT32)l_img_comp->dy); in opj_j2k_update_image_dimensions()
9247 OPJ_INT32 l_1 = opj_int_ceildivpow2(l_comp_x1, (OPJ_INT32)l_img_comp->factor); in opj_j2k_update_image_dimensions()
9248 … OPJ_INT32 l_2 = opj_int_ceildivpow2((OPJ_INT32)l_img_comp->x0, (OPJ_INT32)l_img_comp->factor); in opj_j2k_update_image_dimensions()
9255 l_img_comp->w = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9257 l_1 = opj_int_ceildivpow2(l_comp_y1, (OPJ_INT32)l_img_comp->factor); in opj_j2k_update_image_dimensions()
9258 l_2 = opj_int_ceildivpow2((OPJ_INT32)l_img_comp->y0, (OPJ_INT32)l_img_comp->factor); in opj_j2k_update_image_dimensions()
9265 l_img_comp->h = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9267 l_img_comp++; in opj_j2k_update_image_dimensions()
11053 opj_image_comp_t* l_img_comp; in opj_j2k_get_tile() local
11095 l_img_comp = p_image->comps; in opj_j2k_get_tile()
11099 l_img_comp->factor = p_j2k->m_private_image->comps[compno].factor; in opj_j2k_get_tile()
11101 l_img_comp->x0 = opj_uint_ceildiv(p_image->x0, l_img_comp->dx); in opj_j2k_get_tile()
11102 l_img_comp->y0 = opj_uint_ceildiv(p_image->y0, l_img_comp->dy); in opj_j2k_get_tile()
11103 l_comp_x1 = opj_int_ceildiv((OPJ_INT32)p_image->x1, (OPJ_INT32)l_img_comp->dx); in opj_j2k_get_tile()
11104 l_comp_y1 = opj_int_ceildiv((OPJ_INT32)p_image->y1, (OPJ_INT32)l_img_comp->dy); in opj_j2k_get_tile()
11106 l_img_comp->w = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_x1, in opj_j2k_get_tile()
11107 … (OPJ_INT32)l_img_comp->factor) - opj_int_ceildivpow2((OPJ_INT32)l_img_comp->x0, in opj_j2k_get_tile()
11108 (OPJ_INT32)l_img_comp->factor)); in opj_j2k_get_tile()
11109 l_img_comp->h = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_y1, in opj_j2k_get_tile()
11110 … (OPJ_INT32)l_img_comp->factor) - opj_int_ceildivpow2((OPJ_INT32)l_img_comp->y0, in opj_j2k_get_tile()
11111 (OPJ_INT32)l_img_comp->factor)); in opj_j2k_get_tile()
11113 l_img_comp++; in opj_j2k_get_tile()
11212 opj_image_comp_t * l_img_comp = p_tcd->image->comps + j; in opj_j2k_encode() local
11213 if (((size_t)l_img_comp->data & 0xFU) != in opj_j2k_encode()
11233 opj_image_comp_t * l_img_comp = p_tcd->image->comps + j; in opj_j2k_encode() local
11234 l_tilec->data = l_img_comp->data; in opj_j2k_encode()
11394 opj_image_comp_t * l_img_comp, in opj_get_tile_dimensions() argument
11405 *l_size_comp = l_img_comp->prec >> 3; /* (/8) */ in opj_get_tile_dimensions()
11406 l_remaining = l_img_comp->prec & 7; /* (%8) */ in opj_get_tile_dimensions()
11417 *l_offset_x = opj_uint_ceildiv(l_image->x0, l_img_comp->dx); in opj_get_tile_dimensions()
11418 *l_offset_y = opj_uint_ceildiv(l_image->y0, l_img_comp->dy); in opj_get_tile_dimensions()
11420 (OPJ_INT32)l_image->x0, (OPJ_INT32)l_img_comp->dx); in opj_get_tile_dimensions()
11434 opj_image_comp_t * l_img_comp = l_image->comps + i; in opj_j2k_get_tile_data() local
11440 l_img_comp, in opj_j2k_get_tile_data()
11450 l_src_ptr = l_img_comp->data + l_tile_offset; in opj_j2k_get_tile_data()
11455 if (l_img_comp->sgnd) { in opj_j2k_get_tile_data()
11480 if (l_img_comp->sgnd) { in opj_j2k_get_tile_data()