Commit a752d1d5 authored by Soo-Chul Han's avatar Soo-Chul Han

add SEG_LVL_ZEROMV

Change-Id: Icd04302886a4d12890d04f9f15563169a91e3a0d
parent c3903ff2
...@@ -32,7 +32,12 @@ typedef enum { ...@@ -32,7 +32,12 @@ typedef enum {
SEG_LVL_ALT_LF = 1, // Use alternate loop filter value... SEG_LVL_ALT_LF = 1, // Use alternate loop filter value...
SEG_LVL_REF_FRAME = 2, // Optional Segment reference frame SEG_LVL_REF_FRAME = 2, // Optional Segment reference frame
SEG_LVL_SKIP = 3, // Optional Segment (0,0) + skip mode SEG_LVL_SKIP = 3, // Optional Segment (0,0) + skip mode
SEG_LVL_MAX = 4 // Number of features supported #ifdef CONFIG_SEGMENT_ZEROMV
SEG_LVL_ZEROMV = 4,
SEG_LVL_MAX = 5
#else
SEG_LVL_MAX = 4
#endif
} SEG_LVL_FEATURES; } SEG_LVL_FEATURES;
struct segmentation { struct segmentation {
......
...@@ -2312,7 +2312,12 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi, ...@@ -2312,7 +2312,12 @@ static void read_inter_block_mode_info(AV1Decoder *const pbi,
av1_mode_context_analyzer(inter_mode_ctx, mbmi->ref_frame, bsize, -1); av1_mode_context_analyzer(inter_mode_ctx, mbmi->ref_frame, bsize, -1);
mbmi->ref_mv_idx = 0; mbmi->ref_mv_idx = 0;
#if CONFIG_SEGMENT_ZEROMV
if (segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP) ||
segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_ZEROMV)) {
#else
if (segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { if (segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) {
#endif
mbmi->mode = ZEROMV; mbmi->mode = ZEROMV;
if (bsize < BLOCK_8X8 && !unify_bsize) { if (bsize < BLOCK_8X8 && !unify_bsize) {
aom_internal_error(xd->error_info, AOM_CODEC_UNSUP_BITSTREAM, aom_internal_error(xd->error_info, AOM_CODEC_UNSUP_BITSTREAM,
......
...@@ -190,6 +190,7 @@ set(CONFIG_SMOOTH_HV 1 CACHE NUMBER "AV1 experiment flag.") ...@@ -190,6 +190,7 @@ set(CONFIG_SMOOTH_HV 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SPEED_REFS 0 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_SPEED_REFS 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SUPERTX 0 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_SUPERTX 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TEMPMV_SIGNALING 1 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_TEMPMV_SIGNALING 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SEGMENT_ZEROMV 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TPL_MV 0 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_TPL_MV 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TRIPRED 0 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_TRIPRED 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TX64X64 0 CACHE NUMBER "AV1 experiment flag.") set(CONFIG_TX64X64 0 CACHE NUMBER "AV1 experiment flag.")
......
...@@ -321,6 +321,7 @@ EXPERIMENT_LIST=" ...@@ -321,6 +321,7 @@ EXPERIMENT_LIST="
lv_map lv_map
txk_sel txk_sel
mv_compress mv_compress
segment_zeromv
frame_superres frame_superres
new_multisymbol new_multisymbol
compound_singleref compound_singleref
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment