#include #include extern "C" { #include #include #include #include #include #include #include } using namespace std; class FFCuContextManager{ public: static FFCuContextManager* getInstance(){ static FFCuContextManager* singleton = nullptr; if (singleton == nullptr){ singleton = new FFCuContextManager(); } return singleton; } AVBufferRef *getCuCtx(string gpuid); private: FFCuContextManager(){} ~FFCuContextManager(); private: map ctxMap; };