mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibVideo/VP9: Remove now-unused clear_context function from Parser
This commit is contained in:
parent
71aac25635
commit
e6b696fe24
Notes:
sideshowbarker
2024-07-17 06:33:00 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/e6b696fe24 Pull-request: https://github.com/SerenityOS/serenity/pull/16238
2 changed files with 0 additions and 22 deletions
|
@ -886,22 +886,6 @@ DecoderErrorOr<void> Parser::decode_tiles(FrameContext& frame_context)
|
|||
return {};
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void Parser::clear_context(Vector<T>& context, size_t size)
|
||||
{
|
||||
context.resize_and_keep_capacity(size);
|
||||
__builtin_memset(context.data(), 0, sizeof(T) * size);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void Parser::clear_context(Vector<Vector<T>>& context, size_t outer_size, size_t inner_size)
|
||||
{
|
||||
if (context.size() < outer_size)
|
||||
context.resize(outer_size);
|
||||
for (auto& sub_vector : context)
|
||||
clear_context(sub_vector, inner_size);
|
||||
}
|
||||
|
||||
u32 Parser::get_tile_offset(u32 tile_num, u32 mis, u32 tile_size_log2)
|
||||
{
|
||||
u32 super_blocks = (mis + 7) >> 3u;
|
||||
|
|
|
@ -49,12 +49,6 @@ private:
|
|||
DecoderErrorOr<FrameType> read_frame_type();
|
||||
DecoderErrorOr<ColorRange> read_color_range();
|
||||
|
||||
/* Utilities */
|
||||
template<typename T>
|
||||
void clear_context(Vector<T>& context, size_t size);
|
||||
template<typename T>
|
||||
void clear_context(Vector<Vector<T>>& context, size_t outer_size, size_t inner_size);
|
||||
|
||||
/* (6.1) Frame Syntax */
|
||||
bool trailing_bits();
|
||||
DecoderErrorOr<void> refresh_probs(FrameContext const&);
|
||||
|
|
Loading…
Reference in a new issue