fcCLinkage fcExport fcIMP4Context* fcMP4CreateContext(fcMP4Config *conf) { #ifdef fcMP4SplitModule fcMP4InitializeModule(); if (fcMP4CreateContextImpl) { return fcMP4CreateContextImpl(*conf, fcGetGraphicsDevice()); } return nullptr; #else return fcMP4CreateContextImpl(*conf, fcGetGraphicsDevice()); #endif }
fcCLinkage fcExport fcIExrContext* fcExrCreateContext(fcExrConfig *conf) { #ifdef fcEXRSplitModule if (!fcExrModule) { fcExrModule = DLLLoad(fcEXRModuleName); if (fcExrModule) { (void*&)fcExrCreateContextImpl = DLLGetSymbol(fcExrModule, "fcExrCreateContextImpl"); } } return fcExrCreateContextImpl ? fcExrCreateContextImpl(*conf, fcGetGraphicsDevice()) : nullptr; #else return fcExrCreateContextImpl(*conf, fcGetGraphicsDevice()); #endif }
fcCLinkage fcExport fcIGifContext* fcGifCreateContext(fcGifConfig *conf) { // if (fcCreateGifContext == nullptr) { // // todo // } return fcCreateGifContext(*conf, fcGetGraphicsDevice()); }
fcCLinkage fcExport fcIExrContext* fcExrCreateContext(fcExrConfig *conf) { return fcCreateExrContext(*conf, fcGetGraphicsDevice()); }
fcAPI fcIWebMContext* fcWebMCreateContext(fcWebMConfig *conf) { fcTraceFunc(); return fcWebMCreateContextImpl(*conf, fcGetGraphicsDevice()); }
fcAPI fcIMP4Context* fcMP4OSCreateContext(fcMP4Config *conf, const char *out_path) { fcTraceFunc(); return fcMP4OSCreateContextImpl(*conf, fcGetGraphicsDevice(), out_path); }
fcAPI fcIGifContext* fcGifCreateContext(const fcGifConfig *conf) { fcTraceFunc(); return fcGifCreateContextImpl(*conf, fcGetGraphicsDevice()); }