![]() |
Murl Engine API
Version 2018.3
|
The video stream class, see IVideoStream. More...
#include <murl_util_video_stream.h>
The video stream class, see IVideoStream.
Public Member Functions | |
VideoStream (IEnums::PixelFormat outputFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen) | |
The constructor. More... | |
virtual | ~VideoStream () |
The destructor. | |
virtual IVideoStream * | Clone () const |
Implementation of IVideoStream::Clone(). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat) const |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY) const |
Implementation of IVideoStream::Clone((IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen) const |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen). More... | |
virtual UInt32 | GetNumberOfFrames () const |
Implementation of IVideoStream::GetNumberOfFrames(). More... | |
virtual UInt32 | GetFrameIndex (Double startTime) const |
Implementation of IVideoStream::GetFrameIndex(). More... | |
virtual Double | GetStartTime (UInt32 frameIndex) const |
Implementation of IVideoStream::GetStartTime(). More... | |
virtual Double | GetFrameRate () const |
Implementation of IVideoStream::GetFrameRate(). More... | |
virtual Double | GetFrameDuration () const |
Implementation of IVideoStream::GetFrameDuration(). More... | |
virtual Double | GetTotalDuration () const |
Implementation of IVideoStream::GetTotalDuration(). More... | |
virtual UInt32 | GetNumberOfMipLevels () const |
Implementation of IVideoStream::GetNumberOfMipLevels(). More... | |
virtual UInt32 | GetNumberOfPlanes () const |
Implementation of IVideoStream::GetNumberOfPlanes(). More... | |
virtual IEnums::PixelFormat | GetPixelFormat () const |
Implementation of IVideoStream::GetPixelFormat(). More... | |
virtual UInt32 | GetBytesPerPixel () const |
Implementation of IVideoStream::GetBytesPerPixel(). More... | |
virtual UInt32 | GetPixelSizeX (UInt32 mipLevel) const |
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel). More... | |
virtual UInt32 | GetPixelSizeY (UInt32 mipLevel) const |
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel). More... | |
virtual UInt32 | GetBytesPerLine (UInt32 mipLevel) const |
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel). More... | |
virtual UInt32 | GetNumberOfBytes (UInt32 mipLevel) const |
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel). More... | |
virtual IEnums::PixelFormat | GetPixelFormat (UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelFormat(UInt32 planeIndex). More... | |
virtual UInt32 | GetBytesPerPixel (UInt32 planeIndex) const |
Implementation of IVideoStream::GetBytesPerPixel(UInt32 planeIndex). More... | |
virtual UInt32 | GetPixelSizeX (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetPixelSizeY (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetBytesPerLine (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetNumberOfBytes (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual Bool | IsReadyForDecoding () const |
Implementation of IVideoStream::IsReadyForDecoding(). More... | |
virtual Bool | StartDecoding () |
Implementation of IVideoStream::StartDecoding(). More... | |
virtual Bool | EndDecoding () |
Implementation of IVideoStream::EndDecoding(). More... | |
virtual UInt32 | Decode (UInt32 mipLevel, UInt32 planeIndex, Data &dstBuffer, IEnums::PixelFormat dstFormat, UInt32 firstFrame, UInt32 numFrames) |
Implementation of IVideoStream::Decode(). More... | |
virtual Bool | SetCurrentMode (IEnums::StreamMode mode) |
Implementation of IVideoStream::SetCurrentMode(). More... | |
virtual const IEnums::StreamMode | GetCurrentMode () const |
Implementation of IVideoStream::GetCurrentMode(). More... | |
virtual Bool | SetCurrentTimeOffset (Double timeOffset) |
Implementation of IVideoStream::SetCurrentTimeOffset(). More... | |
virtual Double | GetCurrentTimeOffset () const |
Implementation of IVideoStream::GetCurrentTimeOffset(). More... | |
virtual Bool | PrepareDecodedData () |
Implementation of IVideoStream::PrepareDecodedData(). More... | |
virtual Bool | FinishDecodedData () |
Implementation of IVideoStream::FinishDecodedData(). More... | |
virtual Bool | ReleaseDecodedData () |
Implementation of IVideoStream::ReleaseDecodedData(). More... | |
virtual Double | GetDecodedTimeOffset () const |
Implementation of IVideoStream::GetDecodedTimeOffset(). More... | |
virtual UInt64 | GetDecodedFrameIndex () const |
Implementation of IVideoStream::GetDecodedFrameIndex(). More... | |
virtual const ConstData & | GetDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::GetDecodedData(). More... | |
virtual const IVideoSurface * | GetDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::GetDecodedSurface(). More... | |
virtual const MutableData & | LockDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::LockDecodedData(). More... | |
virtual IVideoSurface * | LockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::LockDecodedSurface(). More... | |
virtual Bool | UnlockDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::UnlockDecodedData(). More... | |
virtual Bool | UnlockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::UnlockDecodedSurface(). More... | |
virtual Bool | SetSurface (UInt32 mipLevel, UInt32 planeIndex, IVideoSurface *surface, Bool takeOwnership) |
Set the surface. More... | |
![]() | |
virtual | ~IVideoStream () |
The destructor. | |
Murl::Util::VideoStream::VideoStream | ( | IEnums::PixelFormat | outputFormat, |
UInt32 | pixelSizeX, | ||
UInt32 | pixelSizeY, | ||
IEnums::MipMapGenerationMode | mipMapGen | ||
) |
The constructor.
Creates a video stream with spcified pixel format and dimension.
outputFormat | The pixel format of the new video object. |
pixelSizeX | The number of horizontal pixels. |
pixelSizeY | The number of vertical pixels. |
mipMapGen | Specifies if and how mip maps are generated. |
|
virtual |
Implementation of IVideoStream::Clone().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat).
pixelFormat | The pixel format of the new video object. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::Clone((IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY).
pixelFormat | The pixel format of the new video object. |
pixelSizeX | The number of horizontal pixels of the new video object. |
pixelSizeY | The number of vertical pixels of the new video object. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen).
pixelFormat | The pixel format of the new video object. |
pixelSizeX | The number of horizontal pixels of the new video object. |
pixelSizeY | The number of vertical pixels of the new video object. |
mipMapGen | Specifies if and how mip maps are generated. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetNumberOfFrames().
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetFrameIndex().
startTime | The frame start time in seconds. |
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetStartTime().
frameIndex | The index of the frame to query. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetFrameRate().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetFrameDuration().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetTotalDuration().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetNumberOfMipLevels().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetNumberOfPlanes().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetPixelFormat().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetBytesPerPixel().
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetPixelFormat(UInt32 planeIndex).
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
Implementation of IVideoStream::GetBytesPerPixel(UInt32 planeIndex).
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel, UInt32 planeIndex).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel, UInt32 planeIndex).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel, UInt32 planeIndex).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel, UInt32 planeIndex).
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::IsReadyForDecoding().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::StartDecoding().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::EndDecoding().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::Decode().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
dstBuffer | The destination data. |
dstFormat | The destination pixel format. |
firstFrame | The first frame to decode. |
numFrames | The number of frames to decode. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::SetCurrentMode().
mode | The access mode to apply. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetCurrentMode().
Implements Murl::IVideoStream.
Implementation of IVideoStream::SetCurrentTimeOffset().
timeOffset | The time offset in seconds. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetCurrentTimeOffset().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::PrepareDecodedData().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::FinishDecodedData().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::ReleaseDecodedData().
Implements Murl::IVideoStream.
Reimplemented in Murl::Util::EvictableVideoStream.
|
virtual |
Implementation of IVideoStream::GetDecodedTimeOffset().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetDecodedFrameIndex().
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetDecodedData().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::GetDecodedSurface().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::LockDecodedData().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::LockDecodedSurface().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::UnlockDecodedData().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Implementation of IVideoStream::UnlockDecodedSurface().
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
Implements Murl::IVideoStream.
|
virtual |
Set the surface.
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
planeIndex | The color plane index in the range [0 .. GetNumberOfPlanes() - 1]. |
surface | The source video surface. |
takeOwnership | Take the source video surface ownershop if true. |