summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Holmer <holmer@google.com>2011-04-29 14:08:47 +0200
committerStefan Holmer <holmer@google.com>2011-04-29 14:08:47 +0200
commit3cf0ef4593b5aab5e7bab8a1bb0f164ab46b69d7 (patch)
tree7cdaddf575d2fc85cd089817203ba30377d3e220
parent0909b83427fa135abe89c04fbdc8eb5bd07ae305 (diff)
downloadlibvpx-sandbox/holmer/error-concealment.tar.gz
Added configure option to enable error-concealment. Disabled by default.sandbox/holmer/error-concealment
Change-Id: I94580a5ecb13520195ea2b8a10ca11bb5a01d2a6
-rwxr-xr-xconfigure3
-rw-r--r--vp8/decoder/onyxd_if.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 5a502ae33..866d5160a 100755
--- a/configure
+++ b/configure
@@ -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
diff --git a/vp8/decoder/onyxd_if.c b/vp8/decoder/onyxd_if.c
index 378ddca69..88dac8a6e 100644
--- a/vp8/decoder/onyxd_if.c
+++ b/vp8/decoder/onyxd_if.c
@@ -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;*/