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

#include <frame_handler_impl.h>

Public Member Functions

 FrameHandlerImpl ()
 
aditof::Status readNextFrame (aditof::Frame &frame, const std::string &fullFileName="")
 
aditof::Status saveFrameToFile (aditof::Frame &frame, const std::string &fileName="")
 
aditof::Status saveFrameToFileMultithread (aditof::Frame &frame, const std::string &filename="")
 
aditof::Status setCustomFormat (const std::string &format)
 
aditof::Status setFrameContent (const std::string &frameContent)
 
aditof::Status setInputFileName (const std::string &fullFileName)
 
aditof::Status setOutputFilePath (const std::string &filePath)
 
aditof::Status storeFramesToSingleFile (bool enable)
 
 ~FrameHandlerImpl ()
 

Private Member Functions

aditof::Status createFile (const std::string &fileName)
 
std::string getOutputFileFullPath (const std::string &fileName)
 
void threadWritter ()
 

Private Attributes

int m_bitsInAB
 
int m_bitsInConf
 
int m_bitsInDepth
 
bool m_concatFrames
 
bool m_customFormat
 
std::string m_customFormatType
 
std::string m_dir
 
bool m_enableMultithreading
 
bool m_endOfFile
 
std::fstream m_file
 
bool m_fileCreated
 
int m_frameCount = 0
 
int m_frameHeight
 
int m_frameIndex
 
std::queue< std::stringm_frameNameQueue
 
std::queue< aditof::Framem_frameQueue
 
int m_frameWidth
 
aditof::FrameDetails m_frDetails
 
std::string m_fullInputFileName
 
std::string m_inputFileName
 
aditof::Metadata m_metadataStruct
 
std::mutex m_mutex
 
std::string m_outputFileName
 
size_t m_pos
 
aditof::Frame m_swapFrame
 
volatile bool m_threadRunning
 
std::thread m_threadWorker
 

Detailed Description

Definition at line 51 of file frame_handler_impl.h.

Constructor & Destructor Documentation

◆ FrameHandlerImpl()

FrameHandlerImpl::FrameHandlerImpl ( )

Definition at line 44 of file frame_handler_impl.cpp.

◆ ~FrameHandlerImpl()

FrameHandlerImpl::~FrameHandlerImpl ( )

Definition at line 50 of file frame_handler_impl.cpp.

Member Function Documentation

◆ createFile()

Status FrameHandlerImpl::createFile ( const std::string fileName)
private

Definition at line 327 of file frame_handler_impl.cpp.

◆ getOutputFileFullPath()

std::string FrameHandlerImpl::getOutputFileFullPath ( const std::string fileName)
private

Definition at line 360 of file frame_handler_impl.cpp.

◆ readNextFrame()

Status FrameHandlerImpl::readNextFrame ( aditof::Frame frame,
const std::string fullFileName = "" 
)

Definition at line 186 of file frame_handler_impl.cpp.

◆ saveFrameToFile()

Status FrameHandlerImpl::saveFrameToFile ( aditof::Frame frame,
const std::string fileName = "" 
)

Definition at line 70 of file frame_handler_impl.cpp.

◆ saveFrameToFileMultithread()

Status FrameHandlerImpl::saveFrameToFileMultithread ( aditof::Frame frame,
const std::string filename = "" 
)

Definition at line 146 of file frame_handler_impl.cpp.

◆ setCustomFormat()

Status FrameHandlerImpl::setCustomFormat ( const std::string format)

Definition at line 312 of file frame_handler_impl.cpp.

◆ setFrameContent()

Status FrameHandlerImpl::setFrameContent ( const std::string frameContent)

Definition at line 323 of file frame_handler_impl.cpp.

◆ setInputFileName()

Status FrameHandlerImpl::setInputFileName ( const std::string fullFileName)

Definition at line 63 of file frame_handler_impl.cpp.

◆ setOutputFilePath()

Status FrameHandlerImpl::setOutputFilePath ( const std::string filePath)

Definition at line 56 of file frame_handler_impl.cpp.

◆ storeFramesToSingleFile()

Status FrameHandlerImpl::storeFramesToSingleFile ( bool  enable)

