-
Notifications
You must be signed in to change notification settings - Fork 31
jpeg 2000 support #44
Comments
Hi! Jpeg2000 is not a problem and should be quick to implement because the IO library used supports it out of the box. As for the performance with this large image: It works pretty well on my system with a little bit of lag. That is to be expected, since the current version is not yet optimized for performance. What's your OS, graphics card and driver? |
Hello, Just to be sure, I've only tested the appimage and did not compile the software from source. Here is my laptop configuration:
I also have a discrete nvidia gpu that I can use using optimus:
|
No, compiling it yourself won't make a difference I think. As it is now, Cascade chooses the first viable GPU it finds to run on. So my guess is that it runs on your integrated GPU (Intel UHD). That might slow things down because it is a lot less powerful than a discrete GPU. You can verify this by looking in the file
That tells you which GPU is being used. There are two things here that need improving:
Can you post the contents of Thanks! |
So, here are the log output of using Cascade without and with Without:
With:
So it seems it automatically uses the nvidia gpu everytime ??? |
Also, when I said that:
I meant that the image view does not refresh correctly or as often as it should. |
Yes it does. That's good news. How is the performance when you use other nodes, apart from Just looking at the rotate shader (haven't touched it in a while), there is definitely some room for improvement. |
Performance wise, it's okay, kind of similar to the rotate shader, but the view is not updating correctly with often broken state, previous state or an empty black view instead of the image. |
What do you mean by "broken state"? Can you post a screenshot? |
Ok weird. I can't reproduce this on any of my systems. I'll have to investigate some more. Can you do me a favor and post that screenshot as a new issue together with your system specs? We'll use this issue here for the jpeg2000 support. I am working on that right now. |
I have added preliminary support for jpeg2000. Here is an AppImage for testing: https://github.com/ttddee/Cascade/releases/download/nightly/Cascade-Image-Editor-x86_64-v0-2-0-dev-e31cf87.AppImage Valid extensions for input are: .jp2, .j2k, .j2c For output the extension is: .jp2 I have noticed that, for large files, it is slow. The reason for that is probably that the used version of openjpeg is not multithreading correctly. OIIO recommends at least version 2.4, this build uses 2.3. Upgrading the openjpeg dependency should improve the performance in the next release. |
I'm getting a segmentation fault when trying to read a big jp2 image: |
How are you creating that image? Does this image segfault too? |
the image was converted from tif to jp2 using imagemagick.
|
Hello,
I found this project through hacker news and the combination Qt + Vulkan + node based editor is something I searched for a long time.
I'm just dropping here to ask if you could add jpeg2000 support as an input ( and maybe output ) format ?
Also I tried to use the editor with a relatively large image and the UI has a lot of trouble to keep up.
The text was updated successfully, but these errors were encountered: