vpx/vp9/common/modecont.c
Paul Wilkins 2669f42b0d New inter mode context
This change is a fix / extension of the newbestrefmv
experiment. As such it is presented without IFDEF.

The change creates a new context for coding inter modes
in vp9_find_mv_refs(). This replaces the context that
was previously calculated in vp9_find_near_mvs().
The new context is unoptimized and not necessarily
any better at this stage (results pending), but eliminates
the need for a legacy call to vp9_find_near_mvs().
Based on numbers from Scott, this could help decode
speed by several %.

In a later patch I will add support for forward update of
context (assuming this helps) and refine the context as
necessary.

Change-Id: I1cd991b82c8df86cc02237a34185e6d67510698a
2012-11-12 15:50:02 +00:00

30 lines
905 B
C

/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "entropy.h"
const int vp9_default_mode_contexts[6][4] = {
{117, 1, 1, 141},
{234, 1, 1, 213},
{128, 90, 22, 145},
{30, 104, 61, 159},
{13, 169, 18, 206},
{15, 76, 24, 166}
};
const int vp9_default_mode_contexts_a[6][4] = {
{117, 1, 1, 141},
{234, 1, 1, 213},
{128, 90, 22, 145},
{30, 104, 61, 159},
{13, 169, 18, 206},
{15, 76, 24, 166}
};