348 |
return 0; |
return 0; |
349 |
} |
} |
350 |
|
|
|
static int exit_dll(CODEC* codec) |
|
|
{ |
|
|
if(codec->m_hdll) |
|
|
{ |
|
|
FreeLibrary(codec->m_hdll); |
|
|
codec->m_hdll = NULL; |
|
|
codec->xvid_global_func = NULL; |
|
|
codec->xvid_encore_func = NULL; |
|
|
codec->xvid_decore_func = NULL; |
|
|
codec->xvid_plugin_single_func = NULL; |
|
|
codec->xvid_plugin_2pass1_func = NULL; |
|
|
codec->xvid_plugin_2pass2_func = NULL; |
|
|
codec->xvid_plugin_lumimasking_func = NULL; |
|
|
codec->xvid_plugin_psnr_func = NULL; |
|
|
} |
|
|
return 0; |
|
|
} |
|
|
|
|
351 |
/* constant-quant zones for fixed quant encoding */ |
/* constant-quant zones for fixed quant encoding */ |
352 |
static void |
static void |
353 |
prepare_cquant_zones(CONFIG * config) { |
prepare_cquant_zones(CONFIG * config) { |
608 |
codec->xvid_encore_func(codec->ehandle, XVID_ENC_DESTROY, NULL, NULL); |
codec->xvid_encore_func(codec->ehandle, XVID_ENC_DESTROY, NULL, NULL); |
609 |
codec->ehandle = NULL; |
codec->ehandle = NULL; |
610 |
} |
} |
|
exit_dll(codec); |
|
611 |
} |
} |
612 |
|
|
613 |
if (codec->config.display_status) |
if (codec->config.display_status) |
997 |
codec->xvid_decore_func(codec->dhandle, XVID_DEC_DESTROY, NULL, NULL); |
codec->xvid_decore_func(codec->dhandle, XVID_DEC_DESTROY, NULL, NULL); |
998 |
codec->dhandle = NULL; |
codec->dhandle = NULL; |
999 |
} |
} |
|
exit_dll(codec); |
|
1000 |
} |
} |
1001 |
|
|
1002 |
return ICERR_OK; |
return ICERR_OK; |