diff options
author | Nico Weber <thakis@chromium.org> | 2023-05-24 05:16:01 -0400 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-05-24 04:11:05 -0700 |
commit | e43c21f4d7fb33652cf0c71c5cff64a570f9cd70 (patch) | |
tree | 7d6bdf5dcab0920fac6b04ba629cce975a2e256b /Userland | |
parent | 35883c337f54cc0fc6b30d2dbe04aa5eeddaa69e (diff) | |
download | serenity-e43c21f4d7fb33652cf0c71c5cff64a570f9cd70.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/BooleanDecoder.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp index 6a3e40d536..2d4fa7e71d 100644 --- a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp +++ b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp @@ -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>()); diff --git a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h index 46ebf6db1f..5a72f76d70 100644 --- a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h +++ b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h @@ -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(); |