diff options
author | Henrik Lundin <hlundin@google.com> | 2010-12-16 16:46:31 +0100 |
---|---|---|
committer | Henrik Lundin <hlundin@google.com> | 2011-01-19 09:53:21 +0100 |
commit | 67fb3a5155bd7dcb6aacbc7e3bb05be308040367 (patch) | |
tree | be4013600755cd05a0cbad5433c7e6a0eb02e376 /vp8/common | |
parent | 2a87491fb07221886c8c570e6b0b48f56855a2c7 (diff) | |
download | libvpx-67fb3a5155bd7dcb6aacbc7e3bb05be308040367.tar libvpx-67fb3a5155bd7dcb6aacbc7e3bb05be308040367.tar.gz libvpx-67fb3a5155bd7dcb6aacbc7e3bb05be308040367.tar.bz2 libvpx-67fb3a5155bd7dcb6aacbc7e3bb05be308040367.zip |
Implement error tracking in the decoder
A new vpx_codec_control called VP8D_GET_FRAME_CORRUPTED. The output
from the function is non-zero if the last decoded frame contains
corruption due to packet losses.
The decoder is also modified to accept encoded frames of zero length.
A zero length frame indicates to the decoder that one or more frames
have been completely lost. This will mark the last decoded reference
buffer as corrupted. The data pointer can be NULL if the length is
zero.
Change-Id: Ic5902c785a281c6e05329deea958554b7a6c75ce
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/blockd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vp8/common/blockd.h b/vp8/common/blockd.h index a38f0b72b..5a8991e65 100644 --- a/vp8/common/blockd.h +++ b/vp8/common/blockd.h @@ -282,6 +282,8 @@ typedef struct void *current_bc; + int corrupted; + #if CONFIG_RUNTIME_CPU_DETECT struct VP8_COMMON_RTCD *rtcd; #endif |