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
}
Example #3
0
fcCLinkage fcExport fcIGifContext* fcGifCreateContext(fcGifConfig *conf)
{
    // if (fcCreateGifContext == nullptr) {
    //     // todo
    // }
    return fcCreateGifContext(*conf, fcGetGraphicsDevice());
}
Example #4
0
fcCLinkage fcExport fcIExrContext* fcExrCreateContext(fcExrConfig *conf)
{
    return fcCreateExrContext(*conf, fcGetGraphicsDevice());
}
Example #5
0
fcAPI fcIWebMContext* fcWebMCreateContext(fcWebMConfig *conf)
{
    fcTraceFunc();
    return fcWebMCreateContextImpl(*conf, fcGetGraphicsDevice());
}
Example #6
0
fcAPI fcIMP4Context* fcMP4OSCreateContext(fcMP4Config *conf, const char *out_path)
{
    fcTraceFunc();
    return fcMP4OSCreateContextImpl(*conf, fcGetGraphicsDevice(), out_path);
}
Example #7
0
fcAPI fcIGifContext* fcGifCreateContext(const fcGifConfig *conf)
{
    fcTraceFunc();
    return fcGifCreateContextImpl(*conf, fcGetGraphicsDevice());
}