diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-10-29 18:16:14 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-31 14:47:13 +0100 |
commit | 353e1c2b4dad88065197a294e32e788925373b6d (patch) | |
tree | ed987e0a9563c6079a993240fc22559bfa312f50 /AK | |
parent | 0a4def1208c846db36c9d6e98f05dad137858766 (diff) | |
download | serenity-353e1c2b4dad88065197a294e32e788925373b6d.zip |
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.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Debug.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/AK/Debug.h.in b/AK/Debug.h.in index c07eba6544..b5f3d95933 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -342,6 +342,10 @@ #cmakedefine01 PDF_DEBUG #endif +#ifndef PLAYBACK_MANAGER_DEBUG +#cmakedefine01 PLAYBACK_MANAGER_DEBUG +#endif + #ifndef PNG_DEBUG #cmakedefine01 PNG_DEBUG #endif |