Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CMediaCodecVideoBuffer Class Reference

#include <DVDVideoCodecAndroidMediaCodec.h>

Inheritance diagram for CMediaCodecVideoBuffer:
CVideoBuffer

Public Member Functions

 CMediaCodecVideoBuffer (int id)
 
 ~CMediaCodecVideoBuffer () override=default
 
void Set (int internalId, int textureId, std::shared_ptr< CJNISurfaceTexture > surfaceTexture, std::shared_ptr< CDVDMediaCodecOnFrameAvailable > frameAvailable, std::shared_ptr< jni::CJNIXBMCVideoView > videoView)
 
bool WaitForFrame (int millis)
 
void ReleaseOutputBuffer (bool render, int64_t displayTime, CMediaCodecVideoBufferPool *pool=nullptr)
 
int GetBufferId () const
 
int GetTextureId () const
 
void GetTransformMatrix (float *textureMatrix)
 
void UpdateTexImage ()
 
void RenderUpdate (const CRect &DestRect, int64_t displayTime)
 
bool HasSurfaceTexture () const
 
- Public Member Functions inherited from CVideoBuffer
 CVideoBuffer ()=delete
 
virtual ~CVideoBuffer ()=default
 
void Acquire ()
 
void Acquire (std::shared_ptr< IVideoBufferPool > pool)
 
void Release ()
 
int GetId () const
 
virtual AVPixelFormat GetFormat ()
 
virtual uint8_tGetMemPtr ()
 
virtual void GetPlanes (uint8_t *(&planes)[YuvImage::MAX_PLANES])
 
virtual void GetStrides (int(&strides)[YuvImage::MAX_PLANES])
 
virtual void SetPixelFormat (const AVPixelFormat pixFormat)
 
virtual void SetDimensions (int width, int height, const int(&strides)[YuvImage::MAX_PLANES])
 
virtual void SetDimensions (int width, int height, const int(&strides)[YuvImage::MAX_PLANES], const int(&planeOffsets)[YuvImage::MAX_PLANES])
 

Additional Inherited Members

- Static Public Member Functions inherited from CVideoBuffer
static bool CopyPicture (YuvImage *pDst, YuvImage *pSrc)
 
static bool CopyNV12Picture (YuvImage *pDst, YuvImage *pSrc)
 
static bool CopyYUV422PackedPicture (YuvImage *pDst, YuvImage *pSrc)
 
- Protected Member Functions inherited from CVideoBuffer
 CVideoBuffer (int id)
 
- Protected Attributes inherited from CVideoBuffer
AVPixelFormat m_pixFormat = AV_PIX_FMT_NONE
 
std::atomic_int m_refCount
 
int m_id
 
std::shared_ptr< IVideoBufferPoolm_pool
 

Constructor & Destructor Documentation

◆ CMediaCodecVideoBuffer()

CMediaCodecVideoBuffer::CMediaCodecVideoBuffer ( int id)
inline

◆ ~CMediaCodecVideoBuffer()

CMediaCodecVideoBuffer::~CMediaCodecVideoBuffer ( )
overridedefault

Member Function Documentation

◆ GetBufferId()

int CMediaCodecVideoBuffer::GetBufferId ( ) const

◆ GetTextureId()

int CMediaCodecVideoBuffer::GetTextureId ( ) const

◆ GetTransformMatrix()

void CMediaCodecVideoBuffer::GetTransformMatrix ( float * textureMatrix)

◆ HasSurfaceTexture()

bool CMediaCodecVideoBuffer::HasSurfaceTexture ( ) const
inline

◆ ReleaseOutputBuffer()

void CMediaCodecVideoBuffer::ReleaseOutputBuffer ( bool render,
int64_t displayTime,
CMediaCodecVideoBufferPool * pool = nullptr )

◆ RenderUpdate()

void CMediaCodecVideoBuffer::RenderUpdate ( const CRect & DestRect,
int64_t displayTime )

◆ Set()

void CMediaCodecVideoBuffer::Set ( int internalId,
int textureId,
std::shared_ptr< CJNISurfaceTexture > surfaceTexture,
std::shared_ptr< CDVDMediaCodecOnFrameAvailable > frameAvailable,
std::shared_ptr< jni::CJNIXBMCVideoView > videoView )

◆ UpdateTexImage()

void CMediaCodecVideoBuffer::UpdateTexImage ( )

◆ WaitForFrame()

bool CMediaCodecVideoBuffer::WaitForFrame ( int millis)

The documentation for this class was generated from the following files: