Home | History | Annotate | Download | only in libFLAC

Lines Matching defs:bits

143 	/* for use when the signal is <= 16 bits-per-sample, or <= 15 bits-per-sample on a side channel (which requires 1 extra bit): */
163 FLAC__byte header_warmup[2]; /* contains the sync code and reserved bits */
1381 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
1388 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
1392 else if(x >> 1 == 0x7c) { /* MAGIC NUMBER for the last 6 sync bits and reserved 7th bit */
1587 unsigned bits, used_bits = 0;
1595 bits = FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN;
1596 if(!FLAC__bitreader_read_raw_uint32(decoder->private_->input, &x, bits))
1599 used_bits += bits;
1601 bits = FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN;
1605 used_bits += bits;
1607 bits = FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN;
1611 used_bits += bits;
1613 bits = FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN;
1617 used_bits += bits;
1619 bits = FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN;
1623 used_bits += bits;
1625 bits = FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN;
1629 used_bits += bits;
1631 bits = FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN;
1635 used_bits += bits;
1637 bits = FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN;
1640 used_bits += bits;
1996 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
2003 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
2007 else if(x >> 1 == 0x7c) { /* MAGIC NUMBER for the last 6 sync bits and reserved 7th bit */
2046 * first figure the correct bits-per-sample of the subframe
2081 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption (i.e. "zero bits" were not all zeroes) */
2178 /* init the raw header with the saved bits from synchronization */
2212 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */