12 #define WRITE_FRAMES_TO_FILE 0 16 return new RsSink(t_env, t_subsession, t_stream, t_memPool, t_streamId);
56 INF <<
"compression is disabled or configured unsupported format to zip, run without compression";
70 void RsSink::afterGettingFrameUid0(
void* t_clientData,
unsigned t_frameSize,
unsigned t_numTruncatedBytes,
struct timeval t_presentationTime,
unsigned t_durationInMicroseconds)
74 sink->
afterGettingFrame(t_frameSize, t_numTruncatedBytes, t_presentationTime, t_durationInMicroseconds);
77 void RsSink::afterGettingFrameUid1(
void* t_clientData,
unsigned t_frameSize,
unsigned t_numTruncatedBytes,
struct timeval t_presentationTime,
unsigned t_durationInMicroseconds)
81 sink->
afterGettingFrame(t_frameSize, t_numTruncatedBytes, t_presentationTime, t_durationInMicroseconds);
84 void RsSink::afterGettingFrameUid2(
void* t_clientData,
unsigned t_frameSize,
unsigned t_numTruncatedBytes,
struct timeval t_presentationTime,
unsigned t_durationInMicroseconds)
88 sink->
afterGettingFrame(t_frameSize, t_numTruncatedBytes, t_presentationTime, t_durationInMicroseconds);
91 void RsSink::afterGettingFrameUid3(
void* t_clientData,
unsigned t_frameSize,
unsigned t_numTruncatedBytes,
struct timeval t_presentationTime,
unsigned t_durationInMicroseconds)
95 sink->
afterGettingFrame(t_frameSize, t_numTruncatedBytes, t_presentationTime, t_durationInMicroseconds);
99 #define DEBUG_PRINT_EACH_RECEIVED_FRAME 0 116 if(decompressedSize != -1)
133 envir() <<
"Frame call back is NULL\n";
138 envir() <<
m_streamId <<
":corrupted frame!!!: data size is " << header->
data.
frameSize <<
" frame size is " << t_frameSize <<
"\n";
virtual void on_frame(unsigned char *buffer, ssize_t size, struct timeval presentationTime)=0
All the parameters required to define a video stream.
GLsizei const GLchar *const * string
std_msgs::Header * header(M &m)
returns Header<M>::pointer(m);
GLsizei GLenum GLboolean sink
void returnMem(unsigned char *t_mem)
static bool isCompressionSupported(rs2_format t_format, rs2_stream t_streamType)
static std::shared_ptr< ICompression > getObject(int t_width, int t_height, rs2_format t_format, rs2_stream t_streamType, int t_bpp)
unsigned char * getNextMem()