|
PrimoBurner(tm) for C++
4.7
CD, DVD and Blu-ray Software Development Kit
|
MediaSample represents one or more samples of audio or video data. More...
#include <PrimoAV.h>
Inherits Reference.
Public Member Functions | |
| virtual MediaBuffer * | buffer ()=0 |
| Returns the buffer associated with this sample. More... | |
| virtual MediaSample * | clone () const =0 |
| Creates a deep copy of this object. More... | |
| virtual double | endTime () const =0 |
| Returns the end time of the media sample. More... | |
| virtual int32_t | flags () const =0 |
| Returns the media sample flags. More... | |
| virtual PictureType::Enum | pictureType () const =0 |
| Returns the picture type (I/P/B/etc.) of a demuxed, decoded or encoded frame. More... | |
| virtual void | reset ()=0 |
| Resets the sample to its default values and clears the data in the buffer. | |
| virtual void | setBuffer (MediaBuffer *buffer)=0 |
| Sets a new MediaBuffer object. More... | |
| virtual void | setEndTime (double time)=0 |
| Sets the end time of the media sample. More... | |
| virtual void | setFlags (int32_t flags)=0 |
| Sets the media sample flags. More... | |
| virtual void | setPictureType (PictureType::Enum pictureType)=0 |
| Sets the required picture type (I/P/B/etc.). More... | |
| virtual void | setStartTime (double time)=0 |
| Sets presentation timestamp (PTS) of the media sample. More... | |
| virtual void | setStreamNumber (int32_t streamNumber)=0 |
| Sets the elementary stream to which the sample belongs. More... | |
| virtual double | startTime () const =0 |
| Returns the presentation timestamp (PTS) of the media sample. More... | |
| virtual int32_t | streamNumber () const =0 |
| Returns the elementary stream to which the sample belongs. More... | |
| virtual int32_t | videoBufferSizeInBytes (int32_t frameWidth, int32_t frameHeight, ColorFormat::Enum colorFormat) const =0 |
| Calculates the exact number of bytes that are needed for a video frame with the specified properties. More... | |
Public Member Functions inherited from Reference | |
| virtual int32_t | release () const =0 |
| Releases the instance. More... | |
| virtual int32_t | retain () const =0 |
| Retains the instance. More... | |
| virtual int32_t | retainCount () const =0 |
| Returns the current reference count. More... | |
Protected Member Functions | |
| ~MediaSample () | |
| This object can be destroyed only by its implementation. More... | |
MediaSample represents one or more samples of audio or video data.
It is used for storing uncompressed or compressed data.
|
protected |
This object can be destroyed only by its implementation.
The caller must use Reference::release.
|
pure virtual |
Returns the buffer associated with this sample.
|
pure virtual |
Creates a deep copy of this object.
|
pure virtual |
Returns the end time of the media sample.
|
pure virtual |
Returns the media sample flags.
|
pure virtual |
Returns the picture type (I/P/B/etc.) of a demuxed, decoded or encoded frame.
|
pure virtual |
Sets a new MediaBuffer object.
The old MediaBuffer object is released. The new one is retained.
| buffer | A pointer to the new MediaBuffer object. Can be NULL. |
|
pure virtual |
Sets the end time of the media sample.
| time | [in] The time when the sample should end. Time is in seconds. |
|
pure virtual |
Sets the media sample flags.
| flags | [in] A combination of flags defined in MediaSampleFlags::Enum. |
|
pure virtual |
Sets the required picture type (I/P/B/etc.).
| pictureType | [in] A constant from the PictureType::Enum. |
|
pure virtual |
Sets presentation timestamp (PTS) of the media sample.
| time | in seconds |
|
pure virtual |
Sets the elementary stream to which the sample belongs.
| streamNumber | [in] A zero-based index of the elementary stream in the container. |
|
pure virtual |
Returns the presentation timestamp (PTS) of the media sample.
|
pure virtual |
Returns the elementary stream to which the sample belongs.
|
pure virtual |
Calculates the exact number of bytes that are needed for a video frame with the specified properties.
| frameWidth | [in] frame width in pixels. |
| frameHeight | [in] frame height in pixels. |
| colorFormat | [in] the color format represents how colors are coded in the video frame. |