ad34368786
Split partition probabilities between keyframes and non-keyframes, since they are fairly different. Also have per-blocksize interframe y intramode probabilities, since these vary heavily between different blocksizes. Lastly, replace default probabilities for partitioning and intra modes with new ones generated from current codec. Replace counts with actual probabilities also. Change-Id: I77ca996e25e4a28e03bdbc542f27a3e64ca1234f
129 lines
7.7 KiB
C
129 lines
7.7 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.
|
|
*/
|
|
|
|
|
|
#include "vp9/common/vp9_entropymode.h"
|
|
|
|
const vp9_prob vp9_kf_default_bmode_probs[VP9_INTRA_MODES]
|
|
[VP9_INTRA_MODES]
|
|
[VP9_INTRA_MODES - 1] = {
|
|
{ /* above = dc */
|
|
{ 165, 25, 57, 147, 137, 207, 70, 49, 89 } /* left = dc */,
|
|
{ 107, 33, 127, 132, 131, 173, 86, 88, 105 } /* left = v */,
|
|
{ 87, 25, 24, 193, 225, 213, 44, 33, 94 } /* left = h */,
|
|
{ 82, 32, 42, 91, 116, 154, 134, 119, 110 } /* left = d45 */,
|
|
{ 87, 41, 47, 164, 49, 219, 85, 72, 84 } /* left = d135 */,
|
|
{ 83, 29, 29, 134, 55, 84, 58, 132, 185 } /* left = d117 */,
|
|
{ 78, 22, 24, 134, 145, 161, 37, 32, 199 } /* left = d153 */,
|
|
{ 103, 25, 33, 121, 156, 215, 34, 32, 29 } /* left = d27 */,
|
|
{ 73, 28, 26, 91, 75, 116, 67, 169, 128 } /* left = d63 */,
|
|
{ 62, 79, 46, 119, 142, 197, 97, 73, 133 } /* left = tm */
|
|
}, { /* above = v */
|
|
{ 77, 19, 144, 147, 131, 159, 67, 75, 108 } /* left = dc */,
|
|
{ 48, 30, 180, 135, 139, 124, 84, 125, 102 } /* left = v */,
|
|
{ 47, 14, 76, 169, 216, 171, 48, 35, 77 } /* left = h */,
|
|
{ 53, 39, 82, 93, 98, 165, 128, 156, 115 } /* left = d45 */,
|
|
{ 59, 52, 88, 155, 54, 208, 95, 109, 23 } /* left = d135 */,
|
|
{ 45, 30, 76, 136, 51, 95, 62, 154, 157 } /* left = d117 */,
|
|
{ 45, 22, 60, 127, 136, 156, 45, 67, 157 } /* left = d153 */,
|
|
{ 59, 30, 78, 107, 157, 181, 49, 39, 50 } /* left = d27 */,
|
|
{ 45, 33, 70, 85, 76, 127, 76, 185, 89 } /* left = d63 */,
|
|
{ 41, 69, 104, 113, 125, 154, 110, 123, 88 } /* left = tm */
|
|
}, { /* above = h */
|
|
{ 85, 12, 38, 172, 219, 185, 40, 29, 118 } /* left = dc */,
|
|
{ 52, 25, 78, 175, 211, 189, 56, 37, 108 } /* left = v */,
|
|
{ 38, 11, 17, 207, 245, 224, 18, 13, 84 } /* left = h */,
|
|
{ 63, 42, 25, 121, 162, 179, 63, 53, 90 } /* left = d45 */,
|
|
{ 69, 59, 35, 146, 108, 245, 33, 56, 115 } /* left = d135 */,
|
|
{ 45, 27, 30, 160, 118, 128, 75, 49, 147 } /* left = d117 */,
|
|
{ 40, 17, 19, 147, 198, 169, 30, 14, 181 } /* left = d153 */,
|
|
{ 56, 19, 15, 150, 207, 212, 17, 22, 28 } /* left = d27 */,
|
|
{ 45, 50, 21, 97, 113, 135, 68, 89, 72 } /* left = d63 */,
|
|
{ 41, 70, 19, 165, 199, 203, 54, 52, 121 } /* left = tm */
|
|
}, { /* above = d45 */
|
|
{ 124, 25, 52, 122, 127, 200, 116, 88, 105 } /* left = dc */,
|
|
{ 60, 31, 107, 103, 119, 136, 135, 150, 90 } /* left = v */,
|
|
{ 70, 28, 37, 157, 203, 192, 73, 67, 21 } /* left = h */,
|
|
{ 62, 33, 39, 54, 67, 159, 150, 114, 61 } /* left = d45 */,
|
|
{ 69, 41, 46, 102, 64, 240, 68, 103, 111 } /* left = d135 */,
|
|
{ 59, 27, 39, 121, 68, 132, 101, 139, 96 } /* left = d117 */,
|
|
{ 55, 19, 33, 119, 109, 198, 61, 88, 224 } /* left = d153 */,
|
|
{ 92, 16, 40, 107, 160, 242, 48, 62, 15 } /* left = d27 */,
|
|
{ 57, 27, 36, 65, 95, 130, 94, 213, 222 } /* left = d63 */,
|
|
{ 47, 47, 47, 101, 130, 154, 130, 105, 102 } /* left = tm */
|
|
}, { /* above = d135 */
|
|
{ 80, 19, 42, 132, 81, 205, 51, 36, 99 } /* left = dc */,
|
|
{ 60, 34, 67, 145, 76, 196, 72, 61, 112 } /* left = v */,
|
|
{ 46, 25, 29, 172, 181, 208, 37, 11, 79 } /* left = h */,
|
|
{ 59, 45, 20, 103, 42, 203, 57, 68, 107 } /* left = d45 */,
|
|
{ 68, 41, 25, 190, 21, 226, 68, 65, 38 } /* left = d135 */,
|
|
{ 42, 38, 34, 133, 48, 145, 57, 106, 237 } /* left = d117 */,
|
|
{ 35, 20, 11, 139, 94, 197, 49, 50, 182 } /* left = d153 */,
|
|
{ 64, 26, 24, 122, 73, 230, 27, 27, 39 } /* left = d27 */,
|
|
{ 53, 49, 25, 118, 52, 147, 84, 104, 103 } /* left = d63 */,
|
|
{ 62, 70, 35, 156, 90, 214, 95, 140, 211 } /* left = tm */
|
|
}, { /* above = d117 */
|
|
{ 78, 14, 37, 152, 67, 100, 44, 103, 160 } /* left = dc */,
|
|
{ 50, 20, 86, 139, 72, 98, 62, 111, 157 } /* left = v */,
|
|
{ 42, 17, 33, 169, 153, 139, 62, 61, 136 } /* left = h */,
|
|
{ 48, 21, 39, 123, 65, 143, 76, 131, 87 } /* left = d45 */,
|
|
{ 47, 41, 44, 149, 49, 221, 51, 107, 122 } /* left = d135 */,
|
|
{ 37, 18, 26, 177, 20, 66, 58, 131, 148 } /* left = d117 */,
|
|
{ 39, 19, 26, 125, 77, 115, 22, 75, 192 } /* left = d153 */,
|
|
{ 48, 13, 33, 125, 113, 132, 30, 77, 99 } /* left = d27 */,
|
|
{ 45, 27, 15, 119, 42, 96, 45, 168, 164 } /* left = d63 */,
|
|
{ 48, 52, 52, 129, 60, 158, 58, 89, 153 } /* left = tm */
|
|
}, { /* above = d153 */
|
|
{ 82, 9, 31, 121, 146, 145, 23, 28, 194 } /* left = dc */,
|
|
{ 57, 32, 78, 121, 148, 128, 50, 37, 217 } /* left = v */,
|
|
{ 38, 12, 19, 158, 221, 172, 12, 22, 166 } /* left = h */,
|
|
{ 49, 32, 24, 100, 125, 142, 72, 83, 132 } /* left = d45 */,
|
|
{ 54, 36, 22, 172, 49, 225, 88, 72, 59 } /* left = d135 */,
|
|
{ 43, 7, 23, 130, 95, 86, 44, 57, 206 } /* left = d117 */,
|
|
{ 34, 13, 12, 90, 196, 91, 8, 10, 226 } /* left = d153 */,
|
|
{ 55, 23, 17, 106, 127, 207, 32, 23, 92 } /* left = d27 */,
|
|
{ 54, 28, 20, 121, 76, 151, 45, 110, 124 } /* left = d63 */,
|
|
{ 41, 51, 31, 120, 192, 74, 45, 62, 163 } /* left = tm */
|
|
}, { /* above = d27 */
|
|
{ 88, 10, 40, 120, 157, 211, 25, 27, 54 } /* left = dc */,
|
|
{ 64, 31, 69, 121, 129, 184, 36, 29, 45 } /* left = v */,
|
|
{ 51, 11, 22, 170, 232, 209, 11, 20, 64 } /* left = h */,
|
|
{ 65, 43, 19, 102, 91, 208, 68, 78, 75 } /* left = d45 */,
|
|
{ 64, 40, 23, 171, 47, 229, 45, 48, 19 } /* left = d135 */,
|
|
{ 43, 27, 39, 136, 76, 149, 92, 13, 114 } /* left = d117 */,
|
|
{ 53, 19, 14, 128, 148, 173, 31, 25, 133 } /* left = d153 */,
|
|
{ 73, 19, 13, 97, 137, 218, 12, 12, 10 } /* left = d27 */,
|
|
{ 57, 35, 15, 111, 68, 149, 90, 102, 16 } /* left = d63 */,
|
|
{ 43, 63, 23, 107, 144, 200, 64, 47, 88 } /* left = tm */
|
|
}, { /* above = d63 */
|
|
{ 95, 19, 44, 97, 120, 145, 81, 142, 115 } /* left = dc */,
|
|
{ 46, 29, 93, 95, 106, 133, 83, 189, 177 } /* left = v */,
|
|
{ 54, 19, 29, 136, 181, 157, 80, 67, 47 } /* left = h */,
|
|
{ 44, 26, 34, 83, 125, 180, 116, 218, 206 } /* left = d45 */,
|
|
{ 56, 41, 25, 118, 55, 192, 93, 121, 22 } /* left = d135 */,
|
|
{ 44, 31, 30, 110, 67, 80, 56, 217, 225 } /* left = d117 */,
|
|
{ 44, 14, 25, 101, 105, 136, 57, 83, 133 } /* left = d153 */,
|
|
{ 62, 16, 28, 105, 157, 164, 67, 92, 58 } /* left = d27 */,
|
|
{ 36, 18, 25, 57, 88, 113, 59, 210, 127 } /* left = d63 */,
|
|
{ 36, 41, 44, 79, 104, 129, 100, 151, 105 } /* left = tm */
|
|
}, { /* above = tm */
|
|
{ 90, 61, 68, 152, 141, 209, 79, 59, 93 } /* left = dc */,
|
|
{ 49, 71, 127, 132, 129, 187, 89, 105, 113 } /* left = v */,
|
|
{ 48, 29, 26, 190, 225, 190, 55, 32, 75 } /* left = h */,
|
|
{ 58, 51, 46, 110, 134, 192, 124, 100, 113 } /* left = d45 */,
|
|
{ 69, 60, 38, 156, 82, 214, 79, 89, 24 } /* left = d135 */,
|
|
{ 48, 54, 50, 139, 71, 106, 77, 162, 18 } /* left = d117 */,
|
|
{ 52, 34, 33, 137, 149, 184, 45, 67, 169 } /* left = d153 */,
|
|
{ 67, 29, 32, 123, 176, 244, 47, 27, 31 } /* left = d27 */,
|
|
{ 38, 43, 46, 93, 106, 140, 78, 143, 111 } /* left = d63 */,
|
|
{ 55, 98, 50, 135, 140, 208, 95, 103, 95 } /* left = tm */
|
|
}
|
|
};
|