| OLD | NEW |
| 1 // Copyright 2014 Google Inc. All Rights Reserved. | 1 // Copyright 2014 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 // Author: Skal (pascal.massimino@gmail.com) | 10 // Author: Skal (pascal.massimino@gmail.com) |
| 11 | 11 |
| 12 #include "./dsp.h" | 12 #include "./dsp.h" |
| 13 #include "../enc/cost.h" | 13 #include "../enc/cost_enc.h" |
| 14 | 14 |
| 15 //------------------------------------------------------------------------------ | 15 //------------------------------------------------------------------------------ |
| 16 // Boolean-cost cost table | 16 // Boolean-cost cost table |
| 17 | 17 |
| 18 const uint16_t VP8EntropyCost[256] = { | 18 const uint16_t VP8EntropyCost[256] = { |
| 19 1792, 1792, 1792, 1536, 1536, 1408, 1366, 1280, 1280, 1216, | 19 1792, 1792, 1792, 1536, 1536, 1408, 1366, 1280, 1280, 1216, |
| 20 1178, 1152, 1110, 1076, 1061, 1024, 1024, 992, 968, 951, | 20 1178, 1152, 1110, 1076, 1061, 1024, 1024, 992, 968, 951, |
| 21 939, 911, 896, 878, 871, 854, 838, 820, 811, 794, | 21 939, 911, 896, 878, 871, 854, 838, 820, 811, 794, |
| 22 786, 768, 768, 752, 740, 732, 720, 709, 704, 690, | 22 786, 768, 768, 752, 740, 732, 720, 709, 704, 690, |
| 23 683, 672, 666, 655, 647, 640, 631, 622, 615, 607, | 23 683, 672, 666, 655, 647, 640, 631, 622, 615, 607, |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 if (VP8GetCPUInfo(kSSE2)) { | 403 if (VP8GetCPUInfo(kSSE2)) { |
| 404 VP8EncDspCostInitSSE2(); | 404 VP8EncDspCostInitSSE2(); |
| 405 } | 405 } |
| 406 #endif | 406 #endif |
| 407 } | 407 } |
| 408 | 408 |
| 409 cost_last_cpuinfo_used = VP8GetCPUInfo; | 409 cost_last_cpuinfo_used = VP8GetCPUInfo; |
| 410 } | 410 } |
| 411 | 411 |
| 412 //------------------------------------------------------------------------------ | 412 //------------------------------------------------------------------------------ |
| OLD | NEW |