| 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 // inline YUV<->RGB conversion function | 10 // inline YUV<->RGB conversion function |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // where the '.' operator is the mulhi_epu16 variant: | 29 // where the '.' operator is the mulhi_epu16 variant: |
| 30 // a . b = ((a << 8) * b) >> 16 | 30 // a . b = ((a << 8) * b) >> 16 |
| 31 // that preserves 8 bits of fractional precision before final descaling. | 31 // that preserves 8 bits of fractional precision before final descaling. |
| 32 | 32 |
| 33 // Author: Skal (pascal.massimino@gmail.com) | 33 // Author: Skal (pascal.massimino@gmail.com) |
| 34 | 34 |
| 35 #ifndef WEBP_DSP_YUV_H_ | 35 #ifndef WEBP_DSP_YUV_H_ |
| 36 #define WEBP_DSP_YUV_H_ | 36 #define WEBP_DSP_YUV_H_ |
| 37 | 37 |
| 38 #include "./dsp.h" | 38 #include "./dsp.h" |
| 39 #include "../dec/decode_vp8.h" | 39 #include "../dec/vp8_dec.h" |
| 40 | 40 |
| 41 #if defined(WEBP_EXPERIMENTAL_FEATURES) | 41 #if defined(WEBP_EXPERIMENTAL_FEATURES) |
| 42 // Do NOT activate this feature for real compression. This is only experimental! | 42 // Do NOT activate this feature for real compression. This is only experimental! |
| 43 // This flag is for comparison purpose against JPEG's "YUVj" natural colorspace. | 43 // This flag is for comparison purpose against JPEG's "YUVj" natural colorspace. |
| 44 // This colorspace is close to Rec.601's Y'CbCr model with the notable | 44 // This colorspace is close to Rec.601's Y'CbCr model with the notable |
| 45 // difference of allowing larger range for luma/chroma. | 45 // difference of allowing larger range for luma/chroma. |
| 46 // See http://en.wikipedia.org/wiki/YCbCr#JPEG_conversion paragraph, and its | 46 // See http://en.wikipedia.org/wiki/YCbCr#JPEG_conversion paragraph, and its |
| 47 // difference with http://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion | 47 // difference with http://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion |
| 48 // #define USE_YUVj | 48 // #define USE_YUVj |
| 49 #endif | 49 #endif |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 return VP8ClipUV(v, rounding); | 229 return VP8ClipUV(v, rounding); |
| 230 } | 230 } |
| 231 | 231 |
| 232 #endif // USE_YUVj | 232 #endif // USE_YUVj |
| 233 | 233 |
| 234 #ifdef __cplusplus | 234 #ifdef __cplusplus |
| 235 } // extern "C" | 235 } // extern "C" |
| 236 #endif | 236 #endif |
| 237 | 237 |
| 238 #endif /* WEBP_DSP_YUV_H_ */ | 238 #endif /* WEBP_DSP_YUV_H_ */ |
| OLD | NEW |