![]() |
OpenNI 1.5.7
|
Typedefs | |
typedef enum XnRecordMedium | XnRecordMedium |
Enumerations | |
enum | XnRecordMedium { XN_RECORD_MEDIUM_FILE = 0 } |
Functions | |
XN_C_API XnStatus XN_C_DECL | xnCreateRecorder (XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phRecorder) |
XN_C_API XnStatus XN_C_DECL | xnSetRecorderDestination (XnNodeHandle hRecorder, XnRecordMedium destType, const XnChar *strDest) |
XN_C_API XnStatus XN_C_DECL | xnGetRecorderDestination (XnNodeHandle hRecorder, XnRecordMedium *pDestType, XnChar *strDest, XnUInt32 nBufSize) |
XN_C_API XnStatus XN_C_DECL | xnAddNodeToRecording (XnNodeHandle hRecorder, XnNodeHandle hNode, XnCodecID compression) |
XN_C_API XnStatus XN_C_DECL | xnRemoveNodeFromRecording (XnNodeHandle hRecorder, XnNodeHandle hNode) |
XN_C_API XnStatus XN_C_DECL | xnRecord (XnNodeHandle hRecorder) |
const XN_C_API XnChar *XN_C_DECL | xnGetRecorderFormat (XnNodeHandle hRecorder) |
typedef enum XnRecordMedium XnRecordMedium |
Defines the type of medium used for recording. See xnAddNodeToRecording.
enum XnRecordMedium |
Defines the type of medium used for recording. See xnAddNodeToRecording.
Enumerator | |
---|---|
XN_RECORD_MEDIUM_FILE | Recording medium is a file |
XN_C_API XnStatus XN_C_DECL xnAddNodeToRecording | ( | XnNodeHandle | hRecorder, |
XnNodeHandle | hNode, | ||
XnCodecID | compression | ||
) |
Adds a node to recording and start recording it. This function must be called on each node that is to be recorded with this recorder.
hRecorder | [in] A handle to the recorder. |
hNode | [in] The node to add to the recording. |
compression | [in] The type of compression that will be used to encode the node's data (See XnCodecIDs.h). If XN_CODEC_NULL is specified, a default compression will be chosen according to the node type. |
XN_C_API XnStatus XN_C_DECL xnCreateRecorder | ( | XnContext * | pContext, |
const XnChar * | strFormatName, | ||
XnNodeHandle * | phRecorder | ||
) |
Creates a recorder.
pContext | [in] The context in which to create the recorder. |
strFormatName | [in] Optional. The name of the format the recorded file will be in. If NULL, file will be in ONI format. |
phRecorder | [out] A pointer to the created recorder handle. |
XN_C_API XnStatus XN_C_DECL xnGetRecorderDestination | ( | XnNodeHandle | hRecorder, |
XnRecordMedium * | pDestType, | ||
XnChar * | strDest, | ||
XnUInt32 | nBufSize | ||
) |
Returns the recoder's destination.
hRecorder | [in] A handle to the recorder |
pDestType | [out] The type of medium the recorder is set to record. |
strDest | [out] Recording destination. If destType is XN_RECORD_MEDIUM_FILE, this specifies a file name. |
nBufSize | [in] The size of the strDest buffer. |
const XN_C_API XnChar* XN_C_DECL xnGetRecorderFormat | ( | XnNodeHandle | hRecorder | ) |
Gets a string representation of the recording format.
hRecorder | [in] A handle to the recorder. |
XN_C_API XnStatus XN_C_DECL xnRecord | ( | XnNodeHandle | hRecorder | ) |
Records one frame of data from each node that was added to the recorder with xnAddNodeToRecording.
hRecorder | [in] A handle to the recorder. |
XN_C_API XnStatus XN_C_DECL xnRemoveNodeFromRecording | ( | XnNodeHandle | hRecorder, |
XnNodeHandle | hNode | ||
) |
Removes node from recording and stop recording it. This function can be called on a node that was added to recording with xnAddNodeToRecording.
hRecorder | [in] A handle to the recorder. |
hNode | [in] The node to remove from recording. |
XN_C_API XnStatus XN_C_DECL xnSetRecorderDestination | ( | XnNodeHandle | hRecorder, |
XnRecordMedium | destType, | ||
const XnChar * | strDest | ||
) |
Tells the recorder where to record.
hRecorder | [in] A handle to the recorder |
destType | [in] The type of medium to record to. Currently only XN_RECORD_MEDIUM_FILE is supported. |
strDest | [in] Recording destination. If destType is XN_RECORD_MEDIUM_FILE, this specifies a file name. |