1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

LibVideo/VP9: Specify which spec section defines certain behaviors

This commit is contained in:
FalseHonesty 2021-06-26 13:31:34 -04:00 committed by Andreas Kling
parent ce524214c9
commit 91572a49c4
6 changed files with 51 additions and 36 deletions

View file

@ -21,20 +21,25 @@ public:
u8 read_byte();
bool read_bit();
/* (9.1) */
u8 read_f(size_t n);
i8 read_s(size_t n);
u8 read_f8();
u16 read_f16();
/* (9.2) */
bool init_bool(size_t bytes);
bool read_bool(u8 probability);
bool exit_bool();
u8 read_literal(size_t n);
/* (4.9.2) */
i8 read_s(size_t n);
u64 get_position();
size_t bytes_remaining();
size_t bits_remaining();
bool init_bool(size_t bytes);
bool read_bool(u8 probability);
bool exit_bool();
private:
u8 const* m_data_ptr { nullptr };
size_t m_bytes_remaining { 0 };