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

LibVideo: Change all Span<u8 const> to ReadonlyBytes

This commit is contained in:
Zaggy1024 2022-11-04 18:00:09 -05:00 committed by Andrew Kaster
parent 72ed286e16
commit 40b0bb0914
7 changed files with 11 additions and 11 deletions

View file

@ -19,7 +19,7 @@ Decoder::Decoder()
{
}
DecoderErrorOr<void> Decoder::receive_sample(Span<u8 const> chunk_data)
DecoderErrorOr<void> Decoder::receive_sample(ReadonlyBytes chunk_data)
{
auto superframe_sizes = m_parser->parse_superframe_sizes(chunk_data);
@ -52,7 +52,7 @@ inline size_t index_from_row_and_column(u32 row, u32 column, u32 stride)
return row * stride + column;
}
DecoderErrorOr<void> Decoder::decode_frame(Span<u8 const> frame_data)
DecoderErrorOr<void> Decoder::decode_frame(ReadonlyBytes frame_data)
{
// 1. The syntax elements for the coded frame are extracted as specified in sections 6 and 7. The syntax
// tables include function calls indicating when the block decode processes should be triggered.