bool is one of the built in, standard types in C++, there's no need for a typedef for it.
Showing the changes to codec/processing/src (5 of 82 files). Show all
Unified · Split
| @@ -201,7 +201,7 @@ inline int32_t CBackgroundDetection::CalculateAsdChromaEdge (uint8_t* pOriRef, u · 200 unmodified lines | |||
| 201 | return WELS_ABS (ASD); | 201 | return WELS_ABS (ASD); |
| 202 | } | 202 | } |
| 203 | 203 | ||
| 204 | inline bool_t CBackgroundDetection::ForegroundDilation23Luma (SBackgroundOU* pBackgroundOU, | 204 | inline bool CBackgroundDetection::ForegroundDilation23Luma (SBackgroundOU* pBackgroundOU, |
| 205 | SBackgroundOU* pOUNeighbours[]) { | 205 | SBackgroundOU* pOUNeighbours[]) { |
| 206 | SBackgroundOU* pOU_L = pOUNeighbours[0]; | 206 | SBackgroundOU* pOU_L = pOUNeighbours[0]; |
| 207 | SBackgroundOU* pOU_R = pOUNeighbours[1]; | 207 | SBackgroundOU* pOU_R = pOUNeighbours[1]; |
| @@ -234,7 +234,7 @@ inline bool_t CBackgroundDetection::ForegroundDilation23Luma (SBackgroundOU* pBa · 26 unmodified lines | |||
| 234 | return 0; | 234 | return 0; |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | inline bool_t CBackgroundDetection::ForegroundDilation23Chroma (int8_t iNeighbourForegroundFlags, | 237 | inline bool CBackgroundDetection::ForegroundDilation23Chroma (int8_t iNeighbourForegroundFlags, |
| 238 | int32_t iStartSamplePos, int32_t iPicStrideUV, vBGDParam* pBgdParam) { | 238 | int32_t iStartSamplePos, int32_t iPicStrideUV, vBGDParam* pBgdParam) { |
| 239 | static const int8_t kaOUPos[4] = {OU_LEFT, OU_RIGHT, OU_TOP, OU_BOTTOM}; | 239 | static const int8_t kaOUPos[4] = {OU_LEFT, OU_RIGHT, OU_TOP, OU_BOTTOM}; |
| 240 | int32_t aEdgeOffset[4] = {0, BGD_OU_SIZE_UV - 1, 0, iPicStrideUV* (BGD_OU_SIZE_UV - 1)}; | 240 | int32_t aEdgeOffset[4] = {0, BGD_OU_SIZE_UV - 1, 0, iPicStrideUV* (BGD_OU_SIZE_UV - 1)}; |
| @@ -83,9 +83,9 @@ class CBackgroundDetection : public IStrategy { · 82 unmodified lines | |||
| 83 | inline SBackgroundOU* AllocateOUArrayMemory (int32_t iWidth, int32_t iHeight); | 83 | inline SBackgroundOU* AllocateOUArrayMemory (int32_t iWidth, int32_t iHeight); |
| 84 | inline void FreeOUArrayMemory(); | 84 | inline void FreeOUArrayMemory(); |
| 85 | inline int32_t CalculateAsdChromaEdge (uint8_t* pOriRef, uint8_t* pOriCur, int32_t iStride); | 85 | inline int32_t CalculateAsdChromaEdge (uint8_t* pOriRef, uint8_t* pOriCur, int32_t iStride); |
| 86 | inline bool_t ForegroundDilation23Luma (SBackgroundOU* pBackgroundOU, | 86 | inline bool ForegroundDilation23Luma (SBackgroundOU* pBackgroundOU, |
| 87 | SBackgroundOU* pOUNeighbours[]); //Foreground_Dilation_2_3_Luma | 87 | SBackgroundOU* pOUNeighbours[]); //Foreground_Dilation_2_3_Luma |
| 88 | inline bool_t ForegroundDilation23Chroma (int8_t iNeighbourForegroundFlags, int32_t iStartSamplePos, | 88 | inline bool ForegroundDilation23Chroma (int8_t iNeighbourForegroundFlags, int32_t iStartSamplePos, |
| 89 | int32_t iPicStrideUV, vBGDParam* pBgdParam);//Foreground_Dilation_2_3_Chroma | 89 | int32_t iPicStrideUV, vBGDParam* pBgdParam);//Foreground_Dilation_2_3_Chroma |
| 90 | inline void ForegroundDilation (SBackgroundOU* pBackgroundOU, SBackgroundOU* pOUNeighbours[], vBGDParam* pBgdParam, | 90 | inline void ForegroundDilation (SBackgroundOU* pBackgroundOU, SBackgroundOU* pOUNeighbours[], vBGDParam* pBgdParam, |
| 91 | int32_t iChromaSampleStartPos); | 91 | int32_t iChromaSampleStartPos); |
| @@ -220,8 +220,8 @@ EResult CVpFrameWork::SpecialFeature (int32_t iType, void* pIn, void* pOut) { · 219 unmodified lines | |||
| 220 | return eReturn; | 220 | return eReturn; |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | bool_t CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& pDstPixMap) { | 223 | bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& pDstPixMap) { |
| 224 | bool_t eReturn = FALSE; | 224 | bool eReturn = FALSE; |
| 225 | 225 | ||
| 226 | if (eMethod == METHOD_NULL) | 226 | if (eMethod == METHOD_NULL) |
| 227 | goto exit; | 227 | goto exit; |
| @@ -92,7 +92,7 @@ class IStrategy : public IWelsVP { · 91 unmodified lines | |||
| 92 | EMethods m_eMethod; | 92 | EMethods m_eMethod; |
| 93 | EVideoFormat m_eFormat; | 93 | EVideoFormat m_eFormat; |
| 94 | int32_t m_iIndex; | 94 | int32_t m_iIndex; |
| 95 | bool_t m_bInit; | 95 | bool m_bInit; |
| 96 | }; | 96 | }; |
| 97 | 97 | ||
| 98 | class CVpFrameWork : public IWelsVP { | 98 | class CVpFrameWork : public IWelsVP { |
| @@ -116,7 +116,7 @@ class CVpFrameWork : public IWelsVP { · 17 unmodified lines | |||
| 116 | EResult SpecialFeature (int32_t iType, void* pIn, void* pOut); | 116 | EResult SpecialFeature (int32_t iType, void* pIn, void* pOut); |
| 117 | 117 | ||
| 118 | private: | 118 | private: |
| 119 | bool_t CheckValid (EMethods eMethod, SPixMap& sSrc, SPixMap& sDst); | 119 | bool CheckValid (EMethods eMethod, SPixMap& sSrc, SPixMap& sDst); |
| 120 | IStrategy* CreateStrategy (EMethods eMethod, int32_t iCpuFlag); | 120 | IStrategy* CreateStrategy (EMethods eMethod, int32_t iCpuFlag); |
| 121 | 121 | ||
| 122 | private: | 122 | private: |
| @@ -74,7 +74,6 @@ typedef unsigned __int64 uint64_t ; · 73 unmodified lines | |||
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | typedef char str_t ; // [comment]: specific use plain char only for character parameters | 76 | typedef char str_t ; // [comment]: specific use plain char only for character parameters |
| 77 | typedef bool bool_t ; | ||
| 78 | 77 | ||
| 79 | enum { | 78 | enum { |
| 80 | FALSE = 0, | 79 | FALSE = 0, |