openjpeg icon indicating copy to clipboard operation
openjpeg copied to clipboard

Increase the function of memory conversion

Open kekxv opened this issue 5 years ago • 3 comments

add c_vector

can read and write Memory stream

Support j2k conversion to bmp or raw using memory stream

kekxv avatar Apr 19 '20 06:04 kekxv

Useful on some embedded systems that do not support file writing

kekxv avatar Apr 19 '20 06:04 kekxv

https://github.com/uclouvain/openjpeg/issues/1237 + fix gcc

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. [ERROR] Outfile Stationery_openjpeg.png not generated

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. [ERROR] Outfile Stationery_openjpeg.ppm not generated

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. Raw image characteristics: 3 components Component 0 characteristics: 4000x3000x8 unsigned Component 1 characteristics: 4000x3000x8 unsigned Component 2 characteristics: 4000x3000x8 unsigned [INFO] Generated Outfile Stationery_openjpeg.raw decode time: 174 ms long time of decoding 4000x3000 with gcc 10.0 The RAW file is twice the size of the original. Why can't I add or create YUV? I don't know what these colors are? https://imgur.com/XgUl30U

Jamaika1 avatar Apr 20 '20 05:04 Jamaika1

#1237 + fix gcc

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. [ERROR] Outfile Stationery_openjpeg.png not generated

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. [ERROR] Outfile Stationery_openjpeg.ppm not generated

[INFO] Start to read j2k main header (0). [INFO] Main header has been correctly decoded. [INFO] No decoded area parameters, set the decoded area to the whole image [INFO] Header of tile 1 / 1 has been read. Raw image characteristics: 3 components Component 0 characteristics: 4000x3000x8 unsigned Component 1 characteristics: 4000x3000x8 unsigned Component 2 characteristics: 4000x3000x8 unsigned [INFO] Generated Outfile Stationery_openjpeg.raw decode time: 174 ms long time of decoding 4000x3000 with gcc 10.0 The RAW file is twice the size of the original. Why can't I add or create YUV? I don't know what these colors are? https://imgur.com/XgUl30U

@Jamaika1 @Jamaika1

This project is relatively large, I just need to use the memory stream method for conversion, so I provide a method to convert j2k to bmp. As for the others, I have no further research.

kekxv avatar Apr 20 '20 05:04 kekxv