PUCLIB 1.7.0.0
PHOTRON USB Control Library
Loading...
Searching...
No Matches
PUCLIB.h
Go to the documentation of this file.
1#ifndef __PUCLIB_H
2#define __PUCLIB_H
3
4#include <Windows.h>
5#include "PUCCONST.h"
6#include "PUCUTIL.h"
7
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
46
71
98
114
120typedef struct
121{
124 PUINT8 pData;
127 UINT32 nDataSize;
131
135
137
138// NOTE: PUC_OPEN_PARAM は PUC_OpenDeviceByIPAddress 専用の構造体だったため、
139// 同関数の廃止に伴い削除した。オープンは PUC_OpenDevice2(インデックス) を使う。
140
163
169
173
174
188
210
231PUCRESULT WINAPI PUC_OpenDevice(UINT32 nDeviceNo, PPUC_HANDLE pDeviceHandle);
232
252
271PUCRESULT WINAPI PUC_IsSupported(PUC_HANDLE hDevice, PUC_CAPABILITY cap, bool* pIsSupported);
272
288
303PUCRESULT WINAPI PUC_GetDeviceName(PUC_HANDLE hDevice, UINT32* pName);
304
319PUCRESULT WINAPI PUC_GetDeviceType(PUC_HANDLE hDevice, UINT32* pType);
320
335PUCRESULT WINAPI PUC_GetDeviceVersion(PUC_HANDLE hDevice, UINT32* pVersion);
336
353PUCRESULT WINAPI PUC_GetSerialNo(PUC_HANDLE hDevice, UINT64* pSerialNo);
354
377PUCRESULT WINAPI PUC_GetResolution(PUC_HANDLE hDevice, UINT32* pWidth, UINT32* pHeight);
378
401PUCRESULT WINAPI PUC_GetMaxResolution(PUC_HANDLE hDevice, UINT32* pCurMaxWidth, UINT32* pCurMaxHeight);
402
424
449PUCRESULT WINAPI PUC_SetResolution(PUC_HANDLE hDevice, UINT32 nWidth, UINT32 nHeight);
450
471PUCRESULT WINAPI PUC_GetQuantization(PUC_HANDLE hDevice, UINT32 nPoint, USHORT* pVal);
472
493PUCRESULT WINAPI PUC_SetQuantization(PUC_HANDLE hDevice, UINT32 nPoint, USHORT nVal);
494
514
536
557
582
600
620
639PUCRESULT WINAPI PUC_GetSyncOutDelay(PUC_HANDLE hDevice, UINT32* pDelay);
640
661PUCRESULT WINAPI PUC_SetSyncOutDelay(PUC_HANDLE hDevice, UINT32 nDelay);
662
681PUCRESULT WINAPI PUC_GetSyncOutWidth(PUC_HANDLE hDevice, UINT32* pWidth);
682
705PUCRESULT WINAPI PUC_SetSyncOutWidth(PUC_HANDLE hDevice, UINT32 nWidth);
706
727PUCRESULT WINAPI PUC_GetSyncOutMagnification(PUC_HANDLE hDevice, UINT32* pMagnification);
728
751PUCRESULT WINAPI PUC_SetSyncOutMagnification(PUC_HANDLE hDevice, UINT32 nMagnification);
752
770
788
806
826
841PUCRESULT WINAPI PUC_GetSensorTemperature(PUC_HANDLE hDevice, UINT32* pTemp);
842
859PUCRESULT WINAPI PUC_GetExternalSyncStatus(PUC_HANDLE hDevice, UINT32* pStatus, UINT32* pFrequency);
860
879PUCRESULT WINAPI PUC_GetXferDataSize(PUC_HANDLE hDevice, UINT32* pDataSize);
880
899PUCRESULT WINAPI PUC_GetMaxXferDataSize(PUC_HANDLE hDevice, UINT32* pDataSize);
900
928
959PUCRESULT WINAPI PUC_BeginXferData(PUC_HANDLE hDevice, RECEIVE_CALLBACK callback, void* arg);
960
980
999PUCRESULT WINAPI PUC_IsXferring(PUC_HANDLE hDevice, BOOL* pIsXferring);
1000
1025PUCRESULT WINAPI PUC_ExtractSequenceNo(const PUCHAR pData, UINT32 nWidth, UINT32 nHeight, PUSHORT pSeqNo);
1026
1059PUCRESULT WINAPI PUC_DecodeData(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals);
1060
1079PUCRESULT WINAPI PUC_SetWhiteBalanceGain(double nGainR, double nGainG, double nGainB);
1080
1117PUCRESULT WINAPI PUC_DecodeDataMultiThread(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals, UINT32 nThreadCount);
1118
1153PUCRESULT WINAPI PUC_DecodeDCTData(PINT16 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals);
1154
1185PUCRESULT WINAPI PUC_DecodeDCData(PUINT8 pDst, UINT32 nBlockX, UINT32 nBlockY, UINT32 nBlockCountX, UINT32 nBlockCountY, const PUINT8 pSrc);
1186
1187
1204PUCRESULT WINAPI PUC_GetRingBufferCount(PUC_HANDLE hDevice, UINT32* pCount);
1205
1224PUCRESULT WINAPI PUC_SetRingBufferCount(PUC_HANDLE hDevice, UINT32 nCount);
1225
1244PUCRESULT WINAPI PUC_GetXferTimeOut(PUC_HANDLE hDevice, UINT32* pSingleXferTimeOut, UINT32* pContinuousXferTimeOut);
1245
1270PUCRESULT WINAPI PUC_SetXferTimeOut(PUC_HANDLE hDevice, UINT32 nSingleXferTimeOut, UINT32 nContinuousXferTimeOut);
1271
1288PUCRESULT WINAPI PUC_GetMaxFramerate(PUC_HANDLE hDevice, UINT32* pFramerate);
1289
1307
1330PUCRESULT WINAPI PUC_GetFramerateShutter(PUC_HANDLE hDevice, UINT32* pFramerate, UINT32* pShutterSpeedFps);
1331
1354PUCRESULT WINAPI PUC_SetFramerateShutter(PUC_HANDLE hDevice, UINT32 nFramerate, UINT32 nShutterSpeedFps);
1355
1382PUCRESULT WINAPI PUC_GetExposeTime(PUC_HANDLE hDevice, UINT32* pExpOnTime, UINT32* pExpOffTime);
1383
1404PUCRESULT WINAPI PUC_GetMinExposeTime(PUC_HANDLE hDevice, UINT32* pMinExpOnTime, UINT32* pMinExpOffTime);
1405
1432PUCRESULT WINAPI PUC_SetExposeTime(PUC_HANDLE hDevice, UINT32 nExpOnTime, UINT32 nExpOffTime);
1433
1456PUCRESULT WINAPI PUC_ResetDevice(UINT32 nDeviceNo);
1457
1471
1481
1493
1505
1529PUCRESULT WINAPI PUC_DecodeGPU(bool download, unsigned char* pSrc, unsigned char** pDst, UINT32 lineBytes);
1530
1541PUCRESULT WINAPI PUC_GetGPULastError(int& errorCode);
1542
1553PUCRESULT WINAPI PUC_IsSetupGPUDecode(bool& status);
1554
1578
1603PUCRESULT WINAPI PUC_OpenDevice2(UINT32 index, PPUC_HANDLE pDeviceHandle);
1604
1625PUCRESULT WINAPI PUC_GetAdaptersInfoList(UINT32* pNumAdapters, PPUC_NETWORK_INFO pAdaptersInfo);
1626
1651PUCRESULT WINAPI PUC_DiscoveryDevice(UINT32 nAdapterIPaddress, UINT32* pNumDetectedDevice, PPUC_NETWORK_INFO pDetectedDevicesInfo);
1652
1677PUCRESULT WINAPI PUC_ForceSetNetworkSetting(UINT32 nAdapterIPaddress, const PPUC_NETWORK_INFO pTargetInfo, UINT32 nForTemporary, PPUC_NETWORK_INFO pResultInfo);
1678
1695PUCRESULT WINAPI PUC_GetIPAddress(PUC_HANDLE hDevice, UINT32* pIPAddress);
1696
1713PUCRESULT WINAPI PUC_GetMacAddress(PUC_HANDLE hDevice, UINT8* pMacAddress);
1714
1735PUCRESULT WINAPI PUC_GetTimeCode2EPOC(PUINT8 pSrc, time_t* time);
1736
1757PUCRESULT WINAPI PUC_GetQuantization2(PUC_HANDLE hDevice, unsigned short* pQvals);
1758
1781PUCRESULT WINAPI PUC_SetQuantization2(PUC_HANDLE hDevice, unsigned short* pQvals);
1782
1804
1826
1852
1874
1900
1922
1941PUCRESULT WINAPI PUC_GetSyncInDelay(PUC_HANDLE hDevice, UINT32* pDelay);
1942
1963PUCRESULT WINAPI PUC_SetSyncInDelay(PUC_HANDLE hDevice, UINT32 nDelay);
1964
1983PUCRESULT WINAPI PUC_GetTrigInDelay(PUC_HANDLE hDevice, UINT32* pDelay);
1984
2005PUCRESULT WINAPI PUC_SetTrigInDelay(PUC_HANDLE hDevice, UINT32 nDelay);
2006
2025PUCRESULT WINAPI PUC_GetTrigOutWidth(PUC_HANDLE hDevice, UINT32* pWidth);
2026
2047PUCRESULT WINAPI PUC_SetTrigOutWidth(PUC_HANDLE hDevice, UINT32 nWidth);
2048
2069PUCRESULT WINAPI PUC_GetExposeDelay(PUC_HANDLE hDevice, UINT32* pDelay);
2070
2093PUCRESULT WINAPI PUC_SetExposeDelay(PUC_HANDLE hDevice, UINT32 nDelay);
2094
2113PUCRESULT WINAPI PUC_GetPPOutWidth(PUC_HANDLE hDevice, UINT32* pWidth);
2114
2135PUCRESULT WINAPI PUC_SetPPOutWidth(PUC_HANDLE hDevice, UINT32 nWidth);
2136
2155PUCRESULT WINAPI PUC_GetPPOutDelay(PUC_HANDLE hDevice, UINT32* pDelay);
2156
2177PUCRESULT WINAPI PUC_SetPPOutDelay(PUC_HANDLE hDevice, UINT32 nDelay);
2178
2211PUCRESULT WINAPI PUC_SetEPOCTime(PUC_HANDLE hDevice, UINT32 year, UINT32 month, UINT32 day, UINT32 hour, UINT32 minute, UINT32 second);
2212
2235PUCRESULT WINAPI PUC_SetTimeOfDay(PUC_HANDLE hDevice, UINT64 epochSeconds);
2236
2266
2293PUCRESULT WINAPI PUC_ExtractSequenceNo_GBE2(const PUCHAR pData, PUSHORT pSeqNo);
2294
2324
2325
2326#ifdef __cplusplus
2327}
2328#endif
2329
2330#endif /* __PUCLIB_H */
PUC_GENERAL_OUT_SIGNAL_TYPE
The signal type assigned to a general output port. Names ending with POS are positive polarity and NE...
Definition PUCCONST.h:280
PUC_SYNC_OUT_TIMES
The output count magnification of the synchronization signal, given as a multiple of the framerate....
Definition PUCCONST.h:370
PUC_GENERAL_IN_SIGNAL_TYPE
The signal type assigned to a general input port. Names containing POS are positive polarity and NEG ...
Definition PUCCONST.h:320
struct PUC_GBE2_XFER_HEADER * PPUC_GBE2_XFER_HEADER
void * PUC_HANDLE
Device handle.
Definition PUCCONST.h:104
#define PUC_MAX_DEVICE
Maximum number of connectable devices.
Definition PUCCONST.h:21
PUC_CAPABILITY
Camera capability. Use with PUC_IsSupported to check whether a feature is available on the connected ...
Definition PUCCONST.h:394
PUCRESULT
Error code.
Definition PUCCONST.h:112
PUC_MODE
Enumeration for ON/OFF setting.
Definition PUCCONST.h:54
PUC_COLOR_TYPE
Enumeration for device color/monochrome setting.
Definition PUCCONST.h:93
PUC_SYNC_MODE
Enumeration for synchronization.
Definition PUCCONST.h:78
PUC_HANDLE * PPUC_HANDLE
Pointer for the device handle.
Definition PUCCONST.h:107
PUC_NETWORK_INFO_TYPE
The network setting to change with PUC_SetNetworkInfo.
Definition PUCCONST.h:352
PUC_SIGNAL
Enumeration for signal polarity.
Definition PUCCONST.h:66
#define PUC_MAC_ADDRESS_SIZE
MAC address size.
Definition PUCCONST.h:49
PUCRESULT WINAPI PUC_IsSupported(PUC_HANDLE hDevice, PUC_CAPABILITY cap, bool *pIsSupported)
This checks whether the connected camera supports the specified capability.
PUCRESULT WINAPI PUC_ResetSequenceNo(PUC_HANDLE hDevice)
This resets the sequence number.
PUCRESULT WINAPI PUC_GetSyncOutMagnification(PUC_HANDLE hDevice, UINT32 *pMagnification)
This retrieves the output magnification rate for the synchronization signal.
PUCRESULT WINAPI PUC_GetResolutionLimit(PUC_HANDLE hDevice, PPUC_RESO_LIMIT_INFO pLimitInfo)
This retrieves the resolution limit for the device, and minimum unit for altering the resolution.
PUCRESULT WINAPI PUC_DiscoveryDevice(UINT32 nAdapterIPaddress, UINT32 *pNumDetectedDevice, PPUC_NETWORK_INFO pDetectedDevicesInfo)
This searches for devices under the specified network adapter. (GbE-2 only)
PUCRESULT WINAPI PUC_SetSyncInMode(PUC_HANDLE hDevice, PUC_SYNC_MODE nMode, PUC_SIGNAL nSignal)
This sets the synchronous signal input mode for the device.
PUCRESULT WINAPI PUC_IsXferring(PUC_HANDLE hDevice, BOOL *pIsXferring)
This checks whether a continuous transfer is in progress.
PUCRESULT WINAPI PUC_DetectDevice(PPUC_DETECT_INFO pDetectInfo)
This searches for the device. (UC1 only)
PUCRESULT WINAPI PUC_DecodeData(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals)
This unpacks the compressed image data to luminance data.
PUCRESULT WINAPI PUC_GetRingBufferCount(PUC_HANDLE hDevice, UINT32 *pCount)
This retrieves the ring buffer count for continuous transfer.
PUCRESULT WINAPI PUC_GetMaxResolution(PUC_HANDLE hDevice, UINT32 *pCurMaxWidth, UINT32 *pCurMaxHeight)
This retrieves the maximum resolution setting allowed for the current frame rate of the device.
PUCRESULT WINAPI PUC_GetColorType(PUC_HANDLE hDevice, PUC_COLOR_TYPE *pType)
This retrieves color/monochrome information of the device.
PUCRESULT WINAPI PUC_GetQuantization(PUC_HANDLE hDevice, UINT32 nPoint, USHORT *pVal)
This retrieves one set of quantization table data stored to the device.
PUCRESULT WINAPI PUC_ExtractGbe2XferHeader(const PUCHAR pData, PPUC_GBE2_XFER_HEADER pHeader)
This parses the header of the transfer data. (GbE-2 only)
PUCRESULT WINAPI PUC_GetSyncOutDelay(PUC_HANDLE hDevice, UINT32 *pDelay)
This retrieves the delay value of device's synchronization signal output in nsec. The value less th...
struct PUC_XFER_DATA_INFO * PPUC_XFER_DATA_INFO
PUCRESULT WINAPI PUC_SetupGPUDecode(PUC_GPU_SETUP_PARAM param)
Allocates memory for GPU processing.
PUCRESULT WINAPI PUC_GetPPOutDelay(PUC_HANDLE hDevice, UINT32 *pDelay)
This retrieves the delay of the PP OUT (PTP pulse per second) signal for the device....
PUCRESULT WINAPI PUC_ExtractSequenceNo(const PUCHAR pData, UINT32 nWidth, UINT32 nHeight, PUSHORT pSeqNo)
This extracts the sequence number from the compressed image data. (UC1 only)
PUCRESULT WINAPI PUC_GetFanState(PUC_HANDLE hDevice, PUC_MODE *pState)
This retrieves the state of the device fan.
PUCRESULT WINAPI PUC_DetectDevice2(const PPUC_DETECT_FILTER pFilter, PPUC_DETECT_INFO pDetectInfo)
This searches for devices matching the specified search conditions.
struct PUC_DETECT_INFO * PPUC_DETECT_INFO
PUCRESULT WINAPI PUC_GetTrigInDelay(PUC_HANDLE hDevice, UINT32 *pDelay)
This retrieves the delay of the TRIG IN signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_SetFramerateShutter(PUC_HANDLE hDevice, UINT32 nFramerate, UINT32 nShutterSpeedFps)
This sets the framerate and the shutter speed (1/fps) for the device.
PUCRESULT WINAPI PUC_GetExposeDelay(PUC_HANDLE hDevice, UINT32 *pDelay)
This retrieves the exposure delay of the device.
PUCRESULT WINAPI PUC_GetSyncOutWidth(PUC_HANDLE hDevice, UINT32 *pWidth)
This retrieves the output width of synchronization signal for the device. If it is less than 100nse...
PUCRESULT WINAPI PUC_CloseDevice(PUC_HANDLE hDevice)
This closes the device.
PUCRESULT WINAPI PUC_SetRingBufferCount(PUC_HANDLE hDevice, UINT32 nCount)
This sets the ring buffer count for continuous transfer.
PUCRESULT WINAPI PUC_GetSensorTemperature(PUC_HANDLE hDevice, UINT32 *pTemp)
This retrieves the device sensor temperature.
PUCRESULT WINAPI PUC_IsSetupGPUDecode(bool &status)
This retrieves whether GPU decode memory is allocated.
PUCRESULT WINAPI PUC_GetSupportedGeneralInSignal(PUC_HANDLE hDevice, PUC_GENERAL_IN_SIGNAL_TYPE GenInType, bool *isSupported)
This retrieves whether the device supports the specified general input signal type....
PUCRESULT WINAPI PUC_SetWhiteBalanceGain(double nGainR, double nGainG, double nGainB)
Sets the per-channel white balance gain (R/G/B) applied during GbE-2 color (bayer) decoding by PUC_De...
void(* RECEIVE_CALLBACK)(PPUC_XFER_DATA_INFO, void *)
The callback function type called during continuous transfer.
Definition PUCLIB.h:168
PUCRESULT WINAPI PUC_GetXferTimeOut(PUC_HANDLE hDevice, UINT32 *pSingleXferTimeOut, UINT32 *pContinuousXferTimeOut)
This retrieves the timeout duration (ms) for data transfer from the device.
PUCRESULT WINAPI PUC_GetSyncOutTimes(PUC_HANDLE hDevice, PUC_SYNC_OUT_TIMES *pTimes)
This retrieves the output times for the synchronization signal.
PUCRESULT WINAPI PUC_GetGeneralInSignal(PUC_HANDLE hDevice, int portNo, PUC_GENERAL_IN_SIGNAL_TYPE *type)
This retrieves the signal type assigned to the specified general input port. (GbE-2 only)
PUCRESULT WINAPI PUC_GetXferDataSize(PUC_HANDLE hDevice, UINT32 *pDataSize)
This retrieves the size of transfer data from the device.
PUCRESULT WINAPI PUC_SetQuantization(PUC_HANDLE hDevice, UINT32 nPoint, USHORT nVal)
This overwrites one set of quantization table data stored to the device.
PUCRESULT WINAPI PUC_GetResolution(PUC_HANDLE hDevice, UINT32 *pWidth, UINT32 *pHeight)
This retrieves the device resolution.
PUCRESULT WINAPI PUC_DecodeGPU(bool download, unsigned char *pSrc, unsigned char **pDst, UINT32 lineBytes)
This unpacks the compressed image data to luminance data.(GPU processing)
PUCRESULT WINAPI PUC_SetLEDMode(PUC_HANDLE hDevice, PUC_MODE nMode)
This sets the LED state of the device.
PUCRESULT WINAPI PUC_GetAvailableGPUProcess()
This retrieves whether the PC is capable of GPU processing.
PUCRESULT WINAPI PUC_SetSyncOutTimes(PUC_HANDLE hDevice, PUC_SYNC_OUT_TIMES nTimes)
This sets the output times for the synchronization signal.
PUCRESULT WINAPI PUC_SetExposeTime(PUC_HANDLE hDevice, UINT32 nExpOnTime, UINT32 nExpOffTime)
This sets the exposure/non-exposure time of the device.
PUCRESULT WINAPI PUC_SetResolution(PUC_HANDLE hDevice, UINT32 nWidth, UINT32 nHeight)
This sets the device resolution.
PUCRESULT WINAPI PUC_GetMacAddress(PUC_HANDLE hDevice, UINT8 *pMacAddress)
This retrieves the MAC address of the device from the cache. (GbE-2 only)
PUCRESULT WINAPI PUC_SetSyncInDelay(PUC_HANDLE hDevice, UINT32 nDelay)
This sets the delay of the SYNC IN signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_DecodeDataMultiThread(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals, UINT32 nThreadCount)
This unpacks the compressed image data to luminance data. This process is multithreaded.
PUCRESULT WINAPI PUC_SetSyncOutWidth(PUC_HANDLE hDevice, UINT32 nWidth)
This sets the output width of synchronization signal for the device.
struct PUC_DETECT_FILTER * PPUC_DETECT_FILTER
PUCRESULT WINAPI PUC_ExtractSequenceNo_GBE2(const PUCHAR pData, PUSHORT pSeqNo)
This extracts the sequence number from the transfer data. (GbE-2 only)
PUCRESULT WINAPI PUC_GetSyncInMode(PUC_HANDLE hDevice, PUC_SYNC_MODE *pMode, PUC_SIGNAL *pSignal)
This retrieves the synchronous signal input mode for the device.
PUCRESULT WINAPI PUC_GetExternalSyncStatus(PUC_HANDLE hDevice, UINT32 *pStatus, UINT32 *pFrequency)
This retrieves the external sync status.
PUCRESULT WINAPI PUC_GetSyncOutSignal(PUC_HANDLE hDevice, PUC_SIGNAL *pSignal)
This retrieves the synchronization signal output polarity for the device.
PUCRESULT WINAPI PUC_GetAdaptersInfoList(UINT32 *pNumAdapters, PPUC_NETWORK_INFO pAdaptersInfo)
This retrieves the list of network adapters on the PC. (GbE-2 only)
PUCRESULT WINAPI PUC_TeardownGPUDecode()
Releases memory used by GPU processing.
PUCRESULT WINAPI PUC_SetEPOCTime(PUC_HANDLE hDevice, UINT32 year, UINT32 month, UINT32 day, UINT32 hour, UINT32 minute, UINT32 second)
This sets the clock of the device by specifying the date and time. (GbE-2 only)
PUCRESULT WINAPI PUC_GetGPULastError(int &errorCode)
This retrieves the error code from the last GPU processing.
PUCRESULT WINAPI PUC_SetSyncOutMagnification(PUC_HANDLE hDevice, UINT32 nMagnification)
This sets the output magnification rate for the synchronization signal.
PUCRESULT WINAPI PUC_GetLEDMode(PUC_HANDLE hDevice, PUC_MODE *pMode)
This retrieves the LED state of the device.
PUCRESULT WINAPI PUC_GetDeviceVersion(PUC_HANDLE hDevice, UINT32 *pVersion)
This retrieves device version information.
PUCRESULT WINAPI PUC_GetDeviceName(PUC_HANDLE hDevice, UINT32 *pName)
This retrieves the device name.
PUCRESULT WINAPI PUC_SetFanState(PUC_HANDLE hDevice, PUC_MODE nState)
This sets the state of the device fan.
PUCRESULT WINAPI PUC_GetDeviceType(PUC_HANDLE hDevice, UINT32 *pType)
This retrieves the device type.
PUCRESULT WINAPI PUC_DecodeDCData(PUINT8 pDst, UINT32 nBlockX, UINT32 nBlockY, UINT32 nBlockCountX, UINT32 nBlockCountY, const PUINT8 pSrc)
Decodes the DC component of compressed image data.
PUCRESULT WINAPI PUC_GetMaxFramerate(PUC_HANDLE hDevice, UINT32 *pFramerate)
This retrieves the maximum framerate for the current resolution.
PUCRESULT WINAPI PUC_GetExposeTime(PUC_HANDLE hDevice, UINT32 *pExpOnTime, UINT32 *pExpOffTime)
This retrieves the exposure/non-exposure time of the device.
PUCRESULT WINAPI PUC_GetFramerateLimit(PUC_HANDLE hDevice, PPUC_FRAMERATE_LIMIT_INFO pLimitInfo)
This retrieves the framerate limit information.
PUCRESULT WINAPI PUC_SetTimeOfDay(PUC_HANDLE hDevice, UINT64 epochSeconds)
This sets the clock of the device by specifying the epoch time. (GbE-2 only)
PUCRESULT WINAPI PUC_BeginXferData(PUC_HANDLE hDevice, RECEIVE_CALLBACK callback, void *arg)
This starts continuous transfer.
struct PUC_FRAMERATE_LIMIT_INFO * PPUC_FRAMERATE_LIMIT_INFO
PUCRESULT WINAPI PUC_SetGeneralInSignal(PUC_HANDLE hDevice, int portNo, PUC_GENERAL_IN_SIGNAL_TYPE type)
This assigns a signal type to the specified general input port. (GbE-2 only)
PUCRESULT WINAPI PUC_GetMaxXferDataSize(PUC_HANDLE hDevice, UINT32 *pDataSize)
This retrieves the maximum size of transfer data from the device.
PUCRESULT WINAPI PUC_GetQuantization2(PUC_HANDLE hDevice, unsigned short *pQvals)
This retrieves the whole quantization table of the device at once.
PUCRESULT WINAPI PUC_SetExposeDelay(PUC_HANDLE hDevice, UINT32 nDelay)
This sets the exposure delay of the device.
PUCRESULT WINAPI PUC_SetPPOutWidth(PUC_HANDLE hDevice, UINT32 nWidth)
This sets the output width of the PP OUT (PTP pulse per second) signal for the device....
PUCRESULT WINAPI PUC_OpenDevice(UINT32 nDeviceNo, PPUC_HANDLE pDeviceHandle)
This opens the device. (UC1 only)
PUCRESULT WINAPI PUC_GetSyncInDelay(PUC_HANDLE hDevice, UINT32 *pDelay)
This retrieves the delay of the SYNC IN signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_SetSyncOutDelay(PUC_HANDLE hDevice, UINT32 nDelay)
This sets the delay value of device's synchronization signal output in nsec.
PUCRESULT WINAPI PUC_GetSupportedGeneralOutSignal(PUC_HANDLE hDevice, PUC_GENERAL_OUT_SIGNAL_TYPE GenOutType, bool *isSupported)
This retrieves whether the device supports the specified general output signal type....
PUCRESULT WINAPI PUC_SetSyncOutSignal(PUC_HANDLE hDevice, PUC_SIGNAL nSignal)
This sets the synchronous signal output polarity for the device.
PUCRESULT WINAPI PUC_GetIPAddress(PUC_HANDLE hDevice, UINT32 *pIPAddress)
This retrieves the IP address of the device from the cache. (GbE-2 only)
PUCRESULT WINAPI PUC_SetXferTimeOut(PUC_HANDLE hDevice, UINT32 nSingleXferTimeOut, UINT32 nContinuousXferTimeOut)
This sets the timeout duration (ms) for data transfer from the device.
PUCRESULT WINAPI PUC_GetGeneralOutSignal(PUC_HANDLE hDevice, int portNo, PUC_GENERAL_OUT_SIGNAL_TYPE *type)
This retrieves the signal type assigned to the specified general output port. (GbE-2 only)
PUCRESULT WINAPI PUC_GetSingleXferData(PUC_HANDLE hDevice, PPUC_XFER_DATA_INFO pXferData)
This retrieves the current live image from the device.
struct PUC_NETWORK_INFO * PPUC_NETWORK_INFO
PUCRESULT WINAPI PUC_GetFramerateShutter(PUC_HANDLE hDevice, UINT32 *pFramerate, UINT32 *pShutterSpeedFps)
This retrieves the framerate and the shutter speed (1/fps) for the device.
PUCRESULT WINAPI PUC_DecodeDCTData(PINT16 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals)
This unpacks the compressed image data to DCT coefficients.
RECEIVE_CALLBACK RECIEVE_CALLBACK
Deprecated alias kept for backward compatibility. Use RECEIVE_CALLBACK.
Definition PUCLIB.h:172
PUCRESULT WINAPI PUC_Initialize()
This initializes the library.
PUCRESULT WINAPI PUC_SetNetworkInfo(PUC_HANDLE hDevice, PUC_NETWORK_INFO_TYPE type, UINT32 value)
This changes the network setting of the opened device. (GbE-2 only)
PUCRESULT WINAPI PUC_SetTrigInDelay(PUC_HANDLE hDevice, UINT32 nDelay)
This sets the delay of the TRIG IN signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_SetTrigOutWidth(PUC_HANDLE hDevice, UINT32 nWidth)
This sets the output width of the TRIG OUT signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_GetSerialNo(PUC_HANDLE hDevice, UINT64 *pSerialNo)
This retrieves the device serial number.
PUCRESULT WINAPI PUC_GetTrigOutWidth(PUC_HANDLE hDevice, UINT32 *pWidth)
This retrieves the output width of the TRIG OUT signal for the device. (GbE-2 only)
PUCRESULT WINAPI PUC_ResetDevice(UINT32 nDeviceNo)
This resets the device. (UC1 only)
PUCRESULT WINAPI PUC_SetGeneralOutSignal(PUC_HANDLE hDevice, int portNo, PUC_GENERAL_OUT_SIGNAL_TYPE type)
This assigns a signal type to the specified general output port. (GbE-2 only)
struct PUC_RESO_LIMIT_INFO * PPUC_RESO_LIMIT_INFO
PUCRESULT WINAPI PUC_ForceSetNetworkSetting(UINT32 nAdapterIPaddress, const PPUC_NETWORK_INFO pTargetInfo, UINT32 nForTemporary, PPUC_NETWORK_INFO pResultInfo)
This forcibly writes network settings to a device that is not opened. (GbE-2 only)
PUCRESULT WINAPI PUC_EndXferData(PUC_HANDLE hDevice)
This finishes continuous transfer.
PUCRESULT WINAPI PUC_GetPPOutWidth(PUC_HANDLE hDevice, UINT32 *pWidth)
This retrieves the output width of the PP OUT (PTP pulse per second) signal for the device....
PUCRESULT WINAPI PUC_SetQuantization2(PUC_HANDLE hDevice, unsigned short *pQvals)
This sets the whole quantization table of the device at once.
PUCRESULT WINAPI PUC_GetTimeCode2EPOC(PUINT8 pSrc, time_t *time)
This converts the time code in the transfer data into epoch time. (GbE-2 only)
PUCRESULT WINAPI PUC_GetMinExposeTime(PUC_HANDLE hDevice, UINT32 *pMinExpOnTime, UINT32 *pMinExpOffTime)
This retrieves the minimum exposure/non-exposure time of the device. If it is less than 100nsec,...
PUCRESULT WINAPI PUC_OpenDevice2(UINT32 index, PPUC_HANDLE pDeviceHandle)
This opens a device found by the last device search.
PUCRESULT WINAPI PUC_SetPPOutDelay(PUC_HANDLE hDevice, UINT32 nDelay)
This sets the delay of the PP OUT (PTP pulse per second) signal for the device. (GbE-2 only)
Structure for specifying device search conditions (for PUC_DetectDevice2)
Definition PUCLIB.h:53
UINT32 nDetectMode
Search method (PUC_DETECT_MODE_DISCOVERY / PUC_DETECT_MODE_TARGET_IP). PUC_DETECT_MODE_DISCOVERY(0) i...
Definition PUCLIB.h:65
UINT32 nDeviceTypeFlags
Combination of search target flags (PUC_DETECT_TARGET_UC1 / PUC_DETECT_TARGET_GBE2)....
Definition PUCLIB.h:56
UINT32 nReserved[4]
Reserved for future use. Set to 0.
Definition PUCLIB.h:68
UINT32 nAdapterIPAddress
Adapter IP address used for network device search. 0 searches on all adapters. (GbE-2 only)
Definition PUCLIB.h:59
UINT32 nTargetIPAddress
Target device IP address. With PUC_DETECT_MODE_DISCOVERY, 0 searches all devices and a non-zero value...
Definition PUCLIB.h:62
Structure for storing device search results.
Definition PUCLIB.h:31
UINT32 nDeviceIPAddress[PUC_MAX_DEVICE]
Definition PUCLIB.h:43
UINT32 nDeviceType[PUC_MAX_DEVICE]
Definition PUCLIB.h:40
UINT32 nDeviceCount
Number of detected devices.
Definition PUCLIB.h:34
UINT32 nDeviceNoList[PUC_MAX_DEVICE]
List of device IDs found.
Definition PUCLIB.h:37
Structure for storing framerate limit values.
Definition PUCLIB.h:105
UINT32 nMaxFrameRate
Maximum Framerate.
Definition PUCLIB.h:112
UINT32 nMinFrameRate
Minimum Framerate.
Definition PUCLIB.h:108
A structure that stores parameters used in GPU decoding.
Definition PUCUTIL.h:37
UINT8 macAddress[PUC_MAC_ADDRESS_SIZE]
MAC address of the device.
Definition PUCLIB.h:157
UINT32 nDefaultGateway
Default gateway of the device.
Definition PUCLIB.h:153
UINT32 nIPAddress
IP address of the device.
Definition PUCLIB.h:145
UINT32 nSubnetmask
Subnet mask of the device.
Definition PUCLIB.h:149
UINT32 nDeviceCode
Device code.
Definition PUCLIB.h:161
Structure for storing resolution limit values.
Definition PUCLIB.h:78
UINT32 nUnitWidth
Minimum unit for altering the horizontal resolution.
Definition PUCLIB.h:93
UINT32 nMaxHeight
Maximum vertical resolution.
Definition PUCLIB.h:84
UINT32 nMaxWidth
Maximum horizontal resolution.
Definition PUCLIB.h:81
UINT32 nUnitHeight
Minimum unit for altering the vertical resolution.
Definition PUCLIB.h:96
UINT32 nMinHeight
Minimum vertical resolution.
Definition PUCLIB.h:90
UINT32 nMinWidth
Minimum horizontal resolution.
Definition PUCLIB.h:87
Structure for storing the information of transfer data.
Definition PUCLIB.h:121
UINT32 nDataSize
The size of transfer data. Stores the size of transfer data.
Definition PUCLIB.h:127
UINT8 isDamaged
Indicates whether the transfer data is damaged.
Definition PUCLIB.h:134
USHORT nSequenceNo
The sequence number of transfer data.
Definition PUCLIB.h:130
PUINT8 pData
Location for unpacked transfer data. It is necessary to allocate the required amount in advance....
Definition PUCLIB.h:124