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

Function LTRRecoveryRequest

test/api/encode_decode_api_test.cpp:239–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void LTRRecoveryRequest (ISVCDecoder* pDecoder, ISVCEncoder* pEncoder, SLTRRecoverRequest* p_LTR_Recover_Request,
240 long hr, bool m_P2PmodeFlag) {
241 long bKLost = IsKeyFrameLost (pDecoder, p_LTR_Recover_Request, hr);
242 if (m_P2PmodeFlag) {
243 if (bKLost == IDR_RECOVERY_REQUEST) {
244 pEncoder->ForceIntraFrame (true);
245 } else if (bKLost == LTR_RECOVERY_REQUEST) {
246 p_LTR_Recover_Request->uiFeedbackType = LTR_RECOVERY_REQUEST;
247 pDecoder->GetOption (DECODER_OPTION_FRAME_NUM, &p_LTR_Recover_Request->iCurrentFrameNum);
248 pDecoder->GetOption (DECODER_OPTION_IDR_PIC_ID, &p_LTR_Recover_Request->uiIDRPicId);
249 pEncoder->SetOption (ENCODER_LTR_RECOVERY_REQUEST, p_LTR_Recover_Request);
250 }
251 } else {
252 if (bKLost == IDR_RECOVERY_REQUEST || bKLost == LTR_RECOVERY_REQUEST) {
253 p_LTR_Recover_Request->uiFeedbackType = IDR_RECOVERY_REQUEST;
254 pEncoder->ForceIntraFrame (true);
255 }
256 }
257}
258
259void LTRMarkFeedback (ISVCDecoder* pDecoder, ISVCEncoder* pEncoder, SLTRMarkingFeedback* p_LTR_Marking_Feedback,
260 long hr) {

Callers 4

TEST_PFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85

Calls 4

IsKeyFrameLostFunction · 0.85
ForceIntraFrameMethod · 0.45
GetOptionMethod · 0.45
SetOptionMethod · 0.45

Tested by

no test coverage detected