PUCLIB 1.6.0.0
PHOTRON USB Control Library
PUCUTIL.h
[詳解]
1#ifndef __PUCUTIL_H_
2#define __PUCUTIL_H_
3
4/*
5 * PUCUTIL.h
6 * PHOTRON INFINICAM Control SDK
7 *
8 * Copyright (C) 2023 PHOTRON LIMITED
9 */
10
11#include "PUCCONST.h"
12
13
14#ifdef PUCUTIL_EXPORTS
15#define DLL_EXPORT __declspec(dllexport)
16#else
17#define DLL_EXPORT __declspec(dllimport)
18#endif
19
20#ifndef DLLAPI
21#define DLLAPI extern "C"
22#endif
23
24
25
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
36typedef struct
37{
40 UINT32 width;
41
44 UINT32 height;
46
47
48namespace pucutil
49{
50
69DLL_EXPORT PUCRESULT WINAPI ExtractSequenceNo(const PUCHAR pData, UINT32 nWidth, UINT32 nHeight, PUSHORT pSeqNo);
70
101DLL_EXPORT PUCRESULT WINAPI DecodeData(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals);
102
137DLL_EXPORT PUCRESULT WINAPI DecodeDataMultiThread(PUINT8 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals, UINT32 nThreadCount);
138
169DLL_EXPORT PUCRESULT WINAPI DecodeDCTData(PINT16 pDst, UINT32 nX, UINT32 nY, UINT32 nWidth, UINT32 nHeight, UINT32 nLineBytes, const PUINT8 pSrc, const PUSHORT pQVals);
170
197DLL_EXPORT PUCRESULT WINAPI DecodeDCData(PUINT8 pDst, UINT32 nBlockX, UINT32 nBlockY, UINT32 nBlockCountX, UINT32 nBlockCountY, const PUINT8 pSrc);
198
207DLL_EXPORT PUCRESULT WINAPI GetAvailableGPUProcess();
208
219DLL_EXPORT PUCRESULT WINAPI SetupGPUDecode(PUC_GPU_SETUP_PARAM param);
220
231DLL_EXPORT PUCRESULT WINAPI TeardownGPUDecode();
232
256DLL_EXPORT PUCRESULT WINAPI DecodeGPU(bool download, unsigned char* pSrc, unsigned char** pDst, UINT32 lineBytes);
257
268DLL_EXPORT PUCRESULT WINAPI GetGPULastError(int& errorCode);
269
280DLL_EXPORT PUCRESULT WINAPI IsSetupGPUDecode(bool& status);
281
282#ifdef __cplusplus
283} // extern C
284} // namespace pucutil
285#endif
286
287#endif //__PUCUTIL_H
PUCRESULT
エラーコード
Definition: PUCCONST.h:102
#define DLL_EXPORT
Definition: PUCUTIL.h:17
struct PUC_GPU_SETUP_PARAM * PPUC_GPU_SETUP_PARAM
GPUデコードで使用するパラメータを格納する構造体
Definition: PUCUTIL.h:37
UINT32 width
GPU処理で扱う画像の解像度横幅
Definition: PUCUTIL.h:40
UINT32 height
GPU処理で扱う画像の解像度高さ
Definition: PUCUTIL.h:44