OWLIFT C Library for Windows: OWLIFTLib.h ファイル
OWLIFT C Library for Windows  1.9.3
Top Page
クラス | マクロ定義 | 型定義 | 列挙型 | 関数
OWLIFTLib.h ファイル
#include <Windows.h>
#include <PshPack1.h>
#include <poppack.h>

[ソースコード]

クラス

struct  LepTelemetryDataLineA
 
struct  OwDateTime
 

マクロ定義

#define VOSPI16_TO_UINT16(v)   ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0x00FF)))
 
#define UINT16_TO_VOSPI16(v)   ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0xFF)))
 
#define VOSPI32_TO_UINT32(v)   ((((v) >> 8) & 0x000000FF) | (((v) << 8) & 0x0000FF00) | (((v) >> 8) & 0x00FF0000) | (((v) << 8) & 0xFF000000))
 
#define UINT32_TO_VOSPI32(v)   (((((v) & 0x000000FF) << 8) ) | ((((v) & 0x0000FF00) >> 8)) | ((((v) & 0x00FF0000) << 8)) | ((((v) & 0xFF000000) >> 8)))
 
#define OWDECODE_RANGE_MIN_TEMP_DEFAULT   (INT32)((273.15 + 16.0) * 100)
 
#define OWDECODE_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 48.0) * 100)
 
#define OWAGC_RANGE_MIN_TEMP_DEFAULT   (INT32)0
 
#define OWAGC_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 430) * 100)
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT   50
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_MIN   1
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_MAX   100
 
#define OWLIB_SERIAL_NUMBER_SIZE   4
 
#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)
 
#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)
 
#define OWLIFT_TYPE_A_PID   0x2300
 
#define OWLIFT_TYPE_B_PID   0x2301
 
#define OWLIFT_TYPE_F_PID   0x2303
 
#define OWHE_OK   0
 

型定義

typedef struct _OwDev * OwDev
 
typedef INT32 OwHostErrorCode_t
 
typedef unsigned char OwFirmwareErrorCode_t
 
typedef void(* OwLibCaptureProc) (OwDev dev, BYTE *buf, UINT32 bufLen, void *userData)
 
typedef void(* OwLibNotifyProc) (OwDev dev, void *userData)
 

列挙型

enum  OwStatus_t {
  OWST_OK = 0, OWST_INTERNAL_ERROR = 1, OWST_NO_MEMORY = 2, OWST_DEVICE_NOT_FOUND = 3,
  OWST_DEVICE_NOT_READY = 4, OWST_DEVICE_UNSUPPORTED = 5, OWST_NOT_ENOUGH_SIZE = 6, OWST_NOT_YET = 7,
  OWST_FIRMWARE_ERROR = 10, OWST_SENSOR_ERROR = 11, OWST_DIRECTSHOW_ERROR = 12, OWST_NULL_POINTER = 20,
  OWST_INVALID_VALUE = 21, OWST_INVALID_STATE = 22, OWST_FILE_IO_ERROR = 23, OWST_INVALID_FILE_FORMAT = 24,
  OWST_END_OF_FILE = 25, OWST_INCOMPATIBLE = 26
}
 
enum  OwSensorErrorCode_t { OW_SENSOR_ERROR_NONE = 0 }
 
enum  OwFrameRate_t { OWFRAMERATE_DEFAULT = 0, OWFRAMERATE_8P6 = 0, OWFRAMERATE_25P9 = 1 }
 
