A base class for all ISO 14496-12 boxes.
Located in /ISO14496/Box.php (line 52)
Class | Description |
---|---|
ISO14496 | This class represents a file in ISO base media file format as described in ISO/IEC 14496 Part 12 standard. |
ISO14496_Box_CDSC | This box provides a reference from the containing track to another track in the presentation. This track describes the referenced track. |
ISO14496_Box_DINF | The Data Information Box contains objects that declare the location of the media information in a track. |
ISO14496_Box_EDTS | The Edit Box maps the presentation time-line to the media time-line as it is stored in the file. The Edit Box is a container for the edit lists. |
ISO14496_Box_FREE | The contents of a Free Space Box are irrelevant and may be ignored, or the object deleted, without affecting the presentation. (Care should be exercised when deleting the object, as this may invalidate the offsets used in the sample table, unless this object is after all the media data). |
ISO14496_Box_FRMA | The Original Format Box contains the four-character-code of the original un-transformed sample description. |
ISO14496_Box_FTYP | The File Type Box is placed as early as possible in the file (e.g. |
ISO14496_Box_Full | A base class for objects that also contain a version number and flags field. |
ISO14496_Box_HINT | This box provides a reference from the containing track to another track in the presentation. The referenced track(s) contain the original media for this hint track. |
ISO14496_Box_IINF | The Item Information Box provides extra information about selected |
ISO14496_Box_ILOC | The The Item Location Box provides a directory of resources in this or |
ISO14496_Box_ILST | A container box for all the iTunes/iPod specific boxes. A list of well known boxes is provided in the following table. The value for each box is contained in a nested Data Box. |
ISO14496_Box_IMIF | The IPMP Information Box contains IPMP Descriptors which document the protection applied to the stream. |
ISO14496_Box_IPRO | The Item Protection Box provides an array of item protection information, for use by the Item Information Box. |
ISO14496_Box_MDAT | The Media Data Box contains the media data. In video tracks, this box would contain video frames. There may be any number of these boxes in the file (including zero, if all the media data is in other files). |
ISO14496_Box_MDIA | The Media Box contains all the objects that declare information about the media data within a track. |
ISO14496_Box_MFRA | The Movie Fragment Random Access Box provides a table which may assist |
ISO14496_Box_MINF | The Media Information Box contains all the objects that declare characteristic information of the media in the track. |
ISO14496_Box_MOOF | The Movie Fragment Box extend the presentation in time. They provide |
ISO14496_Box_MOOV | The metadata for a presentation is stored in the single Movie Box which occurs at the top-level of a file. Normally this box is close to the beginning or end of the file, though this is not required. |
ISO14496_Box_MVEX | The Movie Extends Box warns readers that there might be |
ISO14496_Box_SCHI | The Scheme Information Box is a container Box that is only interpreted |
ISO14496_Box_SINF | The Protection Scheme Information Box contains all the information |
ISO14496_Box_SKIP | The contents of a Free Space Box are irrelevant and may be ignored, or the object deleted, without affecting the presentation. (Care should be exercised when deleting the object, as this may invalidate the offsets used in the sample table, unless this object is after all the media data). |
ISO14496_Box_STBL | The Sample Table Box contains all the time and data indexing of the media samples in a track. Using the tables here, it is possible to locate samples in time, determine their type (e.g. I-frame or not), and determine their size, container, and offset into that container. |
ISO14496_Box_TRAF | Within the Track Fragment Box there is a set of track fragments, zero or more per track. The track fragments in turn contain zero or more track runs, each of which document a contiguous run of samples for that track. |
ISO14496_Box_TRAK | The Track Box is a container box for a single track of a presentation. |
ISO14496_Box_TREF | The Track Reference Box provides a reference from the containing track |
ISO14496_Box_UDTA | The User Data Box contains objects that declare user information about the containing box and its data (presentation or track). |
The reader object.
Constructs the class with given parameters and options.
Adds a new box into the current box and returns it.
Reads and constructs the boxes found within this box.
Returns all the boxes the file contains as an associate array. The box identifiers work as keys having an array of boxes as associated value.
Returns an array of boxes matching the given identifier or an empty array if no boxes matched the identifier.
The identifier may contain wildcard characters "*" and "?". The asterisk matches against zero or more characters, and the question mark matches any single character.
Please note that one may also use the shorthand $obj->identifier to access the first box with the identifier given. Wildcards cannot be used with the shorthand and they will not work with user defined uuid types.
Returns a boolean value corresponding to whether the box is a container.
Returns the file offset to box start, or -1 if the box was created on heap.
Returns the given option value, or the default value if the option is not defined.
Returns the options array.
Returns the box size in bytes, including the size and type header, fields, and all contained boxes, or -1 if the box was created on heap.
Returns the box type.
Checks whether the box given as an argument is present in the file. Returns true if one or more boxes are present, false otherwise.
Returns a boolean value corresponding to whether the box is a container.
Sets whether the box is a container.
Sets the file offset where the box starts.
Sets the given option the given value.
Sets the options array. See ISO14496 class for available options.
Sets the box size. The size must include the size and type header, fields, and all contained boxes.
The method will propagate size change to box parents.
Sets the box type.
Magic function so that $obj->value will work. If called on a container box, the method will first attempt to return the first contained box that matches the identifier, and if not found, invoke a getter method.
If there are no boxes or getter methods with given name, the method attempts to create a frame with given identifier.
If none of these work, an exception is thrown.
Magic function so that isset($obj->value) will work. This method checks whether the box is a container and contains a box that matches the identifier.
Magic function so that assignments with $obj->value will work.
Returns the box raw data.
Magic function so that unset($obj->value) will work. This method removes all the boxes from this container that match the identifier.
Documentation generated on Fri, 05 Sep 2008 20:18:20 +0300 by phpDocumentor 1.4.1