Lines Matching refs:image
2 * Copyright (c) 1999-2000 Image Power, Inc. and the University of
18 * Copyright (c) 1999-2000 Image Power, Inc.
94 int jp2_write_header(jas_image_t *image, jas_stream_t *out)
120 sgnd = jas_image_cmptsgnd(image, 0);
121 prec = jas_image_cmptprec(image, 0);
122 for (i = 1; i < jas_image_numcmpts(image); ++i) {
123 if (jas_image_cmptsgnd(image, i) != sgnd ||
124 jas_image_cmptprec(image, i) != prec) {
169 /* Generate image header box. */
175 ihdr->width = jas_image_width(image);
176 ihdr->height = jas_image_height(image);
177 ihdr->numcmpts = jas_image_numcmpts(image);
178 ihdr->bpc = allcmptssame ? JP2_SPTOBPC(jas_image_cmptsgnd(image, 0),
179 jas_image_cmptprec(image, 0)) : JP2_IHDR_BPCNULL;
196 bpcc->numcmpts = jas_image_numcmpts(image);
202 bpcc->bpcs[cmptno] = JP2_SPTOBPC(jas_image_cmptsgnd(image,
203 cmptno), jas_image_cmptprec(image, cmptno));
218 switch (jas_image_clrspc(image)) {
223 colr->csid = clrspctojp2(jas_image_clrspc(image));
231 iccprof = jas_iccprof_createfromcmprof(jas_image_cmprof(image));
256 switch (jas_clrspc_fam(jas_image_clrspc(image))) {
258 if (jas_image_cmpttype(image, 0) ==
260 jas_image_cmpttype(image, 1) ==
262 jas_image_cmpttype(image, 2) ==
267 if (jas_image_cmpttype(image, 0) ==
269 jas_image_cmpttype(image, 1) ==
271 jas_image_cmpttype(image, 2) ==
276 if (jas_image_cmpttype(image, 0) ==
290 cdef->numchans = jas_image_numcmpts(image);
292 for (i = 0; i < jas_image_numcmpts(image); ++i) {
295 typeasoc = jp2_gettypeasoc(jas_image_clrspc(image), jas_image_cmpttype(image, i));
346 int jp2_write_codestream(jas_image_t *image, jas_stream_t *out, char *optstr)
372 if (jpc_encode(image, out, buf)) {
387 int jp2_encode(jas_image_t *image, jas_stream_t *out, char *optstr)
389 if (jp2_write_header(image, out) < 0)
391 if (jp2_write_codestream(image, out, optstr) < 0)
397 int jp2_encode_uuid(jas_image_t *image, jas_stream_t *out,
400 if (jp2_write_header(image, out) < 0)
406 if (jp2_write_codestream(image, out, optstr) < 0)