enum  OwDecodeType_t {
  OWDECODETYPE_UNKNOWN = -1, OWDECODETYPE_RAW_14 = 0, OWDECODETYPE_TEMPERATURE_16 = 1, OWDECODETYPE_GRAY_8 = 10,
  OWDECODETYPE_NON_LINEAR_AGC_GRAY_8 = 11, OWDECODETYPE_AGC_GRAY_8 = 11, OWDECODETYPE_LINEAR_AGC_GRAY_8 = 12, OWDECODETYPE_BLUE_ORANGE_24 = 20,
  OWDECODETYPE_AGC_BLUE_ORANGE_24 = 21, OWDECODETYPE_NON_LINEAR_AGC_BLUE_ORANGE_24 = 21, OWDECODETYPE_LINEAR_AGC_BLUE_ORANGE_24 = 22, OWDECODETYPE_BLUE_ORANGE_32 = 30,
  OWDECODETYPE_AGC_BLUE_ORANGE_32 = 31, OWDECODETYPE_NON_LINEAR_AGC_BLUE_ORANGE_32 = 31, OWDECODETYPE_LINEAR_AGC_BLUE_ORANGE_32 = 32, OWDECODETYPE_RAINBOW_24 = 40,
  OWDECODETYPE_AGC_RAINBOW_24 = 41, OWDECODETYPE_NON_LINEAR_AGC_RAINBOW_24 = 41, OWDECODETYPE_LINEAR_AGC_RAINBOW_24 = 42, OWDECODETYPE_RAINBOW_32 = 50,
  OWDECODETYPE_AGC_RAINBOW_32 = 51, OWDECODETYPE_NON_LINEAR_AGC_RAINBOW_32 = 51, OWDECODETYPE_LINEAR_AGC_RAINBOW_32 = 52, OWDECODETYPE_GRAY_16 = 60,
  OWDECODETYPE_NON_LINEAR_AGC_GRAY_16 = 61, OWDECODETYPE_LINEAR_AGC_GRAY_16 = 62, OWDECODETYPE_BLUE_ORANGE_16 = 70, OWDECODETYPE_NON_LINEAR_AGC_BLUE_ORANGE_16 = 71,
  OWDECODETYPE_LINEAR_AGC_BLUE_ORANGE_16 = 72, OWDECODETYPE_RAINBOW_16 = 80, OWDECODETYPE_NON_LINEAR_AGC_RAINBOW_16 = 81, OWDECODETYPE_LINEAR_AGC_RAINBOW_16 = 82
}
 
enum  OwWindowCorrectionType { OW_WINDOW_CORRECTION_TYPE_NONE, OW_WINDOW_CORRECTION_TYPE_GAT05_STD_HOUSING }
 

関数

OwStatus_t OwLib_GetDevices (OwDev **devsp, int *numDevsp, OwHostErrorCode_t *hep)
 
OwStatus_t OwLib_GetDevicesDiff (OwDev **newDevsp, int *numNewDevsp, OwDev **removedDevsp, int *numRemovedDevsp, OwDev *oldDevs, int numOldDevs, OwHostErrorCode_t *hep)
 
OwStatus_t OwLib_GetDeviceByCaptureFilter (void *baseFilter, OwDev *devp, OwHostErrorCode_t *hep)
 
OwStatus_t OwLib_CreateWithoutConnect (OwDev *devp)
 
void OwLib_Release (OwDev dev)
 
void OwLib_ReleaseArray (OwDev *devs)
 
OwStatus_t OwLib_Reconnect (OwDev dev)
 
UINT32 OwLib_GetLibVersion (void)
 
UINT16 OwLib_GetSupportedFWVersion (void)
 
UINT16 OwLib_GetVendorID (OwDev dev)
 
UINT16 OwLib_GetProductID (OwDev dev)
 
UINT16 OwLib_GetReleaseNumber (OwDev dev)
 
UINT16 OwLib_GetFirmwareVersion (OwDev dev)
 
void OwLib_GetSerialNumber (OwDev dev, UINT16 *serialp)
 
UINT64 OwLib_GetSerialNumberAsUINT64 (OwDev dev)
 
UINT16 OwLib_GetFrameWidth (OwDev dev)
 
UINT16 OwLib_GetFrameHeight (OwDev dev)
 
int OwLib_GetFrameRateDenominator (OwDev dev)
 
int OwLib_GetFrameRateNumerator (OwDev dev)
 
BOOL OwLib_GetCircumferenceCorrection (OwDev dev)
 
void OwLib_SetCircumferenceCorrection (OwDev dev, BOOL enabled)
 
BOOL OwLib_GetNoiseFilter (OwDev dev)
 
void OwLib_SetNoiseFilter (OwDev dev, BOOL enabled)
 
