| 106 | } |
| 107 | |
| 108 | long Initialize (const SDecodingParam* pParam, PWelsDecoderContext pCtx, SLogContext* pLogCtx) { |
| 109 | int iRet = ERR_NONE; |
| 110 | if (pParam == NULL) { |
| 111 | return cmInitParaError; |
| 112 | } |
| 113 | |
| 114 | // H.264 decoder initialization,including memory allocation,then open it ready to decode |
| 115 | iRet = InitDecoder (pParam, pCtx, pLogCtx); |
| 116 | if (iRet) |
| 117 | return iRet; |
| 118 | |
| 119 | return cmResultSuccess; |
| 120 | } |
| 121 | |
| 122 | class DecoderParseSyntaxTest : public ::testing::Test { |
| 123 | public: |