Debian Codegraph @

external/flac/flac_private_bitreader.h

raw symbols SCIP
1 /* libFLAC - Free Lossless Audio Codec library
2 * Copyright (C) 2000-2009 Josh Coalson
3 * Copyright (C) 2011-2025 Xiph.Org Foundation
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * - Neither the name of the Xiph.org Foundation nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 #ifndef FLAC__PRIVATE__BITREADER_H
34 #define FLAC__PRIVATE__BITREADER_Hcxx . . $ `external/flac/flac_private_bitreader.h:34:9`!
35
36 #include <stdio.h> /* for FILE */
37 #include "flac_FLAC_ordinals.h"cxx . . $ `<file>/external/flac/flac_FLAC_ordinals.h`/
38 #include "flac_private_cpu.h"cxx . . $ `<file>/external/flac/flac_private_cpu.h`/
39
40 /*
41 * opaque structure definition
42 */
43 struct FLAC__BitReadercxx . . $ FLAC__BitReader#;
44 typedef struct FLAC__BitReadercxx . . $ FLAC__BitReader# FLAC__BitReadercxx . . $ FLAC__BitReader#;
45
46 typedef FLAC__boolcxx . . $ FLAC__bool# (*FLAC__BitReaderReadCallbackcxx . . $ FLAC__BitReaderReadCallback#)(FLAC__bytecxx . . $ FLAC__byte# buffer[], size_t *bytes, void *client_data);
47
48 /*
49 * construction, deletion, initialization, etc functions
50 */
51 FLAC__BitReadercxx . . $ FLAC__BitReader# *FLAC__bitreader_newcxx . . $ FLAC__bitreader_new(925105cc1ce0d636).(void);
52 void FLAC__bitreader_deletecxx . . $ FLAC__bitreader_delete(5639cb4d47c4565e).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
53 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_initcxx . . $ FLAC__bitreader_init(4af8c238fd0c2490).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__BitReaderReadCallbackcxx . . $ FLAC__BitReaderReadCallback# rcb, void *cd);
54 void FLAC__bitreader_freecxx . . $ FLAC__bitreader_free(5639cb4d47c4565e).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br); /* does not 'free(br)' */
55 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_clearcxx . . $ FLAC__bitreader_clear(69d2a7862c68e701).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
56 void FLAC__bitreader_set_framesync_locationcxx . . $ FLAC__bitreader_set_framesync_location(5639cb4d47c4565e).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
57 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_rewind_to_after_last_seen_framesynccxx . . $ FLAC__bitreader_rewind_to_after_last_seen_framesync(69d2a7862c68e701).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
58
59 /*
60 * CRC functions
61 */
62 void FLAC__bitreader_reset_read_crc16cxx . . $ FLAC__bitreader_reset_read_crc16(10d9eb0765904f2b).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint16cxx . . $ FLAC__uint16# seed);
63 FLAC__uint16cxx . . $ FLAC__uint16# FLAC__bitreader_get_read_crc16cxx . . $ FLAC__bitreader_get_read_crc16(78bb4feacef14372).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
64
65 /*
66 * info functions
67 */
68 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_is_consumed_byte_alignedcxx . . $ FLAC__bitreader_is_consumed_byte_aligned(828ae4969518c677).(const FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
69 uint32_tcxx . . $ uint32_t# FLAC__bitreader_bits_left_for_byte_alignmentcxx . . $ FLAC__bitreader_bits_left_for_byte_alignment(14a98ca08b67a72b).(const FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
70 uint32_tcxx . . $ uint32_t# FLAC__bitreader_get_input_bits_unconsumedcxx . . $ FLAC__bitreader_get_input_bits_unconsumed(14a98ca08b67a72b).(const FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
71 void FLAC__bitreader_set_limitcxx . . $ FLAC__bitreader_set_limit(4d6eb5b2213be688).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, uint32_tcxx . . $ uint32_t# limit);
72 void FLAC__bitreader_remove_limitcxx . . $ FLAC__bitreader_remove_limit(5639cb4d47c4565e).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
73 uint32_tcxx . . $ uint32_t# FLAC__bitreader_limit_remainingcxx . . $ FLAC__bitreader_limit_remaining(1d5c92027e40b2f1).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
74 void FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br);
75
76 /*
77 * read functions
78 */
79
80 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint32cxx . . $ FLAC__uint32# *val, uint32_tcxx . . $ uint32_t# bits);
81 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_raw_int32cxx . . $ FLAC__bitreader_read_raw_int32(6b1d7cde4a2d845b).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__int32cxx . . $ FLAC__int32# *val, uint32_tcxx . . $ uint32_t# bits);
82 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint64cxx . . $ FLAC__uint64# *val, uint32_tcxx . . $ uint32_t# bits);
83 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_raw_int64cxx . . $ FLAC__bitreader_read_raw_int64(339a16293775a0e3).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__int64cxx . . $ FLAC__int64# *val, uint32_tcxx . . $ uint32_t# bits);
84 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_uint32_little_endiancxx . . $ FLAC__bitreader_read_uint32_little_endian(f6ede57617504980).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint32cxx . . $ FLAC__uint32# *val); /*only for bits=32*/
85 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_skip_bits_no_crccxx . . $ FLAC__bitreader_skip_bits_no_crc(ff077cd27fc33d03).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, uint32_tcxx . . $ uint32_t# bits); /* WATCHOUT: does not CRC the skipped data! */ /*@@@@ add to unit tests */
86 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_skip_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_skip_byte_block_aligned_no_crc(ff077cd27fc33d03).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, uint32_tcxx . . $ uint32_t# nvals); /* WATCHOUT: does not CRC the read data! */
87 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__bytecxx . . $ FLAC__byte# *val, uint32_tcxx . . $ uint32_t# nvals); /* WATCHOUT: does not CRC the read data! */
88 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_unary_unsignedcxx . . $ FLAC__bitreader_read_unary_unsigned(f6ede57617504980).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, uint32_tcxx . . $ uint32_t# *val);
89 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_rice_signedcxx . . $ FLAC__bitreader_read_rice_signed(6b1d7cde4a2d845b).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, int *val, uint32_tcxx . . $ uint32_t# parameter);
90 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_rice_signed_blockcxx . . $ FLAC__bitreader_read_rice_signed_block(c8c9976842d03b12).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, int vals[], uint32_tcxx . . $ uint32_t# nvals, uint32_tcxx . . $ uint32_t# parameter);
91 #ifdef FLAC__BMI2_SUPPORTED
92 FLAC__bool FLAC__bitreader_read_rice_signed_block_bmi2(FLAC__BitReader *br, int vals[], uint32_t nvals, uint32_t parameter);
93 #endif
94
95 #if 0 /* UNUSED */
96 FLAC__bool FLAC__bitreader_read_golomb_signed(FLAC__BitReader *br, int *val, uint32_t parameter);
97 FLAC__bool FLAC__bitreader_read_golomb_unsigned(FLAC__BitReader *br, uint32_t *val, uint32_t parameter);
98 #endif
99 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_utf8_uint32cxx . . $ FLAC__bitreader_read_utf8_uint32(6b696256e5b51644).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint32cxx . . $ FLAC__uint32# *val, FLAC__bytecxx . . $ FLAC__byte# *raw, uint32_tcxx . . $ uint32_t# *rawlen);
100 FLAC__boolcxx . . $ FLAC__bool# FLAC__bitreader_read_utf8_uint64cxx . . $ FLAC__bitreader_read_utf8_uint64(66c3fa1562cb12ab).(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, FLAC__uint64cxx . . $ FLAC__uint64# *val, FLAC__bytecxx . . $ FLAC__byte# *raw, uint32_tcxx . . $ uint32_t# *rawlen);
101 #endif