|
AVPKit
|
The parent class of all media objects than can be gotten from an IStream. More...
#include <IMediaData.h>


Public Member Functions | |
| virtual int64_t | getTimeStamp ()=0 |
| Get the time stamp of this object in getTimeBase() units. More... | |
| virtual void | setTimeStamp (int64_t aTimeStamp)=0 |
| Set the time stamp for this object in getTimeBase() units. More... | |
| virtual IRational * | getTimeBase ()=0 |
| Get the time base that time stamps of this object are represented in. More... | |
| virtual void | setTimeBase (IRational *aBase)=0 |
| Set the time base that time stamps of this object are represented in. More... | |
| virtual com::avpkit::ferry::IBuffer * | getData ()=0 |
| Get any underlying raw data available for this object. More... | |
| virtual int32_t | getSize ()=0 |
| Get the size in bytes of the raw data available for this object. More... | |
| virtual bool | isKey ()=0 |
| Is this object a key object? i.e. More... | |
| virtual void | setData (com::avpkit::ferry::IBuffer *buffer)=0 |
| Sets the underlying buffer used by this object. More... | |
Public Member Functions inherited from com::avpkit::ferry::RefCounted | |
| virtual int32_t | acquire () |
| Internal Only. More... | |
| virtual int32_t | release () |
| Internal Only. More... | |
| virtual RefCounted * | copyReference () |
| Create a new Java object that refers to the same native object. More... | |
| virtual int32_t | getCurrentRefCount () |
| Return the current reference count on this object. More... | |
| void | setJavaAllocator (void *allocator) |
| This method is public but not part of the standard API. More... | |
| void * | getJavaAllocator () |
| This method is public but not part of the standard API. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from com::avpkit::ferry::RefCounted | |
| virtual void | destroy () |
| This method is called by RefCounted objects when their Ref Count reaches zero and they are about to be destroyed. | |
Protected Attributes inherited from com::avpkit::ferry::RefCounted | |
| AtomicInteger * | mRefCount |
| This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe. | |
| void * | mAllocator |
| Not part of public API. | |
The parent class of all media objects than can be gotten from an IStream.
Definition at line 33 of file IMediaData.h.
|
pure virtual |
Get any underlying raw data available for this object.
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
Referenced by com::avpkit::core::IPixelFormat::getYUV420PPixel(), and com::avpkit::core::IPixelFormat::setYUV420PPixel().
|
pure virtual |
Get the size in bytes of the raw data available for this object.
Implemented in com::avpkit::core::IVideoPicture, com::avpkit::core::IPacket, com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
|
pure virtual |
Get the time base that time stamps of this object are represented in.
Caller must release the returned value.
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
Referenced by com::avpkit::core::Stream::stampOutputPacket(), and com::avpkit::core::MediaDataWrapper::wrap().
|
pure virtual |
Get the time stamp of this object in getTimeBase() units.
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
Referenced by com::avpkit::core::MediaDataWrapper::wrap().
|
pure virtual |
Is this object a key object? i.e.
it can be interpreted without needing any other media objects
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
Referenced by com::avpkit::core::MediaDataWrapper::wrap().
|
pure virtual |
Sets the underlying buffer used by this object.
This is an advanced method and is not recommended for use by those who don't fully understand how IBuffers work. Implementations of IMediaData may behave in undefined ways if the buffer you pass in is not big enough for what you ask them to do (e.g. they may discard your buffer and allocate a larger one if they need more space). It is up to the caller to ensure the buffer passed in is large enough, and is not simultaneously in use by another part of the system.
| buffer | The buffer to set. If null, this method is ignored. |
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::AudioSamples, and com::avpkit::core::MediaDataWrapper.
|
pure virtual |
Set the time base that time stamps of this object are represented in.
| aBase | the new time base. If null an exception is thrown. |
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.
Referenced by com::avpkit::core::Stream::stampOutputPacket().
|
pure virtual |
Set the time stamp for this object in getTimeBase() units.
| aTimeStamp | The time stamp |
Implemented in com::avpkit::core::VideoPicture, com::avpkit::core::Packet, com::avpkit::core::MediaDataWrapper, and com::avpkit::core::AudioSamples.