|
| Mp4Atom (ContainerType &container, uint64 startOffset) |
| Constructs a new top level atom with the specified container at the specified startOffset. More...
|
|
std::string | idToString () const |
| Converts the specified atom ID to a printable string. More...
|
|
bool | isParent () const |
| Returns an indication whether the atom is a parent element. More...
|
|
bool | isPadding () const |
| Returns an indication whether the atom is a padding element. More...
|
|
uint64 | firstChildOffset () const |
| Returns the offset of the first child (relative to the start offset of this atom). More...
|
|
| GenericFileElement (ContainerType &container, uint64 startOffset) |
|
| GenericFileElement (ImplementationType &parent, uint64 startOffset) |
| Constructs a new sub level file element with the specified parent at the specified startOffset. More...
|
|
| GenericFileElement (ContainerType &container, uint64 startOffset, uint64 maxSize) |
|
| GenericFileElement (const GenericFileElement &other)=delete |
|
| GenericFileElement (GenericFileElement &other)=delete |
|
GenericFileElement & | operator= (const GenericFileElement &other)=delete |
|
ContainerType & | container () |
| Returns the related container. More...
|
|
const ContainerType & | container () const |
| Returns the related container. More...
|
|
std::iostream & | stream () |
| Returns the related stream. More...
|
|
IoUtilities::BinaryReader & | reader () |
| Returns the related BinaryReader. More...
|
|
IoUtilities::BinaryWriter & | writer () |
| Returns the related BinaryWriter. More...
|
|
uint64 | startOffset () const |
| Returns the start offset in the related stream. More...
|
|
uint64 | relativeStartOffset () const |
| Returns the offset of the element in its parent or - if it is a top-level element - in the related stream. More...
|
|
const IdentifierType & | id () const |
| Returns the element ID. More...
|
|
std::string | idToString () const |
| Returns a printable string representation of the element ID. More...
|
|
uint32 | idLength () const |
| Returns the length of the id denotation in byte. More...
|
|
uint32 | headerSize () const |
| Returns the header size of the element in byte. More...
|
|
DataSizeType | dataSize () const |
| Returns the data size of the element in byte. More...
|
|
uint32 | sizeLength () const |
| Returns the length of the size denotation of the element in byte. More...
|
|
uint64 | dataOffset () const |
| Returns the data offset of the element in the related stream. More...
|
|
uint64 | totalSize () const |
| Returns the total size of the element. More...
|
|
uint64 | endOffset () const |
| Returns the offset of the first byte which doesn't belong to this element anymore. More...
|
|
uint64 | maxTotalSize () const |
| Returns maximum total size. More...
|
|
byte | level () const |
| Returns how deep the element is nested (0 for top-level elements, 1 for children of top-level elements, ...). More...
|
|
ImplementationType * | parent () |
| Returns the parent of the element. More...
|
|
const ImplementationType * | parent () const |
| Returns the parent of the element. More...
|
|
ImplementationType * | parent (byte n) |
| Returns the n-th parent of the element. More...
|
|
const ImplementationType * | parent (byte n) const |
| Returns the n-th parent of the element. More...
|
|
ImplementationType * | nextSibling () |
| Returns the next sibling of the element. More...
|
|
const ImplementationType * | nextSibling () const |
| Returns the next sibling of the element. More...
|
|
ImplementationType * | firstChild () |
| Returns the first child of the element. More...
|
|
const ImplementationType * | firstChild () const |
| Returns the first child of the element. More...
|
|
ImplementationType * | lastChild () |
| Returns the last child of the element. More...
|
|
const ImplementationType * | lastChild () const |
| Returns the last child of the element. More...
|
|
ImplementationType * | subelementByPath (Diagnostics &diag, IdentifierType item) |
| Returns the sub element for the specified path. More...
|
|
ImplementationType * | subelementByPath (Diagnostics &diag, IdentifierType item, IdentifierType remainingPath...) |
| Returns the sub element for the specified path. More...
|
|
const ImplementationType * | subelementByPath (Diagnostics &diag, IdentifierType item) const |
| Returns the sub element for the specified path. More...
|
|
const ImplementationType * | subelementByPath (Diagnostics &diag, IdentifierType item, IdentifierType remainingPath...) const |
| Returns the sub element for the specified path. More...
|
|
ImplementationType * | childById (const IdentifierType &id, Diagnostics &diag) |
| Returns the first child with the specified id. More...
|
|
const ImplementationType * | childById (const IdentifierType &id, Diagnostics &diag) const |
| Returns the first child with the specified id. More...
|
|
ImplementationType * | siblingById (const IdentifierType &id, Diagnostics &diag) |
| Returns the first sibling with the specified id. More...
|
|
const ImplementationType * | siblingById (const IdentifierType &id, Diagnostics &diag) const |
| Returns the first sibling with the specified id. More...
|
|
ImplementationType * | siblingByIdIncludingThis (const IdentifierType &id, Diagnostics &diag) |
| Returns the first sibling with the specified id or the current instance if its ID equals id. More...
|
|
const ImplementationType * | siblingByIdIncludingThis (const IdentifierType &id, Diagnostics &diag) const |
| Returns the first sibling with the specified id or the current instance if its ID equals id. More...
|
|
bool | isParent () const |
| Returns an indication whether this instance is a parent element. More...
|
|
bool | isPadding () const |
| Returns an indication whether this instance is a padding element. More...
|
|
uint64 | firstChildOffset () const |
| Returns the offset of the first child (relative to the start offset of this element). More...
|
|
bool | isParsed () const |
| Returns an indication whether this instance has been parsed yet. More...
|
|
void | clear () |
| Clears the status of the element. More...
|
|
void | parse (Diagnostics &diag) |
| Parses the header information of the element which is read from the related stream at the start offset. More...
|
|
void | reparse (Diagnostics &diag) |
| Parses the header information of the element which is read from the related stream at the start offset. More...
|
|
void | validateSubsequentElementStructure (Diagnostics &diag, uint64 *paddingSize=nullptr) |
| Parses (see parse()) this and all subsequent elements. More...
|
|
void | copyHeader (std::ostream &targetStream, Diagnostics &diag, AbortableProgressFeedback *progress) |
| Writes the header informaton of the element to the specified targetStream. More...
|
|
void | copyWithoutChilds (std::ostream &targetStream, Diagnostics &diag, AbortableProgressFeedback *progress) |
| Writes the element without its childs to the specified targetStream. More...
|
|
void | copyEntirely (std::ostream &targetStream, Diagnostics &diag, AbortableProgressFeedback *progress) |
| Writes the entire element including all childs to the specified targetStream. More...
|
|
void | makeBuffer () |
| Buffers the element (header and data). More...
|
|
void | discardBuffer () |
| Discards buffered data. More...
|
|
void | copyBuffer (std::ostream &targetStream) |
| Copies buffered data to targetStream. More...
|
|
void | copyPreferablyFromBuffer (std::ostream &targetStream, Diagnostics &diag, AbortableProgressFeedback *progress) |
| Copies buffered data to targetStream if data has been buffered; copies from input stream otherwise. More...
|
|
const std::unique_ptr< char[]> & | buffer () |
| Returns buffered data. More...
|
|
ImplementationType * | denoteFirstChild (uint32 offset) |
| Denotes the first child to start at the specified offset (relative to the start offset of this descriptor). More...
|
|
The Mp4Atom class helps to parse MP4 files.
Definition at line 38 of file mp4atom.h.