From 2956bdb379ddec371e50769d6f9c7928541f8180 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Tue, 14 Jun 2016 08:34:17 +0300 Subject: [PATCH] Added flag slice_temporal_mvp_enabled_flag --- src/encoder_state-bitstream.c | 7 +++++++ src/global.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/encoder_state-bitstream.c b/src/encoder_state-bitstream.c index db44aff1..bbf59514 100644 --- a/src/encoder_state-bitstream.c +++ b/src/encoder_state-bitstream.c @@ -751,6 +751,13 @@ void kvz_encoder_state_write_bitstream_slice_header(encoder_state_t * const stat //end if //end if + +#if ENABLE_TEMPORAL_MVP + if (state->global->slicetype != KVZ_SLICE_I) { + WRITE_U(stream, 1, 1, "slice_temporal_mvp_enabled_flag"); + } +#endif + if (encoder->sao_enable) { WRITE_U(stream, 1, 1, "slice_sao_luma_flag"); WRITE_U(stream, 1, 1, "slice_sao_chroma_flag"); diff --git a/src/global.h b/src/global.h index b1d6fb86..79dff77e 100644 --- a/src/global.h +++ b/src/global.h @@ -125,7 +125,7 @@ typedef int16_t coeff_t; #define ENABLE_PCM 0 //! Enable usage of temporal Motion Vector Prediction -#define ENABLE_TEMPORAL_MVP 0 +#define ENABLE_TEMPORAL_MVP 1 //! skip residual coding when it's under _some_ threshold #define OPTIMIZATION_SKIP_RESIDUAL_ON_THRESHOLD 0