-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for DocumentsProvider.openDocumentThumbnail()
This will return a pipe and then spawn a background task to generate a thumbnail and write it to the pipe. Cancellation is supported in between logical operations (eg. parse headers, load frame, etc.). Android has no way to interrupt the parsers in MediaMetadataRetriever and ImageDecoder though, so there will be a delay before cancellation takes effect. This can be noticeable when scrolling quickly, for example through a list of videos, since there is a hard concurrency limit equal to the number of logical cores. Note that only audio, image, and video formats natively supported by Android can be thumbnailed. We don't bundle any decoders. Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
- Loading branch information
1 parent
8642bb9
commit 1b41b95
Showing
5 changed files
with
421 additions
and
6 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
Oops, something went wrong.