Пример #1
0
fcCLinkage fcExport fcIMP4Context* fcMP4CreateContext(fcMP4Config *conf)
{
#ifdef fcMP4SplitModule
    fcMP4InitializeModule();
    if (fcMP4CreateContextImpl) {
        return fcMP4CreateContextImpl(*conf, fcGetGraphicsDevice());
    }
    return nullptr;
#else
    return fcMP4CreateContextImpl(*conf, fcGetGraphicsDevice());
#endif
}
Пример #2
0
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
}
Пример #3
0
fcCLinkage fcExport fcIGifContext* fcGifCreateContext(fcGifConfig *conf)
{
    // if (fcCreateGifContext == nullptr) {
    //     // todo
    // }
    return fcCreateGifContext(*conf, fcGetGraphicsDevice());
}
Пример #4
0
fcCLinkage fcExport fcIExrContext* fcExrCreateContext(fcExrConfig *conf)
{
    return fcCreateExrContext(*conf, fcGetGraphicsDevice());
}
Пример #5
0
fcAPI fcIWebMContext* fcWebMCreateContext(fcWebMConfig *conf)
{
    fcTraceFunc();
    return fcWebMCreateContextImpl(*conf, fcGetGraphicsDevice());
}
Пример #6
0
fcAPI fcIMP4Context* fcMP4OSCreateContext(fcMP4Config *conf, const char *out_path)
{
    fcTraceFunc();
    return fcMP4OSCreateContextImpl(*conf, fcGetGraphicsDevice(), out_path);
}
Пример #7
0
fcAPI fcIGifContext* fcGifCreateContext(const fcGifConfig *conf)
{
    fcTraceFunc();
    return fcGifCreateContextImpl(*conf, fcGetGraphicsDevice());
}