UINT16 OwLib_GetNoiseFilterThreshold (OwDev dev)
 
void OwLib_SetNoiseFilterThreshold (OwDev dev, UINT16 threshold)
 
BOOL OwLib_GetUndistortion (OwDev dev)
 
void OwLib_SetUndistortion (OwDev dev, BOOL enabled)
 
OwHostErrorCode_t OwLib_GetHostError (OwDev dev)
 
OwFirmwareErrorCode_t OwLib_GetFirmwareError (OwDev dev)
 
OwSensorErrorCode_t OwLib_GetSensorError (OwDev dev)
 
BOOL OwLib_GetDisconnected (OwDev dev)
 
const char * OwLib_GetErrorMessage (OwStatus_t st)
 
void * OwLib_GetCaptureFilter (OwDev dev)
 
OwStatus_t OwLib_GetConfig (OwDev dev, UINT16 *cfgp)
 
OwStatus_t OwLib_SetConfig (OwDev dev, UINT16 cfg)
 
OwStatus_t OwLib_GetActive (OwDev dev, BOOL *activep)
 
UINT16 OwLib_GetFooterLines (OwDev dev)
 
UINT16 OwLib_GetTelemetryDataLines (OwDev dev)
 
UINT16 OwLib_GetSupportedTelemetryDataRevision (OwDev dev)
 
BOOL OwLib_IsRealDevice (OwDev dev)
 
OwStatus_t OwLib_CommandGet (OwDev dev, UINT16 moduleID, UINT16 cmdIDBase, UINT16 *data, UINT16 ndata)
 
OwStatus_t OwLib_CommandSet (OwDev dev, UINT16 moduleID, UINT16 cmdIDBase, const UINT16 *data, UINT16 ndata)
 
OwStatus_t OwLib_CommandRun (OwDev dev, UINT16 moduleID, UINT16 cmdIDBase)
 
OwStatus_t OwLib_CaptureSetup (OwDev dev, OwFrameRate_t frameRate, OwLibCaptureProc proc, void *userData)
 
OwStatus_t OwLib_CaptureStart (OwDev dev)
 
OwStatus_t OwLib_CaptureStop (OwDev dev)
 
void OwLib_CaptureRelease (OwDev dev)
 
LepTelemetryDataLineAOwLib_GetTelemetryData (OwDev dev, BYTE *buf)
 
OwStatus_t OwLib_Decode (OwDev dev, BYTE *srcBuf, BYTE *dstBuf, UINT32 dstBufLen, UINT32 dstBufStride, OwDecodeType_t dtype)
 
void OwLib_FinishDecode (OwDev dev)
 
OwStatus_t OwLib_GetTempTable (OwDev dev, UINT16 *buf, UINT32 bufLen)
 
int OwLib_GetLastTempResolution (OwDev dev)
 
void OwLib_GetDecodeRange (OwDev dev, INT32 *minTempp, INT32 *maxTempp)
 
void OwLib_SetDecodeRange (OwDev dev, INT32 minTemp, INT32 maxTemp)
 
void OwLib_GetAGCRange (OwDev dev, INT32 *minTempp, INT32 *maxTempp)
 
void OwLib_SetAGCRange (OwDev dev, INT32 minTemp, INT32 maxTemp)
 
OwDecodeType_t OwLib_GetManualGainType (OwDecodeType_t dtype)
 
OwDecodeType_t OwLib_GetLinearAutoGainType (OwDecodeType_t dtype)
 
OwDecodeType_t OwLib_GetNonLinearAutoGainType (OwDecodeType_t dtype)
 
OwDecodeType_t OwLib_GetAutoGainType (OwDecodeType_t dtype)
 
BOOL OwLib_GetSubtractionTemp (OwDev dev)
 
void OwLib_SetSubtractionTemp (OwDev dev, BOOL enabled)
 
OwStatus_t OwLib_SetSubtractionTempTable (OwDev dev, UINT16 *buf, UINT32 bufLen)
 
BOOL OwLib_GetColorizeByRaw (OwDev dev)
 
void OwLib_SetColorizeByRaw (OwDev dev, BOOL enabled)
 
