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

LibVideo: Allow the VP9 decoder to queue multiple frames

Frames will now be queued for retrieval by the user of the decoder.
When the end of the current queue is reached, a DecoderError of
category NeedsMoreInput will be emitted, allowing the caller to react
by displaying what was previously retrieved for sending more samples.
This commit is contained in:
Zaggy1024 2022-11-03 19:18:38 -05:00 committed by Andrew Kaster
parent 993385f18d
commit 72ed286e16
5 changed files with 76 additions and 39 deletions

View file

@ -124,7 +124,8 @@ private:
bool prepare_next_frame();
void update_presented_frame();
// Runs off the main thread
// May run off the main thread
void post_decoder_error(DecoderError error);
bool decode_and_queue_one_sample();
void on_decode_timer();