mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
LibVideo: Rename BooleanDecoder::initialize param
...from "bytes" to "size_in_bytes". I thought at first that `bytes` meant the variable contained bytes that the decoder would read from. Also, this variable is called `sz` (for `size`) in the spec. No behavior change.
This commit is contained in:
parent
35883c337f
commit
e43c21f4d7
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
namespace Video::VP9 {
|
||||
|
||||
/* 9.2.1 */
|
||||
ErrorOr<BooleanDecoder> BooleanDecoder::initialize(MaybeOwned<BigEndianInputBitStream> bit_stream, size_t bytes)
|
||||
ErrorOr<BooleanDecoder> BooleanDecoder::initialize(MaybeOwned<BigEndianInputBitStream> bit_stream, size_t size_in_bytes)
|
||||
{
|
||||
VERIFY(bit_stream->is_aligned_to_byte_boundary());
|
||||
auto value = TRY(bit_stream->read_value<u8>());
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace Video::VP9 {
|
|||
class BooleanDecoder {
|
||||
public:
|
||||
/* (9.2) */
|
||||
static ErrorOr<BooleanDecoder> initialize(MaybeOwned<BigEndianInputBitStream> bit_stream, size_t bytes);
|
||||
static ErrorOr<BooleanDecoder> initialize(MaybeOwned<BigEndianInputBitStream> bit_stream, size_t size_in_bytes);
|
||||
ErrorOr<bool> read_bool(u8 probability);
|
||||
ErrorOr<u8> read_literal(u8 bits);
|
||||
ErrorOr<void> finish_decode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue