Lines Matching refs:abits
299 int16_t *blocks, int mbs_per_slice, int abits)
308 if (abits == 8)
439 static void put_alpha_diff(PutBitContext *pb, int cur, int prev, int abits)
441 const int mask = (1 << abits) - 1;
442 const int dbits = (abits == 8) ? 4 : 7;
447 if (diff >= (1 << abits) - dsize)
448 diff -= 1 << abits;
451 put_bits(pb, abits, diff);
477 const int abits = ctx->alpha_bits;
478 const int mask = (1 << abits) - 1;
486 put_alpha_diff(pb, cur, prev, abits);
492 put_alpha_diff(pb, cur, prev, abits);
689 static int est_alpha_diff(int cur, int prev, int abits)
691 const int mask = (1 << abits) - 1;
692 const int dbits = (abits == 8) ? 4 : 7;
697 if (diff >= (1 << abits) - dsize)
698 diff -= 1 << abits;
700 return abits + 1;
710 const int abits = ctx->alpha_bits;
711 const int mask = (1 << abits) - 1;
720 bits = est_alpha_diff(cur, prev, abits);
731 bits += est_alpha_diff(cur, prev, abits);