Comments (6)
Hi @jcupitt, thank you very very much for the tip! I implemented your suggestion in 59a7bd5 and it's indeed a lot faster. On my machine its saves around 160ms to build a full image. Awesome!
Switching to sequential access is also a great idea, however, by now we decode HEVC tiles directly to memory using libav. So gone are the tempfiles and unnecessary IO slow downs. ;)
Also many kudos for libvips in general! It's a very pleasant API to use and faster than lightning. Keep up the good work, it's appreciated!
from tifig.
That's great! I'm glad it helped.
Do you mean you are using new_from_memory
now? If so, you're right, seq is not relevant. If you are still going via JPEG, then seq should give a speedup.
from tifig.
Yup, we're using new_from_memory
since that's another great way to speed up things 😉 . Thanks again!
from tifig.
Off-topic: there's talk of adding HEIF to libvips as a supported format. Would you be interested in getting your loader into core libvips? It shouldn't be a large amount of work.
from tifig.
We like that idea ;). At the moment, we try to get tifig working for the cause we need it for: Creating thumbnails of HEIC images in a cloud solution. Once we get there, we sure would love to integrate our solution into vips. However, there's two things that probably need to be considered: Nokiatech's heif library is C++ only at the moment therefore doesn't really fit into vips ecosystem. The other point is HEVC decoding. We're relying on libav, which could be integrated, but is a huge monster itself.
from tifig.
libvips has a C API, but uses C++ internally, so I think that would be OK.
libav is indeed a huge monster :( A heifload
operator would need to be optional, since it would probably be unacceptable for many users.
from tifig.
Related Issues (20)
- Taking input from stdin
- Exif Data ID (cdsc) not found!
- Can you make a NuGet library?
- Install Error - Local Variable 't' HOT 2
- Missing dependency - vips HOT 1
- Error in using examples
- error compile opensuse
- Heap buffer overflow due to vulnerability in heif-forked lib
- SEGV on unknown address due to vulnerability in heif-forked lib
- what(): regex_error
- Available on Linux as a snap
- Fedora 34 make error
- Heap buffer overflow
- SEGV in getType()
- heap-use-after-free in ~ItemInfoEntry()
- SEGV in this repo
- Issues in this repor about memory leak
- Issue about resources allocate
- Can't make install
- The vulnerability is a memory leak bug located at line 118 of the file /tifig/src/hevc_decode.hpp
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 tifig.