![]() |
OpenNI 1.5.2
|
#include <XnTypes.h>
Public Attributes | |
| XnStatus(* | Open )(void *pCookie) |
| XnStatus(* | Read )(void *pCookie, void *pBuffer, XnUInt32 nSize, XnUInt32 *pnBytesRead) |
| XnStatus(* | Seek )(void *pCookie, XnOSSeekType seekType, const XnInt32 nOffset) |
| XnUInt32(* | Tell )(void *pCookie) |
| void(* | Close )(void *pCookie) |
| XnStatus(* | Seek64 )(void *pCookie, XnOSSeekType seekType, const XnInt64 nOffset) |
| XnUInt64(* | Tell64 )(void *pCookie) |
An interface used for communication between OpenNI and a player module. This interface is used by a player module to receive recorded data from OpenNI, which knows where to get them according to one of the values of XnRecordMedium.
| void(* XnPlayerInputStreamInterface::Close)(void *pCookie) |
Closes the stream.
| pCookie | [in] A cookie that was received with this interface. |
| XnStatus(* XnPlayerInputStreamInterface::Open)(void *pCookie) |
Opens the stream for reading.
| pCookie | [in] A cookie that was received with this interface. |
| XnStatus(* XnPlayerInputStreamInterface::Read)(void *pCookie, void *pBuffer, XnUInt32 nSize, XnUInt32 *pnBytesRead) |
Reads data from the stream. May read less data than asked, if the stream is near its end. This is not considered an error.
| pCookie | [in] A cookie that was received with this interface. |
| pBuffer | [out] A pointer to the buffer to read into. |
| nSize | [in] Number of bytes to read. |
| pnBytesRead | [out] Optional. Number of bytes actually read. |
| XnStatus(* XnPlayerInputStreamInterface::Seek)(void *pCookie, XnOSSeekType seekType, const XnInt32 nOffset) |
Sets the stream's pointer to the specified position.
| pCookie | [in] A cookie that was received with this interface. |
| seekType | [in] Specifies how to seek - according to current position, end or beginning. |
| nOffset | [in] Specifies how many bytes to move |
| XnStatus(* XnPlayerInputStreamInterface::Seek64)(void *pCookie, XnOSSeekType seekType, const XnInt64 nOffset) |
Sets the stream's pointer to the specified position. (64bit version, for large files)
| pCookie | [in] A cookie that was received with this interface. |
| seekType | [in] Specifies how to seek - according to current position, end or beginning. |
| nOffset | [in] Specifies how many bytes to move |
| XnUInt32(* XnPlayerInputStreamInterface::Tell)(void *pCookie) |
Tells the current stream position
| pCookie | [in] A cookie that was received with this interface. |
| XnUInt64(* XnPlayerInputStreamInterface::Tell64)(void *pCookie) |
Tells the current position in the stream. (64bit version, for large files)
| pCookie | [in] A cookie that was received with this interface. |
| pPos | [out] The position of the stream. |
1.7.6.1