Home
last modified time | relevance | path

Searched refs:cblk (Results 1 – 10 of 10) sorted by relevance

/external/opencv3/3rdparty/libjasper/
Djpc_t2enc.c167 jpc_enc_cblk_t *cblk; in jpc_enc_encpkt() local
228 for (cblk = prc->cblks; cblk != endcblks; ++cblk) { in jpc_enc_encpkt()
230 leaf = jpc_tagtree_getleaf(prc->nlibtree, cblk - prc->cblks); in jpc_enc_encpkt()
231 jpc_tagtree_setvalue(prc->nlibtree, leaf, cblk->numimsbs); in jpc_enc_encpkt()
233 pass = cblk->curpass; in jpc_enc_encpkt()
235 if (included && (!cblk->numencpasses)) { in jpc_enc_encpkt()
238 cblk - prc->cblks); in jpc_enc_encpkt()
244 for (cblk = prc->cblks; cblk != endcblks; ++cblk) { in jpc_enc_encpkt()
245 pass = cblk->curpass; in jpc_enc_encpkt()
247 if (!cblk->numencpasses) { in jpc_enc_encpkt()
[all …]
Djpc_t1enc.c116 jpc_enc_cblk_t *cblk; in jpc_enc_enccblks() local
147 for (cblk = prc->cblks; cblk != endcblks; ++cblk) { in jpc_enc_enccblks()
149 for (i = 0; i < jas_matrix_numrows(cblk->data); ++i) { in jpc_enc_enccblks()
150 for (j = 0; j < jas_matrix_numcols(cblk->data); ++j) { in jpc_enc_enccblks()
151 v = abs(jas_matrix_get(cblk->data, i, j)); in jpc_enc_enccblks()
160 cblk->numbps = JAS_MAX(jpc_firstone(mx) + 1 - JPC_NUMEXTRABITS, 0); in jpc_enc_enccblks()
163 for (cblk = prc->cblks; cblk != endcblks; ++cblk) { in jpc_enc_enccblks()
164 cblk->numimsbs = band->numbps - cblk->numbps; in jpc_enc_enccblks()
165 assert(cblk->numimsbs >= 0); in jpc_enc_enccblks()
168 for (cblk = prc->cblks; cblk != endcblks; ++cblk) { in jpc_enc_enccblks()
[all …]
Djpc_t1dec.c93 jpc_dec_cblk_t *cblk, int dopartial, int maxlyrs);
153 jpc_dec_cblk_t *cblk; in jpc_dec_decodecblks() local
174 cblk = prc->cblks; cblkcnt > 0; in jpc_dec_decodecblks()
175 --cblkcnt, ++cblk) { in jpc_dec_decodecblks()
177 band, cblk, 1, JPC_MAXLYRS)) { in jpc_dec_decodecblks()
191 jpc_dec_cblk_t *cblk, int dopartial, int maxlyrs) in jpc_dec_decodecblk() argument
205 if (!cblk->flags) { in jpc_dec_decodecblk()
207 if (!(cblk->flags = jas_matrix_create(jas_matrix_numrows(cblk->data) + in jpc_dec_decodecblk()
208 2, jas_matrix_numcols(cblk->data) + 2))) { in jpc_dec_decodecblk()
213 seg = cblk->segs.head; in jpc_dec_decodecblk()
[all …]
Djpc_t2dec.c163 jpc_dec_cblk_t *cblk; in jpc_dec_decodepkt() local
249 for (cblkno = 0, cblk = prc->cblks; cblkno < prc->numcblks; in jpc_dec_decodepkt()
250 ++cblkno, ++cblk) { in jpc_dec_decodepkt()
252 if (!cblk->numpasses) { in jpc_dec_decodepkt()
267 if (!cblk->numpasses) { in jpc_dec_decodepkt()
279 cblk->numimsbs = i - 1; in jpc_dec_decodepkt()
280 cblk->firstpassno = cblk->numimsbs * 3; in jpc_dec_decodepkt()
286 seg = cblk->curseg; in jpc_dec_decodepkt()
293 cblk->numlenbits += m; in jpc_dec_decodepkt()
296 passno = cblk->firstpassno + cblk->numpasses + mycounter; in jpc_dec_decodepkt()
[all …]
Djpc_enc.c137 static jpc_enc_cblk_t *cblk_create(jpc_enc_cblk_t *cblk, jpc_enc_cp_t *cp,
148 int dump_passes(jpc_enc_pass_t *passes, int numpasses, jpc_enc_cblk_t *cblk);
149 void calcrdslopes(jpc_enc_cblk_t *cblk);
1465 int dump_passes(jpc_enc_pass_t *passes, int numpasses, jpc_enc_cblk_t *cblk) in dump_passes() argument
1471 smo = cblk->stream->obj_; in dump_passes()
1513 void calcrdslopes(jpc_enc_cblk_t *cblk) in calcrdslopes() argument
1524 endpasses = &cblk->passes[cblk->numpasses]; in calcrdslopes()
1525 pass2 = cblk->passes; in calcrdslopes()
1529 for (pass1 = cblk->passes; pass1 != endpasses; ++pass1) { in calcrdslopes()
1566 for (pass0 = cblk->passes; pass0 != endpasses; ++pass0) { in calcrdslopes()
[all …]
Djpc_dec.c650 jpc_dec_cblk_t *cblk; in jpc_dec_tileinit() local
843 for (cblkcnt = prc->numcblks, cblk = prc->cblks; cblkcnt > 0;) { in jpc_dec_tileinit()
851 cblk->firstpassno = -1; in jpc_dec_tileinit()
852 cblk->mqdec = 0; in jpc_dec_tileinit()
853 cblk->nulldec = 0; in jpc_dec_tileinit()
854 cblk->flags = 0; in jpc_dec_tileinit()
855 cblk->numpasses = 0; in jpc_dec_tileinit()
856 cblk->segs.head = 0; in jpc_dec_tileinit()
857 cblk->segs.tail = 0; in jpc_dec_tileinit()
858 cblk->curseg = 0; in jpc_dec_tileinit()
[all …]
Djpc_t1enc.h91 jpc_enc_band_t *band, jpc_enc_cblk_t *cblk);
/external/pdfium/third_party/libopenjpeg20/
Dt2.c147 static OPJ_BOOL opj_t2_init_seg( opj_tcd_cblk_dec_t* cblk,
578 opj_tcd_cblk_enc_t* cblk = 00; in opj_t2_encode_packet() local
615 cblk = &prc->cblks.enc[cblkno]; in opj_t2_encode_packet()
617 cblk->numpasses = 0; in opj_t2_encode_packet()
618 … opj_tgt_setvalue(prc->imsbtree, cblkno, band->numbps - (OPJ_INT32)cblk->numbps); in opj_t2_encode_packet()
638 cblk = prc->cblks.enc; in opj_t2_encode_packet()
641 opj_tcd_layer_t *layer = &cblk->layers[layno]; in opj_t2_encode_packet()
643 if (!cblk->numpasses && layer->numpasses) { in opj_t2_encode_packet()
647 ++cblk; in opj_t2_encode_packet()
650 cblk = prc->cblks.enc; in opj_t2_encode_packet()
[all …]
Dtcd.c243 opj_tcd_cblk_enc_t *cblk = &prc->cblks.enc[cblkno]; in opj_tcd_makelayer() local
244 opj_tcd_layer_t *layer = &cblk->layers[layno]; in opj_tcd_makelayer()
248 cblk->numpassesinlayers = 0; in opj_tcd_makelayer()
251 n = cblk->numpassesinlayers; in opj_tcd_makelayer()
253 … for (passno = cblk->numpassesinlayers; passno < cblk->totalpasses; passno++) { in opj_tcd_makelayer()
256 … opj_tcd_pass_t *pass = &cblk->passes[passno]; in opj_tcd_makelayer()
262 … dr = pass->rate - cblk->passes[n - 1].rate; in opj_tcd_makelayer()
263 … dd = pass->distortiondec - cblk->passes[n - 1].distortiondec; in opj_tcd_makelayer()
275 layer->numpasses = n - cblk->numpassesinlayers; in opj_tcd_makelayer()
282 if (cblk->numpassesinlayers == 0) { in opj_tcd_makelayer()
[all …]
Dt1.c272 opj_tcd_cblk_enc_t* cblk,
293 opj_tcd_cblk_dec_t* cblk,
1289 opj_tcd_cblk_dec_t* cblk = &precinct->cblks.dec[cblkno]; in opj_t1_decode_cblks() local
1297 cblk, in opj_t1_decode_cblks()
1304 x = cblk->x0 - band->x0; in opj_t1_decode_cblks()
1305 y = cblk->y0 - band->y0; in opj_t1_decode_cblks()
1362 opj_tcd_cblk_dec_t* cblk, in opj_t1_decode_cblk() argument
1377 (OPJ_UINT32)(cblk->x1 - cblk->x0), in opj_t1_decode_cblk()
1378 (OPJ_UINT32)(cblk->y1 - cblk->y0))) in opj_t1_decode_cblk()
1383 bpno_plus_one = (OPJ_INT32)(roishift + cblk->numbps); in opj_t1_decode_cblk()
[all …]