Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
DMAAllocator Class Reference

#include <DMAAllocator.h>

Inheritance diagram for DMAAllocator:
Inheritance graph
Collaboration diagram for DMAAllocator:
Collaboration graph

Public Member Functions

 DMAAllocator (framemetadata_sp framemetadata)
 
 ~DMAAllocator ()
 
void * allocateChunks (size_t n)
 
void freeChunks (void *MemPtr, size_t n)
 
size_t getChunkSize ()
 
- Public Member Functions inherited from HostAllocator
 HostAllocator ()
 
virtual ~HostAllocator ()
 

Static Public Member Functions

static void setMetadata (framemetadata_sp &metadata, int width, int height, ImageMetadata::ImageType imageType, size_t pitchValues[4]=nullptr, size_t offsetValues[4]=nullptr)
 

Static Private Member Functions

static NvBufferColorFormat getColorFormat (ImageMetadata::ImageType imageType)
 

Private Attributes

std::vector< DMAFDWrapper * > mDMAFDWrapperArr
 
int mFreeDMACount
 
NvBufferColorFormat mColorFormat
 
EGLDisplay mEglDisplay
 
int mHeight
 
int mWidth
 
int mCount
 

Additional Inherited Members

- Protected Attributes inherited from HostAllocator
boost::pool buff_allocator
 

Constructor & Destructor Documentation

◆ DMAAllocator()

DMAAllocator::DMAAllocator ( framemetadata_sp framemetadata)
inline
Here is the call graph for this function:

◆ ~DMAAllocator()

DMAAllocator::~DMAAllocator ( )
inline

Member Function Documentation

◆ allocateChunks()

void * DMAAllocator::allocateChunks ( size_t n)
inlinevirtual

Reimplemented from HostAllocator.

Here is the call graph for this function:

◆ freeChunks()

void DMAAllocator::freeChunks ( void * MemPtr,
size_t n )
inlinevirtual

Reimplemented from HostAllocator.

◆ getChunkSize()

size_t DMAAllocator::getChunkSize ( )
inlinevirtual

Reimplemented from HostAllocator.

◆ getColorFormat()

static NvBufferColorFormat DMAAllocator::getColorFormat ( ImageMetadata::ImageType imageType)
inlinestaticprivate
Here is the caller graph for this function:

◆ setMetadata()

static void DMAAllocator::setMetadata ( framemetadata_sp & metadata,
int width,
int height,
ImageMetadata::ImageType imageType,
size_t pitchValues[4] = nullptr,
size_t offsetValues[4] = nullptr )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mColorFormat

NvBufferColorFormat DMAAllocator::mColorFormat
private

◆ mCount

int DMAAllocator::mCount
private

◆ mDMAFDWrapperArr

std::vector<DMAFDWrapper *> DMAAllocator::mDMAFDWrapperArr
private

◆ mEglDisplay

EGLDisplay DMAAllocator::mEglDisplay
private

◆ mFreeDMACount

int DMAAllocator::mFreeDMACount
private

◆ mHeight

int DMAAllocator::mHeight
private

◆ mWidth

int DMAAllocator::mWidth
private

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