Lines Matching refs:comp

61             opj_image_comp_t *comp = &image->comps[compno];  in opj_image_create()  local
62 comp->dx = cmptparms[compno].dx; in opj_image_create()
63 comp->dy = cmptparms[compno].dy; in opj_image_create()
64 comp->w = cmptparms[compno].w; in opj_image_create()
65 comp->h = cmptparms[compno].h; in opj_image_create()
66 comp->x0 = cmptparms[compno].x0; in opj_image_create()
67 comp->y0 = cmptparms[compno].y0; in opj_image_create()
68 comp->prec = cmptparms[compno].prec; in opj_image_create()
69 comp->bpp = cmptparms[compno].bpp; in opj_image_create()
70 comp->sgnd = cmptparms[compno].sgnd; in opj_image_create()
71 if (comp->h != 0 && in opj_image_create()
72 (OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) { in opj_image_create()
77 comp->data = (OPJ_INT32*) opj_image_data_alloc( in opj_image_create()
78 (size_t)comp->w * comp->h * sizeof(OPJ_INT32)); in opj_image_create()
79 if (!comp->data) { in opj_image_create()
85 memset(comp->data, 0, (size_t)comp->w * comp->h * sizeof(OPJ_INT32)); in opj_image_create()
250 opj_image_comp_t *comp = &image->comps[compno]; in opj_image_tile_create() local
251 comp->dx = cmptparms[compno].dx; in opj_image_tile_create()
252 comp->dy = cmptparms[compno].dy; in opj_image_tile_create()
253 comp->w = cmptparms[compno].w; in opj_image_tile_create()
254 comp->h = cmptparms[compno].h; in opj_image_tile_create()
255 comp->x0 = cmptparms[compno].x0; in opj_image_tile_create()
256 comp->y0 = cmptparms[compno].y0; in opj_image_tile_create()
257 comp->prec = cmptparms[compno].prec; in opj_image_tile_create()
258 comp->sgnd = cmptparms[compno].sgnd; in opj_image_tile_create()
259 comp->data = 0; in opj_image_tile_create()