1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:27:35 +00:00
serenity/Userland/Libraries/LibVideo/VP9
Lucas CHOLLET 18b7ddd0b5 AK: Rename the const overload of FixedMemoryStream::bytes()
Due to overload resolutions rules, this simple code provokes a crash:

ReadonlyBytes readonly_bytes{};
FixedMemoryStream stream{readonly_bytes};
ReadonlyBytes give_them_back{stream.bytes()};
    // -> Panics on VERIFY(m_writing_enabled);
    // but this is fine:
auto bytes = static_cast<FixedMemoryStream const&>(*stream).bytes()

If we need to be explicit about it, let's rename the overload instead of
adding that `static_cast`.
2023-07-27 14:40:00 +01:00
..
BooleanDecoder.h LibGfx+LibVideo: Move VP9/BooleanDecoder to LibGfx/ImageFormats 2023-05-27 05:47:42 +02:00
Context.h AK: Rename the const overload of FixedMemoryStream::bytes() 2023-07-27 14:40:00 +01:00
ContextStorage.h LibVideo/VP9: Use an enum to select segment features 2023-04-25 17:44:36 -04:00
Decoder.cpp LibVideo/VP9: Implement lossless residual decoding 2023-07-07 06:44:04 -04:00
Decoder.h LibVideo/VP9: Pre-calculate the quantizers at the start of each frame 2023-04-25 17:44:36 -04:00
Enums.h LibVideo/VP9: Pre-calculate the quantizers at the start of each frame 2023-04-25 17:44:36 -04:00
LookupTables.h Everywhere: Run spellcheck on all documentation 2023-05-07 01:05:09 +02:00
MotionVector.h LibVideo: Add MotionVector lookup tables as constant expressions 2022-10-09 20:32:40 -06:00
Parser.cpp LibGfx/LibVideo: Check for overreads only at end of a VPX range decode 2023-06-10 07:17:12 +02:00
Parser.h LibGfx/LibVideo: Check for overreads only at end of a VPX range decode 2023-06-10 07:17:12 +02:00
ProbabilityTables.cpp Everywhere: Run spellcheck on all documentation 2023-05-07 01:05:09 +02:00
ProbabilityTables.h Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Symbols.h Everywhere: Run spellcheck on all documentation 2023-05-07 01:05:09 +02:00
SyntaxElementCounter.cpp LibVideo/VP9: Count syntax elements in TileContext, and sum at the end 2023-04-23 23:14:30 +02:00
SyntaxElementCounter.h LibVideo/VP9: Count syntax elements in TileContext, and sum at the end 2023-04-23 23:14:30 +02:00
TreeParser.cpp LibGfx/LibVideo: Check for overreads only at end of a VPX range decode 2023-06-10 07:17:12 +02:00
TreeParser.h LibGfx/LibVideo: Check for overreads only at end of a VPX range decode 2023-06-10 07:17:12 +02:00
Utilities.h LibVideo/VP9: Make a lookup table for bit reversals 2023-04-25 17:44:36 -04:00