52 static const char*
const
56 static const unsigned int
59 static const unsigned int
62 static const unsigned int
65 static const unsigned int
69 static const unsigned int
73 static const unsigned int
77 static const unsigned int
81 static const unsigned int
85 static const unsigned int
111 const unsigned char* data = NULL,
unsigned int amount = 0);
208 JP2_Box&
content (
const unsigned char* data,
unsigned int amount = 0);
326 {
return add (&sub_box);}
398 static unsigned int type_code (
const std::string& name);
A JP2_Box contains JP2 file format box data.
Definition: JP2_Box.hh:40
bool remove(JP2_Box *sub_box)
Remove a sub-box from this box.
Definition: JP2_Box.cc:389
JP2_Box & add(JP2_Box *sub_box)
Add a sub-box to this box.
Definition: JP2_Box.cc:350
unsigned char * content() const
Get the box data content.
Definition: JP2_Box.hh:190
unsigned int content_amount() const
Get the box data content amount.
Definition: JP2_Box.hh:182
virtual ~JP2_Box()
Destroy this JP2_Box.
Definition: JP2_Box.cc:181
unsigned int type_code() const
Get the type code of the box.
Definition: JP2_Box.hh:162
static const unsigned int LABEL_BOX_TYPE
Label box type.
Definition: JP2_Box.hh:82
static const unsigned int UUID_LIST_BOX_TYPE
UUID List box type.
Definition: JP2_Box.hh:66
JP2_Box & attach_content(unsigned char *data, unsigned int amount=0)
Set the box data content.
Definition: JP2_Box.cc:330
static const unsigned int UUID_BOX_TYPE
UUID box type.
Definition: JP2_Box.hh:57
unsigned int Content_Amount
The amount (bytes) of content data.
Definition: JP2_Box.hh:415
static const unsigned int UUID_SIZE
Size of the UUID data content.
Definition: JP2_Box.hh:60
unsigned char * Content
The data content buffer.
Definition: JP2_Box.hh:411
unsigned int Type
The JP2 box type code.
Definition: JP2_Box.hh:407
static const unsigned int URL_BOX_TYPE
URL box type.
Definition: JP2_Box.hh:70
JP2_Box_List Sub_Boxes
List of boxes contained in this box.
Definition: JP2_Box.hh:427
JP2_Box & add(JP2_Box &sub_box)
Add a sub-box to this box.
Definition: JP2_Box.hh:325
JP2_Box * container() const
Get the container of this box.
Definition: JP2_Box.hh:365
std::string type_name() const
Get the type name of the box.
Definition: JP2_Box.hh:142
bool locally_owned_content() const
Test if the box data content buffer is locally owned.
Definition: JP2_Box.hh:241
static const unsigned int ASSOCIATION_BOX_TYPE
Association box type.
Definition: JP2_Box.hh:78
JP2_Box()
Construct a JP2_Box with no data content.
Definition: JP2_Box.cc:127
static const unsigned int UUID_INFO_BOX_TYPE
UUID Info box type.
Definition: JP2_Box.hh:63
JP2_Box_List & sub_boxes()
Get the list of sub-boxes contained in this box.
Definition: JP2_Box.hh:356
bool Locally_Owned_Content
Flag for a locally owned data content buffer.
Definition: JP2_Box.hh:419
static const unsigned int INTELLECTUAL_PROPERTY_BOX_TYPE
Intellectual Property box type.
Definition: JP2_Box.hh:86
JP2_Box & append_content(const unsigned char *data, unsigned int amount)
Append data to the box data content.
Definition: JP2_Box.cc:268
std::vector< JP2_Box * > JP2_Box_List
List of JP2 boxes.
Definition: JP2_Box.hh:46
JP2_Box * Container
Pointer to the JP2_Box that contains this box.
Definition: JP2_Box.hh:423
static const char *const ID
Class identification name with source code version and date.
Definition: JP2_Box.hh:53
static const unsigned int XML_BOX_TYPE
XML box type.
Definition: JP2_Box.hh:74
Definition: Dimensions.cc:30
kdu_uint32 box_type(const char *box_name)
Definition: relocate_label.cc:813