Definition at line 316 of file frame_handler_impl.cpp.

◆ threadWritter()

void FrameHandlerImpl::threadWritter ( )
private

Definition at line 171 of file frame_handler_impl.cpp.

Member Data Documentation

◆ m_bitsInAB

int FrameHandlerImpl::m_bitsInAB
private

Definition at line 114 of file frame_handler_impl.h.

◆ m_bitsInConf

int FrameHandlerImpl::m_bitsInConf
private

Definition at line 115 of file frame_handler_impl.h.

◆ m_bitsInDepth

int FrameHandlerImpl::m_bitsInDepth
private

Definition at line 113 of file frame_handler_impl.h.

◆ m_concatFrames

bool FrameHandlerImpl::m_concatFrames
private

Definition at line 100 of file frame_handler_impl.h.

◆ m_customFormat

bool FrameHandlerImpl::m_customFormat
private

Definition at line 109 of file frame_handler_impl.h.

◆ m_customFormatType

std::string FrameHandlerImpl::m_customFormatType
private

Definition at line 110 of file frame_handler_impl.h.

◆ m_dir

std::string FrameHandlerImpl::m_dir
private

Definition at line 125 of file frame_handler_impl.h.

◆ m_enableMultithreading

bool FrameHandlerImpl::m_enableMultithreading
private

Definition at line 103 of file frame_handler_impl.h.

◆ m_endOfFile

bool FrameHandlerImpl::m_endOfFile
private

Definition at line 130 of file frame_handler_impl.h.

◆ m_file

std::fstream FrameHandlerImpl::m_file
private

Definition at line 131 of file frame_handler_impl.h.

◆ m_fileCreated

bool FrameHandlerImpl::m_fileCreated
private

Definition at line 129 of file frame_handler_impl.h.

◆ m_frameCount

int FrameHandlerImpl::m_frameCount = 0
private

Definition at line 133 of file frame_handler_impl.h.

◆ m_frameHeight

int FrameHandlerImpl::m_frameHeight
private

Definition at line 117 of file frame_handler_impl.h.

◆ m_frameIndex

int FrameHandlerImpl::m_frameIndex
private

Definition at line 118 of file frame_handler_impl.h.

◆ m_frameNameQueue

std::queue<std::string> FrameHandlerImpl::m_frameNameQueue
private

Definition at line 139 of file frame_handler_impl.h.

◆ m_frameQueue

std::queue<aditof::Frame> FrameHandlerImpl::m_frameQueue
private

Definition at line 138 of file frame_handler_impl.h.

◆ m_frameWidth

int FrameHandlerImpl::m_frameWidth
private

Definition at line 116 of file frame_handler_impl.h.

◆ m_frDetails

aditof::FrameDetails FrameHandlerImpl::m_frDetails
private

Definition at line 121 of file frame_handler_impl.h.

◆ m_fullInputFileName

std::string FrameHandlerImpl::m_fullInputFileName
private

Definition at line 127 of file frame_handler_impl.h.

◆ m_inputFileName

std::string FrameHandlerImpl::m_inputFileName
private

Definition at line 128 of file frame_handler_impl.h.

◆ m_metadataStruct

aditof::Metadata FrameHandlerImpl::m_metadataStruct
private

Definition at line 122 of file frame_handler_impl.h.

◆ m_mutex

std::mutex FrameHandlerImpl::m_mutex
private

Definition at line 136 of file frame_handler_impl.h.

◆ m_outputFileName

std::string FrameHandlerImpl::m_outputFileName
private

Definition at line 126 of file frame_handler_impl.h.

◆ m_pos

size_t FrameHandlerImpl::m_pos
private

Definition at line 132 of file frame_handler_impl.h.

◆ m_swapFrame

aditof::Frame FrameHandlerImpl::m_swapFrame
private

Definition at line 120 of file frame_handler_impl.h.

◆ m_threadRunning

volatile bool FrameHandlerImpl::m_threadRunning
private

Definition at line 140 of file frame_handler_impl.h.

◆ m_threadWorker

std::thread FrameHandlerImpl::m_threadWorker
private

Definition at line 137 of file frame_handler_impl.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:05