89ee68b1f7
Change-Id: I8e9b6b154e1a0d0cb42d596366380d69c00ac15f
361 lines
15 KiB
C
361 lines
15 KiB
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.
|
|
*/
|
|
|
|
|
|
/* Update probabilities for the nodes in the token entropy tree.
|
|
Generated file included by entropy.c */
|
|
|
|
const vp8_prob vp8_coef_update_probs [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES] =
|
|
{
|
|
{
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255, },
|
|
{250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255, },
|
|
{234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255, },
|
|
{251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255, },
|
|
{248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
};
|
|
const vp8_prob vp8_coef_update_probs_8x8 [BLOCK_TYPES]
|
|
[COEF_BANDS]
|
|
[PREV_COEF_CONTEXTS]
|
|
[ENTROPY_NODES] =
|
|
{
|
|
{
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 229, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{219, 234, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{239, 204, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 209, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{239, 219, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 204, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 209, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 193, 209, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 198, 239, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 204, 204, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{219, 198, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 198, 204, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{209, 193, 234, 249, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 249, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 214, 214, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{173, 193, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{255, 255, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{224, 224, 219, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 239, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 234, 224, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{224, 234, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 255, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{224, 255, 239, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{224, 219, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{234, 183, 214, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 193, 229, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
{229, 214, 234, 249, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 249, 255, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 198, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 219, 249, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 249, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 193, 224, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{229, 204, 234, 249, 249, 255, 255, 255, 255, 255, 255, },
|
|
{255, 249, 249, 255, 244, 249, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 178, 224, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
{234, 224, 234, 249, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 183, 229, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
{234, 219, 234, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 249, 249, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 193, 224, 249, 255, 244, 255, 255, 255, 255, 255, },
|
|
{219, 224, 229, 255, 255, 249, 255, 255, 255, 255, 255, },
|
|
{255, 255, 255, 249, 249, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 193, 229, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{224, 224, 239, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 244, 249, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{249, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, },
|
|
{255, 239, 234, 244, 239, 244, 249, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 249, 239, 239, 244, 255, 255, 255, 255, 255, 255, },
|
|
{255, 249, 244, 255, 249, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 239, 255, 255, 249, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 244, 239, 239, 244, 255, 255, 255, 255, 255, 255, },
|
|
{255, 234, 239, 234, 249, 255, 255, 255, 255, 255, 255, },
|
|
{255, 255, 229, 239, 234, 249, 244, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 239, 229, 239, 234, 234, 255, 255, 255, 255, 255, },
|
|
{255, 239, 234, 229, 244, 239, 255, 234, 255, 255, 255, },
|
|
{255, 229, 209, 229, 239, 234, 244, 229, 255, 249, 255, },
|
|
},
|
|
{
|
|
{255, 239, 234, 229, 244, 249, 255, 249, 255, 255, 255, },
|
|
{255, 234, 229, 244, 234, 249, 255, 249, 255, 255, 255, },
|
|
{255, 229, 239, 229, 249, 255, 255, 244, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 239, 234, 239, 234, 239, 255, 249, 255, 255, 255, },
|
|
{255, 229, 234, 239, 239, 239, 255, 244, 255, 255, 255, },
|
|
{255, 229, 234, 239, 239, 244, 255, 255, 255, 255, 255, },
|
|
},
|
|
{
|
|
{255, 219, 224, 229, 229, 234, 239, 224, 255, 255, 255, },
|
|
{255, 229, 229, 224, 234, 229, 239, 239, 255, 255, 255, },
|
|
{255, 229, 224, 239, 234, 239, 224, 224, 255, 249, 255, },
|
|
},
|
|
{
|
|
{255, 234, 229, 244, 229, 229, 255, 214, 255, 255, 255, },
|
|
{255, 239, 234, 239, 214, 239, 255, 209, 255, 255, 255, },
|
|
{249, 239, 219, 209, 219, 224, 239, 204, 255, 255, 255, },
|
|
},
|
|
},
|
|
|
|
};
|