A JPEG header starts with a 0xFF 0xD8, but after that, there can be any
number of bytes followed by some non zero length sequence of 0xFF
before the JFIF header.
My question is, how big can this header be? What is the maximum length
of the header (therefore how many bytes can I see between the start
0xFF 0xD8 and the JFIF information?)
Jon
|
|
0
|
|
|
|
Reply
|
jondelac (3)
|
5/31/2006 5:46:53 AM |
|
>A JPEG header starts with a 0xFF 0xD8, but after that, there can be any
> number of bytes followed by some non zero length sequence of 0xFF
> before the JFIF header.
>
> My question is, how big can this header be? What is the maximum length
> of the header (therefore how many bytes can I see between the start
> 0xFF 0xD8 and the JFIF information?)
the max length is not defined, you should just skip unwanted segments.
Andrey
--
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
|
|
0
|
|
|
|
Reply
|
Andrey
|
5/31/2006 11:34:38 AM
|
|