Interface VideoSegment

All Superinterfaces:
Segment, XmlElement
All Known Implementing Classes:
SegmentImpl

public interface VideoSegment extends Segment
A video segment represents a temporal decomposition of the video stream that may have properties like text annotations attached to it.
 <complexType name="VideoSegmentType">
   <complexContent>
       <extension base="mpeg7:SegmentType">
           <sequence>
               <choice minOccurs="0">
                   <element name="MediaTime" type="mpeg7:MediaTimeType"/>
                   <element name="TemporalMask" type="mpeg7:TemporalMaskType"/>
               </choice>
               <choice minOccurs="0" maxOccurs="unbounded">
                   <element name="VisualDescriptor" type="mpeg7:VisualDType"/>
                   <element name="VisualDescriptionScheme" type="mpeg7:VisualDSType"/>
                   <element name="VisualTimeSeriesDescriptor" type="mpeg7:VisualTimeSeriesType"/>
               </choice>
               <element name="MultipleView" type="mpeg7:MultipleViewType" minOccurs="0"/>
               <element name="Mosaic" type="mpeg7:MosaicType" minOccurs="0" maxOccurs="unbounded"/>
               <choice minOccurs="0" maxOccurs="unbounded">
                   <element name="SpatialDecomposition" type="mpeg7:VideoSegmentSpatialDecompositionType"/>
                   <element name="TemporalDecomposition" type="mpeg7:VideoSegmentTemporalDecompositionType"/>
                   <element name="SpatioTemporalDecomposition" type="mpeg7:VideoSegmentSpatioTemporalDecompositionType"/>
                   <element name="MediaSourceDecomposition" type="mpeg7:VideoSegmentMediaSourceDecompositionType"/>
               </choice>
           </sequence>
       </extension>
   </complexContent>
 </complexType>
 
  • Method Details

    • hasSpatioTemporalDecomposition

      boolean hasSpatioTemporalDecomposition()
      Returns true if there is a spatio temporal decomposition as part of this segment.
      Returns:
      true if there is a spatio temporal decomposition
    • createSpatioTemporalDecomposition

      SpatioTemporalDecomposition createSpatioTemporalDecomposition(boolean gap, boolean overlap) throws IllegalStateException
      Creates a spatio temporal decomposition in this video segment.
      Parameters:
      gap - true if there may be gap between the elements
      overlap - true if elements may overlap
      Returns:
      the new decomposition
      Throws:
      IllegalStateException - if there is already such a decomposition
    • getSpatioTemporalDecomposition

      SpatioTemporalDecomposition getSpatioTemporalDecomposition()
      Returns the spatio temporal decomposition that contains information about elements on the segment such as text elements.
      Returns:
      the spatio temporal decomposition