| OLD | NEW |
| 1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 // | 9 // |
| 10 // Coding of token probabilities, intra modes and segments. | 10 // Coding of token probabilities, intra modes and segments. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #include "./vp8enci.h" | 14 #include "./vp8i_enc.h" |
| 15 | 15 |
| 16 //------------------------------------------------------------------------------ | 16 //------------------------------------------------------------------------------ |
| 17 // Default probabilities | 17 // Default probabilities |
| 18 | 18 |
| 19 // Paragraph 13.5 | 19 // Paragraph 13.5 |
| 20 const uint8_t | 20 const uint8_t |
| 21 VP8CoeffsProba0[NUM_TYPES][NUM_BANDS][NUM_CTX][NUM_PROBAS] = { | 21 VP8CoeffsProba0[NUM_TYPES][NUM_BANDS][NUM_CTX][NUM_PROBAS] = { |
| 22 { { { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 }, | 22 { { { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 }, |
| 23 { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 }, | 23 { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 }, |
| 24 { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 } | 24 { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128 } |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 } | 495 } |
| 496 } | 496 } |
| 497 } | 497 } |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 if (VP8PutBitUniform(bw, probas->use_skip_proba_)) { | 500 if (VP8PutBitUniform(bw, probas->use_skip_proba_)) { |
| 501 VP8PutBits(bw, probas->skip_proba_, 8); | 501 VP8PutBits(bw, probas->skip_proba_, 8); |
| 502 } | 502 } |
| 503 } | 503 } |
| 504 | 504 |
| OLD | NEW |