-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Until this diff, vrsplayer was always decoding video frames right when reading the frame, because a video codec frame may need to trigger reading past records and past frames in order to decode a p-frame. This slows down decoding of video streams and limits our ability to decode multiple in real time, since they end up all doing the video decoding, probably in SW, in a single thread. However, we typically use i-frame only in VRS files, because using p-frames isn't helping too much with file size, allowing us to decode video codec frames in the background thread we use from jpg/png/jxl decompression, and pixel format normalization. With this diff, we now track if we found any p-frame, and only then switch to decoding video codec frames for that stream in the onImageRead callback, otherwise, we delegate the video decoding to the stream's background thread. Reviewed By: kiminoue7 Differential Revision: D51789223 fbshipit-source-id: 01abf8d4b1c6095744e6e7d8dfec7c934effb96d
- Loading branch information
1 parent
d651352
commit 798e3b3
Showing
4 changed files
with
48 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters