Support ext-skip for both low delay and high delay
For both low delay and high delay scenarios, the reference pair in
skip mode are specified as the closest fwd ref, together with the
closest bwd ref if there is any bwd ref, otherwise with the two
closest fwd refs.
Skip mode by default uses COMPOUND_AVERAGE. When all the reference
frames are on the same side, temporal-distance weighted compound is
considered, and a compound index is signaled to indicate whether
distance-weighted compound or compound-average is usd.
Whether to use distance-weighted compound for skip mode is still
under experimenting, hence a flag is temporarily added:
SKIP_MODE_WITH_JNT_COMP.
Following experimental results are obtained over 30 frames, using the
setup of --disable-ext-partition --disable-ext-partition-types
--disable-txmg --enable-jnt-comp --enable-mfmv --enable-ext-skip:
(1) High Latency:
For Google test sets (lowres/midres), the BDRate coding gain is ~0.2%;
For AWCY, the coding gain is ~0.1%.
(2) Low Latency:
No gain has been observed over Google sets and ~0.1% gain is obtained
only when temporal-distance weighted prediction is used.
Change-Id: I8c433357adebed0126ebfdd5c4d51aa71e64be57
diff --git a/av1/common/blockd.h b/av1/common/blockd.h
index 361eaf5..50281d3 100644
--- a/av1/common/blockd.h
+++ b/av1/common/blockd.h
@@ -47,6 +47,11 @@
// chroma.
#define DISABLE_VARTX_FOR_CHROMA 1
+#if CONFIG_EXT_SKIP && CONFIG_JNT_COMP
+// NOTE: To explore whether weighted-compound prediction to be considered.
+#define SKIP_MODE_WITH_JNT_COMP 0
+#endif // CONFIG_EXT_SKIP && CONFIG_JNT_COMP
+
// SEG_MASK_TYPES should not surpass 1 << MAX_SEG_MASK_BITS
typedef enum {
#if COMPOUND_SEGMENT_TYPE == 0
@@ -706,6 +711,10 @@
#if CONFIG_JNT_COMP
JNT_COMP_PARAMS jcp_param;
#endif
+
+#if CONFIG_EXT_SKIP
+ int all_one_sided_refs;
+#endif // CONFIG_EXT_SKIP
} MACROBLOCKD;
static INLINE int get_bitdepth_data_path_index(const MACROBLOCKD *xd) {