
public class MediaRaw extends Media
DEFAULT_TIME_STAMP_FORMAT| Modifier and Type | Method and Description |
|---|---|
MediaRaw |
copyReference()
Create a new MediaRaw 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. |
KeyValueBag |
getMetaData()
Get any meta-data associated with this media item
|
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
|
Rational |
getTimeBase()
Get the time base that time stamps of this object are represented in.
|
long |
getTimeStamp()
Get the time stamp of this object in getTimeBase() units.
|
int |
hashCode()
Get a hashable value for this object.
|
boolean |
isKey()
Is this object a key object? i.e.
|
void |
setComplete(boolean value) |
void |
setTimeBase(Rational timeBase)
Sets the timebase on this object.
Note: This will NOT automatically rescale the timestamp set -- so if you change the timebase, you almost definitely want to change the timestamp as well. |
void |
setTimeStamp(long aTimeStamp)
Set the time stamp for this object in getTimeBase() units.
|
getFormattedTimeStamp, getFormattedTimeStamp, isCompletedelete, getCurrentRefCountpublic MediaRaw copyReference()
copyReference in class Mediapublic boolean equals(Object obj)
public int hashCode()
public long getTimeStamp()
getTimeStamp in class Mediapublic void setTimeStamp(long aTimeStamp)
setTimeStamp in class MediaaTimeStamp - The time stamppublic Rational getTimeBase()
getTimeBase in class Mediapublic boolean isKey()
public long getPts()
public KeyValueBag getMetaData()
public long getPacketPts()
public long getPacketDts()
public int getPacketSize()
public long getPacketDuration()
public long getBestEffortTimeStamp()
public void setComplete(boolean value)
value - is the object complete or not.Media.isComplete()public void setTimeBase(Rational timeBase)
Copyright © 2018 Humble Software. All rights reserved.