Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the function of memory conversion #1245

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kekxv
Copy link

@kekxv kekxv commented Apr 19, 2020

add c_vector

can read and write Memory stream

Support j2k conversion to bmp or raw using memory stream

@kekxv
Copy link
Author

kekxv commented Apr 19, 2020

Useful on some embedded systems that do not support file writing

@Jamaika1
Copy link
Contributor

Jamaika1 commented Apr 20, 2020

#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

@kekxv
Copy link
Author

kekxv commented Apr 20, 2020

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants