TRUE/FALSE has intentionally been left in use for the few platform specific APIs that define these constants themselves and expect them to be used, for consistency.
Showing the changes to codec/processing/src (3 of 22 files). Show all
Unified · Split
| @@ -221,7 +221,7 @@ EResult CVpFrameWork::SpecialFeature (int32_t iType, void* pIn, void* pOut) { · 220 unmodified lines | |||
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& pDstPixMap) { | 223 | bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& pDstPixMap) { |
| 224 | bool eReturn = FALSE; | 224 | bool eReturn = false; |
| 225 | 225 | ||
| 226 | if (eMethod == METHOD_NULL) | 226 | if (eMethod == METHOD_NULL) |
| 227 | goto exit; | 227 | goto exit; |
| @@ -253,7 +253,7 @@ bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& · 25 unmodified lines | |||
| 253 | || pDstPixMap.sRect.iRectLeft >= pDstPixMap.sRect.iRectWidth || pDstPixMap.sRect.iRectWidth > pDstPixMap.iStride[0]) | 253 | || pDstPixMap.sRect.iRectLeft >= pDstPixMap.sRect.iRectWidth || pDstPixMap.sRect.iRectWidth > pDstPixMap.iStride[0]) |
| 254 | goto exit; | 254 | goto exit; |
| 255 | } | 255 | } |
| 256 | eReturn = TRUE; | 256 | eReturn = true; |
| 257 | 257 | ||
| 258 | exit: | 258 | exit: |
| 259 | return eReturn; | 259 | return eReturn; |
| @@ -62,7 +62,7 @@ class IStrategy : public IWelsVP { · 61 unmodified lines | |||
| 62 | m_eMethod = METHOD_NULL; | 62 | m_eMethod = METHOD_NULL; |
| 63 | m_eFormat = VIDEO_FORMAT_I420; | 63 | m_eFormat = VIDEO_FORMAT_I420; |
| 64 | m_iIndex = 0; | 64 | m_iIndex = 0; |
| 65 | m_bInit = FALSE; | 65 | m_bInit = false; |
| 66 | }; | 66 | }; |
| 67 | 67 | ||
| 68 | virtual ~IStrategy() {} | 68 | virtual ~IStrategy() {} |
| @@ -73,11 +73,6 @@ typedef unsigned __int64 uint64_t ; · 72 unmodified lines | |||
| 73 | 73 | ||
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | enum { | ||
| 77 | FALSE = 0, | ||
| 78 | TRUE = !FALSE | ||
| 79 | }; | ||
| 80 | |||
| 81 | WELSVP_NAMESPACE_END | 76 | WELSVP_NAMESPACE_END |
| 82 | 77 | ||
| 83 | #endif | 78 | #endif |