Patent attributes
A method and apparatus for converting a JPP-Stream to JPEG 2000 codestream is described. In one embodiment, the method comprises writing a main header data-bin to an output JPEG 2000 codestream with a marker segment specifying use of a progression order with a layer progression last. The method also includes, for each tile, writing a legal tile header; and for each component, position and resolution in said each tile, determining a number of completely received layers, writing one or more bytes of precinct data-bin corresponding to completed layers to the output JPEG 2000 codestream, and writing an empty packet header for each packet of each layer that is not complete. Also for each tile, the method includes updating the SOT marker segment to adjust a length to the number of bytes of packet data. The method further includes writing an EOC marker at the end of the output JPEG 2000 codestream.