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

Side by Side Diff: source/libvpx/third_party/libyuv/source/mjpeg_validate.cc

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "libyuv/mjpeg_decoder.h" 11 #include "libyuv/mjpeg_decoder.h"
12 12
13 #include <string.h> // For memchr. 13 #include <string.h> // For memchr.
14 14
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 namespace libyuv { 16 namespace libyuv {
17 extern "C" { 17 extern "C" {
18 #endif 18 #endif
19 19
20 // Enable this to try scasb implementation. 20 // Enable this to try scasb implementation.
21 // #define ENABLE_SCASB 1 21 // #define ENABLE_SCASB 1
22 22
23 #ifdef ENABLE_SCASB 23 #ifdef ENABLE_SCASB
24 24
25 // Multiple of 1. 25 // Multiple of 1.
26 __declspec(naked) __declspec(align(16)) 26 __declspec(naked)
27 const uint8* ScanRow_ERMS(const uint8* src, uint32 val, int count) { 27 const uint8* ScanRow_ERMS(const uint8* src, uint32 val, int count) {
28 __asm { 28 __asm {
29 mov edx, edi 29 mov edx, edi
30 mov edi, [esp + 4] // src 30 mov edi, [esp + 4] // src
31 mov eax, [esp + 8] // val 31 mov eax, [esp + 8] // val
32 mov ecx, [esp + 12] // count 32 mov ecx, [esp + 12] // count
33 repne scasb 33 repne scasb
34 jne sr99 34 jne sr99
35 mov eax, edi 35 mov eax, edi
36 sub eax, 1 36 sub eax, 1
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 return ScanEOI(sample, sample_size); 93 return ScanEOI(sample, sample_size);
94 94
95 } 95 }
96 96
97 #ifdef __cplusplus 97 #ifdef __cplusplus
98 } // extern "C" 98 } // extern "C"
99 } // namespace libyuv 99 } // namespace libyuv
100 #endif 100 #endif
101 101
OLDNEW
« no previous file with comments | « source/libvpx/third_party/libyuv/source/mjpeg_decoder.cc ('k') | source/libvpx/third_party/libyuv/source/planar_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698