mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibVideo: Change all Span<u8 const> to ReadonlyBytes
This commit is contained in:
parent
72ed286e16
commit
40b0bb0914
7 changed files with 11 additions and 11 deletions
|
@ -18,7 +18,7 @@ class VideoDecoder {
|
|||
public:
|
||||
virtual ~VideoDecoder() {};
|
||||
|
||||
virtual DecoderErrorOr<void> receive_sample(Span<u8 const> sample) = 0;
|
||||
virtual DecoderErrorOr<void> receive_sample(ReadonlyBytes sample) = 0;
|
||||
DecoderErrorOr<void> receive_sample(ByteBuffer const& sample) { return receive_sample(sample.span()); }
|
||||
virtual DecoderErrorOr<NonnullOwnPtr<VideoFrame>> get_decoded_frame() = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue