Closed GoogleCodeExporter closed 9 years ago
I got the answer, the cmd is
"opj_compress -i 1920x540_i420.raw -o image.j2k -F 1920,540,3,8,u@1x1:2x2:2x2
-mct 0"
but the result is also wrong, the color is all red! I don't know Why.
Original comment by dhz6...@gmail.com
on 19 Jun 2014 at 10:41
Attachments:
I have found the correct way, the format *.jp2 is ok, like this:
"opj_compress -i 1920x540_i420.raw -o image.jp2 -F 1920,540,3,8,u@1x1:2x2:2x2
-mct 0",
the color is all right now.
I have found a little error in convert.c when compress yuv422 raw data, and I
put it in file convert.diff.
Original comment by dhz6...@gmail.com
on 24 Jun 2014 at 7:51
Attachments:
Fixed by revision #2873.
MCT is automatically disabled when subsampling is detected (this is also true
when the library is used without opj_compress).
Bug in convert.c has also been fixed.
Thanks for having spotted this.
Original comment by antonin
on 3 Jul 2014 at 9:19
Original issue reported on code.google.com by
dhz6...@gmail.com
on 19 Jun 2014 at 8:10