Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/libwebp/dsp/dec.c

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libwebp/dsp/cpu.c ('k') | third_party/libwebp/dsp/dec_clip_tables.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Speed-critical decoding functions, default plain-C implementations. 10 // Speed-critical decoding functions, default plain-C implementations.
11 // 11 //
12 // Author: Skal (pascal.massimino@gmail.com) 12 // Author: Skal (pascal.massimino@gmail.com)
13 13
14 #include "./dsp.h" 14 #include "./dsp.h"
15 #include "../dec/vp8i.h" 15 #include "../dec/vp8i_dec.h"
16 #include "../utils/utils.h" 16 #include "../utils/utils.h"
17 17
18 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------
19 19
20 static WEBP_INLINE uint8_t clip_8b(int v) { 20 static WEBP_INLINE uint8_t clip_8b(int v) {
21 return (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255; 21 return (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
22 } 22 }
23 23
24 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------
25 // Transforms (Paragraph 14.4) 25 // Transforms (Paragraph 14.4)
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 } 786 }
787 #endif 787 #endif
788 #if defined(WEBP_USE_MSA) 788 #if defined(WEBP_USE_MSA)
789 if (VP8GetCPUInfo(kMSA)) { 789 if (VP8GetCPUInfo(kMSA)) {
790 VP8DspInitMSA(); 790 VP8DspInitMSA();
791 } 791 }
792 #endif 792 #endif
793 } 793 }
794 dec_last_cpuinfo_used = VP8GetCPUInfo; 794 dec_last_cpuinfo_used = VP8GetCPUInfo;
795 } 795 }
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/cpu.c ('k') | third_party/libwebp/dsp/dec_clip_tables.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698