| 192 | } |
| 193 | |
| 194 | EResult CVpFrameWork::Set (int32_t iType, void* pParam) { |
| 195 | EResult eReturn = RET_SUCCESS; |
| 196 | int32_t iCurIdx = WelsStaticCast (int32_t, WelsVpGetValidMethod (iType)) - 1; |
| 197 | |
| 198 | if (!pParam) |
| 199 | return RET_INVALIDPARAM; |
| 200 | |
| 201 | WelsMutexLock (&m_mutes); |
| 202 | |
| 203 | IStrategy* pStrategy = m_pStgChain[iCurIdx]; |
| 204 | if (pStrategy) |
| 205 | eReturn = pStrategy->Set (0, pParam); |
| 206 | |
| 207 | WelsMutexUnlock (&m_mutes); |
| 208 | |
| 209 | return eReturn; |
| 210 | } |
| 211 | |
| 212 | EResult CVpFrameWork::SpecialFeature (int32_t iType, void* pIn, void* pOut) { |
| 213 | EResult eReturn = RET_SUCCESS; |
no test coverage detected