Lines Matching refs:parameter

404 unsigned FLAC__bitwriter_rice_bits(FLAC__int32 val, unsigned parameter)  in FLAC__bitwriter_rice_bits()  argument
408 FLAC__ASSERT(parameter < sizeof(unsigned)*8); in FLAC__bitwriter_rice_bits()
413 return 1 + parameter + (uval >> parameter); in FLAC__bitwriter_rice_bits()
417 unsigned FLAC__bitwriter_golomb_bits_signed(int val, unsigned parameter)
422 FLAC__ASSERT(parameter > 0);
430 k = FLAC__bitmath_ilog2(parameter);
431 if(parameter == 1u<<k) {
440 d = (1 << (k+1)) - parameter;
441 q = uval / parameter;
442 r = uval - (q * parameter);
451 unsigned FLAC__bitwriter_golomb_bits_unsigned(unsigned uval, unsigned parameter)
456 FLAC__ASSERT(parameter > 0);
458 k = FLAC__bitmath_ilog2(parameter);
459 if(parameter == 1u<<k) {
468 d = (1 << (k+1)) - parameter;
469 q = uval / parameter;
470 r = uval - (q * parameter);
480 …C__bool FLAC__bitwriter_write_rice_signed(FLAC__BitWriter *bw, FLAC__int32 val, unsigned parameter) in FLAC__bitwriter_write_rice_signed() argument
487 FLAC__ASSERT(parameter < 8*sizeof(uval)); in FLAC__bitwriter_write_rice_signed()
492 msbs = uval >> parameter; in FLAC__bitwriter_write_rice_signed()
493 interesting_bits = 1 + parameter; in FLAC__bitwriter_write_rice_signed()
495 pattern = 1 << parameter; /* the unary end bit */ in FLAC__bitwriter_write_rice_signed()
496 pattern |= (uval & ((1<<parameter)-1)); /* the binary LSBs */ in FLAC__bitwriter_write_rice_signed()
506 …rice_signed_block(FLAC__BitWriter *bw, const FLAC__int32 *vals, unsigned nvals, unsigned parameter) in FLAC__bitwriter_write_rice_signed_block() argument
508 …const FLAC__uint32 mask1 = FLAC__WORD_ALL_ONES << parameter; /* we val|=mask1 to set the stop bit … in FLAC__bitwriter_write_rice_signed_block()
509 …const FLAC__uint32 mask2 = FLAC__WORD_ALL_ONES >> (31-parameter); /* ...then mask off the bits abo… in FLAC__bitwriter_write_rice_signed_block()
512 const unsigned lsbits = 1 + parameter; in FLAC__bitwriter_write_rice_signed_block()
517 FLAC__ASSERT(parameter < 8*sizeof(uint32_t)-1); in FLAC__bitwriter_write_rice_signed_block()
525 msbits = uval >> parameter; in FLAC__bitwriter_write_rice_signed_block()
598 FLAC__bool FLAC__bitwriter_write_golomb_signed(FLAC__BitWriter *bw, int val, unsigned parameter)
605 FLAC__ASSERT(parameter > 0);
613 k = FLAC__bitmath_ilog2(parameter);
614 if(parameter == 1u<<k) {
640 d = (1 << (k+1)) - parameter;
641 q = uval / parameter;
642 r = uval - (q * parameter);
662 …_bool FLAC__bitwriter_write_golomb_unsigned(FLAC__BitWriter *bw, unsigned uval, unsigned parameter)
669 FLAC__ASSERT(parameter > 0);
671 k = FLAC__bitmath_ilog2(parameter);
672 if(parameter == 1u<<k) {
698 d = (1 << (k+1)) - parameter;
699 q = uval / parameter;
700 r = uval - (q * parameter);