OpenNI 1.0.0
|
#include <XnCppWrapper.h>
Public Member Functions | |
Player (XnNodeHandle hNode=NULL) | |
XnStatus | SetRepeat (XnBool bRepeat) |
XnStatus | SetSource (XnRecordMedium sourceType, const XnChar *strSource) |
XnStatus | GetSource (XnRecordMedium &sourceType, XnChar *strSource, XnUInt32 nBufSize) |
XnStatus | ReadNext () |
XnStatus | SeekToTimeStamp (XnInt64 nTimeOffset, XnPlayerSeekOrigin origin) |
XnStatus | SeekToFrame (const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin) |
XnStatus | TellTimestamp (XnUInt64 &nTimestamp) |
XnStatus | TellFrame (const XnChar *strNodeName, XnUInt32 &nFrame) |
XnStatus | GetNumFrames (const XnChar *strNodeName, XnUInt32 &nFrames) |
const XnChar * | GetSupportedFormat () |
XnStatus | EnumerateNodes (NodeInfoList &list) |
XnBool | IsEOF () |
XnStatus | RegisterToEndOfFileReached (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback) |
void | UnregisterFromEndOfFileReached (XnCallbackHandle hCallback) |
XnStatus | SetPlaybackSpeed (XnDouble dSpeed) |
XnDouble | GetPlaybackSpeed () |
XnStatus | Create (Context &context, const XnChar *strFormatName) |
Represents a Player node
xn::Player::Player | ( | XnNodeHandle | hNode = NULL | ) | [inline] |
Ctor
hNode | [in] Player node handle |
Creates a player.
For full details and usage, see xnCreatePlayerXnStatus xn::Player::EnumerateNodes | ( | NodeInfoList & | list | ) | [inline] |
Retrieves a list of the nodes played by a player.
For full details and usage, see xnEnumeratePlayerNodesXnStatus xn::Player::GetNumFrames | ( | const XnChar * | strNodeName, |
XnUInt32 & | nFrames | ||
) | [inline] |
Retrieves the number of frames of a specific node played by a player.
For full details and usage, see xnGetPlayerNumFramesXnDouble xn::Player::GetPlaybackSpeed | ( | ) | [inline] |
Gets the playback speed. see xnSetPlaybackSpeed() for more details.
For full details and usage, see xnGetPlaybackSpeedXnStatus xn::Player::GetSource | ( | XnRecordMedium & | sourceType, |
XnChar * | strSource, | ||
XnUInt32 | nBufSize | ||
) | [inline] |
Gets the player's source, i.e where the played events come from.
For full details and usage, see xnGetPlayerSourceconst XnChar* xn::Player::GetSupportedFormat | ( | ) | [inline] |
Gets the name of the format supported by a player.
For full details and usage, see xnGetPlayerSupportedFormatXnBool xn::Player::IsEOF | ( | ) | [inline] |
Checks whether the player is at the end-of-file marker.
For full details and usage, see xnIsPlayerAtEOFXnStatus xn::Player::ReadNext | ( | ) | [inline] |
Reads the next data element from the player.
For full details and usage, see xnPlayerReadNextXnStatus xn::Player::RegisterToEndOfFileReached | ( | StateChangedHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Registers a callback function to be called when end-of-file is reached.
For full details and usage, see xnRegisterToEndOfFileReachedXnStatus xn::Player::SeekToFrame | ( | const XnChar * | strNodeName, |
XnInt32 | nFrameOffset, | ||
XnPlayerSeekOrigin | origin | ||
) | [inline] |
Seeks the player to a specific frame of a specific played node, so that playing will continue from that frame onwards.
For full details and usage, see xnSeekPlayerToFrameXnStatus xn::Player::SeekToTimeStamp | ( | XnInt64 | nTimeOffset, |
XnPlayerSeekOrigin | origin | ||
) | [inline] |
Seeks the player to a specific timestamp, so that playing will continue from that point onwards.
For full details and usage, see xnSeekPlayerToTimeStampXnStatus xn::Player::SetPlaybackSpeed | ( | XnDouble | dSpeed | ) | [inline] |
Sets the playback speed, as a ratio of the time passed in the recording. A value of 1.0 means the player will try to output frames in the rate they were recorded (according to their timestamps). A value bigger than 1.0 means fast-forward, and a value between 0.0 and 1.0 means slow-motion. The special value of XN_PLAYBACK_SPEED_FASTEST (0.0) means there will be no delay, and that frames will be returned as soon as asked for.
For full details and usage, see xnSetPlaybackSpeedXnStatus xn::Player::SetRepeat | ( | XnBool | bRepeat | ) | [inline] |
Determines whether the player will automatically rewind to the beginning of the recording when reaching the end.
For full details and usage, see xnSetPlayerRepeatXnStatus xn::Player::SetSource | ( | XnRecordMedium | sourceType, |
const XnChar * | strSource | ||
) | [inline] |
Sets the source for the player, i.e. where the played events will come from.
For full details and usage, see xnSetPlayerSourceXnStatus xn::Player::TellFrame | ( | const XnChar * | strNodeName, |
XnUInt32 & | nFrame | ||
) | [inline] |
Reports the current frame number of a specific node played by a player.
For full details and usage, see xnTellPlayerFrameXnStatus xn::Player::TellTimestamp | ( | XnUInt64 & | nTimestamp | ) | [inline] |
Reports the current timestamp of a player, i.e. the amount of time passed since the beginning of the recording.
For full details and usage, see xnTellPlayerTimestampvoid xn::Player::UnregisterFromEndOfFileReached | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached().
For full details and usage, see xnUnregisterFromEndOfFileReached