Package limn.video.ffmpeg
Record Class SubtitleCues.Cue
java.lang.Object
java.lang.Record
limn.video.ffmpeg.SubtitleCues.Cue
- Record Components:
text- the cue, as plain text. Subtitle formats carry markup (an ASS dialogue line has override tags like{\an8}for placement), and none of it survives to here: the leading dialogue fields, the brace-delimited override runs and the escapes are all removed by the decoder side,\Nbecoming a line break and\nand\ha space. What arrives is what an ordinary text stack can draw, which is the point: a cue handed over with its markup intact is a cue an application draws literally. It may contain line breaks and it is never emptystartMicros- when it appears, on the same timeline as a picture's presentation time: the container's start time is subtracted from both, so a cue and the picture it belongs over carry comparable numbersendMicros- when it goes, exclusive;SubtitleCues.END_UNKNOWNfor a cue the container gave no duration, which is resolved to the next cue's start as soon as one is read
- Enclosing class:
SubtitleCues
One subtitle cue: its text, and the interval it is on screen for.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theendMicrosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thestartMicrosrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cue
Creates an instance of aCuerecord class.- Parameters:
text- the value for thetextrecord componentstartMicros- the value for thestartMicrosrecord componentendMicros- the value for theendMicrosrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
startMicros
public long startMicros()Returns the value of thestartMicrosrecord component.- Returns:
- the value of the
startMicrosrecord component
-
endMicros
public long endMicros()Returns the value of theendMicrosrecord component.- Returns:
- the value of the
endMicrosrecord component
-