Showing the changes to codec/processing/src/downsample (1 of 54 files). Show all
Unified · Split
| @@ -139,14 +139,14 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 138 unmodified lines | |||
| 139 | 139 | ||
| 140 | int32_t CDownsampling::GetAlignedIndex (const int32_t kiSrcWidth) { | 140 | int32_t CDownsampling::GetAlignedIndex (const int32_t kiSrcWidth) { |
| 141 | int32_t iAlignIndex; | 141 | int32_t iAlignIndex; |
| 142 | if ((kiSrcWidth & 0x1f) == 0) // x32 | 142 | if ((kiSrcWidth & 0x1f) == 0) // x32 |
| 143 | iAlignIndex = 0; | 143 | iAlignIndex = 0; |
| 144 | else if ((kiSrcWidth & 0x0f) == 0) // x16 | 144 | else if ((kiSrcWidth & 0x0f) == 0) // x16 |
| 145 | iAlignIndex = 1; | 145 | iAlignIndex = 1; |
| 146 | else if ((kiSrcWidth & 0x07) == 0) // x8 | 146 | else if ((kiSrcWidth & 0x07) == 0) // x8 |
| 147 | iAlignIndex = 2; | 147 | iAlignIndex = 2; |
| 148 | else | 148 | else |
| 149 | iAlignIndex = 3; | 149 | iAlignIndex = 3; |
| 150 | return iAlignIndex; | 150 | return iAlignIndex; |
| 151 | } | 151 | } |
| 152 | 152 | ||