Home | History | Annotate | Download | only in libjasper

Lines Matching full:prec

103 static uint_fast32_t inttobits(jas_seqent_t v, int prec, bool sgnd);
104 static jas_seqent_t bitstoint(uint_fast32_t v, int prec, bool sgnd);
105 static int putint(jas_stream_t *out, int sgnd, int prec, long val);
106 static int getint(jas_stream_t *in, int sgnd, int prec, long *val);
160 (cmptparm->prec + 7) / 8;
171 cmptparm->width, cmptparm->height, cmptparm->prec,
671 cmptparm->width, cmptparm->height, cmptparm->prec,
717 static uint_fast32_t inttobits(jas_seqent_t v, int prec, bool sgnd)
720 ret = ((sgnd && v < 0) ? ((1 << prec) + v) : v) & JAS_ONES(prec);
724 static jas_seqent_t bitstoint(uint_fast32_t v, int prec, bool sgnd)
727 v &= JAS_ONES(prec);
728 ret = (sgnd && (v & (1 << (prec - 1)))) ? (v - (1 << prec)) : v;
823 fprintf(out, "prec=%d, sgnd=%d, cmpttype=%d\n", cmpt->prec_,
861 cmptparms.prec = JAS_IMAGE_CDT_GETPREC(dtype);
1038 jas_image_coord_t vs, int sgnd, int prec)
1079 cmptparm.prec = prec;
1202 static int getint(jas_stream_t *in, int sgnd, int prec, long *val)
1207 n = (prec + 7) / 8;
1214 v &= ((1 << prec) - 1);
1224 static int putint(jas_stream_t *out, int sgnd, int prec, long val)
1232 val &= (1 << prec) - 1;
1233 n = (prec + 7) / 8;
1285 int prec;
1342 prec = 8;
1355 cmptparm.prec = prec;
1390 incmptfmts[i].prec = jas_image_cmptprec(inimage, j);
1406 outcmptfmts[i].prec = jas_image_cmptprec(outimage, j);