Project Malmo  0.17.0
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
malmo::TimestampedVideoFrame Struct Reference

An image with an attached timestamp saying when it was collected. More...

#include <TimestampedVideoFrame.h>

Public Types

enum  Transform { IDENTITY, REVERSE_SCANLINE }
 

Public Member Functions

 TimestampedVideoFrame (short width, short height, short channels, TimestampedUnsignedCharVector &message, Transform transform=IDENTITY)
 
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.
 
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)
 

Detailed Description

An image with an attached timestamp saying when it was collected.

Member Enumeration Documentation

Enumerator
IDENTITY 

Don't alter the incoming bytes in any way.

REVERSE_SCANLINE 

Interpret input bytes as reverse scanline BGR.


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