Blackjack Decision Maker
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
lccv::PiCamera Class Reference

#include <lccv.hpp>

Collaboration diagram for lccv::PiCamera:

Public Member Functions

 PiCamera ()
 
 ~PiCamera ()
 
bool startPhoto ()
 
bool capturePhoto (cv::Mat &frame)
 
bool stopPhoto ()
 
bool startVideo ()
 
bool getVideoFrame (cv::Mat &frame, unsigned int timeout)
 
void stopVideo ()
 

Public Attributes

Optionsoptions
 

Protected Member Functions

void run ()
 
void getImage (cv::Mat &frame, CompletedRequestPtr &payload)
 

Static Protected Member Functions

static void * videoThreadFunc (void *p)
 

Protected Attributes

LibcameraAppapp
 
pthread_t videothread
 
unsigned int still_flags
 
unsigned int vw
 
unsigned int vh
 
unsigned int vstr
 
std::atomic< bool > running
 
std::atomic< bool > frameready
 
uint8_t * framebuffer
 
std::mutex mtx
 
bool camerastarted
 

Constructor & Destructor Documentation

◆ PiCamera()

PiCamera::PiCamera ( )

◆ ~PiCamera()

PiCamera::~PiCamera ( )

Member Function Documentation

◆ capturePhoto()

bool PiCamera::capturePhoto ( cv::Mat &  frame)

◆ getImage()

void PiCamera::getImage ( cv::Mat &  frame,
CompletedRequestPtr payload 
)
protected

◆ getVideoFrame()

bool PiCamera::getVideoFrame ( cv::Mat &  frame,
unsigned int  timeout 
)

◆ run()

void lccv::PiCamera::run ( )
protected

◆ startPhoto()

bool PiCamera::startPhoto ( )

◆ startVideo()

bool PiCamera::startVideo ( )

◆ stopPhoto()

bool PiCamera::stopPhoto ( )

◆ stopVideo()

void PiCamera::stopVideo ( )

◆ videoThreadFunc()

void * PiCamera::videoThreadFunc ( void *  p)
staticprotected

Member Data Documentation

◆ app

LibcameraApp* lccv::PiCamera::app
protected

◆ camerastarted

bool lccv::PiCamera::camerastarted
protected

◆ framebuffer

uint8_t* lccv::PiCamera::framebuffer
protected

◆ frameready

std::atomic<bool> lccv::PiCamera::frameready
protected

◆ mtx

std::mutex lccv::PiCamera::mtx
protected

◆ options

Options* lccv::PiCamera::options

◆ running

std::atomic<bool> lccv::PiCamera::running
protected

◆ still_flags

unsigned int lccv::PiCamera::still_flags
protected

◆ vh

unsigned int lccv::PiCamera::vh
protected

◆ videothread

pthread_t lccv::PiCamera::videothread
protected

◆ vstr

unsigned int lccv::PiCamera::vstr
protected

◆ vw

unsigned int lccv::PiCamera::vw
protected

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