void OwLib_SetWindowCorrection (OwDev dev, OwWindowCorrectionType wctype, int reserved)
 
void OwLib_GetWindowCorrection (OwDev dev, OwWindowCorrectionType *wctype, int *reserved)
 
OwStatus_t OwLib_SetReflectCorrFile (OwDev dev, const wchar_t *filePath)
 
OwStatus_t OwLib_EnableHighGainMode (OwDev dev)
 
UINT32 OwLib_GetColorTableSize (OwDecodeType_t dtype)
 
void OwLib_GetColorTable (OwDecodeType_t dtype, DWORD *tab)
 
OwStatus_t OwLib_Magnify3 (BYTE *srcBuf, UINT32 src_wx, UINT32 src_wy, BYTE *dstBuf, UINT32 dstBufLen, UINT32 bpp, UINT32 src_ofsx)
 
OwStatus_t OwLib_Gray8ToRGB (BYTE *srcBuf, UINT32 src_wx, UINT32 src_wy, BYTE *dstBuf, UINT32 dstBufLen, UINT32 dstBufStride, UINT32 bpp)
 
BOOL OwLib_GetUpsideDown (OwDev dev)
 
void OwLib_SetUpsideDown (OwDev dev, BOOL enabled)
 
BOOL OwLib_GetRGBOrder (OwDev dev)
 
void OwLib_SetRGBOrder (OwDev dev, BOOL BGRorRGB)
 
OwStatus_t OwLib_FileWriteSetup (OwDev dev, const wchar_t *filePath)
 
OwStatus_t OwLib_FileWriteStart (OwDev dev)
 
OwStatus_t OwLib_FileWriteStop (OwDev dev)
 
OwStatus_t OwLib_FileWritePassiveSetup (OwDev dev, const wchar_t *filePath, int frameRateNumerator, int frameRateDenominator)
 
OwStatus_t OwLib_FileWritePassiveAdd (OwDev dev, BYTE *buf, UINT32 bufLen)
 
OwStatus_t OwLib_FileReadSetup (OwDev *devp, const wchar_t *filePath, OwLibCaptureProc capProc, OwLibNotifyProc endNotifyProc, void *userData)
 
void OwLib_FileReadPause (OwDev dev)
 
void OwLib_FileReadResume (OwDev dev)
 
OwStatus_t OwLib_FileReadSeek (OwDev dev, UINT64 timeOfs)
 
UINT64 OwLib_GetFileTimeLength (OwDev dev)
 
UINT64 OwLib_GetFileHeadTimeOffset (OwDev dev)
 
UINT64 OwLib_GetFileCurrentTimeOffset (OwDev dev)
 
UINT32 OwLib_GetFileFrames (OwDev dev)
 
UINT32 OwLib_GetFileCurrentFrameNumber (OwDev dev)
 
void OwLib_GetFileHeadDateTime (OwDev dev, OwDateTime *dateTimep)
 
void OwLib_GetFileCurrentDateTime (OwDev dev, OwDateTime *dateTimep)
 
double OwLib_GetFileReadSpeed (OwDev dev)
 
void OwLib_SetFileReadSpeed (OwDev dev, double speed)
 
BOOL OwLib_GetFileReadPaused (OwDev dev)
 
OwStatus_t OwLib_FileTimeBasedAGCSetup (OwDev dev, BOOL isLinearAGC, UINT32 sampleFrameNumIntvl, UINT64 fromTimeOfs, UINT64 toTimeOfs)
 
BOOL OwLib_GetTimeBasedAGC (OwDev dev)
 
void OwLib_SetTimeBasedAGC (OwDev dev, BOOL enabled)
 
OwStatus_t OwLib_SetAGCROIMask (OwDev dev, const BOOL *mask)
 
OwStatus_t OwLib_GetFileError (OwDev dev)
 
OwStatus_t OwLib_DumpFrame (OwDev dev, const wchar_t *filePath, WORD *buf, UINT32 bufLen, const LepTelemetryDataLineA *telemp, const OwDateTime *dateTimep, BOOL tempOrRaw)