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

Method EncodeOneFrame

test/encoder/EncUT_EncoderExt.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void EncoderInterfaceTest::EncodeOneFrame (SEncParamBase* pEncParamBase) {
115 int iResult;
116 iResult = pPtrEnc->Initialize (pEncParamBase);
117 EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
118 PrepareOneSrcFrame();
119 iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
120 EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
121 EXPECT_EQ (sFbi.eFrameType, static_cast<int> (videoFrameTypeIDR));
122
123 iResult = pPtrEnc->GetOption (ENCODER_OPTION_SVC_ENCODE_PARAM_BASE, pEncParamBase);
124 EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
125
126 pPtrEnc->Uninitialize();
127 EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
128}
129
130void EncoderInterfaceTest::EncodeOneIDRandP (ISVCEncoder* pPtrEnc) {
131 int iResult;

Callers

nothing calls this directly

Calls 4

InitializeMethod · 0.45
EncodeFrameMethod · 0.45
GetOptionMethod · 0.45
UninitializeMethod · 0.45

Tested by

no test coverage detected