Closed cmahnke closed 1 month ago
I've found it: https://github.com/google/libultrahdr/blob/9b3853a93023f7c92c994ed434264e941de8e0d1/lib/include/ultrahdr/jpegdecoderhelper.h#L42
Maybe this can be changed to the JPEG maximum (65,535) and the value of 8192 is only used to issue a warning?
Or there could be some sort of #ifdef
that enforce this maximum depending on the platform to build for - setting 8192 only when building for mobile devices.
The value 8192 was chosen as per the needs of embedded devices. There is no limitation towards modifying the limits to 65535.
@ram-mohan : Yes, thanks, I already figured that one out. Maybe this can be lifted, by default and be limited when compiled for a mobile platform? Or made configurable via cmake
@cmahnke can you try the above change and see if it works for you. thank you.
@ram-mohan It works, thanks. But I would like to avoid such al line in my build pipeline:
sed -i -E 's/8192/32768/g' lib/include/ultrahdr/jpegdecoderhelper.h
@cmahnke I feel replacing a fixed constant with another fixed constant is not best as it will be prone to more revisions basing on the runtime criteria. Perhaps the best way to resolve this is to have a build time config option
On larger images I get an error:
Would it be possible to increase the maximum size to let's say 32768x32768 or ist this a limitation of the JPEG container?