2
0

coefupdateprobs.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /*
  2. * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef VPX_VP8_COMMON_COEFUPDATEPROBS_H_
  11. #define VPX_VP8_COMMON_COEFUPDATEPROBS_H_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* Update probabilities for the nodes in the token entropy tree.
  16. Generated file included by entropy.c */
  17. const vp8_prob vp8_coef_update_probs
  18. [BLOCK_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS][ENTROPY_NODES] = {
  19. {
  20. {
  21. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  22. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  23. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  24. },
  25. {
  26. { 176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  27. { 223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255 },
  28. { 249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  29. },
  30. {
  31. { 255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255 },
  32. { 234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  33. { 253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  34. },
  35. {
  36. { 255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  37. { 239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  38. { 254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  39. },
  40. {
  41. { 255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  42. { 251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  43. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  44. },
  45. {
  46. { 255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  47. { 251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  48. { 254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  49. },
  50. {
  51. { 255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255 },
  52. { 250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255 },
  53. { 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  54. },
  55. {
  56. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  57. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  58. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  59. },
  60. },
  61. {
  62. {
  63. { 217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  64. { 225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255 },
  65. { 234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255 },
  66. },
  67. {
  68. { 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  69. { 223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  70. { 238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255 },
  71. },
  72. {
  73. { 255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  74. { 249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  75. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  76. },
  77. {
  78. { 255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  79. { 247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  80. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  81. },
  82. {
  83. { 255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  84. { 252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  85. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  86. },
  87. {
  88. { 255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  89. { 253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  90. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  91. },
  92. {
  93. { 255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  94. { 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  95. { 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  96. },
  97. {
  98. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  99. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  100. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  101. },
  102. },
  103. {
  104. {
  105. { 186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255 },
  106. { 234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255 },
  107. { 251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255 },
  108. },
  109. {
  110. { 255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  111. { 236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  112. { 251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255 },
  113. },
  114. {
  115. { 255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  116. { 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  117. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  118. },
  119. {
  120. { 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  121. { 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  122. { 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  123. },
  124. {
  125. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  126. { 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  127. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  128. },
  129. {
  130. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  131. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  132. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  133. },
  134. {
  135. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  136. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  137. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  138. },
  139. {
  140. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  141. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  142. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  143. },
  144. },
  145. {
  146. {
  147. { 248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  148. { 250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255 },
  149. { 248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255 },
  150. },
  151. {
  152. { 255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  153. { 246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  154. { 252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255 },
  155. },
  156. {
  157. { 255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255 },
  158. { 248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  159. { 253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255 },
  160. },
  161. {
  162. { 255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  163. { 245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  164. { 253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  165. },
  166. {
  167. { 255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  168. { 252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  169. { 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  170. },
  171. {
  172. { 255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  173. { 249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  174. { 255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255 },
  175. },
  176. {
  177. { 255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255 },
  178. { 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  179. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  180. },
  181. {
  182. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  183. { 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  184. { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 },
  185. },
  186. },
  187. };
  188. #ifdef __cplusplus
  189. } // extern "C"
  190. #endif
  191. #endif // VPX_VP8_COMMON_COEFUPDATEPROBS_H_