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

#include <AV4L2ElementPlane.h>

Collaboration diagram for AV4L2ElementPlane:
Collaboration graph

Public Types

typedef std::function< void(AV4L2Buffer *)> dqThreadCallback
 

Public Member Functions

 AV4L2ElementPlane (int fd, uint32_t type, uint32_t pixelFormat, enum v4l2_memory memType)
 
 ~AV4L2ElementPlane ()
 
void setPlaneFormat (uint32_t width, uint32_t height)
 
void setupPlane ()
 
void deinitPlane ()
 
void setStreamStatus (bool status)
 
AV4L2BuffergetFreeBuffer ()
 
void setDQThreadCallback (dqThreadCallback callback)
 
void startDQThread ()
 
int waitForDQThread (uint32_t max_wait_ms)
 
int qBuffer (uint32_t index)
 
void qAllBuffers ()
 
void setEOSFlag (AV4L2Buffer *buffer)
 

Static Public Member Functions

static void * dqThread (void *plane)
 

Public Attributes

struct v4l2_format mFormat
 

Private Member Functions

void reqbufs (uint32_t count)
 
void queryBuffer (uint32_t i)
 
void exportBuffer (uint32_t i)
 
int dqBuffer (AV4L2Buffer **buffer, uint32_t retries)
 

Private Attributes

int mCount
 
int mFreeCount
 
uint32_t mType
 
uint32_t mPixelFormat
 
enum v4l2_memory mMemType
 
uint32_t mNumPlanes
 
int mFD
 
AV4L2Buffer ** mBuffers
 
AV4L2BuffermTempBuffer
 
bool mStreamOn
 
pthread_mutex_t plane_lock
 
pthread_cond_t plane_cond
 
dqThreadCallback mCallback
 
bool mDQThreadRunning
 
bool mStopDQThread
 
pthread_t mDQThread
 

Member Typedef Documentation

◆ dqThreadCallback

Constructor & Destructor Documentation

◆ AV4L2ElementPlane()

AV4L2ElementPlane::AV4L2ElementPlane ( int fd,
uint32_t type,
uint32_t pixelFormat,
enum v4l2_memory memType )

◆ ~AV4L2ElementPlane()

AV4L2ElementPlane::~AV4L2ElementPlane ( )

Member Function Documentation

◆ deinitPlane()

void AV4L2ElementPlane::deinitPlane ( )
Here is the call graph for this function:

◆ dqBuffer()

int AV4L2ElementPlane::dqBuffer ( AV4L2Buffer ** buffer,
uint32_t retries )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dqThread()

void * AV4L2ElementPlane::dqThread ( void * plane)
static
Here is the caller graph for this function:

◆ exportBuffer()

void AV4L2ElementPlane::exportBuffer ( uint32_t i)
private
Here is the caller graph for this function:

◆ getFreeBuffer()

AV4L2Buffer * AV4L2ElementPlane::getFreeBuffer ( )
Here is the call graph for this function:

◆ qAllBuffers()

void AV4L2ElementPlane::qAllBuffers ( )
Here is the call graph for this function:

◆ qBuffer()

int AV4L2ElementPlane::qBuffer ( uint32_t index)
Here is the caller graph for this function:

◆ queryBuffer()

void AV4L2ElementPlane::queryBuffer ( uint32_t i)
private
Here is the caller graph for this function:

◆ reqbufs()

void AV4L2ElementPlane::reqbufs ( uint32_t count)
private
Here is the caller graph for this function:

◆ setDQThreadCallback()

void AV4L2ElementPlane::setDQThreadCallback ( dqThreadCallback callback)

◆ setEOSFlag()

void AV4L2ElementPlane::setEOSFlag ( AV4L2Buffer * buffer)

◆ setPlaneFormat()

void AV4L2ElementPlane::setPlaneFormat ( uint32_t width,
uint32_t height )

◆ setStreamStatus()

void AV4L2ElementPlane::setStreamStatus ( bool status)
Here is the caller graph for this function:

◆ setupPlane()

void AV4L2ElementPlane::setupPlane ( )
Here is the call graph for this function:

◆ startDQThread()

void AV4L2ElementPlane::startDQThread ( )
Here is the call graph for this function:

◆ waitForDQThread()

int AV4L2ElementPlane::waitForDQThread ( uint32_t max_wait_ms)
Here is the caller graph for this function:

Member Data Documentation

◆ mBuffers

AV4L2Buffer** AV4L2ElementPlane::mBuffers
private

◆ mCallback

dqThreadCallback AV4L2ElementPlane::mCallback
private

◆ mCount

int AV4L2ElementPlane::mCount
private

◆ mDQThread

pthread_t AV4L2ElementPlane::mDQThread
private

◆ mDQThreadRunning

bool AV4L2ElementPlane::mDQThreadRunning
private

◆ mFD

int AV4L2ElementPlane::mFD
private

◆ mFormat

struct v4l2_format AV4L2ElementPlane::mFormat

◆ mFreeCount

int AV4L2ElementPlane::mFreeCount
private

◆ mMemType

enum v4l2_memory AV4L2ElementPlane::mMemType
private

◆ mNumPlanes

uint32_t AV4L2ElementPlane::mNumPlanes
private

◆ mPixelFormat

uint32_t AV4L2ElementPlane::mPixelFormat
private

◆ mStopDQThread

bool AV4L2ElementPlane::mStopDQThread
private

◆ mStreamOn

bool AV4L2ElementPlane::mStreamOn
private

◆ mTempBuffer

AV4L2Buffer* AV4L2ElementPlane::mTempBuffer
private

◆ mType

uint32_t AV4L2ElementPlane::mType
private

◆ plane_cond

pthread_cond_t AV4L2ElementPlane::plane_cond
private

◆ plane_lock

pthread_mutex_t AV4L2ElementPlane::plane_lock
private

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