Package com.jogamp.opengl.util.av
Class SubtitleEvent
- java.lang.Object
-
- com.jogamp.opengl.util.av.SubtitleEvent
-
- Direct Known Subclasses:
SubBitmapEvent,SubEmptyEvent,SubTextEvent
public abstract class SubtitleEvent extends Object
Generic subtitle eventIt is mandatory that the receiver
release()this instance after processing, allowing the resource owner to free or reuse it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubtitleEvent.TypeSubtitleEventImplementation Type
-
Field Summary
Fields Modifier and Type Field Description CodecIDcodecCodecIDof this subtitle event.StringlangLanguage code, supposed to be 3-letters of `ISO 639-2 language codes`intpts_endPTS end time in milliseconds to end showing this subtitle event.intpts_startPTS start time in milliseconds to start showing this subtitle event.SubtitleEvent.TypetypeImplementationSubtitleEvent.Typeof this instance.
-
Constructor Summary
Constructors Constructor Description SubtitleEvent(SubtitleEvent.Type type, CodecID codec, String lang, int pts_start, int pts_end)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetDuration()StringgetStartString()booleanisEndDefined()Seepts_end.abstract voidrelease()Release the resources, if any, back to the owner.
-
-
-
Field Detail
-
type
public final SubtitleEvent.Type type
ImplementationSubtitleEvent.Typeof this instance.
-
lang
public final String lang
Language code, supposed to be 3-letters of `ISO 639-2 language codes`
-
pts_start
public final int pts_start
PTS start time in milliseconds to start showing this subtitle event.
-
pts_end
public final int pts_end
PTS end time in milliseconds to end showing this subtitle event.SubBitmapEventoften (e.g.CodecID.HDMV_PGS) have an infinite end-time, i.e. (Integer.MAX_VALUE, and shall be overwritten by the next one orSubEmptyEvent.- See Also:
isEndDefined()
-
-
Constructor Detail
-
SubtitleEvent
public SubtitleEvent(SubtitleEvent.Type type, CodecID codec, String lang, int pts_start, int pts_end)
-
-