TwiceAsNice  2019-02-18
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UnlockImageQueue Class Reference

#include <unlockimagequeue.h>

Collaboration diagram for UnlockImageQueue:
Collaboration graph

Public Member Functions

 UnlockImageQueue ()
 
virtual ~UnlockImageQueue ()
 
bool Initialize (int nSize)
 
unsigned int Put (const unsigned char *pBuffer, unsigned int nLen)
 
unsigned int Get (unsigned char *pBuffer, unsigned int nLen)
 
void Clean ()
 
unsigned int GetDataLen () const
 

Private Member Functions

bool is_power_of_2 (unsigned long n)
 
unsigned long roundup_power_of_two (unsigned long val)
 

Private Attributes

unsigned char * m_pBuffer
 
unsigned int m_nSize
 
unsigned int m_nIn
 
unsigned int m_nOut
 

Constructor & Destructor Documentation

◆ UnlockImageQueue()

UnlockImageQueue::UnlockImageQueue ( )

◆ ~UnlockImageQueue()

virtual UnlockImageQueue::~UnlockImageQueue ( )
virtual

Member Function Documentation

◆ Clean()

void UnlockImageQueue::Clean ( )
inline

◆ Get()

unsigned int UnlockImageQueue::Get ( unsigned char *  pBuffer,
unsigned int  nLen 
)

◆ GetDataLen()

unsigned int UnlockImageQueue::GetDataLen ( ) const
inline

◆ Initialize()

bool UnlockImageQueue::Initialize ( int  nSize)

◆ is_power_of_2()

bool UnlockImageQueue::is_power_of_2 ( unsigned long  n)
inlineprivate

◆ Put()

unsigned int UnlockImageQueue::Put ( const unsigned char *  pBuffer,
unsigned int  nLen 
)

◆ roundup_power_of_two()

unsigned long UnlockImageQueue::roundup_power_of_two ( unsigned long  val)
inlineprivate

Member Data Documentation

◆ m_nIn

unsigned int UnlockImageQueue::m_nIn
private

◆ m_nOut

unsigned int UnlockImageQueue::m_nOut
private

◆ m_nSize

unsigned int UnlockImageQueue::m_nSize
private

◆ m_pBuffer

unsigned char* UnlockImageQueue::m_pBuffer
private

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