| 1275 | |
| 1276 | |
| 1277 | int32_t CWelsPreProcess::UpdateBlockIdcForScreen (uint8_t* pCurBlockStaticPointer, const SPicture* kpRefPic, |
| 1278 | const SPicture* kpSrcPic) { |
| 1279 | int32_t iSceneChangeMethodIdx = METHOD_SCENE_CHANGE_DETECTION_SCREEN; |
| 1280 | SSceneChangeResult sSceneChangeResult = {SIMILAR_SCENE, 0, 0, NULL}; |
| 1281 | sSceneChangeResult.pStaticBlockIdc = pCurBlockStaticPointer; |
| 1282 | sSceneChangeResult.sScrollResult.bScrollDetectFlag = false; |
| 1283 | |
| 1284 | SPixMap sSrcMap = { { 0 } }; |
| 1285 | SPixMap sRefMap = { { 0 } }; |
| 1286 | InitPixMap (kpSrcPic, &sSrcMap); |
| 1287 | InitPixMap (kpRefPic, &sRefMap); |
| 1288 | |
| 1289 | m_pInterfaceVp->Set (iSceneChangeMethodIdx, (void*) (&sSceneChangeResult)); |
| 1290 | int32_t iRet = m_pInterfaceVp->Process (iSceneChangeMethodIdx, &sSrcMap, &sRefMap); |
| 1291 | if (iRet == 0) { |
| 1292 | m_pInterfaceVp->Get (iSceneChangeMethodIdx, (void*)&sSceneChangeResult); |
| 1293 | return 0; |
| 1294 | } |
| 1295 | return iRet; |
| 1296 | } |
| 1297 | |
| 1298 | /*! |
| 1299 | * \brief exchange two picture pData planes |
no test coverage detected