The evictable video stream class, see IVideoStream. More...

#include "murl_util_evictable_video_stream.h"

Inheritance diagram for Murl::Util::EvictableVideoStream:

Public Member Functions

 EvictableVideoStream (IEnums::PixelFormat outputFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen)
 The constructor. More...
 
virtual ~EvictableVideoStream ()
 The destructor.
 
virtual Bool ReleaseDecodedData ()
 Release decoded surface data. More...
 
- Public Member Functions inherited from Murl::Util::VideoStream
 VideoStream (IEnums::PixelFormat outputFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen)
 The constructor. More...
 
virtual ~VideoStream ()
 The destructor.
 
virtual IVideoStreamClone () const
 Implementation of IVideoStream::Clone().
 
virtual IVideoStreamClone (IEnums::PixelFormat pixelFormat) const
 Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat).
 
virtual IVideoStreamClone (IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY) const
 Implementation of IVideoStream::Clone((IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY).
 
virtual IVideoStreamClone (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).
 
virtual UInt32 GetNumberOfFrames () const
 Implementation of IVideoStream::GetNumberOfFrames().
 
virtual UInt32 GetFrameIndex (Double startTime) const
 Implementation of IVideoStream::GetFrameIndex().
 
virtual Double GetStartTime (UInt32 frameIndex) const
 Implementation of IVideoStream::GetStartTime().
 
virtual Double GetFrameRate () const
 Implementation of IVideoStream::GetFrameRate().
 
virtual Double GetFrameDuration () const
 Implementation of IVideoStream::GetFrameDuration().
 
virtual Double GetTotalDuration () const
 Implementation of IVideoStream::GetTotalDuration().
 
virtual UInt32 GetNumberOfMipLevels () const
 Implementation of IVideoStream::GetNumberOfMipLevels().
 
virtual UInt32 GetNumberOfPlanes () const
 Implementation of IVideoStream::GetNumberOfPlanes().
 
virtual IEnums::PixelFormat GetPixelFormat () const
 Implementation of IVideoStream::GetPixelFormat().
 
virtual UInt32 GetBytesPerPixel () const
 Implementation of IVideoStream::GetBytesPerPixel().
 
virtual UInt32 GetPixelSizeX (UInt32 mipLevel) const
 Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel).
 
virtual UInt32 GetPixelSizeY (UInt32 mipLevel) const
 Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel).
 
virtual UInt32 GetBytesPerLine (UInt32 mipLevel) const
 Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel).
 
virtual UInt32 GetNumberOfBytes (UInt32 mipLevel) const
 Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel).
 
virtual IEnums::PixelFormat GetPixelFormat (UInt32 planeIndex) const
 Implementation of IVideoStream::GetPixelFormat(UInt32 planeIndex).
 
virtual UInt32 GetBytesPerPixel (UInt32 planeIndex) const
 Implementation of IVideoStream::GetBytesPerPixel(UInt32 planeIndex).
 
virtual UInt32 GetPixelSizeX (UInt32 mipLevel, UInt32 planeIndex) const
 Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel, UInt32 planeIndex).
 
virtual UInt32 GetPixelSizeY (UInt32 mipLevel, UInt32 planeIndex) const
 Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel, UInt32 planeIndex).
 
virtual UInt32 GetBytesPerLine (UInt32 mipLevel, UInt32 planeIndex) const
 Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel, UInt32 planeIndex).
 
virtual UInt32 GetNumberOfBytes (UInt32 mipLevel, UInt32 planeIndex) const
 Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel, UInt32 planeIndex).
 
virtual Bool IsReadyForDecoding () const
 Implementation of IVideoStream::IsReadyForDecoding().
 
virtual Bool StartDecoding ()
 Implementation of IVideoStream::StartDecoding().
 
virtual Bool EndDecoding ()
 Implementation of IVideoStream::EndDecoding().
 
virtual UInt32 Decode (UInt32 mipLevel, UInt32 planeIndex, Data &dstBuffer, IEnums::PixelFormat dstFormat, UInt32 firstFrame, UInt32 numFrames)
 Implementation of IVideoStream::Decode().
 
virtual Bool SetCurrentMode (IEnums::StreamMode mode)
 Implementation of IVideoStream::SetCurrentMode().
 
virtual const IEnums::StreamMode GetCurrentMode () const
 Implementation of IVideoStream::GetCurrentMode().
 
virtual Bool SetCurrentTimeOffset (Double timeOffset)
 Implementation of IVideoStream::SetCurrentTimeOffset().
 
virtual Double GetCurrentTimeOffset () const
 Implementation of IVideoStream::GetCurrentTimeOffset().
 
virtual Bool PrepareDecodedData ()
 Implementation of IVideoStream::PrepareDecodedData().
 
virtual Bool FinishDecodedData ()
 Implementation of IVideoStream::FinishDecodedData().
 
virtual Double GetDecodedTimeOffset () const
 Implementation of IVideoStream::GetDecodedTimeOffset().
 
virtual UInt64 GetDecodedFrameIndex () const
 Implementation of IVideoStream::GetDecodedFrameIndex().
 
virtual const ConstDataGetDecodedData (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::GetDecodedData().
 
virtual const IVideoSurfaceGetDecodedSurface (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::GetDecodedSurface().
 
virtual const MutableDataLockDecodedData (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::LockDecodedData().
 
virtual IVideoSurfaceLockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::LockDecodedSurface().
 
virtual Bool UnlockDecodedData (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::UnlockDecodedData().
 
virtual Bool UnlockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex)
 Implementation of IVideoStream::UnlockDecodedSurface().
 
virtual Bool SetSurface (UInt32 mipLevel, UInt32 planeIndex, IVideoSurface *surface, Bool takeOwnership)
 Set the surface. More...
 
- Public Member Functions inherited from Murl::IVideoStream
virtual ~IVideoStream ()
 The destructor.
 

Protected Member Functions

virtual Bool AcquireMipLevelSurface (UInt32 mipLevel)
 Create or restore surface data for a specified mip level. More...
 

Detailed Description

The evictable video stream class, see IVideoStream.

Constructor & Destructor Documentation

◆ EvictableVideoStream()

Murl::Util::EvictableVideoStream::EvictableVideoStream ( IEnums::PixelFormat  outputFormat,
UInt32  pixelSizeX,
UInt32  pixelSizeY,
IEnums::MipMapGenerationMode  mipMapGen 
)

The constructor.

Creates a video stream with spcified pixel format and dimension.

Parameters
outputFormatThe pixel format of the new video object.
pixelSizeXThe number of horizontal pixels.
pixelSizeYThe number of vertical pixels.
mipMapGenSpecifies if and how mip maps are generated.

Member Function Documentation

◆ ReleaseDecodedData()

virtual Bool Murl::Util::EvictableVideoStream::ReleaseDecodedData ( )
virtual

Release decoded surface data.

Calls IVideoSurface::Evict() on all mip-level surfaces.

Returns
true if successful.

Reimplemented from Murl::Util::VideoStream.

◆ AcquireMipLevelSurface()

virtual Bool Murl::Util::EvictableVideoStream::AcquireMipLevelSurface ( UInt32  mipLevel)
protectedvirtual

Create or restore surface data for a specified mip level.

Calls IVideoSurface::Restore() if the surface exists, otherwise a new surface is created.

Parameters
mipLevelThe mip level in the range [0 .. GetNumberOfMipLevels() - 1].
Returns
true if successful.

Reimplemented from Murl::Util::VideoStream.


The documentation for this class was generated from the following file:
  • murl_util_evictable_video_stream.h


Copyright © 2011-2018 Spraylight GmbH.