Home
last modified time | relevance | path

Searched refs:bpcc (Results 1 – 7 of 7) sorted by relevance

/external/opencv3/3rdparty/libjasper/
Djp2_dec.c171 if (!dec->bpcc) { in jp2_decode()
172 dec->bpcc = box; in jp2_decode()
261 if (dec->bpcc) { in jp2_decode()
264 if (dec->bpcc->data.bpcc.numcmpts != JAS_CAST(uint, jas_image_numcmpts( in jp2_decode()
272 … if (jas_image_cmptdtype(dec->image, i) != JP2_BPCTODTYPE(dec->bpcc->data.bpcc.bpcs[i])) { in jp2_decode()
484 dec->bpcc = 0; in jp2_dec_create()
499 if (dec->bpcc) { in jp2_dec_destroy()
500 jp2_box_destroy(dec->bpcc); in jp2_dec_destroy()
Djp2_enc.c101 jp2_bpcc_t *bpcc; in jp2_write_header() local
195 bpcc = &box->data.bpcc; in jp2_write_header()
196 bpcc->numcmpts = jas_image_numcmpts(image); in jp2_write_header()
197 if (!(bpcc->bpcs = jas_alloc2(bpcc->numcmpts, in jp2_write_header()
201 for (cmptno = 0; cmptno < bpcc->numcmpts; ++cmptno) { in jp2_write_header()
202 bpcc->bpcs[cmptno] = JP2_SPTOBPC(jas_image_cmptsgnd(image, in jp2_write_header()
Djp2_cod.c226 jp2_bpcc_t *bpcc = &box->data.bpcc; in jp2_bpcc_destroy() local
227 if (bpcc->bpcs) { in jp2_bpcc_destroy()
228 jas_free(bpcc->bpcs); in jp2_bpcc_destroy()
229 bpcc->bpcs = 0; in jp2_bpcc_destroy()
380 jp2_bpcc_t *bpcc = &box->data.bpcc; in jp2_bpcc_getdata() local
382 bpcc->numcmpts = box->datalen; in jp2_bpcc_getdata()
383 if (!(bpcc->bpcs = jas_alloc2(bpcc->numcmpts, sizeof(uint_fast8_t)))) { in jp2_bpcc_getdata()
386 for (i = 0; i < bpcc->numcmpts; ++i) { in jp2_bpcc_getdata()
387 if (jp2_getuint8(in, &bpcc->bpcs[i])) { in jp2_bpcc_getdata()
570 jp2_bpcc_t *bpcc = &box->data.bpcc; in jp2_bpcc_putdata() local
[all …]
Djp2_dec.h76 jp2_box_t *bpcc; member
Djp2_cod.h266 jp2_bpcc_t bpcc; member
/external/pdfium/third_party/libopenjpeg20/
Djp2.h150 OPJ_UINT32 bpcc; member
Djp2.c666 opj_write_bytes(l_current_bpcc_ptr, jp2->comps[i].bpcc, 1); /* write each component information */ in opj_jp2_write_bpcc()
701 opj_read_bytes(p_bpc_header_data,&jp2->comps[i].bpcc ,1); /* read each BPCC component */ in opj_jp2_read_bpcc()
1842 jp2->comps[i].bpcc = image->comps[i].prec - 1 + (image->comps[i].sgnd << 7); in opj_jp2_setup_encoder()
2076 l_is_valid &= ((jp2->comps[i].bpcc & 0x7FU) < 38U); /* 0 is valid, ignore sign for check */ in opj_jp2_default_validation()