
public class MediaSubtitle extends MediaRaw
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaSubtitle.Type |
DEFAULT_TIME_STAMP_FORMAT| Modifier and Type | Method and Description |
|---|---|
MediaSubtitle |
copyReference()
Create a new MediaSubtitle object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
long |
getBestEffortTimeStamp()
frame timestamp estimated using various heuristics, in stream time base
- encoding: unused - decoding: set by libavcodec, read by user. |
long |
getEndDisplayTime()
Get the end display time in ms, relative to #getTimeStamp().
|
int |
getFormat() |
int |
getNumRectangles()
Get the number of rectangles this subtitle draws
|
long |
getPacketDts()
dts copied from the Packet that triggered returning this frame
- encoding: unused - decoding: Read by user. |
long |
getPacketDuration()
duration of the corresponding packet, expressed in
ContainerStream.getTimeBase() units, 0 if unknown. - encoding: unused - decoding: Read by user. |
long |
getPacketPts()
pts copied from the Packet that was decoded to produce this frame
- encoding: unused - decoding: Read by user. |
int |
getPacketSize()
size of the corresponding packet containing the compressed
frame. It is set to a negative value if unknown. - encoding: unused - decoding: set by libavcodec, read by user. |
long |
getPts()
Get the presentation time stamp
|
MediaSubtitleRectangle |
getRectangle(int n) |
long |
getStartDisplayTime()
Get the start display time in ms, relative to the #getTimeStamp().
|
long |
getTimeStamp()
Get the presentation timestamp of this subtitle
|
int |
hashCode()
Get a hashable value for this object.
|
boolean |
isComplete()
Returns whether or not we think this buffer has been filled
with data. |
boolean |
isKey()
Is this object a key object? i.e.
|
void |
setComplete(boolean complete) |
void |
setComplete(boolean complete,
long timestamp)
Sets the subtitle to be complete.
|
void |
setTimeStamp(long timeStamp)
Set the time stamp for this object in getTimeBase() units.
|
getMetaData, getTimeBase, setTimeBasegetFormattedTimeStamp, getFormattedTimeStampdelete, getCurrentRefCountpublic MediaSubtitle copyReference()
copyReference in class MediaRawpublic boolean equals(Object obj)
public int hashCode()
public int getFormat()
public long getStartDisplayTime()
public long getEndDisplayTime()
public int getNumRectangles()
public long getTimeStamp()
getTimeStamp in class MediaRawpublic MediaSubtitleRectangle getRectangle(int n)
public void setTimeStamp(long timeStamp)
MediaRawsetTimeStamp in class MediaRawtimeStamp - The time stamppublic boolean isKey()
MediaRawpublic long getPts()
MediaRawpublic long getPacketPts()
MediaRawgetPacketPts in class MediaRawpublic long getPacketDts()
MediaRawgetPacketDts in class MediaRawpublic int getPacketSize()
MediaRawgetPacketSize in class MediaRawpublic long getPacketDuration()
MediaRawgetPacketDuration in class MediaRawpublic long getBestEffortTimeStamp()
MediaRawgetBestEffortTimeStamp in class MediaRawpublic boolean isComplete()
MediaisComplete in class Mediapublic void setComplete(boolean complete,
long timestamp)
public void setComplete(boolean complete)
setComplete in class MediaRawcomplete - is the object complete or not.Media.isComplete()Copyright © 2018 Humble Software. All rights reserved.