mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +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
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/e43c21f4d7 Pull-request: https://github.com/SerenityOS/serenity/pull/19013 Reviewed-by: https://github.com/Zaggy1024 ✅
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…
Reference in a new issue