LibVideo/VP9: Remove now-unused clear_context function from Parser

This commit is contained in:
Zaggy1024 2022-11-28 06:51:35 -06:00 committed by Andreas Kling
parent 71aac25635
commit e6b696fe24
Notes: sideshowbarker 2024-07-17 06:33:00 +09:00
2 changed files with 0 additions and 22 deletions

View file

@ -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;

View file

@ -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&);