Skip to content

Commit f9a6873

Browse files
committed
Update libflac headers
1 parent 36e973a commit f9a6873

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

3rdparty/libflac/include/private/bitreader.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,21 @@ void FLAC__bitreader_dump(const FLAC__BitReader *br, FILE *out);
6161
void FLAC__bitreader_reset_read_crc16(FLAC__BitReader *br, FLAC__uint16 seed);
6262
FLAC__uint16 FLAC__bitreader_get_read_crc16(FLAC__BitReader *br);
6363

64+
/*
65+
* info functions
66+
*/
67+
FLAC__bool FLAC__bitreader_is_consumed_byte_aligned(const FLAC__BitReader *br);
68+
unsigned FLAC__bitreader_bits_left_for_byte_alignment(const FLAC__BitReader *br);
69+
unsigned FLAC__bitreader_get_input_bits_unconsumed(const FLAC__BitReader *br);
70+
6471
/*
6572
* read functions
6673
*/
6774

6875
FLAC__bool FLAC__bitreader_read_raw_uint32(FLAC__BitReader *br, FLAC__uint32 *val, unsigned bits);
6976
FLAC__bool FLAC__bitreader_read_raw_int32(FLAC__BitReader *br, FLAC__int32 *val, unsigned bits);
7077
FLAC__bool FLAC__bitreader_read_raw_uint64(FLAC__BitReader *br, FLAC__uint64 *val, unsigned bits);
78+
FLAC__bool FLAC__bitreader_read_uint32_little_endian(FLAC__BitReader *br, FLAC__uint32 *val); /*only for bits=32*/
7179
FLAC__bool FLAC__bitreader_skip_bits_no_crc(FLAC__BitReader *br, unsigned bits); /* WATCHOUT: does not CRC the skipped data! */ /*@@@@ add to unit tests */
7280
FLAC__bool FLAC__bitreader_skip_byte_block_aligned_no_crc(FLAC__BitReader *br, unsigned nvals); /* WATCHOUT: does not CRC the read data! */
7381
FLAC__bool FLAC__bitreader_read_byte_block_aligned_no_crc(FLAC__BitReader *br, FLAC__byte *val, unsigned nvals); /* WATCHOUT: does not CRC the read data! */

3rdparty/libflac/include/private/bitwriter.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ void FLAC__bitwriter_release_buffer(FLAC__BitWriter *bw);
7979
/*
8080
* write functions
8181
*/
82+
FLAC__bool FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, unsigned bits);
83+
FLAC__bool FLAC__bitwriter_write_raw_uint32(FLAC__BitWriter *bw, FLAC__uint32 val, unsigned bits);
84+
FLAC__bool FLAC__bitwriter_write_raw_int32(FLAC__BitWriter *bw, FLAC__int32 val, unsigned bits);
85+
FLAC__bool FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, unsigned bits);
86+
FLAC__bool FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 val); /*only for bits=32*/
87+
FLAC__bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], unsigned nvals);
8288
FLAC__bool FLAC__bitwriter_write_unary_unsigned(FLAC__BitWriter *bw, unsigned val);
8389
unsigned FLAC__bitwriter_rice_bits(FLAC__int32 val, unsigned parameter);
8490
#if 0 /* UNUSED */

0 commit comments

Comments
 (0)