Added configure option to enable error-concealment. Disabled by default.

Change-Id: I94580a5ecb13520195ea2b8a10ca11bb5a01d2a6
This commit is contained in:
Stefan Holmer
2011-04-29 14:08:47 +02:00
parent 0909b83427
commit 3cf0ef4593
2 changed files with 10 additions and 2 deletions

3
configure vendored
View File

@@ -37,6 +37,7 @@ Advanced options:
${toggle_multithread} multithreaded encoding and decoding.
${toggle_spatial_resampling} spatial sampling (scaling) support
${toggle_realtime_only} enable this option while building for real-time encoding
${toggle_error_concealment} enable this option to get a decoder which is able to conceal losses
${toggle_runtime_cpu_detect} runtime cpu detection
${toggle_shared} shared library support
${toggle_small} favor smaller size over speed
@@ -249,6 +250,7 @@ CONFIG_LIST="
static_msvcrt
spatial_resampling
realtime_only
error_concealment
shared
small
arm_asm_detok
@@ -289,6 +291,7 @@ CMDLINE_SELECT="
mem_tracker
spatial_resampling
realtime_only
error_concealment
shared
small
arm_asm_detok

View File

@@ -135,6 +135,13 @@ VP8D_PTR vp8dx_create_decompressor(VP8D_CONFIG *oxcf)
vp8_init_detokenizer(pbi);
#endif
pbi->common.error.setjmp = 0;
#if CONFIG_ERROR_CONCEALMENT
pbi->ec_enabled = 1;
#else
pbi->ec_enabled = 0;
#endif
return (VP8D_PTR) pbi;
}
@@ -320,8 +327,6 @@ int vp8dx_receive_compressed_data(VP8D_PTR ptr, unsigned long size, const unsign
int retcode = 0;
struct vpx_usec_timer timer;
pbi->ec_enabled = 1;
/*if(pbi->ready_for_new_data == 0)
return -1;*/