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

Side by Side Diff: media/base/simd/convert_rgb_to_yuv_ssse3.inc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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 ; Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 ; Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 ; Use of this source code is governed by a BSD-style license that can be 2 ; Use of this source code is governed by a BSD-style license that can be
3 ; found in the LICENSE file. 3 ; found in the LICENSE file.
4 4
5 ; 5 ;
6 ; void SYMBOL(const uint8* argb, uint8* y, uint8* u, uint8* v, int width); 6 ; void SYMBOL(const uint8_t* argb, uint8_t* y, uint8_t* u, uint8_t* v, int width );
7 ; 7 ;
8 ; The main code that converts RGB pixels to YUV pixels. This function roughly 8 ; The main code that converts RGB pixels to YUV pixels. This function roughly
9 ; consists of three parts: converting one ARGB pixel to YUV pixels, converting 9 ; consists of three parts: converting one ARGB pixel to YUV pixels, converting
10 ; two ARGB pixels to YUV pixels, and converting four ARGB pixels to YUV pixels. 10 ; two ARGB pixels to YUV pixels, and converting four ARGB pixels to YUV pixels.
11 ; To write the structure of this function in C, it becomes the snippet listed 11 ; To write the structure of this function in C, it becomes the snippet listed
12 ; below. 12 ; below.
13 ; 13 ;
14 ; if (width & 1) { 14 ; if (width & 1) {
15 ; --width; 15 ; --width;
16 ; // Convert one ARGB pixel to one Y pixel, one U pixel, and one V pixel. 16 ; // Convert one ARGB pixel to one Y pixel, one U pixel, and one V pixel.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 %if SUBSAMPLING == 0 191 %if SUBSAMPLING == 0
192 .convert_four_pixels_unaligned_next: 192 .convert_four_pixels_unaligned_next:
193 %endif 193 %endif
194 194
195 test WIDTHq, WIDTHq 195 test WIDTHq, WIDTHq
196 jnz .convert_four_pixels_unaligned 196 jnz .convert_four_pixels_unaligned
197 197
198 .convert_finish: 198 .convert_finish:
199 ; Just exit this function since this is a void function. 199 ; Just exit this function since this is a void function.
200 RET 200 RET
OLDNEW
« no previous file with comments | « media/base/simd/convert_rgb_to_yuv_ssse3.cc ('k') | media/base/simd/convert_rgb_to_yuv_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698