| 129 | class MotionEstimateRangeTest : public ::testing::Test { |
| 130 | public: |
| 131 | virtual void SetUp() { |
| 132 | |
| 133 | m_iWidth = 320; |
| 134 | m_iHeight = 240; |
| 135 | m_iWidthExt = m_iWidth + 2 * PADDING_LENGTH; |
| 136 | m_iHeightExt = m_iHeight + 2 * PADDING_LENGTH; |
| 137 | m_iMbWidth = m_iWidth >> 4; |
| 138 | m_iMbHeight = m_iHeight >> 4; |
| 139 | |
| 140 | m_iUsageType = 0; |
| 141 | m_iNumDependencyLayers = 1; |
| 142 | m_iMvRange = m_iUsageType ? EXPANDED_MV_RANGE : CAMERA_STARTMV_RANGE; |
| 143 | m_iMvdRange = (m_iUsageType ? EXPANDED_MVD_RANGE : ((m_iNumDependencyLayers == 1) ? CAMERA_MVD_RANGE : |
| 144 | CAMERA_HIGHLAYER_MVD_RANGE)); |
| 145 | m_uiMvdInterTableSize = (m_iMvdRange << 2); //intepel*4=qpel |
| 146 | m_uiMvdInterTableStride = 1 + (m_uiMvdInterTableSize << 1);//qpel_mv_range*2=(+/-); |
| 147 | m_uiMvdCacheAlignedSize = m_uiMvdInterTableStride * sizeof (uint16_t); |
| 148 | |
| 149 | m_pMa = new CMemoryAlign (16); |
| 150 | ASSERT_TRUE (NULL != m_pMa); |
| 151 | m_pMvdCostTable = (uint16_t*)m_pMa->WelsMallocz (52 * m_uiMvdCacheAlignedSize, "pMvdCostTable"); |
| 152 | ASSERT_TRUE (NULL != m_pMvdCostTable); |
| 153 | m_pRefStart = (uint8_t*)m_pMa->WelsMallocz (m_iWidthExt * m_iHeightExt, "reference frame "); |
| 154 | ASSERT_TRUE (NULL != m_pRefStart); |
| 155 | m_pSrc = (uint8_t*)m_pMa->WelsMallocz (m_iWidth * m_iHeight, "source frame"); |
| 156 | ASSERT_TRUE (NULL != m_pSrc); |
| 157 | |
| 158 | } |
| 159 | virtual void TearDown() { |
| 160 | if (!m_pMa) |
| 161 | return; |
nothing calls this directly
no test coverage detected