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

Function CreateSpecificVpInterface

codec/processing/src/common/WelsFrameWorkEx.cpp:63–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61///////////////////////////////////////////////////////////////////////////////
62
63EResult 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
87EResult DestroySpecificVpInterface (IWelsVPc* pCtx) {
88 if (pCtx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected