pub struct XMLMetaDataSampleEntry<'a> {
pub sample_entry: MetaDataSampleEntry,
pub content_encoding: Utf8String,
pub namespace: Utf8List,
pub schema_location: Utf8List,
pub btrt: Option<BitRateBox>,
pub unknown_boxes: Vec<UnknownBox<'a>>,
}Expand description
XML metadata sample entry
ISO/IEC 14496-12 - 12.3.3
Fields§
§sample_entry: MetaDataSampleEntryThe sample entry that this box inherits from.
content_encoding: Utf8StringA MIME type which identifies the content encoding of the timed metadata.
It is defined in the same way as for an ItemInfoEntry in this document.
If not present (an empty string is supplied) the timed metadata is not encoded.
An example for this field is ‘application/zip’.
Note that no MIME types for BiM [ISO/IEC 23001-1] and TeM [ISO/IEC 15938-1] currently exist.
Thus, the experimental MIME types ‘application/x-BiM’ and ‘text/x-TeM’ shall be used to identify
these encoding mechanisms.
namespace: Utf8ListOne or more XML namespaces to which the sample documents conform. When used for metadata, this is needed for identifying its type, e.g. gBSD or AQoS [MPEG-21-7] and for decoding using XML aware encoding mechanisms such as BiM.
schema_location: Utf8ListZero or more URLs for XML schema(s) to which the sample document conforms. If there is one namespace and one schema, then this field shall be the URL of the one schema. If there is more than one namespace, then the syntax of this field shall adhere to that for xsi:schemaLocation attribute as defined by XML. When used for metadata, this is needed for decoding of the timed metadata by XML aware encoding mechanisms such as BiM.
btrt: Option<BitRateBox>The contained BitRateBox. (optional)
unknown_boxes: Vec<UnknownBox<'a>>A list of unknown boxes that were not recognized during deserialization.
Trait Implementations§
Source§impl<'a> Debug for XMLMetaDataSampleEntry<'a>
impl<'a> Debug for XMLMetaDataSampleEntry<'a>
Source§impl<'a> Deserialize<'a> for XMLMetaDataSampleEntry<'a>
impl<'a> Deserialize<'a> for XMLMetaDataSampleEntry<'a>
Source§fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> DeserializeSeed<'a, BoxHeader> for XMLMetaDataSampleEntry<'a>
impl<'a> DeserializeSeed<'a, BoxHeader> for XMLMetaDataSampleEntry<'a>
Source§fn deserialize_seed<R>(reader: R, seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize_seed<R>(reader: R, seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> IsoBox for XMLMetaDataSampleEntry<'a>
impl<'a> IsoBox for XMLMetaDataSampleEntry<'a>
Source§fn add_header_size(payload_size: usize) -> usize
fn add_header_size(payload_size: usize) -> usize
Source§fn box_header(&self) -> BoxHeader
fn box_header(&self) -> BoxHeader
BoxHeader for this box.Source§fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
IsoBox::box_header to the given writer.