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

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

Issue 591313008: Add support for Rec709 color space videos in software YUV convert path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add enum to mojom Created 5 years, 11 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 | « media/base/simd/scale_yuv_to_rgb_mmx.asm ('k') | media/base/simd/scale_yuv_to_rgb_sse.asm » ('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 (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 %include "media/base/simd/media_export.asm" 5 %include "media/base/simd/media_export.asm"
6 6
7 EXPORT SYMBOL 7 EXPORT SYMBOL
8 align function_align 8 align function_align
9 9
10 mangle(SYMBOL): 10 mangle(SYMBOL):
11 %assign stack_offset 0 11 %assign stack_offset 0
12 12
13 extern mangle(kCoefficientsRgbY)
14
15 ; Parameters are in the following order: 13 ; Parameters are in the following order:
16 ; 1. Y plane 14 ; 1. Y plane
17 ; 2. U plane 15 ; 2. U plane
18 ; 3. V plane 16 ; 3. V plane
19 ; 4. ARGB frame 17 ; 4. ARGB frame
20 ; 5. Width 18 ; 5. Width
21 ; 6. Source dx 19 ; 6. Source dx
22 ; 7. Lookup table address 20 ; 7. Lookup table address
23 21
24 PROLOGUE 7, 7, 3, Y, U, V, ARGB, R1, R2, TEMP 22 PROLOGUE 7, 7, 3, Y, U, V, ARGB, R1, R2, TEMP
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 movzx TEMPd, BYTE [Yq + TEMPq] 89 movzx TEMPd, BYTE [Yq + TEMPq]
92 movq mm1, [TABLE + 8 * TEMPq] 90 movq mm1, [TABLE + 8 * TEMPq]
93 paddsw mm1, mm0 91 paddsw mm1, mm0
94 psraw mm1, 6 92 psraw mm1, 6
95 packuswb mm1, mm1 93 packuswb mm1, mm1
96 movd DWORD [ARGBq], mm1 94 movd DWORD [ARGBq], mm1
97 95
98 .scaledone: 96 .scaledone:
99 ADD rsp, 2 * gprsize 97 ADD rsp, 2 * gprsize
100 RET 98 RET
OLDNEW
« no previous file with comments | « media/base/simd/scale_yuv_to_rgb_mmx.asm ('k') | media/base/simd/scale_yuv_to_rgb_sse.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698