For some reason, nothing got attached to this email. Could you please
fill in a bug report and attach your sample data. Simply go to:
http://code.google.com/p/openjpeg/issues/list
click 'new issue'
Thanks,
--
Mathieu
Fonzy,
Fonzy,
1. openjpeg 1.5 reports:
[ERROR] 00001f2e: expected a marker instead of 0
[ERROR] Failed to decode J2K image
ERROR -> j2k_to_image: failed to decode image!
2. jasper seems to be producing an RGB dataset
3. kakadu reports:
Kakadu Warning:
Trying to save uncommon 3-colour space to TIFF file (JP2 colour space
identifier is 18). The current TIFF writer module will record this as an RGB
space, possibly eroneously.
Output file is grayscale.
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org)
> To post: email to open...@googlegroups.com
> To unsubscribe: email to openjpeg+u...@googlegroups.com
> For more options: visit http://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
> and www.intopix.com
--
Mathieu
" expected a marker instead of 0 [ERROR] Failed to decode J2K image ERROR ->
j2k_to_image: failed to decode image!"
This is the usual codestream with padding problem I assume, try to get rid
of a few zeroes at the end of initial file. As seen from OpenJPEG the last
two bytes in a code stream is a marker and not zero padding.
One of my patch in the past would take care of this, but removing padding
bytes in the initial file will quickly tell!
Best Regards
Arnaud
Hi Mathieu,
In fact hardware based codecs as ADV212 (Analog devices) tend to produce
padded code stream where it becomes handy to have correct number of bytes
(always falling on a perfect multiple of x). This helps for transferring
data, the idea is to pad the code stream with extra zeroes. I don't have my
JPEG2000 specification handy I am not sure what the standard says about
that. Either the hardware encoder are right or the software frontend should
save files without the padding or jpeg2000 code can be modified in order to
"discard" zero bytes.
Over years we have seen quite a few people having the same issue and I
believe it might be interesting to get oJPEG2000 parser more robust in this
respect. In the other hand, if the spec says last bytes should be the
marker, then oJPEG2000 library is correct and nothing has to change.
Probably the current OPENJPEG2000 manager might indicate his wishes. On my
side I see no problem having the parser improved and this regardless of what
the specification says.
With my best regards,
Arnaud Maye
Hello Arnaud,
Thanks.
For more options: visit http://groups.google.com/group/openjpeg
> > > For more options: visithttp://groups.google.com/group/openjpeg
> > > For more info about OpenJPEG main partners :
> > > visitwww.tele.ucl.ac.be(UCL) andwww.intopix.com
>
> > --
> > Mathieu
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org) To post: email to open...@googlegroups.com To
> unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
> For more options: visithttp://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit
> www.tele.ucl.ac.be(UCL) andwww.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project
(www.openjpeg.org) To post: email to open...@googlegroups.com To
unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
Hello,
I think you are following my steps but unfortunately most of the patchwork I had done have never been integrated properly. We have been developing an FPGA daughter board, VID475, having two ADV212 codecs.
One ADV for Y compression and one ADV for C compression, then both code streams would be merged resulting in a .jp2 color codestream, I’ve also been able to generate proper MJ2 files at the time. Try to rename your j2k extension as jp2 and open with kakadu, do you have color that way?
Not sure how far you are from what I had been doing but I can share some of the VID475 code ( typically ADV212 configuration as well as merging and MJ2 files creation ).
Best Regards,
Arnaud
> > > For more options: visithttp://groups.google.com/group/openjpeg
> > > For more info about OpenJPEG main partners :
> > > visitwww.tele.ucl.ac.be(UCL) andwww.intopix.com
>
> > --
> > Mathieu
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org) To post: email to open...@googlegroups.com To
> unsubscribe: email to openjpeg+u...@googlegroups.com
> For more options: visithttp://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit
> www.tele.ucl.ac.be(UCL) andwww.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project
(www.openjpeg.org) To post: email to open...@googlegroups.com To
unsubscribe: email to openjpeg+u...@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com
> > > For more options: visithttp://groups.google.com/group/openjpeg
> > > For more info about OpenJPEG main partners :
> > > visitwww.tele.ucl.ac.be(UCL) andwww.intopix.com
>
> > --
> > Mathieu
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org) To post: email to open...@googlegroups.com To
> unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
> For more options: visithttp://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit
> www.tele.ucl.ac.be(UCL) andwww.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project
(www.openjpeg.org) To post: email to open...@googlegroups.com To
unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
Hello Again,
Can you send us your image? I do not mind to look into that, I had any planned to try the new ojpg2k codebase ( I used v1.3 back in 2008 ) oh gosh am getting old…
Thanks,
Arnaud
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of Fonzy
Sent: Thursday, March 15, 2012 2:00 PM
To: open...@googlegroups.com
Subject: Re: [OpenJPEG] Re: Error decoding JP2 files
Arnaud,
The images work fine with Kakadu and MainConcepts. Jasper doesn't trip over them as well but we had performance issues with Jasper taking too long to decode. If you know of anything we can adjust on the ADV212 chip that would fix the issue would be great. We are not using MJ2 we are sending a series of JP2 files that we display in succession so the end result is basically the same.
Thanks
On Thursday, March 15, 2012 8:53:26 AM UTC-4, Arnaud Maye wrote:
Hello,
I think you are following my steps but unfortunately most of the patchwork I had done have never been integrated properly. We have been developing an FPGA daughter board, VID475, having two ADV212 codecs.
One ADV for Y compression and one ADV for C compression, then both code streams would be merged resulting in a .jp2 color codestream, I’ve also been able to generate proper MJ2 files at the time. Try to rename your j2k extension as jp2 and open with kakadu, do you have color that way?
Not sure how far you are from what I had been doing but I can share some of the VID475 code ( typically ADV212 configuration as well as merging and MJ2 files creation ).
Best Regards,
Arnaud
> > > For more options: visithttp://groups.google.com/group/openjpeg
> > > For more info about OpenJPEG main partners :
> > > visitwww.tele.ucl.ac.be(UCL) andwww.intopix.com
>
> > --
> > Mathieu
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org) To post: email to open...@googlegroups.com To
> unsubscribe: email to openjpeg+u...@googlegroups.com
> For more options: visithttp://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit
> www.tele.ucl.ac.be(UCL) andwww.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project
(www.openjpeg.org) To post: email to open...@googlegroups.com To
unsubscribe: email to openjpeg+u...@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL) and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com
> > > For more options: visithttp://groups.google.com/group/openjpeg
> > > For more info about OpenJPEG main partners :
> > > visitwww.tele.ucl.ac.be(UCL) andwww.intopix.com
>
> > --
> > Mathieu
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org) To post: email to open...@googlegroups.com To
> unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
> For more options: visithttp://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit
> www.tele.ucl.ac.be(UCL) andwww.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project
(www.openjpeg.org) To post: email to open...@googlegroups.com To
unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL) and www.intopix.com
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
Regardless as to if it meets the letter of the spec or not, if there's
hardware out in the wild outputting padded streams like this, OpenJPEG
really should handle that case gracefully.
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com
EOC Required as the last marker in the codestream
=================================================
------- PSOT 0) --------
read_jp2.c:725:
buf_end(0x1d77170) - s(0x1d75317) - 2 ==> PSOT(7767)
box_end(0x1d77170) - s(0x1d75317) ==> PSOT(7767)
sot tile_nr(0) Psot(7767) TPsot(0) TNsot(1)
len(10)
restart at 0x1d7716e
[7881]marker(0)
test_marker:box_end(0x1d77170) - s(0x1d77170) ==> 0
1:MARKER 0 is unknown. STOP.
=================================================
The image does not contain an EOC marker at the end of the
file, but one and only one zero value instead: no padding
zeros.
The resulting images (PNG,TGA,TIF) indeed are colored.
But unsharp: intentionally?
winfried
-----Original Message-----
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf
Of szuk...@arcor.de
Sent: Thursday, March 15, 2012 11:41 PM
To: open...@googlegroups.com
winfried
--
Winfried,
The EOC (FFD9) is there:
00001f10h: 91 7A 61 1E 07 4E D4 7A 0A FF D9 00 00 00 00 00 ; ‘za..NÔz.ÿÙ.....
And the file is padded to the next 8 byte multiple and these are five zeroes at the end of file..
This image is valid or I am missing something here? I would tend to trust more the above line from ultraedit..
Arnaud
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of Fonzy
Sent: Friday, March 16, 2012 2:34 PM
To: open...@googlegroups.com
Subject: Re: [OpenJPEG] Error decoding JP2 files
Winfried,
--
To unsubscribe: email to openjpeg+unsubscribe@googlegroups.com
No ERROR, no WARNING: quiet.
Two additional tests because of some padding bytes: expensive.
winfried
--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com