Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
detector Class Reference

#include <latency-detector.h>

Classes

struct  detector_lock
 
struct  record
 

Public Member Functions

void begin_render ()
 
void copy_preview_to (cv::Mat &display)
 
 detector (int digits, int display_w)
 
void end_render ()
 
int get_next_value ()
 
void submit_frame (rs2::frame f)
 
 ~detector ()
 

Private Member Functions

void detect ()
 
void next ()
 
void update_instructions ()
 

Private Attributes

std::atomic_bool _alive
 
const int _digits
 
const int _display_w
 
cv::Mat _instructions
 
cv::Mat _last_preview
 
measurement< int > _latency
 
std::atomic_bool _next
 
std::atomic< int > _next_value
 
bit_packer _packer
 
std::mutex _preview_mutex
 
const cv::Size _preview_size
 
measurement< int > _processing_time
 
single_consumer_queue< record_queue
 
std::chrono::high_resolution_clock::time_point _render_start
 
measurement< int > _render_time
 
std::chrono::high_resolution_clock::time_point _start_time
 
std::thread _t
 

Detailed Description

Definition at line 140 of file latency-detector.h.

Constructor & Destructor Documentation

detector::detector ( int  digits,
int  display_w 
)
inline

Definition at line 143 of file latency-detector.h.

detector::~detector ( )
inline

Definition at line 178 of file latency-detector.h.

Member Function Documentation

void detector::begin_render ( )
inline

Definition at line 167 of file latency-detector.h.

void detector::copy_preview_to ( cv::Mat &  display)
inline

Definition at line 224 of file latency-detector.h.

void detector::detect ( )
inlineprivate

Definition at line 293 of file latency-detector.h.

void detector::end_render ( )
inline

Definition at line 172 of file latency-detector.h.

int detector::get_next_value ( )
inline

Definition at line 208 of file latency-detector.h.

void detector::next ( )
inlineprivate

Definition at line 241 of file latency-detector.h.

void detector::submit_frame ( rs2::frame  f)
inline

Definition at line 185 of file latency-detector.h.

void detector::update_instructions ( )
inlineprivate

Definition at line 261 of file latency-detector.h.

Member Data Documentation

std::atomic_bool detector::_alive
private

Definition at line 380 of file latency-detector.h.

const int detector::_digits
private

Definition at line 377 of file latency-detector.h.

const int detector::_display_w
private

Definition at line 378 of file latency-detector.h.

cv::Mat detector::_instructions
private

Definition at line 393 of file latency-detector.h.

cv::Mat detector::_last_preview
private

Definition at line 392 of file latency-detector.h.

measurement<int> detector::_latency
private

Definition at line 397 of file latency-detector.h.

std::atomic_bool detector::_next
private

Definition at line 387 of file latency-detector.h.

std::atomic<int> detector::_next_value
private

Definition at line 388 of file latency-detector.h.

bit_packer detector::_packer
private

Definition at line 381 of file latency-detector.h.

std::mutex detector::_preview_mutex
private

Definition at line 391 of file latency-detector.h.

const cv::Size detector::_preview_size
private

Definition at line 390 of file latency-detector.h.

measurement<int> detector::_processing_time
private

Definition at line 396 of file latency-detector.h.

single_consumer_queue<record> detector::_queue
private

Definition at line 383 of file latency-detector.h.

std::chrono::high_resolution_clock::time_point detector::_render_start
private

Definition at line 385 of file latency-detector.h.

measurement<int> detector::_render_time
private

Definition at line 395 of file latency-detector.h.

std::chrono::high_resolution_clock::time_point detector::_start_time
private

Definition at line 384 of file latency-detector.h.

std::thread detector::_t
private

Definition at line 382 of file latency-detector.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31