MVHDAtom *MOOVAtom::getMVHDAtom() { AtomBase *aAtomBase; if (theMVHDAtom == NULL) { aAtomBase = GetChildAtom(uint32('mvhd')); theMVHDAtom = dynamic_cast<MVHDAtom *>(aAtomBase); } // Assert(theMVHDAtom != NULL,"Movie has no movie header atom"); return theMVHDAtom; }
uint32 MDIAAtom::getMediaComponentSubType() { // get child atom hdlr HDLRAtom *aHDLRAtom; aHDLRAtom = dynamic_cast<HDLRAtom *>(GetChildAtom(uint32('hdlr'))); if (aHDLRAtom) { return aHDLRAtom->getMediaComponentSubType(); } return 0; }
uint32 MDIAAtom::GetMediaHandlerType() { // Get child atom hdlr HDLRAtom *aHDLRAtom; aHDLRAtom = dynamic_cast<HDLRAtom *>(GetChildAtom(uint32('hdlr'))); if (aHDLRAtom) { return aHDLRAtom->GetMediaHandlerType(); } return 0; }