| 179 | } |
| 180 | |
| 181 | TEST (EncoderMbTest, TestQuantTable) { |
| 182 | CMemoryAlign cMemoryAlign (0); |
| 183 | |
| 184 | int16_t iWidth = 16; |
| 185 | int16_t iHeight = 16; |
| 186 | |
| 187 | uint8_t* pSrc = (uint8_t*)cMemoryAlign.WelsMalloc (iWidth * iHeight, "quant_src"); |
| 188 | uint8_t* pPred = (uint8_t*)cMemoryAlign.WelsMalloc (iWidth * iHeight, "quant_pred"); |
| 189 | int16_t* pDct = (int16_t*)cMemoryAlign.WelsMalloc (64 * sizeof (int16_t), "Dct Buffer"); |
| 190 | int16_t* pDctCompare = (int16_t*)cMemoryAlign.WelsMalloc (64 * sizeof (int16_t), "DctCompare Buffer"); |
| 191 | |
| 192 | for (int32_t iQP = 0; iQP < 51; iQP++) { |
| 193 | TestQuant (iQP, pSrc, pPred, pDct, pDctCompare, iWidth, iHeight); |
| 194 | } |
| 195 | |
| 196 | cMemoryAlign.WelsFree (pSrc, "quant_src"); |
| 197 | cMemoryAlign.WelsFree (pPred, "quant_pred"); |
| 198 | cMemoryAlign.WelsFree (pDct, "Dct Buffer"); |
| 199 | cMemoryAlign.WelsFree (pDctCompare, "DctCompare Buffer"); |
| 200 | } |
nothing calls this directly
no test coverage detected