Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
08f582e3
Commit
08f582e3
authored
Jan 09, 2007
by
Josh Coalson
Browse files
add FLAC__bitbuffer_get_input_bits_unconsumed()
parent
03af3c82
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/bitbuffer.c
View file @
08f582e3
...
...
@@ -580,6 +580,11 @@ unsigned FLAC__bitbuffer_get_input_bytes_unconsumed(const FLAC__BitBuffer *bb)
return
(
bb
->
total_bits
-
bb
->
total_consumed_bits
)
>>
3
;
}
unsigned
FLAC__bitbuffer_get_input_bits_unconsumed
(
const
FLAC__BitBuffer
*
bb
)
{
return
bb
->
total_bits
-
bb
->
total_consumed_bits
;
}
void
FLAC__bitbuffer_get_buffer
(
FLAC__BitBuffer
*
bb
,
const
FLAC__byte
**
buffer
,
size_t
*
bytes
)
{
FLAC__ASSERT
((
bb
->
consumed_bits
&
7
)
==
0
&&
(
bb
->
bits
&
7
)
==
0
);
...
...
src/libFLAC/include/private/bitbuffer.h
View file @
08f582e3
...
...
@@ -80,6 +80,7 @@ FLAC__bool FLAC__bitbuffer_is_byte_aligned(const FLAC__BitBuffer *bb);
FLAC__bool
FLAC__bitbuffer_is_consumed_byte_aligned
(
const
FLAC__BitBuffer
*
bb
);
unsigned
FLAC__bitbuffer_bits_left_for_byte_alignment
(
const
FLAC__BitBuffer
*
bb
);
unsigned
FLAC__bitbuffer_get_input_bytes_unconsumed
(
const
FLAC__BitBuffer
*
bb
);
/* do not call unless byte-aligned */
unsigned
FLAC__bitbuffer_get_input_bits_unconsumed
(
const
FLAC__BitBuffer
*
bb
);
/* can be called anytime, returns total # of bits unconsumed */
/*
* direct buffer access
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment