20 #ifndef _TIMESTAMPEDVIDEOFRAME_H_
21 #define _TIMESTAMPEDVIDEOFRAME_H_
24 #include "TimestampedUnsignedCharVector.h"
27 #include <boost/date_time/posix_time/posix_time_types.hpp>
44 ,
VIDEO = _MIN_FRAME_TYPE
50 static const int FRAME_HEADER_SIZE = 20;
91 float ntoh_float(uint32_t value)
const;
An array of unsigned chars with an attached timestamp saying when it was collected.
Definition: TimestampedUnsignedCharVector.h:33
An image with an attached timestamp saying when it was collected.
Definition: TimestampedVideoFrame.h:36
short channels
The number of channels. e.g. 3 for RGB data, 4 for RGBD.
Definition: TimestampedVideoFrame.h:62
float yPos
The y pos of the player at render time.
Definition: TimestampedVideoFrame.h:77
FrameType
Definition: TimestampedVideoFrame.h:42
@ COLOUR_MAP
24bpp colour map
Definition: TimestampedVideoFrame.h:47
@ DEPTH_MAP
32bpp float depthmap
Definition: TimestampedVideoFrame.h:45
@ LUMINANCE
8bpp greyscale bitmap
Definition: TimestampedVideoFrame.h:46
@ VIDEO
Normal video, either 24bpp RGB or 32bpp RGBD.
Definition: TimestampedVideoFrame.h:44
float xPos
The x pos of the player at render time.
Definition: TimestampedVideoFrame.h:74
float yaw
The yaw of the player at render time.
Definition: TimestampedVideoFrame.h:71
Transform
Definition: TimestampedVideoFrame.h:37
@ RAW_BMP
Layout bytes as raw BMP data (bottom-to-top RGB)
Definition: TimestampedVideoFrame.h:39
@ REVERSE_SCANLINE
Interpret input bytes as reverse scanline BGR.
Definition: TimestampedVideoFrame.h:40
@ IDENTITY
Don't alter the incoming bytes in any way.
Definition: TimestampedVideoFrame.h:38
boost::posix_time::ptime timestamp
The timestamp.
Definition: TimestampedVideoFrame.h:53
short height
The height of the image in pixels.
Definition: TimestampedVideoFrame.h:59
short width
The width of the image in pixels.
Definition: TimestampedVideoFrame.h:56
std::vector< unsigned char > pixels
The pixels, stored as channels then columns then rows. Length should be width*height*channels.
Definition: TimestampedVideoFrame.h:83
float zPos
The z pos of the player at render time.
Definition: TimestampedVideoFrame.h:80
FrameType frametype
The type of video data - eg 24bpp RGB, or 32bpp float depth.
Definition: TimestampedVideoFrame.h:65
float pitch
The pitch of the player at render time.
Definition: TimestampedVideoFrame.h:68