SDC C-Project CF Review 프로그램
LYW
2021-08-09 b354c153b0074e5d54371bc05b12edbe8e613a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
 
#include "CHThreadPools/WorkThreadPools.h"
#include "CHAutoLightControls/AutoLightControlParam.h"
 
class CAutoLightThreadData : public CWorkThreadData
{
public:
    CAutoLightThreadData(PVOID pPtr) : CWorkThreadData(pPtr)
    {
        controlParam.Reset();
    }
 
    virtual ~CAutoLightThreadData()
    {
        controlParam.Reset();
    }
 
public:
    SAutoLightParam    controlParam;
};
 
class AFX_EXT_CLASS CAutoLightControl : public CWorkThreadPools
{
public:
    CAutoLightControl(int nIndex=0);
    virtual ~CAutoLightControl(void);
    void SetALC2P(IAutoLightControl2Paraent* pALC2P)            { m_pALC2P = pALC2P; }
    int ProcessAutoLight(const SAutoLightParam& controlParam);
 
    static double GetAverageValue(BYTE* pImage, int nWidth, int nHeight, int nWidthStep);
 
protected:
    virtual void WorkThreadProcess(PVOID pParameter);
 
protected:
    int                            m_nIndex;
    IAutoLightControl2Paraent*    m_pALC2P;
};