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

LibVideo: Add PlaybackManager to load and decode videos

This file will be the basis for abstracting away the out-of-thread or
later out-of-process decoding from applications displaying videos. For
now, the demuxer is hardcoded to be MatroskaParser, since that is all
we support so far. The demuxer should later be selected based on the
file header.

The playback and decoding are currently all done on one thread using
timers. The design of the code is such that adding threading should
be trivial, at least based on an earlier version of the code. For now,
though, it's better that this runs in one thread, as the multithreaded
approach causes the Video Player to lock up permanently after a few
frames are decoded.
This commit is contained in:
Zaggy1024 2022-10-29 18:16:14 -05:00 committed by Andreas Kling
parent 0a4def1208
commit 353e1c2b4d
5 changed files with 430 additions and 0 deletions

View file

@ -141,6 +141,7 @@ set(PATA_DEBUG ON)
set(PATH_DEBUG ON)
set(PCI_DEBUG ON)
set(PDF_DEBUG ON)
set(PLAYBACK_MANAGER_DEBUG ON)
set(PNG_DEBUG ON)
set(POLL_SELECT_DEBUG ON)
set(PORTABLE_IMAGE_LOADER_DEBUG ON)