#include <VideoBuffer.h>
|
| | CVideoBuffer ()=delete |
| |
| virtual | ~CVideoBuffer ()=default |
| |
| void | Acquire () |
| |
| void | Acquire (std::shared_ptr< IVideoBufferPool > pool) |
| |
| void | Release () |
| |
| int | GetId () const |
| |
| virtual AVPixelFormat | GetFormat () |
| |
| virtual uint8_t * | GetMemPtr () |
| |
| 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]) |
| |
| virtual void | SyncStart () |
| | Begin CPU access to the buffer memory.
|
| |
| virtual void | SyncEnd () |
| | End CPU access to the buffer memory. Counterpart to SyncStart().
|
| |
| virtual AVDRMFrameDescriptor * | GetDescriptor () const |
| | Return an AVDRMFrameDescriptor for platform-buffer-aware callers.
|
| |
| virtual ReductionResult | ReduceForAnalysis (KODI::VIDEO::GEOMETRY::ReducedFrame &reduction, unsigned int sourceWidth, unsigned int sourceHeight, unsigned int targetWidth) |
| | Produce a small CPU-readable copy of the picture, for analysis that survives downscaling, when GetPlanes() exposes nothing. Not supported by default.
|
| |
◆ CVideoBuffer() [1/2]
| CVideoBuffer::CVideoBuffer |
( |
| ) |
|
|
delete |
◆ ~CVideoBuffer()
| virtual CVideoBuffer::~CVideoBuffer |
( |
| ) |
|
|
virtualdefault |
◆ CVideoBuffer() [2/2]
| CVideoBuffer::CVideoBuffer |
( |
int | id | ) |
|
|
explicitprotected |
◆ Acquire() [1/2]
| void CVideoBuffer::Acquire |
( |
| ) |
|
◆ Acquire() [2/2]
◆ CopyNV12Picture()
◆ CopyPicture()
◆ CopyYUV422PackedPicture()
◆ GetDescriptor()
| virtual AVDRMFrameDescriptor * CVideoBuffer::GetDescriptor |
( |
| ) |
const |
|
inlinevirtual |
◆ GetFormat()
| AVPixelFormat CVideoBuffer::GetFormat |
( |
| ) |
|
|
virtual |
◆ GetId()
| int CVideoBuffer::GetId |
( |
| ) |
const |
|
inline |
◆ GetMemPtr()
| virtual uint8_t * CVideoBuffer::GetMemPtr |
( |
| ) |
|
|
inlinevirtual |
◆ GetPlanes()
| virtual void CVideoBuffer::GetPlanes |
( |
uint8_t *(&) | planes[YuvImage::MAX_PLANES] | ) |
|
|
inlinevirtual |
◆ GetStrides()
| virtual void CVideoBuffer::GetStrides |
( |
int(&) | strides[YuvImage::MAX_PLANES] | ) |
|
|
inlinevirtual |
◆ ReduceForAnalysis()
Produce a small CPU-readable copy of the picture, for analysis that survives downscaling, when GetPlanes() exposes nothing. Not supported by default.
reduction is written only on Produced, and its plane vectors are reused across calls. The height follows the source shape, and a source already smaller is copied at its size.
Reimplemented in DXVA::CVideoBuffer, and VTB::CVideoBufferVTB.
◆ Release()
| void CVideoBuffer::Release |
( |
| ) |
|
◆ SetDimensions() [1/2]
| virtual void CVideoBuffer::SetDimensions |
( |
int | width, |
|
|
int | height, |
|
|
const int(&) | strides[YuvImage::MAX_PLANES] ) |
|
inlinevirtual |
◆ SetDimensions() [2/2]
| virtual void CVideoBuffer::SetDimensions |
( |
int | width, |
|
|
int | height, |
|
|
const int(&) | strides[YuvImage::MAX_PLANES], |
|
|
const int(&) | planeOffsets[YuvImage::MAX_PLANES] ) |
|
inlinevirtual |
◆ SetPixelFormat()
| virtual void CVideoBuffer::SetPixelFormat |
( |
const AVPixelFormat | pixFormat | ) |
|
|
inlinevirtual |
◆ SyncEnd()
| virtual void CVideoBuffer::SyncEnd |
( |
| ) |
|
|
inlinevirtual |
◆ SyncStart()
| virtual void CVideoBuffer::SyncStart |
( |
| ) |
|
|
inlinevirtual |
Begin CPU access to the buffer memory.
Default no-op. Overridden by buffer subclasses (e.g. CVideoBufferDMA) that need to coordinate CPU-side reads/writes with GPU/DMA access. Callers can invoke unconditionally without knowing the concrete buffer type.
Reimplemented in CVideoBufferDMA.
◆ m_id
◆ m_pixFormat
| AVPixelFormat CVideoBuffer::m_pixFormat = AV_PIX_FMT_NONE |
|
protected |
◆ m_pool
◆ m_refCount
| std::atomic_int CVideoBuffer::m_refCount |
|
protected |
The documentation for this class was generated from the following files: