| OLD | NEW |
| 1 // Copyright 2010 Google Inc. All Rights Reserved. | 1 // Copyright 2010 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 // VP8 decoder: internal header. | 10 // VP8 decoder: internal header. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #ifndef WEBP_DEC_VP8I_H_ | 14 #ifndef WEBP_DEC_VP8I_H_ |
| 15 #define WEBP_DEC_VP8I_H_ | 15 #define WEBP_DEC_VP8I_H_ |
| 16 | 16 |
| 17 #include <string.h> // for memcpy() | 17 #include <string.h> // for memcpy() |
| 18 #include "./common.h" | 18 #include "./common_dec.h" |
| 19 #include "./vp8li.h" | 19 #include "./vp8li_dec.h" |
| 20 #include "../utils/bit_reader.h" | 20 #include "../utils/bit_reader_utils.h" |
| 21 #include "../utils/random.h" | 21 #include "../utils/random_utils.h" |
| 22 #include "../utils/thread.h" | 22 #include "../utils/thread_utils.h" |
| 23 #include "../dsp/dsp.h" | 23 #include "../dsp/dsp.h" |
| 24 | 24 |
| 25 #ifdef __cplusplus | 25 #ifdef __cplusplus |
| 26 extern "C" { | 26 extern "C" { |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 //------------------------------------------------------------------------------ | 29 //------------------------------------------------------------------------------ |
| 30 // Various defines and enums | 30 // Various defines and enums |
| 31 | 31 |
| 32 // version numbers | 32 // version numbers |
| 33 #define DEC_MAJ_VERSION 0 | 33 #define DEC_MAJ_VERSION 0 |
| 34 #define DEC_MIN_VERSION 5 | 34 #define DEC_MIN_VERSION 6 |
| 35 #define DEC_REV_VERSION 2 | 35 #define DEC_REV_VERSION 0 |
| 36 | 36 |
| 37 // YUV-cache parameters. Cache is 32-bytes wide (= one cacheline). | 37 // YUV-cache parameters. Cache is 32-bytes wide (= one cacheline). |
| 38 // Constraints are: We need to store one 16x16 block of luma samples (y), | 38 // Constraints are: We need to store one 16x16 block of luma samples (y), |
| 39 // and two 8x8 chroma blocks (u/v). These are better be 16-bytes aligned, | 39 // and two 8x8 chroma blocks (u/v). These are better be 16-bytes aligned, |
| 40 // in order to be SIMD-friendly. We also need to store the top, left and | 40 // in order to be SIMD-friendly. We also need to store the top, left and |
| 41 // top-left samples (from previously decoded blocks), along with four | 41 // top-left samples (from previously decoded blocks), along with four |
| 42 // extra top-right samples for luma (intra4x4 prediction only). | 42 // extra top-right samples for luma (intra4x4 prediction only). |
| 43 // One possible layout is, using 32 * (17 + 9) bytes: | 43 // One possible layout is, using 32 * (17 + 9) bytes: |
| 44 // | 44 // |
| 45 // .+------ <- only 1 pixel high | 45 // .+------ <- only 1 pixel high |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 const VP8Io* const io, | 311 const VP8Io* const io, |
| 312 int row, int num_rows); | 312 int row, int num_rows); |
| 313 | 313 |
| 314 //------------------------------------------------------------------------------ | 314 //------------------------------------------------------------------------------ |
| 315 | 315 |
| 316 #ifdef __cplusplus | 316 #ifdef __cplusplus |
| 317 } // extern "C" | 317 } // extern "C" |
| 318 #endif | 318 #endif |
| 319 | 319 |
| 320 #endif /* WEBP_DEC_VP8I_H_ */ | 320 #endif /* WEBP_DEC_VP8I_H_ */ |
| OLD | NEW |