Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coil-video to support decoding video frames. #122

Merged
merged 49 commits into from
Feb 7, 2020
Merged

Conversation

colinrtwhite
Copy link
Member

@colinrtwhite colinrtwhite commented Sep 22, 2019

What's the state of this PR?

MediaMetadataRetriever requires the ability to read forward/backwards anywhere in the video file. For large video files this isn't feasible to buffer into memory. Also, we can't rely on having a backing file. This isn't feasible to add to Coil since the Decoder intentionally has no knowledge of the backing data source.

If you have an idea of how to implement this with no breaking changes please let me know (or comment on this PR)!

Support for this will arrive in 0.10.

Fixes #25.

@colinrtwhite colinrtwhite force-pushed the colin/video branch 3 times, most recently from 0640b2d to f8926bb Compare January 15, 2020 08:14
@colinrtwhite colinrtwhite force-pushed the colin/video branch 2 times, most recently from 2333c45 to e7bde45 Compare January 26, 2020 08:26
@colinrtwhite colinrtwhite force-pushed the colin/video branch 4 times, most recently from 76d612d to 28cfbd6 Compare February 4, 2020 04:26
@colinrtwhite colinrtwhite merged commit 8c6108f into master Feb 7, 2020
@colinrtwhite colinrtwhite deleted the colin/video branch February 7, 2020 05:39
colinrtwhite added a commit that referenced this pull request Oct 5, 2022
* Add coil-video to support decoding video frames.

* Documentation.

* Depend on updated Parameters API.

* Add README.

* Refactor extension functions.

* Guard.

* Use regular Dokka plugin.

* Update docs and sample.

* Formatting.

* Fix clashing name.

* Close the source.

* Optimize.

* Correctly close the source.

* Optimization.

* Remove operator.

* Move FakeBitmapPool out of sharedTest.

* Move sharedTest to coil-test module.

* Add shell test class.

* Add basic tests.

* Support allowRgb565.

* Support setting the video frame option.

* Fix check.

* Re-arrange.

* Re-arrange.

* WIP BufferedMediaDataSource rework.

* Convert VideoFrameDecoder to a Fetcher.

* Handle asset uris properly.

* Use extension function.

* Fix tests.

* Documentation.

* Documentation.

* Fix imports.

* Add to sample.

* WIP

* Ensure bitmap attributes.

* First pass.

* Fix Dokka.

* Docs.

* WIP.

* Correctly calculate isSampled.

* Clean up.

* Guard against hardware config.

* Rename asset.

* Docs.

* Rebase fix.

* Use extension function.

* Re-arrange.

* Re-arrange.

* Fix package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support loading frame image from video
2 participants