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

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

Issue 95873002: skip neon code in libwebp when neon is explicitly unavailable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't forget arm_neon_optional Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libwebp/dsp/dsp.h ('k') | third_party/libwebp/libwebp.gyp » ('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 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 // Speed-critical encoding functions. 10 // Speed-critical encoding functions.
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 VP8Metric VP8SSE16x16; 682 VP8Metric VP8SSE16x16;
683 VP8Metric VP8SSE8x8; 683 VP8Metric VP8SSE8x8;
684 VP8Metric VP8SSE16x8; 684 VP8Metric VP8SSE16x8;
685 VP8Metric VP8SSE4x4; 685 VP8Metric VP8SSE4x4;
686 VP8WMetric VP8TDisto4x4; 686 VP8WMetric VP8TDisto4x4;
687 VP8WMetric VP8TDisto16x16; 687 VP8WMetric VP8TDisto16x16;
688 VP8QuantizeBlock VP8EncQuantizeBlock; 688 VP8QuantizeBlock VP8EncQuantizeBlock;
689 VP8BlockCopy VP8Copy4x4; 689 VP8BlockCopy VP8Copy4x4;
690 690
691 extern void VP8EncDspInitSSE2(void); 691 extern void VP8EncDspInitSSE2(void);
692 #if defined(WEBP_USE_NEON)
692 extern void VP8EncDspInitNEON(void); 693 extern void VP8EncDspInitNEON(void);
694 #endif
693 695
694 void VP8EncDspInit(void) { 696 void VP8EncDspInit(void) {
695 InitTables(); 697 InitTables();
696 698
697 // default C implementations 699 // default C implementations
698 VP8CollectHistogram = CollectHistogram; 700 VP8CollectHistogram = CollectHistogram;
699 VP8ITransform = ITransform; 701 VP8ITransform = ITransform;
700 VP8FTransform = FTransform; 702 VP8FTransform = FTransform;
701 VP8ITransformWHT = ITransformWHT; 703 VP8ITransformWHT = ITransformWHT;
702 VP8FTransformWHT = FTransformWHT; 704 VP8FTransformWHT = FTransformWHT;
(...skipping 19 matching lines...) Expand all
722 if (VP8GetCPUInfo(kNEON)) { 724 if (VP8GetCPUInfo(kNEON)) {
723 VP8EncDspInitNEON(); 725 VP8EncDspInitNEON();
724 } 726 }
725 #endif 727 #endif
726 } 728 }
727 } 729 }
728 730
729 #if defined(__cplusplus) || defined(c_plusplus) 731 #if defined(__cplusplus) || defined(c_plusplus)
730 } // extern "C" 732 } // extern "C"
731 #endif 733 #endif
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/dsp.h ('k') | third_party/libwebp/libwebp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698