OWLIFT C Library for Windows
1.9.3
|
Top Page |
OwStatus_t OwLib_DumpFrame | ( | OwDev | dev, |
const wchar_t * | filePath, | ||
WORD * | buf, | ||
UINT32 | bufLen, | ||
const LepTelemetryDataLineA * | telemp, | ||
const OwDateTime * | dateTimep, | ||
BOOL | tempOrRaw | ||
) |
Outputs temperature data or raw data as ascii format.
dev | [in] The device handle. |
filePath | [in] The file path to output. NULL means standard output. |
buf | [in] The temperature data or raw data. For a raw data, use a result of decoding by OwDecodeType.RAW_14. |
bufLen | [in] The size of 'buf'. |
telemp | [in] The telemetry data correponding to 'buf'. |
dateTimep | [in] The date time to output. NULL means a current date time, |
tempOrRaw | [in] TRUE : 'buf' is temperature data, FALSE : 'buf' is raw data. |
void OwLib_FileReadPause | ( | OwDev | dev | ) |
Pauses the raw-playing.
dev | [in] The device handle. |
void OwLib_FileReadResume | ( | OwDev | dev | ) |
Resumes the raw-playing.
dev | [in] The device handle. |
OwStatus_t OwLib_FileReadSeek | ( | OwDev | dev, |
UINT64 | timeOfs | ||
) |
Resumes the raw-playing.
dev | [in] The device handle. |
timeOfs | [in] The time offset from the head in milli seconds. |
OwStatus_t OwLib_FileReadSetup | ( | OwDev * | devp, |
const wchar_t * | filePath, | ||
OwLibCaptureProc | capProc, | ||
OwLibNotifyProc | endNotifyProc, | ||
void * | userData | ||
) |
Configures the raw-playing. To play a raw-recording file, get the device handle for playing by this function. The device handle this function returns uses a file as the data source instead of a real device. To start playing, call OwLib_CaptureStart() against the device handle this function returns.
devp | [out] The pointer that receives a device handle. Caller takes responsibility for releasing *devp. OwLib_Release() releases *devp. |
filePath | [in] The file path of a raw-recording file. |
capProc | [in] The callback function being called while playing. This function is called every time a frame is retrieved from the file. The user can take frames in the user-defined function of which type is OwLibCaptureProc. |
endNotifyProc | [in] The callback function being called at the end of file. |
userData | [in] The arbitrary value passed to 'capProc' and 'endNotifyProc'. |
OwStatus_t OwLib_FileTimeBasedAGCSetup | ( | OwDev | dev, |
BOOL | isLinearAGC, | ||
UINT32 | sampleFrameNumIntvl, | ||
UINT64 | fromTimeOfs, | ||
UINT64 | toTimeOfs | ||
) |
Extracts frames from the raw-recording file at the specified interval and setup Time-Based AGC minimum and maximum temperatures of all the frames. This function must be called before calling OwLib_CaptureStart().
dev | [in] The device handle. |
isLinearAGC | [in] The kind of decode type which will be passed to OwLib_Decode(). TRUE : Use Linear AGC, FALSE : Use Non-Linear AGC. |
sampleFrameNumIntvl | [in] The interval number of frames for extracting. |
fromTimeOfs | [in] The time offset to start calculating. |
toTimeOfs | [in] The time offset to stop calculating. |
OwStatus_t OwLib_FileWritePassiveAdd | ( | OwDev | dev, |
BYTE * | buf, | ||
UINT32 | bufLen | ||
) |
Add a frame to the raw-recording file. Call this function when you called OwLib_FileWritePassiveSetup().
dev | [in] The device handle. |
buf | [in] The frame buffer. This is raw data of sensor output of which format is in big-endian. |
bufLen | [in] The size of the area where 'buf' points in bytes. |
OwStatus_t OwLib_FileWritePassiveSetup | ( | OwDev | dev, |
const wchar_t * | filePath, | ||
int | frameRateNumerator, | ||
int | frameRateDenominator | ||
) |
Starts the raw-recording. This function is used when it is needed to change the timing to save frames. Use this with OwLib_FileWritePassiveAdd().
dev | [in] The device handle. |
filePath | [in] The file path of a raw-recording file. |
frameRateNumerator | [in] The numerator of the frame rate. |
frameRateDenominator | [in] The denominator of the frame rate. |
OwStatus_t OwLib_FileWriteSetup | ( | OwDev | dev, |
const wchar_t * | filePath | ||
) |
Configures the raw-recording.
dev | [in] The device handle. |
filePath | [in] The file path of a raw-recording file. |
OwStatus_t OwLib_FileWriteStart | ( | OwDev | dev | ) |
Starts the raw-recording.
dev | [in] The device handle. |
OwStatus_t OwLib_FileWriteStop | ( | OwDev | dev | ) |
Stops the raw-recording.
dev | [in] The device handle. |
void OwLib_GetFileCurrentDateTime | ( | OwDev | dev, |
OwDateTime * | dateTimep | ||
) |
Returns the time of the frame last read from the raw-recording file.
dev | [in] The device handle. |
dateTimep | [out] The pointer that receives the time. |
UINT32 OwLib_GetFileCurrentFrameNumber | ( | OwDev | dev | ) |
Returns the frame number of the frame last read from the raw-recording file. The first frame number is 1.
dev | [in] The device handle. |
UINT64 OwLib_GetFileCurrentTimeOffset | ( | OwDev | dev | ) |
Returns the time offset of the frame last read from the raw-recording file.
dev | [in] The device handle. |
OwStatus_t OwLib_GetFileError | ( | OwDev | dev | ) |
Returns the error occurred while recording or playing the raw-recording file.
dev | [in] The device handle. |
UINT32 OwLib_GetFileFrames | ( | OwDev | dev | ) |
Returns the number of frames of the raw-recording file.
dev | [in] The device handle. |
void OwLib_GetFileHeadDateTime | ( | OwDev | dev, |
OwDateTime * | dateTimep | ||
) |
Returns the time of the first frame in the raw-recording file.
dev | [in] The device handle. |
dateTimep | [out] The pointer that receives the time. |
UINT64 OwLib_GetFileHeadTimeOffset | ( | OwDev | dev | ) |
Returns the time offset of the first frame in the raw-recording file.
dev | [in] The device handle. |
BOOL OwLib_GetFileReadPaused | ( | OwDev | dev | ) |
Returns whether or not playing raw-recording file is paused.
dev | [in] The device handle. |
double OwLib_GetFileReadSpeed | ( | OwDev | dev | ) |
Returns the scaling factor for the playback speed of raw-recording file.
dev | [in] The device handle. |
UINT64 OwLib_GetFileTimeLength | ( | OwDev | dev | ) |
Returns the time length of the raw-recording file.
dev | [in] The device handle. |
BOOL OwLib_GetTimeBasedAGC | ( | OwDev | dev | ) |
Gets whether or not Time-Based AGC is enabled.
dev | [in] The device handle. |
OwStatus_t OwLib_SetAGCROIMask | ( | OwDev | dev, |
const BOOL * | mask | ||
) |
Sets ROI for Auto Gain Control. ROI is useful when colors look flat because there are pixels of high or low temperature at uninsteresting area.
dev | [in] The device handle. |
mask | [in] Two dimensional BOOL array that has elements of frame width x frame height. When the mask value that position corresponds to the pixel's position is TRUE, the pixel is calculation target. If all elements are FALSEs, an error code is returned. |
void OwLib_SetFileReadSpeed | ( | OwDev | dev, |
double | speed | ||
) |
Sets the scaling factor for the playback speed of raw-recording file.
dev | [in] The device handle. |
speed | [in] The correspoinding value that is greater than or equal to zero. Zero means maximum speed. |
void OwLib_SetTimeBasedAGC | ( | OwDev | dev, |
BOOL | enabled | ||
) |
Sets whether or not Time-Based AGC is enabled. OwLib_FileTimeBasedAGCSetup() must be called before setting TRUE.
dev | [in] The device handle. |
enabled | [in] The corresponding value. |
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by |