The first patch is huge and is just to make pixel formats and copy pixels from the openjpeg native buffer.
Anybody willing to redo that in a more compact way is welcome to try. I wonder if there is something in dsputil-audio I could leverage to do avoid those loops. The second is my take at openjpeg options, those two seem interesting given j2k can be quite taxing and if you just want to have a preview coarser decoding (either low resolution or using less enhancement layers) would come nicely. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel