Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:st

112 arith_decode (j_decompress_ptr cinfo, unsigned char *st)
157 sv = *st;
171 *st = (sv & 0x80) ^ nm; /* Estimate_after_MPS */
174 *st = (sv & 0x80) ^ nl; /* Estimate_after_LPS */
180 *st = (sv & 0x80) ^ nl; /* Estimate_after_LPS */
183 *st = (sv & 0x80) ^ nm; /* Estimate_after_MPS */
251 unsigned char *st;
274 st = entropy->dc_stats[tbl] + entropy->dc_context[ci];
277 if (arith_decode(cinfo, st) == 0)
282 sign = arith_decode(cinfo, st + 1);
283 st += 2; st += sign;
285 if ((m = arith_decode(cinfo, st)) != 0) {
286 st = entropy->dc_stats[tbl] + 20; /* Table F.4: X1 = 20 */
287 while (arith_decode(cinfo, st)) {
293 st += 1;
305 st += 14;
307 if (arith_decode(cinfo, st)) v |= m;
330 unsigned char *st;
351 st = entropy->ac_stats[tbl] + 3 * (k - 1);
352 if (arith_decode(cinfo, st)) break; /* EOB flag */
353 while (arith_decode(cinfo, st + 1) == 0) {
354 st += 3; k++;
364 st += 2;
366 if ((m = arith_decode(cinfo, st)) != 0) {
367 if (arith_decode(cinfo, st)) {
369 st = entropy->ac_stats[tbl] +
371 while (arith_decode(cinfo, st)) {
377 st += 1;
383 st += 14;
385 if (arith_decode(cinfo, st)) v |= m;
403 unsigned char *st;
413 st = entropy->fixed_bin; /* use fixed probability estimation */
420 if (arith_decode(cinfo, st))
438 unsigned char *st;
463 st = entropy->ac_stats[tbl] + 3 * (k - 1);
465 if (arith_decode(cinfo, st)) break; /* EOB flag */
469 if (arith_decode(cinfo, st + 2)) {
477 if (arith_decode(cinfo, st + 1)) { /* newly nonzero coef */
484 st += 3; k++;
507 unsigned char *st;
532 st = entropy->dc_stats[tbl] + entropy->dc_context[ci];
535 if (arith_decode(cinfo, st) == 0)
540 sign = arith_decode(cinfo, st + 1);
541 st += 2; st += sign;
543 if ((m = arith_decode(cinfo, st)) != 0) {
544 st = entropy->dc_stats[tbl] + 20; /* Table F.4: X1 = 20 */
545 while (arith_decode(cinfo, st)) {
551 st += 1;
563 st += 14;
565 if (arith_decode(cinfo, st)) v |= m;
579 st = entropy->ac_stats[tbl] + 3 * (k - 1);
580 if (arith_decode(cinfo, st)) break; /* EOB flag */
581 while (arith_decode(cinfo, st + 1) == 0) {
582 st += 3; k++;
592 st += 2;
594 if ((m = arith_decode(cinfo, st)) != 0) {
595 if (arith_decode(cinfo, st)) {
597 st = entropy->ac_stats[tbl] +
599 while (arith_decode(cinfo, st)) {
605 st += 1;
611 st += 14;
613 if (arith_decode(cinfo, st)) v |= m;