Project Malmo
0.37.0
|
An image with an attached timestamp saying when it was collected. More...
#include <TimestampedVideoFrame.h>
Public Types | |
enum | Transform { IDENTITY , RAW_BMP , REVERSE_SCANLINE } |
enum | FrameType { _MIN_FRAME_TYPE = 0 , VIDEO = _MIN_FRAME_TYPE , DEPTH_MAP , LUMINANCE , COLOUR_MAP , _MAX_FRAME_TYPE } |
Public Member Functions | |
TimestampedVideoFrame (short width, short height, short channels, TimestampedUnsignedCharVector &message, Transform transform=IDENTITY, FrameType frametype=VIDEO) | |
bool | operator== (const TimestampedVideoFrame &other) const |
float | ntoh_float (uint32_t value) const |
Public Attributes | |
boost::posix_time::ptime | timestamp |
The timestamp. | |
short | width |
The width of the image in pixels. | |
short | height |
The height of the image in pixels. | |
short | channels |
The number of channels. e.g. 3 for RGB data, 4 for RGBD. | |
FrameType | frametype |
The type of video data - eg 24bpp RGB, or 32bpp float depth. | |
float | pitch |
The pitch of the player at render time. | |
float | yaw |
The yaw of the player at render time. | |
float | xPos |
The x pos of the player at render time. | |
float | yPos |
The y pos of the player at render time. | |
float | zPos |
The z pos of the player at render time. | |
std::vector< unsigned char > | pixels |
The pixels, stored as channels then columns then rows. Length should be width*height*channels. | |
Static Public Attributes | |
static const int | FRAME_HEADER_SIZE = 20 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const TimestampedVideoFrame &tsvidframe) |
std::ostream & | operator<< (std::ostream &os, const TimestampedVideoFrame::FrameType &frametype) |
An image with an attached timestamp saying when it was collected.