Comments (5)
I'm adding stss parsing now (it works locally), but what kind of API are you looking for here?
Possibilities:
- avifDecoderIsKeyframe(decoder, frameIndex) // 0-based
- avifDecoderGetNearestKeyframe(decoder, frameIndex) // 0-based
- exposing the internal syncSample table
With this new keyframe data, I'm experimenting now with an avifDecoderGetNthImage(decoder, frameIndex) which will flush the codec, find the nearest keyframe, and decode up to it. If you had that, would knowing which are keyframes be less interesting?
from libavif.
I think both are required for our use case. The first or last API would be best since the Blink decoded image cache tries to be smart about what it can evict and what it doesn't need to decode using knowledge of which frames depend on what.
Later when it tries to refill some of the cache, the GetNthImage you propose would be useful to avoid spinning all the way from the beginning in the worst case (or over several keyframes in the average case).
from libavif.
Alright, I'll add all 3 calls hinted at above and see that goes.
from libavif.
Alright, v0.3.10 should have all of the goodies.
from libavif.
Thanks!
from libavif.
Related Issues (20)
- How to build a dynamic library that statically links all dependencies? HOT 1
- Ignore and skip FullBoxes with an unrecognized version
- How to build the.A use of iOS platform? HOT 2
- Make libyuv package-friendly dependency HOT 2
- Roll YCgCo-R out HOT 1
- Add Homebrew install instructions and avifdec/avifenc examples to README HOT 6
- autoconf etc. HOT 1
- avifImageRGBToYUV should set color space to default values HOT 2
- Findrav1e.cmake ignores library dependencies listed in the generated pkgconfig file HOT 5
- [Function Request] avifenc supports svt and rav1e encoder options key-value HOT 2
- MSYS/MinGW32: Linking error, undefined references to Nt file functions HOT 2
- Noticeable color shift HOT 6
- Does CVE-2024-1580 affect libavif with dav1d decoder? HOT 1
- Static build issues on MSYS2 HOT 4
- sharpyuv conversion failed HOT 2
- libavif.a should not be a combined archive library HOT 6
- Not able to build static build on amazon linux 2023 HOT 9
- GIF encodes with wrong frame rate HOT 14
- Avif-alpha is working as expected HOT 1
- oss-fuzz is pinned at an old builder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libavif.