| 112 | } |
| 113 | |
| 114 | void 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 | |
| 130 | void EncoderInterfaceTest::EncodeOneIDRandP (ISVCEncoder* pPtrEnc) { |
| 131 | int iResult; |
nothing calls this directly
no test coverage detected