Exemplo n.º 1
0
int main()
{
    CERuntime_init();
    CMEM_init();

#ifdef CE_TEST
    CERuntime_init();
    CERuntime_exit();
    CERuntime_init();
    CERuntime_exit();
#endif

    /* initialize libavcodec, and register all codecs and formats */
    av_register_all();

    /* TODO: can't run both yet, some problem with CE init and exit */
    ff_example("test.avi", "avi");
//    decode_example("test.mkv");

    CMEM_exit();
    CERuntime_exit();
    return 0;
}
Exemplo n.º 2
0
/*
 *  ======== ceapp_exit ========
 */
void ceapp_exit()
{
    /* teardown the codecs and the engine */
    if (encHandle != NULL) {
        VIDENC_delete(encHandle);
    }
    if (decHandle != NULL) {
        VIDDEC_delete(decHandle);
    }
    TraceUtil_stop();  /* close tracing thread */
    if (ceHandle != NULL) {
        Engine_close(ceHandle);
    }

    /* clean up Codec Engine */
    CERuntime_exit();
}
Exemplo n.º 3
0
Arquivo: ce.c Projeto: guyz/dsp
static void ce_close(void)
{
    codecModule->close();
    if (ce)         Engine_close(ce);               ce     = NULL;
    CERuntime_exit();
}