| 61 | /////////////////////////////////////////////////////////////////////////////// |
| 62 | |
| 63 | EResult CreateSpecificVpInterface (IWelsVPc** pCtx) { |
| 64 | EResult ret = RET_FAILED; |
| 65 | IWelsVP* pWelsVP = NULL; |
| 66 | |
| 67 | ret = CreateSpecificVpInterface (&pWelsVP); |
| 68 | if (ret == RET_SUCCESS) { |
| 69 | IWelsVPc* pVPc = new IWelsVPc; |
| 70 | if (pVPc) { |
| 71 | pVPc->Init = Init; |
| 72 | pVPc->Uninit = Uninit; |
| 73 | pVPc->Flush = Flush; |
| 74 | pVPc->Process = Process; |
| 75 | pVPc->Get = Get; |
| 76 | pVPc->Set = Set; |
| 77 | pVPc->SpecialFeature = SpecialFeature; |
| 78 | pVPc->pCtx = WelsStaticCast (void*, pWelsVP); |
| 79 | *pCtx = pVPc; |
| 80 | } else |
| 81 | ret = RET_OUTOFMEMORY; |
| 82 | } |
| 83 | |
| 84 | return ret; |
| 85 | } |
| 86 | |
| 87 | EResult DestroySpecificVpInterface (IWelsVPc* pCtx) { |
| 88 | if (pCtx) { |
nothing calls this directly
no outgoing calls
no test coverage detected