MCPcopy Create free account
hub / github.com/cisco/openh264 / UpdateBlockIdcForScreen

Method UpdateBlockIdcForScreen

codec/encoder/core/src/wels_preprocess.cpp:1277–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275
1276
1277int32_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

Callers 1

UpdateBlockStaticFunction · 0.80

Calls 3

SetMethod · 0.45
ProcessMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected