14GX_UTILITY_NAMESPACE_BEGIN()
32 class GxReceiveThread :
public GxThread
39 GX_RTTI_ABSTRACT_CLASS(GxReceiveThread,
GxThread)
50 GxReceiveThread(
void) {}
71 GxUnitHudWebCamera(
void);
73 ~GxUnitHudWebCamera(
void)
override {}
75 void cleanup(
void)
override;
84 b32 setup(
void)
override;
86 void asyncUpdate(
void)
override;
88 void sequentialUpdate(
void)
override;
90 static void getDeviceIndexes(
GxArray& list, u32 maxCount = 16);
95 void updateRow(u32 index);
104 constexpr s32 getDeviceIndex(
void)
const {
return _deviceIndex; }
106 constexpr void setDeviceIndex(s32 index) { _deviceIndex = index; }
108 GX_FORCE_INLINE
b32 isAutoSize(
void)
const {
return _isAutoSize; }
110 GX_FORCE_INLINE
void setAutoSize(
b32 enable) { _isAutoSize = enable; }
112 GX_FORCE_INLINE
b32 isUseWorkerThread(
void)
const {
return _isUseWorkerThread; }
114 GX_FORCE_INLINE
void setUseWorkerThread(
b32 enable) { _isUseWorkerThread = enable; }
116 constexpr u32 getUseWorkerThreadCount(
void)
const {
return _useWorkerThreadCount; }
118 GX_FORCE_INLINE
void setUseWorkerThreadCount(u32 count) { _useWorkerThreadCount =
GxMath::getMax(0u,
GxMath::getMin(count, getGxSysMain()->getSequentialThreadManager()->getMaxThread())); }
126 cv::VideoCapture _capture;
130 s32 _deviceIndexBefore;
134 b32 _isUseWorkerThread;
135 u32 _useWorkerThreadCount;
142 GxReceiveThread* _pReceiveThread;
143 b32 _isStopRequestThread;
150GX_UTILITY_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE(__CLASS__)
GxClassBase継承の禁止宣言
Definition GxBase.h:240
@ RENDER_BUFFER_COUNT_MAX
トリプルバッファリング
Definition GxRender.h:20
配列クラス
Definition GxArray.h:18
static GX_FORCE_INLINE T getMax(const T value0, const T value1)
大きいほうを取得
Definition GxMath.h:174
static GX_FORCE_INLINE T getMin(const T value0, const T value1)
小さいほうを取得
Definition GxMath.h:172
スレッドクラス
Definition GxThread.h:177
virtual void threadMain(void *pArgument)=0
メインループ
HUD描画画像ユニット
Definition GxUnitHudImageRender.h:18
サイズ
Definition GxStruct.h:730
32bitブーリアン
Definition GxDefine.h:173