Grok 20.3.2
FileFormatJP2Family.h File Reference
#include <string>
#include <stack>

Go to the source code of this file.

Classes

struct  grk::FindHandlerInfo
struct  grk::BoxWriteHandler
struct  grk::Box
struct  grk::UUIDBox
struct  grk::ComponentInfo
struct  grk::AsocBox
 Association box (defined in ITU 15444-2 Annex M 11.1 ). More...
class  grk::FileFormatJP2Family
 JPEG 2000 file format reader/writer. More...

Namespaces

namespace  grk
 ResWindow.

Macros

#define GRK_BOX_SIZE   1024
 Reader requirements box.
#define GRK_RESOLUTION_BOX_SIZE   (4 + 4 + 10)
#define JP2_MAX_NUM_UUIDS   128
#define JP2_MAX_NUM_XML_BOXES   64

Typedefs

typedef std::function< bool(uint8_t *headerData, uint32_t headerSize)> grk::BOX_FUNC
typedef std::function< uint8_t *(uint32_t *len)> grk::WRITE_FUNC

Enumerations

enum  grk::JP2_STATE {
  grk::JP2_STATE_NONE = 0x0 , grk::JP2_STATE_SIGNATURE = 0x1 , grk::JP2_STATE_FILE_TYPE = 0x2 , grk::JP2_STATE_HEADER = 0x4 ,
  grk::JP2_STATE_CODESTREAM = 0x8 , grk::JP2_STATE_END_CODESTREAM = 0x10
}

Variables

const uint32_t grk::JP2_JP = 0x6a502020
const uint32_t grk::JP2_SIG = 0x0d0a870a
 JPEG 2000 signature box.
const uint32_t grk::JP2_FTYP = 0x66747970
 JPEG 2000 signature.
const uint32_t grk::JP2_JP2 = 0x6a703220
 File type box.
const uint32_t grk::JP2_JPH = 0x6A706820
 File type fields.
const uint32_t grk::JP2_JPX = 0x6a707820
const uint32_t grk::JP2_JP2H = 0x6a703268
 JPX file type.
const uint32_t grk::JP2_IHDR = 0x69686472
 JP2 header box (super-box).
const uint32_t grk::JP2_BPCC = 0x62706363
 Image header box.
const uint32_t grk::JP2_COLR = 0x636f6c72
 Bits per component box.
const uint32_t grk::JP2_PCLR = 0x70636c72
 Colour specification box.
const uint32_t grk::JP2_CMAP = 0x636d6170
 Palette box.
const uint32_t grk::JP2_CDEF = 0x63646566
 Component Mapping box.
const uint32_t grk::JP2_RES = 0x72657320
 Channel Definition box.
const uint32_t grk::JP2_CAPTURE_RES = 0x72657363
 Resolution box (super-box).
const uint32_t grk::JP2_DISPLAY_RES = 0x72657364
 Capture resolution box.
const uint32_t grk::JP2_JP2C = 0x6a703263
 Display resolution box.
const uint32_t grk::JP2_JP2I = 0x6a703269
 Contiguous code stream box.
const uint32_t grk::JP2_XML = 0x786d6c20
 Intellectual property box.
const uint32_t grk::JP2_UUID = 0x75756964
 XML box.
const uint32_t grk::JP2_ASOC = 0x61736f63
 UUID box.
const uint32_t grk::JP2_LBL = 0x6c626c20
 Associated data box.
const uint32_t grk::JP2_RREQ = 0x72726571
 Label box.

Macro Definition Documentation

◆ GRK_BOX_SIZE

#define GRK_BOX_SIZE   1024

Reader requirements box.

Referenced by grk::FileFormatJP2Family::readHeaderProcedure().

◆ GRK_RESOLUTION_BOX_SIZE

◆ JP2_MAX_NUM_UUIDS

#define JP2_MAX_NUM_UUIDS   128

◆ JP2_MAX_NUM_XML_BOXES

#define JP2_MAX_NUM_XML_BOXES   64