SDC C-Project CF Review 프로그램
LYW
2021-06-28 cf6a4019e9efbc0503bd3fbcf6f951565d028972
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
#pragma once
 
class AFX_EXT_CLASS CAssemUtil
{
public:
    // AssemÀ» ¾²´Â ±è¿¡ ¿©±â´Ù ¸¸µç´Ù.
    static void ByteToShort( unsigned char* pSrc, short* pDest, int nSize);
    // ÇÇÄ¡ ±¸Çϱâ, º¯¼ö¸¦ Á¿ì Å½»ö °³³äÀ¸·Î ÀçÆí
    static void CheckPitchSmall16(int pitch16, int searchCount, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &findPitch16, int &iPitch, int &spr);
    static void CheckPitchSmallVert16(int pitch16, int searchCount, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &findPitch16, int &iPitch, int &spr);
 
    // ÀåÁֱ⠼ַç¼Ç : Vertical À̸鼭 TiltµÈ À̹ÌÁö¿¡¼­ Dynamic ÇÇÄ¡ ±¸Çϱâ
    // 1. Vertical Pitch & Tilt ±¸Çϱâ
    static void CheckPitchSmallVPT16(int pitchStart16, int pitchEnd16, int tiltStart16, int tiltEnd16, int left, int right, int top, int bottom, BYTE *pData, int buffWidth, int Dpc_suppress, short* conBuff, short* conBuff2, int &findPitch16, int &findTilt16);
    // 2. Vertical Pitch¿¡¼­ Tilt ±¸Çϱâ
    static void CheckPitchSmallVP_T16(int pitch16, int tiltStart16, int tiltEnd16, int left, int right, int top, int bottom, BYTE *pData, int buffWidth, int Dpc_suppress, short* conBuff, short* conBuff2, int &findTilt16);
    // 3. Tilt ¿¡¼­ Vertical Pitch ±¸Çϱâ
    static void CheckPitchSmallVT_P16(int pitchStart16, int pitchEnd16, int Tilt16, int left, int right, int top, int bottom, BYTE *pData, int buffWidth, int Dpc_suppress, short* conBuff, short* conBuff2, int &findPitch16);
    static BOOL CheckPitchSmallVT_P16(int pitchStart16, int pitchEnd16, int Tilt16, int left, int right, int top, int bottom, BYTE *pData, int buffWidth, int Dpc_suppress, short* conBuff, short* conBuff2, int &findPitch16, int PitchStep);
 
 
 
 
    // start ¿Í end°¡ integer·Î µÇ¾î ÀÖ´Ù. 3.0À» °Ë»çÇÏ·Á¸é 48¹ø(3*16)ÀÇ °Ë»ç¸¦ ¼öÇàÇÑ´Ù.
    // sub pixelÀÇ ±âº»´ÜÀ§´Â 1/16 ÀÌ´Ù.
    static void CheckPitch(int StartPitch, int EndPitch, int Spr, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &rPitch, int &rfSpr);
    // ÃÖÃÊ pitch´Â start~end±îÁö °Ë»çÇϳª, ÇÇÄ¡ º¯È­°¡ ±Þ°ÝÇÏÁö ¾Ê±â¶§¹®¿¡ ´ÙÀ½ À§Ä¡ÀÇ ÇÇÄ¡´Â 1/16 ´ÜÀ§·Î ÇÇÄ¡ °Ë»ç ¼öÇà
    static void CheckPitchSmall(int StartPitch, int EndPitch, int Spr, int fSpr, int sSpr, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &rPitch, int &rfSpr);
    // ÃÖÃÊ pitchºÎÅÍ count¸¦ ÁÙ¿© ³ª°£´Ù. ÀԷµÈÇÇÄ¡´Â 16¹èÇÑ int°ªÀÌ´Ù.
    static void CheckPitchPixel(int startPitch, int endPitch, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &iPitch);
    static void CheckPitchEcho(int StartPitch, int EndPitch, int Spr, int left, int top, int width, int height, BYTE *pData, int buffWidth, int Dpc_suppress, int &rPitch, int &rfSpr);
 
 
};