Doly C++ SDK v1.00
Loading...
Searching...
No Matches
PiCamera Class Reference

#include <lccv.hpp>

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 ()
void ApplyZoomOptions ()
void SetExposure (const float &value)
void SetAwbEnable (const bool &enable)

Public Attributes

Options * options

Protected Member Functions

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

Static Protected Member Functions

static void * videoThreadFunc (void *p)

Protected Attributes

LibcameraApp * app
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

Detailed Description

Examples
Camera/main.cpp.

Constructor & Destructor Documentation

◆ PiCamera()

PiCamera::PiCamera ( )

◆ ~PiCamera()

PiCamera::~PiCamera ( )

Member Function Documentation

◆ ApplyZoomOptions()

void PiCamera::ApplyZoomOptions ( )

◆ capturePhoto()

bool PiCamera::capturePhoto ( cv::Mat & frame)
Examples
Camera/main.cpp.

◆ getImage()

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

◆ getVideoFrame()

bool PiCamera::getVideoFrame ( cv::Mat & frame,
unsigned int timeout )
Examples
Camera/main.cpp.

◆ SetAwbEnable()

void PiCamera::SetAwbEnable ( const bool & enable)

◆ SetExposure()

void PiCamera::SetExposure ( const float & value)

◆ startPhoto()

bool PiCamera::startPhoto ( )
Examples
Camera/main.cpp.

◆ startVideo()

bool PiCamera::startVideo ( )
Examples
Camera/main.cpp.

◆ stopPhoto()

bool PiCamera::stopPhoto ( )
Examples
Camera/main.cpp.

◆ stopVideo()

void PiCamera::stopVideo ( )
Examples
Camera/main.cpp.

◆ videoThreadFunc()

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

Member Data Documentation

◆ app

LibcameraApp* PiCamera::app
protected

◆ camerastarted

bool PiCamera::camerastarted
protected

◆ framebuffer

uint8_t* PiCamera::framebuffer
protected

◆ frameready

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

◆ mtx

std::mutex PiCamera::mtx
protected

◆ options

Options* PiCamera::options
Examples
Camera/main.cpp.

◆ running

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

◆ still_flags

unsigned int PiCamera::still_flags
protected

◆ vh

unsigned int PiCamera::vh
protected

◆ videothread

pthread_t PiCamera::videothread
protected

◆ vstr

unsigned int PiCamera::vstr
protected

◆ vw

unsigned int PiCamera::vw
protected

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