vpx/vp8/common/modecont.c

72 lines
1.5 KiB
C
Raw Normal View History

2010-05-18 17:58:33 +02:00
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
2010-05-18 17:58:33 +02:00
*
* 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.
2010-05-18 17:58:33 +02:00
*/
#include "entropy.h"
#if CONFIG_NEWNEAR
const int default_vp8_mode_contexts[6][4] =
{
{ /* 0 */
7, 1, 1, 183},
{ /* 1 */
14, 18, 14, 147},
{/* 2 */
135, 64, 57, 68},
{ /* 3 */
60, 56, 128, 65},
{/* 4 */
159, 134, 128, 34},
{ /* 5 */
234, 188, 128, 28},
};
const int default_vp8_mode_contexts_a[6][4] =
{
{ /* 0 */
4, 1, 1, 143},
{ /* 1 */
7, 9, 7, 107},
{/* 2 */
95, 34, 57, 68},
{ /* 3 */
95, 56, 128, 65},
{/* 4 */
159, 67, 128, 34},
{ /* 5 */
234, 94, 128, 28},
};
#else
const int default_vp8_mode_contexts[6][4] =
2010-05-18 17:58:33 +02:00
{
{
/* 0 */
2010-05-18 17:58:33 +02:00
7, 1, 1, 143,
},
{
/* 1 */
2010-05-18 17:58:33 +02:00
14, 18, 14, 107,
},
{
/* 2 */
2010-05-18 17:58:33 +02:00
135, 64, 57, 68,
},
{
/* 3 */
2010-05-18 17:58:33 +02:00
60, 56, 128, 65,
},
{
/* 4 */
2010-05-18 17:58:33 +02:00
159, 134, 128, 34,
},
{
/* 5 */
2010-05-18 17:58:33 +02:00
234, 188, 128, 28,
},
};
#endif