| 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 // Cost tables for level and modes. | 10 // Cost tables for level and modes. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #ifndef WEBP_ENC_COST_H_ | 14 #ifndef WEBP_ENC_COST_H_ |
| 15 #define WEBP_ENC_COST_H_ | 15 #define WEBP_ENC_COST_H_ |
| 16 | 16 |
| 17 #include <assert.h> | 17 #include <assert.h> |
| 18 #include <stdlib.h> | 18 #include <stdlib.h> |
| 19 #include "./vp8enci.h" | 19 #include "./vp8i_enc.h" |
| 20 | 20 |
| 21 #ifdef __cplusplus | 21 #ifdef __cplusplus |
| 22 extern "C" { | 22 extern "C" { |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 // On-the-fly info about the current set of residuals. Handy to avoid | 25 // On-the-fly info about the current set of residuals. Handy to avoid |
| 26 // passing zillions of params. | 26 // passing zillions of params. |
| 27 typedef struct VP8Residual VP8Residual; | 27 typedef struct VP8Residual VP8Residual; |
| 28 struct VP8Residual { | 28 struct VP8Residual { |
| 29 int first; | 29 int first; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 extern const uint16_t VP8FixedCostsI16[4]; | 73 extern const uint16_t VP8FixedCostsI16[4]; |
| 74 extern const uint16_t VP8FixedCostsI4[NUM_BMODES][NUM_BMODES][NUM_BMODES]; | 74 extern const uint16_t VP8FixedCostsI4[NUM_BMODES][NUM_BMODES][NUM_BMODES]; |
| 75 | 75 |
| 76 //------------------------------------------------------------------------------ | 76 //------------------------------------------------------------------------------ |
| 77 | 77 |
| 78 #ifdef __cplusplus | 78 #ifdef __cplusplus |
| 79 } // extern "C" | 79 } // extern "C" |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 #endif /* WEBP_ENC_COST_H_ */ | 82 #endif /* WEBP_ENC_COST_H_ */ |
| OLD | NEW |