Lines Matching refs:image

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