mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
LibVideo/VP9: Remove now-unused clear_context function from Parser
This commit is contained in:
parent
71aac25635
commit
e6b696fe24
2 changed files with 0 additions and 22 deletions
|
@ -886,22 +886,6 @@ DecoderErrorOr<void> Parser::decode_tiles(FrameContext& frame_context)
|
||||||
return {};
|
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 Parser::get_tile_offset(u32 tile_num, u32 mis, u32 tile_size_log2)
|
||||||
{
|
{
|
||||||
u32 super_blocks = (mis + 7) >> 3u;
|
u32 super_blocks = (mis + 7) >> 3u;
|
||||||
|
|
|
@ -49,12 +49,6 @@ private:
|
||||||
DecoderErrorOr<FrameType> read_frame_type();
|
DecoderErrorOr<FrameType> read_frame_type();
|
||||||
DecoderErrorOr<ColorRange> read_color_range();
|
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 */
|
/* (6.1) Frame Syntax */
|
||||||
bool trailing_bits();
|
bool trailing_bits();
|
||||||
DecoderErrorOr<void> refresh_probs(FrameContext const&);
|
DecoderErrorOr<void> refresh_probs(FrameContext const&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue