vpx/vp9/common/vp9_default_coef_probs.h
Deb Mukherjee eb6ef2417f Coding con-zero count rather than EOB for coeffs
This patch revamps the entropy coding of coefficients to code first
a non-zero count per coded block and correspondingly remove the EOB
token from the token set.

STATUS:
Main encode/decode code achieving encode/decode sync - done.
Forward and backward probability updates to the nzcs - done.
Rd costing updates for nzcs - done.
Note: The dynamic progrmaming apporach used in trellis quantization
is not exactly compatible with nzcs. A suboptimal approach has been
used instead where branch costs are updated to account for changes
in the nzcs.

TODO:
Training the default probs/counts for nzcs

Change-Id: I951bc1e22f47885077a7453a09b0493daa77883d
2013-03-07 07:20:30 -08:00

825 lines
43 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.
*/
/*Generated file, included by vp9_entropy.c*/
static const vp9_coeff_probs default_coef_probs_4x4[BLOCK_TYPES] = {
{ /* block Type 0 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 208, 26, 124, 168, 135, 159, 164, 134, 213, 172, 169 },
{ 112, 36, 114, 171, 139, 161, 165, 138, 208, 167, 168 },
{ 21, 27, 55, 109, 115, 147, 126, 121, 190, 151, 167 }
}, { /* Coeff Band 1 */
{ 1, 94, 156, 203, 156, 169, 200, 154, 230, 184, 206 },
{ 85, 91, 161, 202, 155, 170, 198, 151, 233, 184, 214 },
{ 57, 78, 131, 203, 157, 169, 198, 152, 231, 184, 214 },
{ 36, 68, 104, 191, 135, 164, 199, 153, 231, 183, 208 },
{ 16, 51, 68, 154, 115, 150, 192, 140, 231, 184, 210 },
{ 5, 31, 32, 83, 100, 140, 121, 115, 192, 153, 182 }
}, { /* Coeff Band 2 */
{ 1, 72, 146, 177, 149, 168, 157, 135, 200, 159, 184 },
{ 68, 72, 148, 180, 153, 166, 157, 139, 198, 156, 187 },
{ 29, 68, 112, 178, 150, 162, 159, 144, 191, 153, 183 },
{ 12, 57, 83, 164, 125, 157, 162, 141, 186, 156, 178 },
{ 4, 42, 52, 125, 108, 145, 161, 130, 190, 166, 170 },
{ 1, 28, 25, 67, 98, 138, 99, 110, 175, 143, 167 }
}, { /* Coeff Band 3 */
{ 1, 113, 176, 199, 161, 171, 167, 146, 188, 154, 194 },
{ 75, 97, 166, 206, 161, 172, 188, 156, 203, 164, 208 },
{ 31, 83, 131, 200, 152, 168, 191, 157, 200, 169, 206 },
{ 18, 70, 99, 185, 131, 162, 194, 153, 202, 177, 201 },
{ 8, 55, 70, 146, 115, 150, 187, 136, 215, 188, 191 },
{ 2, 46, 42, 87, 109, 144, 111, 117, 185, 148, 182 }
}, { /* Coeff Band 4 */
{ 1, 128, 191, 217, 169, 174, 203, 163, 201, 178, 196 },
{ 73, 105, 177, 220, 168, 175, 212, 167, 222, 185, 212 },
{ 22, 82, 135, 212, 157, 172, 212, 165, 220, 187, 213 },
{ 10, 65, 95, 194, 133, 162, 210, 160, 223, 194, 208 },
{ 5, 45, 59, 145, 108, 147, 196, 142, 230, 196, 197 },
{ 2, 30, 29, 76, 98, 140, 119, 112, 205, 158, 185 }
}, { /* Coeff Band 5 */
{ 1, 101, 208, 232, 179, 179, 236, 181, 243, 216, 210 },
{ 110, 84, 194, 231, 177, 180, 233, 177, 246, 213, 224 },
{ 50, 68, 148, 224, 166, 177, 229, 173, 245, 209, 215 },
{ 29, 55, 105, 207, 139, 168, 224, 167, 244, 207, 225 },
{ 17, 38, 65, 157, 111, 148, 206, 148, 242, 202, 215 },
{ 7, 18, 28, 76, 96, 138, 125, 111, 219, 162, 206 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 221, 105, 211, 220, 170, 171, 233, 173, 241, 200, 201 },
{ 144, 102, 184, 206, 160, 167, 209, 163, 227, 186, 193 },
{ 51, 84, 132, 174, 146, 161, 165, 144, 190, 163, 175 }
}, { /* Coeff Band 1 */
{ 1, 167, 216, 217, 170, 171, 217, 178, 213, 176, 216 },
{ 89, 146, 210, 227, 185, 182, 198, 165, 203, 166, 216 },
{ 37, 117, 171, 232, 185, 185, 197, 175, 191, 159, 212 },
{ 30, 99, 128, 224, 150, 177, 210, 179, 183, 162, 211 },
{ 25, 84, 92, 173, 121, 150, 222, 161, 201, 199, 201 },
{ 8, 56, 65, 121, 119, 148, 150, 124, 198, 170, 191 }
}, { /* Coeff Band 2 */
{ 1, 133, 198, 206, 166, 172, 188, 157, 211, 167, 206 },
{ 62, 122, 178, 203, 170, 174, 160, 151, 193, 148, 203 },
{ 19, 94, 126, 195, 156, 172, 156, 159, 172, 135, 199 },
{ 15, 78, 89, 173, 122, 158, 163, 155, 153, 138, 191 },
{ 13, 63, 61, 120, 109, 141, 167, 138, 159, 174, 174 },
{ 1, 39, 44, 77, 113, 145, 92, 116, 162, 144, 166 }
}, { /* Coeff Band 3 */
{ 1, 157, 214, 222, 176, 176, 208, 168, 213, 174, 219 },
{ 80, 134, 199, 223, 180, 181, 191, 162, 200, 161, 218 },
{ 27, 104, 155, 219, 168, 177, 192, 168, 186, 154, 214 },
{ 23, 87, 114, 203, 138, 166, 199, 165, 178, 163, 210 },
{ 16, 74, 84, 153, 118, 150, 198, 144, 194, 189, 198 },
{ 1, 50, 64, 110, 121, 149, 118, 125, 177, 149, 194 }
}, { /* Coeff Band 4 */
{ 1, 164, 216, 229, 181, 178, 223, 172, 228, 197, 221 },
{ 86, 140, 196, 225, 176, 179, 215, 169, 220, 189, 222 },
{ 30, 107, 149, 217, 160, 175, 216, 169, 212, 187, 219 },
{ 24, 85, 109, 197, 133, 161, 215, 162, 211, 195, 214 },
{ 17, 67, 76, 150, 114, 148, 202, 144, 222, 203, 204 },
{ 3, 46, 55, 100, 111, 144, 140, 117, 215, 173, 197 }
}, { /* Coeff Band 5 */
{ 1, 120, 224, 237, 184, 181, 241, 188, 249, 228, 231 },
{ 139, 95, 209, 236, 184, 184, 237, 182, 247, 224, 230 },
{ 67, 79, 160, 232, 172, 181, 236, 182, 246, 219, 233 },
{ 48, 65, 120, 216, 141, 168, 234, 177, 245, 219, 229 },
{ 32, 52, 85, 171, 119, 151, 222, 156, 246, 216, 224 },
{ 13, 39, 58, 112, 111, 144, 157, 121, 229, 182, 211 }
}
}
}, { /* block Type 1 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 220, 21, 181, 217, 157, 178, 234, 145, 248, 236, 173 },
{ 125, 26, 143, 206, 148, 172, 213, 151, 240, 207, 199 },
{ 44, 28, 84, 150, 125, 154, 171, 133, 225, 179, 192 }
}, { /* Coeff Band 1 */
{ 1, 137, 209, 231, 181, 181, 223, 173, 245, 202, 236 },
{ 147, 130, 214, 232, 181, 183, 224, 172, 245, 204, 220 },
{ 111, 112, 183, 234, 188, 186, 223, 175, 246, 202, 237 },
{ 89, 100, 159, 227, 163, 178, 222, 173, 246, 203, 220 },
{ 55, 80, 124, 201, 142, 166, 219, 163, 246, 205, 223 },
{ 23, 45, 70, 130, 119, 151, 157, 128, 224, 170, 207 }
}, { /* Coeff Band 2 */
{ 1, 62, 195, 228, 177, 179, 220, 170, 244, 201, 226 },
{ 87, 84, 172, 218, 165, 176, 212, 163, 242, 199, 228 },
{ 28, 87, 124, 206, 154, 168, 209, 159, 241, 195, 227 },
{ 10, 72, 94, 181, 127, 159, 200, 150, 240, 193, 226 },
{ 4, 47, 58, 129, 109, 145, 176, 132, 237, 183, 222 },
{ 1, 24, 26, 65, 95, 137, 109, 104, 210, 151, 197 }
}, { /* Coeff Band 3 */
{ 1, 127, 206, 236, 183, 183, 230, 180, 247, 211, 234 },
{ 113, 118, 195, 228, 174, 180, 225, 172, 248, 208, 231 },
{ 43, 109, 162, 221, 166, 175, 220, 168, 248, 207, 232 },
{ 17, 88, 126, 208, 152, 171, 214, 161, 247, 203, 236 },
{ 5, 60, 84, 172, 125, 154, 199, 149, 244, 194, 237 },
{ 1, 29, 41, 99, 104, 147, 146, 116, 227, 170, 223 }
}, { /* Coeff Band 4 */
{ 1, 151, 222, 239, 193, 188, 231, 177, 250, 218, 241 },
{ 114, 126, 203, 230, 180, 181, 226, 171, 249, 212, 246 },
{ 51, 97, 175, 218, 166, 176, 220, 165, 250, 211, 231 },
{ 23, 77, 136, 204, 155, 169, 213, 157, 248, 205, 241 },
{ 6, 50, 85, 169, 126, 158, 197, 146, 245, 197, 243 },
{ 1, 21, 37, 97, 101, 146, 146, 119, 232, 169, 232 }
}, { /* Coeff Band 5 */
{ 1, 117, 230, 239, 194, 187, 233, 179, 252, 222, 248 },
{ 148, 109, 210, 232, 184, 182, 227, 173, 252, 211, 244 },
{ 80, 84, 162, 222, 168, 178, 225, 167, 252, 207, 244 },
{ 43, 64, 122, 201, 142, 169, 218, 162, 251, 208, 254 },
{ 17, 41, 76, 155, 120, 154, 200, 141, 249, 204, 248 },
{ 5, 19, 35, 89, 99, 151, 140, 115, 241, 174, 244 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 240, 71, 232, 234, 178, 179, 246, 180, 251, 225, 232 },
{ 168, 71, 198, 225, 167, 173, 229, 173, 247, 211, 218 },
{ 75, 63, 144, 195, 150, 164, 192, 147, 245, 202, 213 }
}, { /* Coeff Band 1 */
{ 1, 165, 237, 243, 186, 184, 247, 206, 255, 238, 255 },
{ 159, 149, 229, 241, 192, 183, 244, 194, 255, 237, 239 },
{ 110, 126, 195, 243, 196, 196, 239, 187, 255, 237, 242 },
{ 89, 114, 170, 237, 168, 181, 239, 192, 254, 232, 241 },
{ 54, 96, 145, 210, 151, 166, 237, 173, 253, 234, 249 },
{ 17, 65, 108, 187, 140, 165, 194, 148, 244, 199, 227 }
}, { /* Coeff Band 2 */
{ 1, 124, 227, 239, 183, 184, 240, 195, 249, 224, 240 },
{ 112, 132, 206, 235, 183, 184, 232, 180, 246, 220, 234 },
{ 36, 116, 161, 228, 170, 180, 229, 176, 244, 218, 239 },
{ 22, 107, 126, 210, 139, 167, 225, 169, 244, 218, 229 },
{ 9, 82, 90, 163, 122, 151, 210, 149, 246, 212, 227 },
{ 1, 43, 51, 102, 105, 144, 152, 117, 234, 182, 213 }
}, { /* Coeff Band 3 */
{ 1, 160, 234, 244, 195, 188, 244, 197, 251, 231, 250 },
{ 119, 142, 220, 241, 192, 189, 241, 188, 251, 229, 243 },
{ 38, 110, 180, 238, 183, 185, 238, 185, 251, 227, 246 },
{ 27, 95, 130, 229, 164, 181, 234, 178, 251, 223, 233 },
{ 13, 79, 97, 185, 125, 153, 223, 164, 250, 217, 238 },
{ 1, 45, 57, 110, 111, 143, 164, 119, 235, 183, 220 }
}, { /* Coeff Band 4 */
{ 1, 166, 239, 247, 207, 196, 244, 198, 251, 225, 245 },
{ 119, 146, 224, 244, 199, 192, 240, 192, 251, 223, 240 },
{ 46, 108, 189, 237, 180, 191, 236, 186, 249, 218, 248 },
{ 29, 89, 154, 223, 165, 177, 228, 173, 250, 213, 224 },
{ 8, 63, 104, 189, 139, 163, 207, 154, 246, 200, 241 },
{ 1, 27, 40, 103, 102, 144, 146, 118, 230, 165, 223 }
}, { /* Coeff Band 5 */
{ 1, 131, 242, 247, 207, 193, 244, 199, 251, 225, 248 },
{ 150, 118, 231, 244, 202, 191, 239, 191, 252, 214, 241 },
{ 79, 98, 188, 236, 185, 186, 232, 182, 251, 212, 249 },
{ 55, 80, 145, 217, 154, 174, 222, 172, 250, 204, 253 },
{ 27, 56, 94, 162, 128, 153, 198, 143, 248, 199, 240 },
{ 4, 19, 33, 77, 98, 144, 129, 110, 237, 167, 241 }
}
}
}
};
static const vp9_coeff_probs default_coef_probs_8x8[BLOCK_TYPES] = {
{ /* block Type 0 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 158, 29, 127, 187, 147, 164, 183, 146, 227, 188, 162 },
{ 74, 36, 101, 162, 138, 162, 154, 134, 206, 165, 167 },
{ 15, 28, 56, 109, 119, 151, 122, 120, 190, 151, 164 }
}, { /* Coeff Band 1 */
{ 1, 129, 178, 205, 163, 170, 200, 152, 236, 185, 215 },
{ 61, 129, 178, 205, 162, 170, 201, 152, 237, 189, 212 },
{ 42, 113, 161, 203, 159, 168, 200, 153, 237, 188, 212 },
{ 30, 91, 129, 196, 149, 166, 201, 152, 236, 186, 213 },
{ 12, 63, 86, 169, 126, 155, 195, 145, 236, 187, 213 },
{ 6, 34, 33, 89, 100, 139, 132, 115, 206, 157, 183 }
}, { /* Coeff Band 2 */
{ 1, 75, 147, 182, 152, 162, 189, 141, 223, 179, 198 },
{ 36, 71, 125, 184, 141, 161, 204, 147, 241, 200, 202 },
{ 10, 56, 83, 163, 129, 153, 194, 140, 241, 194, 215 },
{ 6, 44, 59, 139, 110, 146, 178, 131, 237, 186, 219 },
{ 5, 35, 35, 96, 101, 140, 152, 117, 227, 170, 210 },
{ 2, 25, 14, 46, 88, 129, 90, 99, 186, 138, 173 }
}, { /* Coeff Band 3 */
{ 1, 135, 179, 191, 161, 166, 198, 136, 234, 184, 215 },
{ 55, 116, 171, 216, 163, 174, 214, 163, 232, 196, 201 },
{ 17, 89, 134, 205, 153, 166, 214, 159, 241, 200, 209 },
{ 9, 69, 98, 187, 132, 159, 206, 149, 243, 198, 215 },
{ 9, 53, 58, 142, 113, 151, 189, 135, 240, 187, 219 },
{ 3, 36, 23, 69, 90, 133, 121, 109, 206, 155, 183 }
}, { /* Coeff Band 4 */
{ 1, 163, 194, 208, 171, 171, 214, 140, 240, 191, 227 },
{ 45, 129, 180, 226, 172, 180, 216, 169, 229, 186, 224 },
{ 13, 94, 138, 216, 160, 171, 219, 167, 238, 198, 217 },
{ 13, 72, 99, 196, 131, 160, 213, 156, 243, 201, 213 },
{ 18, 62, 54, 136, 109, 149, 197, 132, 242, 193, 212 },
{ 5, 40, 25, 60, 92, 133, 111, 105, 200, 150, 179 }
}, { /* Coeff Band 5 */
{ 1, 187, 223, 230, 197, 185, 216, 139, 241, 174, 241 },
{ 58, 144, 205, 236, 189, 188, 209, 168, 231, 172, 234 },
{ 18, 104, 160, 226, 171, 180, 211, 170, 234, 180, 230 },
{ 11, 76, 115, 205, 143, 166, 205, 161, 234, 182, 218 },
{ 14, 66, 66, 138, 116, 150, 192, 128, 231, 180, 204 },
{ 1, 35, 32, 61, 104, 140, 89, 105, 187, 138, 171 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 177, 107, 211, 210, 163, 167, 237, 156, 238, 209, 204 },
{ 119, 101, 183, 200, 161, 168, 215, 148, 234, 191, 204 },
{ 39, 81, 127, 173, 144, 162, 182, 137, 226, 176, 202 }
}, { /* Coeff Band 1 */
{ 1, 175, 199, 199, 161, 158, 242, 141, 254, 226, 249 },
{ 89, 154, 205, 213, 178, 172, 235, 138, 254, 221, 245 },
{ 32, 123, 180, 231, 183, 185, 229, 158, 253, 216, 237 },
{ 23, 102, 134, 226, 155, 177, 231, 175, 253, 215, 244 },
{ 20, 88, 95, 176, 119, 151, 228, 154, 253, 218, 240 },
{ 7, 54, 64, 120, 115, 146, 168, 119, 238, 186, 212 }
}, { /* Coeff Band 2 */
{ 1, 151, 196, 204, 163, 163, 238, 144, 252, 219, 235 },
{ 43, 128, 179, 218, 171, 175, 227, 152, 251, 214, 231 },
{ 15, 94, 126, 216, 158, 174, 223, 165, 250, 211, 231 },
{ 17, 82, 90, 190, 120, 157, 219, 160, 249, 209, 228 },
{ 15, 87, 66, 123, 104, 139, 201, 130, 247, 202, 228 },
{ 1, 43, 35, 70, 98, 134, 134, 105, 226, 168, 203 }
}, { /* Coeff Band 3 */
{ 1, 172, 203, 207, 167, 163, 242, 146, 254, 225, 243 },
{ 52, 139, 194, 224, 179, 179, 232, 153, 253, 219, 237 },
{ 19, 102, 148, 225, 166, 180, 227, 170, 252, 217, 236 },
{ 24, 87, 105, 205, 132, 161, 225, 167, 252, 215, 235 },
{ 23, 90, 76, 140, 108, 144, 213, 138, 251, 211, 235 },
{ 2, 42, 39, 80, 97, 134, 151, 109, 236, 180, 216 }
}, { /* Coeff Band 4 */
{ 1, 183, 216, 216, 178, 168, 245, 145, 255, 226, 245 },
{ 48, 149, 203, 231, 186, 185, 233, 155, 254, 220, 243 },
{ 20, 108, 154, 227, 170, 181, 227, 169, 253, 219, 240 },
{ 32, 87, 109, 205, 136, 163, 223, 166, 253, 217, 241 },
{ 33, 91, 76, 139, 110, 144, 212, 135, 252, 212, 241 },
{ 2, 39, 39, 83, 99, 136, 150, 108, 239, 181, 226 }
}, { /* Coeff Band 5 */
{ 1, 196, 231, 239, 202, 187, 244, 160, 254, 222, 242 },
{ 60, 151, 213, 240, 193, 191, 236, 175, 254, 220, 242 },
{ 13, 107, 164, 231, 173, 181, 232, 177, 253, 219, 240 },
{ 9, 78, 118, 210, 145, 169, 227, 169, 253, 218, 242 },
{ 18, 65, 76, 160, 117, 151, 210, 144, 251, 210, 239 },
{ 1, 28, 38, 92, 101, 140, 148, 113, 237, 177, 227 }
}
}
}, { /* block Type 1 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 210, 33, 210, 232, 185, 185, 210, 166, 207, 192, 146 },
{ 118, 47, 169, 220, 170, 179, 201, 160, 231, 183, 211 },
{ 40, 52, 119, 203, 146, 169, 207, 160, 242, 194, 222 }
}, { /* Coeff Band 1 */
{ 1, 158, 215, 239, 192, 188, 234, 174, 253, 219, 230 },
{ 130, 149, 210, 238, 191, 188, 233, 174, 253, 221, 240 },
{ 59, 123, 193, 237, 188, 187, 232, 174, 252, 220, 246 },
{ 22, 89, 154, 232, 172, 183, 233, 173, 253, 219, 237 },
{ 4, 49, 83, 193, 128, 160, 227, 161, 253, 219, 233 },
{ 1, 18, 27, 87, 90, 133, 160, 112, 242, 185, 231 }
}, { /* Coeff Band 2 */
{ 1, 87, 205, 244, 192, 193, 239, 188, 252, 220, 217 },
{ 64, 93, 169, 237, 175, 186, 237, 184, 253, 222, 235 },
{ 19, 77, 130, 222, 154, 175, 231, 173, 253, 221, 223 },
{ 6, 59, 95, 196, 132, 162, 223, 160, 251, 215, 240 },
{ 1, 37, 57, 144, 109, 146, 201, 135, 250, 205, 238 },
{ 1, 17, 26, 81, 94, 138, 135, 107, 232, 168, 223 }
}, { /* Coeff Band 3 */
{ 1, 150, 219, 243, 198, 192, 237, 182, 253, 227, 245 },
{ 88, 130, 202, 239, 190, 188, 236, 180, 253, 224, 255 },
{ 25, 103, 172, 231, 175, 182, 234, 174, 253, 227, 248 },
{ 7, 78, 128, 215, 156, 172, 228, 166, 252, 222, 248 },
{ 1, 48, 76, 175, 121, 155, 212, 149, 251, 213, 237 },
{ 1, 22, 35, 101, 97, 141, 161, 120, 236, 181, 213 }
}, { /* Coeff Band 4 */
{ 1, 177, 228, 247, 206, 197, 243, 191, 255, 232, 255 },
{ 76, 143, 205, 243, 192, 192, 241, 189, 253, 223, 255 },
{ 17, 107, 163, 233, 170, 183, 239, 183, 253, 227, 218 },
{ 3, 75, 118, 216, 147, 171, 234, 174, 253, 220, 249 },
{ 1, 43, 71, 174, 118, 154, 217, 153, 250, 211, 240 },
{ 1, 19, 31, 93, 93, 136, 154, 116, 235, 178, 228 }
}, { /* Coeff Band 5 */
{ 1, 192, 230, 251, 215, 205, 245, 201, 254, 229, 255 },
{ 66, 142, 206, 248, 200, 202, 244, 197, 255, 224, 255 },
{ 21, 107, 166, 241, 176, 191, 241, 192, 253, 230, 255 },
{ 5, 79, 129, 221, 150, 173, 237, 178, 254, 226, 255 },
{ 1, 43, 72, 173, 117, 151, 217, 150, 253, 216, 245 },
{ 1, 17, 28, 93, 95, 139, 162, 114, 245, 187, 235 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 235, 68, 250, 244, 206, 192, 229, 177, 248, 215, 237 },
{ 169, 88, 225, 235, 191, 184, 222, 170, 246, 205, 237 },
{ 65, 100, 171, 214, 166, 173, 216, 157, 249, 213, 215 }
}, { /* Coeff Band 1 */
{ 1, 191, 246, 250, 217, 202, 244, 195, 255, 226, 128 },
{ 177, 169, 236, 250, 216, 201, 244, 194, 251, 228, 255 },
{ 70, 132, 205, 250, 209, 205, 246, 193, 254, 246, 255 },
{ 41, 108, 165, 244, 172, 194, 246, 202, 255, 229, 255 },
{ 23, 84, 126, 207, 140, 162, 244, 179, 254, 237, 255 },
{ 11, 57, 83, 149, 127, 156, 180, 126, 247, 202, 220 }
}, { /* Coeff Band 2 */
{ 1, 169, 240, 250, 212, 202, 242, 192, 252, 222, 255 },
{ 105, 151, 215, 246, 200, 197, 240, 190, 253, 221, 255 },
{ 24, 111, 166, 237, 177, 188, 236, 183, 252, 213, 255 },
{ 9, 83, 122, 218, 148, 170, 233, 174, 250, 215, 242 },
{ 1, 55, 77, 168, 118, 152, 215, 150, 248, 213, 226 },
{ 1, 26, 36, 104, 98, 146, 149, 116, 235, 182, 225 }
}, { /* Coeff Band 3 */
{ 1, 191, 243, 251, 219, 204, 246, 196, 255, 230, 128 },
{ 97, 168, 225, 248, 207, 198, 244, 193, 254, 225, 192 },
{ 15, 122, 182, 241, 187, 188, 241, 190, 251, 231, 228 },
{ 3, 83, 131, 226, 160, 178, 237, 180, 251, 222, 205 },
{ 1, 49, 77, 184, 121, 155, 222, 159, 249, 216, 249 },
{ 1, 21, 32, 98, 98, 140, 152, 113, 233, 173, 243 }
}, { /* Coeff Band 4 */
{ 1, 202, 242, 253, 226, 212, 245, 205, 254, 226, 255 },
{ 83, 168, 219, 252, 212, 211, 244, 200, 250, 215, 255 },
{ 9, 143, 174, 245, 183, 197, 241, 194, 254, 217, 255 },
{ 1, 105, 129, 228, 154, 179, 233, 179, 253, 211, 255 },
{ 1, 47, 72, 177, 116, 152, 214, 157, 251, 209, 255 },
{ 1, 18, 26, 79, 94, 137, 150, 109, 246, 175, 248 }
}, { /* Coeff Band 5 */
{ 1, 205, 236, 254, 233, 221, 247, 201, 255, 220, 128 },
{ 87, 149, 205, 254, 211, 219, 245, 207, 255, 239, 128 },
{ 56, 122, 162, 248, 164, 195, 246, 211, 255, 231, 128 },
{ 26, 108, 163, 224, 149, 169, 240, 187, 255, 238, 255 },
{ 1, 54, 89, 171, 123, 152, 219, 148, 254, 226, 255 },
{ 1, 21, 34, 99, 90, 140, 174, 112, 252, 210, 255 }
}
}
}
};
static const vp9_coeff_probs default_coef_probs_16x16[BLOCK_TYPES] = {
{ /* block Type 0 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 22, 27, 75, 145, 125, 152, 158, 133, 203, 164, 150 },
{ 6, 27, 63, 124, 120, 150, 135, 127, 190, 154, 152 },
{ 1, 19, 36, 82, 107, 143, 101, 114, 176, 140, 152 }
}, { /* Coeff Band 1 */
{ 1, 104, 143, 189, 150, 164, 194, 146, 239, 191, 205 },
{ 49, 105, 143, 188, 149, 164, 194, 146, 238, 191, 204 },
{ 29, 96, 133, 186, 147, 163, 194, 146, 238, 192, 202 },
{ 14, 79, 112, 178, 139, 160, 193, 144, 237, 191, 205 },
{ 5, 50, 74, 151, 119, 150, 187, 137, 237, 190, 205 },
{ 1, 20, 29, 76, 98, 138, 116, 111, 197, 153, 168 }
}, { /* Coeff Band 2 */
{ 1, 61, 124, 173, 145, 162, 176, 137, 234, 179, 218 },
{ 22, 56, 98, 158, 134, 157, 171, 133, 234, 178, 216 },
{ 7, 44, 70, 137, 122, 151, 162, 128, 232, 175, 214 },
{ 2, 33, 50, 114, 110, 146, 149, 121, 229, 169, 213 },
{ 1, 21, 32, 84, 100, 139, 127, 112, 220, 158, 207 },
{ 1, 11, 16, 46, 91, 133, 79, 100, 175, 133, 163 }
}, { /* Coeff Band 3 */
{ 1, 121, 166, 205, 160, 170, 204, 153, 240, 195, 210 },
{ 34, 101, 146, 198, 153, 167, 202, 152, 239, 193, 213 },
{ 9, 78, 118, 187, 142, 163, 198, 148, 238, 192, 211 },
{ 3, 60, 90, 170, 130, 157, 192, 143, 237, 190, 210 },
{ 1, 39, 59, 138, 112, 148, 177, 132, 233, 183, 207 },
{ 1, 18, 28, 75, 96, 137, 117, 110, 199, 153, 173 }
}, { /* Coeff Band 4 */
{ 1, 148, 183, 220, 169, 175, 217, 164, 244, 203, 216 },
{ 24, 115, 157, 211, 159, 171, 214, 160, 243, 201, 217 },
{ 3, 81, 120, 197, 145, 166, 209, 155, 243, 200, 216 },
{ 1, 56, 88, 176, 129, 158, 200, 147, 241, 196, 216 },
{ 1, 33, 53, 134, 108, 147, 178, 132, 236, 184, 213 },
{ 1, 13, 20, 62, 91, 135, 107, 106, 197, 148, 179 }
}, { /* Coeff Band 5 */
{ 1, 195, 212, 238, 191, 187, 229, 176, 247, 210, 222 },
{ 22, 136, 185, 230, 176, 182, 226, 173, 247, 208, 219 },
{ 3, 88, 137, 215, 156, 173, 222, 167, 246, 207, 220 },
{ 1, 57, 94, 190, 133, 162, 213, 157, 245, 204, 217 },
{ 1, 30, 52, 138, 107, 147, 188, 135, 241, 193, 215 },
{ 1, 11, 19, 61, 89, 136, 110, 104, 203, 153, 175 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 27, 72, 214, 225, 182, 183, 188, 159, 196, 172, 138 },
{ 13, 69, 175, 209, 167, 173, 188, 152, 216, 174, 171 },
{ 5, 52, 103, 162, 138, 160, 159, 137, 202, 164, 167 }
}, { /* Coeff Band 1 */
{ 1, 174, 218, 237, 187, 186, 229, 176, 247, 212, 225 },
{ 122, 158, 210, 236, 185, 185, 228, 174, 247, 210, 217 },
{ 48, 133, 188, 234, 182, 184, 228, 173, 247, 210, 229 },
{ 24, 109, 157, 227, 165, 179, 227, 172, 248, 211, 226 },
{ 12, 82, 114, 198, 137, 162, 223, 162, 247, 209, 220 },
{ 6, 49, 66, 127, 116, 148, 159, 125, 221, 175, 178 }
}, { /* Coeff Band 2 */
{ 1, 151, 207, 229, 180, 181, 223, 168, 247, 210, 211 },
{ 40, 122, 175, 222, 170, 177, 220, 164, 245, 207, 209 },
{ 4, 84, 125, 207, 151, 169, 215, 159, 244, 205, 209 },
{ 1, 58, 89, 180, 129, 159, 206, 150, 243, 202, 204 },
{ 1, 35, 53, 131, 108, 145, 181, 130, 238, 192, 198 },
{ 1, 16, 24, 67, 95, 137, 109, 106, 192, 153, 155 }
}, { /* Coeff Band 3 */
{ 1, 172, 215, 238, 189, 187, 231, 178, 248, 213, 210 },
{ 44, 136, 190, 233, 179, 183, 229, 175, 248, 212, 212 },
{ 4, 94, 144, 222, 161, 176, 226, 170, 247, 211, 212 },
{ 1, 66, 103, 201, 139, 165, 219, 161, 247, 208, 212 },
{ 1, 39, 61, 153, 111, 149, 199, 142, 243, 200, 210 },
{ 1, 16, 25, 74, 93, 136, 124, 109, 204, 160, 171 }
}, { /* Coeff Band 4 */
{ 1, 185, 218, 241, 192, 190, 231, 180, 248, 213, 213 },
{ 32, 143, 191, 235, 181, 185, 229, 176, 248, 211, 215 },
{ 2, 97, 144, 223, 162, 177, 226, 171, 248, 210, 222 },
{ 1, 65, 102, 199, 138, 165, 218, 160, 247, 208, 214 },
{ 1, 35, 56, 145, 109, 147, 193, 137, 243, 198, 213 },
{ 1, 13, 21, 65, 91, 135, 115, 105, 205, 157, 179 }
}, { /* Coeff Band 5 */
{ 1, 209, 222, 243, 199, 192, 233, 181, 249, 215, 228 },
{ 23, 147, 197, 237, 185, 187, 231, 177, 249, 214, 227 },
{ 1, 94, 146, 224, 163, 178, 228, 172, 249, 213, 229 },
{ 1, 60, 99, 197, 136, 164, 220, 161, 248, 210, 227 },
{ 1, 31, 54, 141, 107, 147, 194, 136, 246, 201, 226 },
{ 1, 12, 21, 65, 90, 135, 119, 104, 217, 159, 201 }
}
}
}, { /* block Type 1 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 203, 35, 218, 235, 189, 187, 194, 174, 175, 150, 127 },
{ 95, 50, 155, 211, 161, 173, 190, 163, 198, 161, 187 },
{ 21, 46, 93, 178, 130, 157, 200, 151, 224, 186, 191 }
}, { /* Coeff Band 1 */
{ 1, 155, 198, 236, 183, 187, 223, 175, 250, 209, 255 },
{ 115, 147, 192, 235, 182, 186, 222, 173, 244, 199, 222 },
{ 43, 124, 174, 234, 178, 186, 222, 176, 249, 201, 255 },
{ 13, 96, 143, 227, 164, 181, 223, 174, 248, 197, 237 },
{ 2, 59, 91, 197, 131, 163, 213, 162, 246, 198, 241 },
{ 1, 19, 29, 85, 96, 139, 128, 116, 215, 153, 204 }
}, { /* Coeff Band 2 */
{ 1, 91, 180, 231, 170, 180, 237, 181, 248, 213, 230 },
{ 39, 83, 139, 220, 153, 173, 233, 179, 243, 200, 228 },
{ 12, 63, 106, 203, 136, 163, 227, 170, 244, 200, 234 },
{ 5, 48, 79, 178, 123, 154, 215, 155, 244, 197, 232 },
{ 1, 32, 50, 125, 104, 144, 171, 130, 238, 181, 229 },
{ 1, 12, 18, 54, 88, 131, 92, 99, 201, 142, 193 }
}, { /* Coeff Band 3 */
{ 1, 152, 202, 238, 186, 188, 227, 178, 248, 205, 229 },
{ 63, 125, 183, 234, 178, 184, 225, 179, 248, 205, 228 },
{ 15, 100, 153, 227, 166, 180, 223, 173, 244, 198, 229 },
{ 4, 76, 119, 210, 149, 170, 215, 165, 245, 200, 221 },
{ 1, 46, 73, 165, 120, 154, 192, 144, 241, 189, 225 },
{ 1, 18, 27, 78, 95, 136, 124, 110, 219, 158, 207 }
}, { /* Coeff Band 4 */
{ 1, 181, 211, 243, 197, 195, 228, 180, 249, 211, 252 },
{ 40, 138, 189, 237, 184, 189, 226, 178, 249, 208, 247 },
{ 7, 103, 153, 226, 166, 179, 223, 171, 249, 209, 224 },
{ 1, 71, 110, 200, 143, 166, 213, 159, 249, 206, 241 },
{ 1, 37, 60, 144, 111, 150, 189, 135, 245, 196, 232 },
{ 1, 15, 25, 75, 91, 134, 128, 108, 224, 163, 213 }
}, { /* Coeff Band 5 */
{ 1, 215, 219, 246, 205, 197, 236, 183, 252, 221, 235 },
{ 32, 146, 197, 239, 187, 188, 234, 180, 252, 223, 247 },
{ 6, 100, 150, 227, 167, 178, 233, 178, 252, 219, 233 },
{ 1, 63, 102, 203, 138, 167, 225, 162, 252, 216, 240 },
{ 1, 33, 56, 148, 109, 146, 202, 138, 250, 208, 237 },
{ 1, 15, 25, 75, 90, 131, 138, 108, 236, 171, 235 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 228, 37, 245, 229, 199, 183, 200, 146, 240, 188, 223 },
{ 138, 62, 209, 217, 184, 177, 195, 148, 246, 186, 236 },
{ 42, 79, 146, 185, 156, 167, 183, 137, 247, 189, 251 }
}, { /* Coeff Band 1 */
{ 1, 205, 242, 248, 210, 202, 245, 193, 233, 230, 255 },
{ 191, 185, 234, 249, 210, 201, 245, 194, 255, 197, 128 },
{ 112, 148, 214, 247, 208, 201, 246, 192, 255, 238, 128 },
{ 76, 120, 182, 246, 190, 198, 246, 202, 255, 244, 128 },
{ 51, 95, 145, 232, 156, 177, 246, 199, 255, 233, 128 },
{ 47, 71, 104, 195, 129, 158, 230, 167, 253, 224, 255 }
}, { /* Coeff Band 2 */
{ 1, 182, 235, 247, 204, 195, 246, 202, 255, 227, 128 },
{ 104, 145, 204, 243, 189, 191, 242, 199, 255, 229, 128 },
{ 35, 107, 159, 234, 167, 181, 244, 188, 255, 221, 128 },
{ 17, 87, 126, 216, 151, 168, 242, 179, 255, 242, 128 },
{ 4, 68, 91, 182, 131, 154, 222, 153, 255, 228, 128 },
{ 1, 55, 64, 126, 105, 137, 193, 121, 247, 194, 255 }
}, { /* Coeff Band 3 */
{ 1, 210, 239, 249, 209, 201, 249, 205, 255, 255, 128 },
{ 91, 162, 218, 247, 200, 195, 250, 199, 255, 255, 128 },
{ 16, 116, 173, 242, 184, 190, 251, 193, 255, 205, 128 },
{ 5, 85, 133, 228, 156, 178, 244, 184, 255, 251, 128 },
{ 1, 55, 83, 196, 125, 164, 236, 168, 249, 249, 255 },
{ 1, 24, 39, 127, 92, 154, 183, 133, 255, 192, 128 }
}, { /* Coeff Band 4 */
{ 1, 225, 242, 252, 218, 205, 251, 207, 255, 255, 128 },
{ 67, 174, 223, 249, 205, 199, 250, 210, 255, 234, 128 },
{ 10, 119, 177, 243, 186, 187, 253, 199, 255, 255, 128 },
{ 2, 81, 129, 228, 154, 177, 244, 193, 255, 251, 128 },
{ 1, 48, 78, 193, 122, 152, 240, 171, 255, 240, 128 },
{ 1, 19, 43, 116, 96, 128, 195, 135, 255, 234, 128 }
}, { /* Coeff Band 5 */
{ 1, 237, 210, 255, 213, 219, 255, 235, 255, 219, 128 },
{ 49, 163, 203, 252, 182, 198, 255, 235, 255, 255, 128 },
{ 23, 114, 156, 247, 196, 187, 255, 238, 255, 255, 128 },
{ 6, 71, 124, 248, 163, 202, 253, 203, 255, 255, 128 },
{ 1, 35, 74, 226, 160, 162, 246, 189, 255, 244, 128 },
{ 1, 16, 19, 136, 92, 164, 237, 108, 255, 255, 128 }
}
}
}
};
static const vp9_coeff_probs default_coef_probs_32x32[BLOCK_TYPES] = {
{ /* block Type 0 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 38, 32, 115, 163, 140, 164, 143, 139, 167, 157, 105 },
{ 11, 27, 73, 131, 126, 154, 131, 129, 178, 151, 138 },
{ 2, 19, 36, 83, 107, 144, 102, 116, 169, 140, 149 }
}, { /* Coeff Band 1 */
{ 1, 116, 150, 184, 149, 164, 180, 140, 230, 178, 199 },
{ 71, 114, 149, 183, 150, 164, 181, 141, 229, 179, 203 },
{ 39, 102, 139, 182, 148, 164, 181, 142, 229, 179, 197 },
{ 16, 82, 117, 176, 143, 161, 180, 141, 230, 180, 200 },
{ 3, 49, 72, 148, 120, 152, 175, 134, 230, 178, 200 },
{ 1, 14, 21, 56, 94, 135, 92, 103, 179, 141, 158 }
}, { /* Coeff Band 2 */
{ 1, 56, 140, 180, 151, 164, 175, 140, 224, 175, 194 },
{ 28, 51, 101, 162, 135, 158, 170, 136, 222, 175, 193 },
{ 9, 38, 68, 137, 120, 151, 160, 129, 221, 172, 193 },
{ 3, 28, 47, 111, 108, 145, 145, 121, 216, 165, 192 },
{ 1, 17, 28, 76, 97, 137, 117, 110, 206, 152, 189 },
{ 1, 7, 11, 34, 89, 131, 62, 96, 154, 123, 148 }
}, { /* Coeff Band 3 */
{ 1, 129, 170, 198, 160, 169, 186, 147, 231, 181, 201 },
{ 45, 106, 147, 191, 152, 166, 186, 145, 228, 182, 197 },
{ 14, 81, 117, 178, 141, 161, 183, 143, 227, 184, 187 },
{ 4, 61, 89, 159, 129, 156, 178, 137, 226, 182, 174 },
{ 1, 39, 59, 126, 113, 146, 161, 126, 227, 176, 186 },
{ 1, 18, 26, 67, 98, 137, 103, 107, 190, 146, 166 }
}, { /* Coeff Band 4 */
{ 1, 152, 180, 211, 166, 173, 206, 154, 243, 197, 216 },
{ 24, 112, 150, 202, 155, 169, 204, 152, 242, 196, 212 },
{ 3, 76, 112, 186, 141, 163, 199, 148, 241, 195, 212 },
{ 1, 51, 80, 164, 124, 155, 191, 141, 240, 192, 212 },
{ 1, 30, 48, 123, 106, 144, 170, 127, 235, 182, 210 },
{ 1, 13, 20, 60, 92, 134, 102, 105, 189, 146, 160 }
}, { /* Coeff Band 5 */
{ 1, 212, 207, 235, 190, 187, 220, 170, 240, 200, 207 },
{ 11, 134, 179, 226, 175, 181, 214, 166, 236, 195, 201 },
{ 1, 86, 133, 210, 155, 172, 210, 161, 236, 194, 201 },
{ 1, 54, 88, 180, 129, 159, 200, 150, 235, 191, 200 },
{ 1, 27, 46, 122, 104, 143, 170, 128, 230, 181, 198 },
{ 1, 8, 15, 45, 88, 132, 81, 99, 171, 135, 154 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 50, 51, 216, 230, 193, 186, 193, 156, 219, 181, 168 },
{ 36, 44, 174, 210, 175, 174, 186, 149, 218, 179, 172 },
{ 12, 32, 100, 161, 140, 159, 162, 135, 209, 168, 172 }
}, { /* Coeff Band 1 */
{ 1, 179, 230, 238, 191, 185, 229, 171, 250, 213, 200 },
{ 167, 173, 225, 237, 190, 186, 231, 171, 245, 209, 223 },
{ 115, 153, 208, 237, 187, 186, 229, 174, 247, 215, 216 },
{ 71, 131, 182, 233, 176, 184, 228, 172, 247, 210, 238 },
{ 41, 108, 145, 214, 151, 169, 228, 169, 246, 208, 210 },
{ 19, 78, 95, 151, 128, 155, 168, 134, 218, 173, 175 }
}, { /* Coeff Band 2 */
{ 1, 147, 215, 231, 181, 181, 227, 171, 249, 212, 218 },
{ 65, 122, 179, 222, 168, 175, 223, 166, 248, 213, 216 },
{ 11, 85, 126, 204, 148, 167, 218, 159, 247, 208, 222 },
{ 4, 61, 89, 177, 128, 158, 206, 147, 246, 204, 208 },
{ 1, 38, 54, 130, 109, 145, 179, 128, 241, 191, 203 },
{ 1, 18, 24, 68, 96, 137, 110, 107, 196, 153, 145 }
}, { /* Coeff Band 3 */
{ 1, 182, 227, 239, 193, 187, 231, 177, 250, 214, 189 },
{ 73, 147, 202, 234, 182, 183, 230, 174, 248, 213, 219 },
{ 12, 104, 154, 223, 164, 176, 228, 171, 248, 210, 225 },
{ 3, 74, 113, 205, 143, 167, 222, 163, 246, 211, 214 },
{ 1, 45, 69, 163, 116, 151, 205, 144, 244, 202, 205 },
{ 1, 19, 30, 87, 96, 138, 134, 115, 199, 165, 133 }
}, { /* Coeff Band 4 */
{ 1, 198, 229, 242, 196, 190, 235, 182, 248, 216, 224 },
{ 55, 154, 201, 236, 183, 185, 233, 179, 247, 214, 190 },
{ 5, 101, 150, 225, 163, 177, 229, 172, 245, 210, 205 },
{ 1, 68, 106, 203, 140, 165, 223, 165, 246, 209, 194 },
{ 1, 38, 62, 154, 112, 149, 199, 143, 241, 198, 191 },
{ 1, 14, 22, 66, 94, 133, 109, 107, 178, 154, 122 }
}, { /* Coeff Band 5 */
{ 1, 237, 226, 244, 205, 196, 225, 177, 243, 203, 210 },
{ 24, 154, 200, 238, 189, 189, 221, 173, 240, 199, 210 },
{ 2, 98, 150, 224, 167, 179, 217, 168, 240, 199, 207 },
{ 1, 61, 99, 193, 137, 164, 207, 155, 239, 197, 208 },
{ 1, 28, 49, 128, 105, 145, 177, 130, 234, 185, 206 },
{ 1, 9, 16, 48, 89, 134, 89, 99, 183, 140, 169 }
}
}
}, { /* block Type 1 */
{ /* Intra */
{ /* Coeff Band 0 */
{ 176, 22, 201, 227, 185, 189, 160, 172, 115, 141, 105 },
{ 64, 33, 120, 195, 149, 171, 170, 150, 182, 175, 139 },
{ 12, 33, 68, 151, 118, 153, 172, 138, 202, 175, 153 }
}, { /* Coeff Band 1 */
{ 1, 125, 175, 228, 163, 176, 215, 171, 226, 193, 165 },
{ 127, 126, 174, 224, 163, 177, 212, 167, 225, 175, 235 },
{ 57, 114, 159, 223, 166, 175, 216, 167, 234, 182, 211 },
{ 23, 93, 133, 215, 150, 174, 216, 171, 233, 174, 176 },
{ 4, 56, 84, 178, 127, 157, 209, 149, 233, 197, 194 },
{ 1, 19, 26, 70, 93, 136, 114, 108, 193, 150, 167 }
}, { /* Coeff Band 2 */
{ 1, 76, 172, 217, 161, 172, 216, 165, 240, 188, 226 },
{ 41, 73, 136, 208, 152, 168, 214, 163, 233, 189, 248 },
{ 14, 59, 102, 195, 137, 163, 209, 158, 227, 184, 204 },
{ 4, 45, 75, 168, 122, 153, 197, 148, 231, 193, 178 },
{ 1, 33, 48, 118, 106, 148, 154, 126, 221, 168, 211 },
{ 1, 12, 16, 42, 90, 143, 61, 94, 159, 122, 167 }
}, { /* Coeff Band 3 */
{ 1, 134, 186, 226, 173, 180, 208, 172, 220, 179, 205 },
{ 60, 114, 164, 219, 166, 177, 207, 166, 231, 176, 208 },
{ 18, 90, 134, 208, 152, 175, 200, 164, 225, 181, 199 },
{ 7, 67, 102, 189, 139, 164, 192, 155, 225, 172, 209 },
{ 1, 39, 59, 137, 116, 151, 160, 132, 222, 166, 212 },
{ 1, 12, 17, 50, 93, 134, 82, 102, 181, 131, 190 }
}, { /* Coeff Band 4 */
{ 1, 160, 195, 229, 180, 185, 204, 163, 243, 185, 223 },
{ 31, 124, 170, 221, 170, 179, 201, 164, 240, 183, 223 },
{ 5, 91, 134, 204, 154, 170, 191, 155, 236, 178, 232 },
{ 1, 62, 95, 173, 135, 159, 180, 145, 234, 179, 225 },
{ 1, 30, 48, 116, 109, 147, 152, 123, 231, 170, 224 },
{ 1, 11, 17, 53, 90, 133, 93, 102, 201, 139, 202 }
}, { /* Coeff Band 5 */
{ 1, 215, 203, 233, 186, 183, 226, 170, 249, 213, 225 },
{ 13, 133, 175, 224, 170, 178, 224, 167, 250, 212, 235 },
{ 1, 83, 127, 209, 151, 169, 221, 162, 251, 212, 243 },
{ 1, 53, 85, 182, 127, 157, 213, 153, 250, 210, 234 },
{ 1, 30, 47, 131, 103, 143, 190, 132, 248, 200, 240 },
{ 1, 14, 21, 67, 89, 129, 126, 104, 232, 167, 223 }
}
}, { /* Inter */
{ /* Coeff Band 0 */
{ 193, 35, 239, 239, 206, 194, 195, 152, 244, 200, 255 },
{ 77, 57, 198, 224, 192, 187, 181, 145, 242, 190, 248 },
{ 21, 54, 149, 197, 172, 171, 169, 138, 238, 178, 241 }
}, { /* Coeff Band 1 */
{ 1, 227, 241, 247, 195, 195, 245, 199, 255, 255, 128 },
{ 189, 223, 237, 249, 199, 200, 238, 198, 255, 255, 128 },
{ 125, 204, 226, 247, 198, 199, 251, 213, 255, 255, 128 },
{ 101, 167, 207, 246, 193, 201, 245, 168, 255, 255, 128 },
{ 89, 121, 174, 237, 169, 184, 246, 204, 255, 255, 128 },
{ 71, 79, 135, 216, 149, 170, 234, 168, 255, 226, 128 }
}, { /* Coeff Band 2 */
{ 1, 207, 235, 250, 220, 204, 250, 201, 255, 255, 128 },
{ 103, 160, 210, 245, 195, 188, 249, 195, 255, 255, 128 },
{ 33, 130, 165, 234, 168, 183, 253, 199, 255, 255, 128 },
{ 10, 113, 138, 223, 146, 180, 248, 199, 255, 255, 128 },
{ 1, 88, 104, 172, 112, 174, 221, 126, 255, 217, 128 },
{ 1, 87, 70, 160, 68, 140, 171, 85, 255, 85, 128 }
}, { /* Coeff Band 3 */
{ 1, 230, 240, 249, 209, 200, 243, 199, 255, 228, 128 },
{ 60, 178, 218, 247, 203, 200, 247, 198, 255, 255, 128 },
{ 8, 119, 162, 241, 188, 185, 252, 202, 255, 255, 128 },
{ 2, 78, 119, 218, 149, 162, 247, 184, 255, 255, 128 },
{ 1, 48, 81, 172, 142, 148, 239, 140, 255, 239, 128 },
{ 1, 29, 23, 82, 96, 102, 181, 149, 255, 255, 128 }
}, { /* Coeff Band 4 */
{ 1, 240, 241, 250, 216, 203, 248, 188, 255, 255, 128 },
{ 60, 180, 222, 247, 202, 195, 247, 191, 255, 255, 128 },
{ 9, 120, 169, 240, 190, 189, 249, 181, 255, 255, 128 },
{ 2, 85, 126, 223, 154, 178, 240, 184, 255, 255, 128 },
{ 1, 47, 90, 198, 132, 158, 233, 162, 255, 224, 128 },
{ 1, 33, 34, 143, 116, 156, 217, 128, 255, 255, 128 }
}, { /* Coeff Band 5 */
{ 1, 250, 193, 249, 188, 193, 255, 236, 255, 255, 128 },
{ 35, 187, 185, 247, 154, 184, 255, 247, 255, 171, 128 },
{ 20, 132, 114, 223, 172, 165, 255, 229, 255, 255, 128 },
{ 4, 97, 96, 218, 96, 162, 255, 164, 255, 253, 128 },
{ 1, 57, 35, 197, 154, 173, 254, 215, 255, 255, 128 },
{ 1, 8, 2, 161, 10, 57, 230, 228, 255, 171, 128 }
}
}
}
};
#if CONFIG_CODE_NONZEROCOUNT
// TODO(debargha): Replace with probabilities once the stats stabilize
static const unsigned int default_nzc4x4_counts[MAX_NZC_CONTEXTS]
[REF_TYPES]
[BLOCK_TYPES]
[NZC4X4_TOKENS] = {
{
{
{ 967652, 29023, 15039, 6952, 1568, 116 },
{ 789116, 22938, 4522, 1935, 520, 47 }
}, {
{ 967652, 29023, 15039, 6952, 1568, 116 },
{ 789116, 22938, 4522, 1935, 520, 47 }
},
}, {
{
{ 124684, 37167, 15270, 8483, 1777, 102 },
{ 10405, 12395, 3401, 3574, 2461, 771 }
}, {
{ 124684, 37167, 15270, 8483, 1777, 102 },
{ 10405, 12395, 3401, 3574, 2461, 771 }
}
}, {
{
{ 41100, 22976, 15627, 16137, 7982, 793 },
{ 4249, 3084, 2131, 4081, 6439, 1653 }
}, {
{ 41100, 22976, 15627, 16137, 7982, 793 },
{ 4249, 3084, 2131, 4081, 6439, 1653 }
}
}
};
static const unsigned int default_nzc8x8_counts[MAX_NZC_CONTEXTS]
[REF_TYPES]
[BLOCK_TYPES]
[NZC8X8_TOKENS] = {
{
{
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 5 },
}, {
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 5 },
}
}, {
{
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6 },
}, {
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6 },
}
}, {
{
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12 },
}, {
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12 },
}
}
};
static const unsigned int default_nzc16x16_counts[MAX_NZC_CONTEXTS]
[REF_TYPES]
[BLOCK_TYPES]
[NZC16X16_TOKENS] = {
{
{
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10, 5, 2 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 50, 8, 1 },
}, {
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10, 5, 2 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 50, 8, 1 },
}
}, {
{
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7, 4, 2 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6, 4, 2 },
}, {
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7, 4, 2 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6, 4, 2 },
}
}, {
{
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17, 10, 5 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12, 6, 3 },
}, {
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17, 10, 5 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12, 6, 3 },
}
}
};
static const unsigned int default_nzc32x32_counts[MAX_NZC_CONTEXTS]
[REF_TYPES]
[BLOCK_TYPES]
[NZC32X32_TOKENS] = {
{
{
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10, 5, 2, 1, 0 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 50, 8, 1 },
}, {
{ 372988, 62777, 19440, 11812, 5145, 1917, 439, 10, 5, 2, 1, 0 },
{ 72052, 30468, 6973, 3250, 1500, 750, 375, 50, 8, 1 },
}
}, {
{
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7, 4, 2, 1, 0 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6, 4, 2 },
}, {
{ 121533, 33527, 15655, 11920, 5723, 2009, 315, 7, 4, 2, 1, 0 },
{ 17772, 23120, 13127, 8115, 4000, 2000, 200, 6, 4, 2 },
}
}, {
{
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17, 10, 5, 2, 1 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12, 6, 3 },
}, {
{ 29408, 11758, 8023, 10123, 6705, 2468, 369, 17, 10, 5, 2, 1 },
{ 6612, 13874, 13329, 13022, 6500, 3250, 300, 12, 6, 3 },
}
}
};
#endif