OLD | NEW |
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 Loading... |
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 |
OLD | NEW |