digiKam
heif::Box_ftyp Class Reference
+ Inheritance diagram for heif::Box_ftyp:

Public Member Functions

void add_compatible_brand (uint32_t brand)
 
int append_child_box (std::shared_ptr< Box > box)
 
 Box_ftyp ()
 
 Box_ftyp (const BoxHeader &hdr)
 
void clear_compatible_brands ()
 
virtual void derive_box_version ()
 
void derive_box_version_recursive ()
 
std::string dump (Indent &) const override
 
const std::vector< std::shared_ptr< Box > > & get_all_child_boxes () const
 
uint64_t get_box_size () const
 
std::shared_ptr< Boxget_child_box (uint32_t short_type) const
 
std::vector< std::shared_ptr< Box > > get_child_boxes (uint32_t short_type) const
 
uint32_t get_flags () const
 
uint32_t get_header_size () const
 
uint32_t get_short_type () const
 
std::vector< uint8_t > get_type () const
 
std::string get_type_string () const
 
uint8_t get_version () const
 
bool has_compatible_brand (uint32_t brand) const
 
bool is_full_box_header () const
 
Error parse_full_box_header (BitstreamRange &range)
 
Error prepend_header (StreamWriter &, size_t box_start) const
 
size_t reserve_box_header_space (StreamWriter &writer) const
 
void set_flags (uint32_t flags)
 
void set_is_full_box (bool flag=true)
 
void set_major_brand (uint32_t major_brand)
 
void set_minor_version (uint32_t minor_version)
 
void set_short_type (uint32_t type)
 
void set_version (uint8_t version)
 
Error write (StreamWriter &writer) const override
 

Static Public Member Functions

static Error read (BitstreamRange &range, std::shared_ptr< heif::Box > *box)
 

Static Public Attributes

constexpr static uint64_t size_until_end_of_file = 0
 

Protected Member Functions

std::string dump_children (Indent &) const
 
Error parse (BitstreamRange &range) override
 
Error read_children (BitstreamRange &range, int number=READ_CHILDREN_ALL)
 
Error write_children (StreamWriter &writer) const
 

Protected Attributes

std::vector< std::shared_ptr< Box > > m_children
 

Static Protected Attributes

static const int READ_CHILDREN_ALL = -1
 

Constructor & Destructor Documentation

◆ Box_ftyp() [1/2]

heif::Box_ftyp::Box_ftyp ( )
inline

◆ Box_ftyp() [2/2]

heif::Box_ftyp::Box_ftyp ( const BoxHeader hdr)
inline

Member Function Documentation

◆ add_compatible_brand()

void heif::Box_ftyp::add_compatible_brand ( uint32_t  brand)

◆ append_child_box()

int heif::Box::append_child_box ( std::shared_ptr< Box box)
inlineinherited

References heif::Box::m_children.

◆ clear_compatible_brands()

void heif::Box_ftyp::clear_compatible_brands ( )
inline

◆ derive_box_version()

virtual void heif::Box::derive_box_version ( )
inlinevirtualinherited

◆ derive_box_version_recursive()

void heif::Box::derive_box_version_recursive ( )
inherited

◆ dump()

std::string heif::Box_ftyp::dump ( Indent ) const
overridevirtual

Reimplemented from heif::Box.

◆ dump_children()

std::string heif::Box::dump_children ( Indent ) const
protectedinherited

◆ get_all_child_boxes()

const std::vector<std::shared_ptr<Box> >& heif::Box::get_all_child_boxes ( ) const
inlineinherited

References heif::Box::m_children.

◆ get_box_size()

uint64_t heif::BoxHeader::get_box_size ( ) const
inlineinherited

◆ get_child_box()

std::shared_ptr<Box> heif::Box::get_child_box ( uint32_t  short_type) const
inherited

◆ get_child_boxes()

std::vector<std::shared_ptr<Box> > heif::Box::get_child_boxes ( uint32_t  short_type) const
inherited

◆ get_flags()

uint32_t heif::BoxHeader::get_flags ( ) const
inlineinherited

◆ get_header_size()

uint32_t heif::BoxHeader::get_header_size ( ) const
inlineinherited

◆ get_short_type()

uint32_t heif::BoxHeader::get_short_type ( ) const
inlineinherited

◆ get_type()

std::vector<uint8_t> heif::BoxHeader::get_type ( ) const
inherited

◆ get_type_string()

std::string heif::BoxHeader::get_type_string ( ) const
inherited

◆ get_version()

uint8_t heif::BoxHeader::get_version ( ) const
inlineinherited

◆ has_compatible_brand()

bool heif::Box_ftyp::has_compatible_brand ( uint32_t  brand) const

◆ is_full_box_header()

bool heif::BoxHeader::is_full_box_header ( ) const
inlineinherited

◆ parse()

Error heif::Box_ftyp::parse ( BitstreamRange range)
overrideprotectedvirtual

Reimplemented from heif::Box.

◆ parse_full_box_header()

Error heif::BoxHeader::parse_full_box_header ( BitstreamRange range)
inherited

◆ prepend_header()

Error heif::BoxHeader::prepend_header ( StreamWriter ,
size_t  box_start 
) const
inherited

◆ read()

static Error heif::Box::read ( BitstreamRange range,
std::shared_ptr< heif::Box > *  box 
)
staticinherited

◆ read_children()

Error heif::Box::read_children ( BitstreamRange range,
int  number = READ_CHILDREN_ALL 
)
protectedinherited

◆ reserve_box_header_space()

size_t heif::BoxHeader::reserve_box_header_space ( StreamWriter writer) const
inherited

◆ set_flags()

void heif::BoxHeader::set_flags ( uint32_t  flags)
inlineinherited

◆ set_is_full_box()

◆ set_major_brand()

void heif::Box_ftyp::set_major_brand ( uint32_t  major_brand)
inline

◆ set_minor_version()

void heif::Box_ftyp::set_minor_version ( uint32_t  minor_version)
inline

◆ set_short_type()

◆ set_version()

void heif::BoxHeader::set_version ( uint8_t  version)
inlineinherited

◆ write()

Error heif::Box_ftyp::write ( StreamWriter writer) const
overridevirtual

Reimplemented from heif::Box.

◆ write_children()

Error heif::Box::write_children ( StreamWriter writer) const
protectedinherited

Member Data Documentation

◆ m_children

std::vector<std::shared_ptr<Box> > heif::Box::m_children
protectedinherited

◆ READ_CHILDREN_ALL

const int heif::Box::READ_CHILDREN_ALL = -1
staticprotectedinherited

◆ size_until_end_of_file

constexpr static uint64_t heif::BoxHeader::size_until_end_of_file = 0
staticconstexprinherited

The documentation for this class was generated from the following file: