| OLD | NEW |
| 1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // This code is licensed under the same terms as WebM: | 3 // Use of this source code is governed by a BSD-style license |
| 4 // Software License Agreement: http://www.webmproject.org/license/software/ | 4 // that can be found in the COPYING file in the root of the source |
| 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. |
| 6 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 7 // | 9 // |
| 8 // WebP encoder: internal header. | 10 // WebP encoder: internal header. |
| 9 // | 11 // |
| 10 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 11 | 13 |
| 12 #ifndef WEBP_ENC_VP8ENCI_H_ | 14 #ifndef WEBP_ENC_VP8ENCI_H_ |
| 13 #define WEBP_ENC_VP8ENCI_H_ | 15 #define WEBP_ENC_VP8ENCI_H_ |
| 14 | 16 |
| 15 #include <string.h> // for memcpy() | 17 #include <string.h> // for memcpy() |
| 16 #include "../webp/encode.h" | 18 #include "../webp/encode.h" |
| 17 #include "../dsp/dsp.h" | 19 #include "../dsp/dsp.h" |
| 18 #include "../utils/bit_writer.h" | 20 #include "../utils/bit_writer.h" |
| 19 #include "../utils/thread.h" | 21 #include "../utils/thread.h" |
| 20 | 22 |
| 21 #if defined(__cplusplus) || defined(c_plusplus) | 23 #if defined(__cplusplus) || defined(c_plusplus) |
| 22 extern "C" { | 24 extern "C" { |
| 23 #endif | 25 #endif |
| 24 | 26 |
| 25 //------------------------------------------------------------------------------ | 27 //------------------------------------------------------------------------------ |
| 26 // Various defines and enums | 28 // Various defines and enums |
| 27 | 29 |
| 28 // version numbers | 30 // version numbers |
| 29 #define ENC_MAJ_VERSION 0 | 31 #define ENC_MAJ_VERSION 0 |
| 30 #define ENC_MIN_VERSION 3 | 32 #define ENC_MIN_VERSION 3 |
| 31 #define ENC_REV_VERSION 0 | 33 #define ENC_REV_VERSION 1 |
| 32 | 34 |
| 33 // intra prediction modes | 35 // intra prediction modes |
| 34 enum { B_DC_PRED = 0, // 4x4 modes | 36 enum { B_DC_PRED = 0, // 4x4 modes |
| 35 B_TM_PRED = 1, | 37 B_TM_PRED = 1, |
| 36 B_VE_PRED = 2, | 38 B_VE_PRED = 2, |
| 37 B_HE_PRED = 3, | 39 B_HE_PRED = 3, |
| 38 B_RD_PRED = 4, | 40 B_RD_PRED = 4, |
| 39 B_VR_PRED = 5, | 41 B_VR_PRED = 5, |
| 40 B_LD_PRED = 6, | 42 B_LD_PRED = 6, |
| 41 B_VL_PRED = 7, | 43 B_VL_PRED = 7, |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 void VP8StoreFilterStats(VP8EncIterator* const it); | 541 void VP8StoreFilterStats(VP8EncIterator* const it); |
| 540 void VP8AdjustFilterStrength(VP8EncIterator* const it); | 542 void VP8AdjustFilterStrength(VP8EncIterator* const it); |
| 541 | 543 |
| 542 //------------------------------------------------------------------------------ | 544 //------------------------------------------------------------------------------ |
| 543 | 545 |
| 544 #if defined(__cplusplus) || defined(c_plusplus) | 546 #if defined(__cplusplus) || defined(c_plusplus) |
| 545 } // extern "C" | 547 } // extern "C" |
| 546 #endif | 548 #endif |
| 547 | 549 |
| 548 #endif /* WEBP_ENC_VP8ENCI_H_ */ | 550 #endif /* WEBP_ENC_VP8ENCI_H_ */ |
| OLD | NEW |