Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Created April 6, 2015 10:27
Show Gist options
  • Save josejuansanchez/756b76859084981ad317 to your computer and use it in GitHub Desktop.
Save josejuansanchez/756b76859084981ad317 to your computer and use it in GitHub Desktop.
JPEG2000 markers
/* JPEG 2000 - defined in IEC 15444-1 "JPEG 2000 Core (part 1)" */
  /* delimiters */
SOC   = 0x4f,	/* start of codestream */
SOT   = 0x90,	/* start of tile */
SOD   = 0x93,	/* start of data */
EOC   = 0xd9,	/* end of codestream */
  /* fixed information segment */
SIZ   = 0x51,	/* image and tile size */
  /* functional segments */
COD   = 0x52,	/* coding style default */
COC   = 0x53,	/* coding style component */
RGN   = 0x5e,	/* region of interest */
QCD   = 0x5c,       /* quantization default */
QCC   = 0x5d,	/* quantization component */
POC   = 0x5f,	/* progression order change */
  /* pointer segments */
TLM   = 0x55,	/* tile-part lengths */
PLM   = 0x57,	/* packet length (main header) */
PLT   = 0x58,	/* packet length (tile-part header) */
PPM   = 0x60,	/* packed packet headers (main header) */
PPT   = 0x61,	/* packet packet headers (tile-part header) */
  /* bitstream internal markers and segments */
SOP   = 0x91,	/* start of packet */
EPH   = 0x92,	/* end of packet header */
  /* informational segments */
CRG   = 0x63,	/* component registration */
COM   = 0x64,	/* comment */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment