Interface VideoSegment
- All Superinterfaces:
Segment,XmlElement
- All Known Implementing Classes:
SegmentImpl
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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.metadata.mpeg7.Segment
Segment.Type -
Method Summary
Modifier and TypeMethodDescriptioncreateSpatioTemporalDecomposition(boolean gap, boolean overlap) Creates a spatio temporal decomposition in this video segment.Returns the spatio temporal decomposition that contains information about elements on the segment such as text elements.booleanReturnstrueif there is a spatio temporal decomposition as part of this segment.Methods inherited from interface org.opencastproject.metadata.mpeg7.Segment
createTextAnnotation, getIdentifier, getMediaTime, getTextAnnotationCount, hasTextAnnotations, hasTextAnnotations, hasTextAnnotations, hasTextAnnotations, setMediaTime, textAnnotations, textAnnotationsByConfidence, textAnnotationsByRelevanceMethods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
hasSpatioTemporalDecomposition
boolean hasSpatioTemporalDecomposition()Returnstrueif there is a spatio temporal decomposition as part of this segment.- Returns:
trueif 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-trueif there may be gap between the elementsoverlap-trueif 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
-