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

Side by Side Diff: media/base/simd/convert_yuv_to_rgb_c.cc

Issue 7888012: Reorganize YUV scalers (Continued) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
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/convert_yuv_to_rgb.h" 5 #include "media/base/simd/convert_yuv_to_rgb.h"
6 // TODO(hclam): Shouldn't depend on yuv_row.h. 6 #include "media/base/simd/yuv_to_rgb_table.h"
7 #include "media/base/yuv_row.h"
8 7
9 #define packuswb(x) ((x) < 0 ? 0 : ((x) > 255 ? 255 : (x))) 8 #define packuswb(x) ((x) < 0 ? 0 : ((x) > 255 ? 255 : (x)))
10 #define paddsw(x, y) (((x) + (y)) < -32768 ? -32768 : \ 9 #define paddsw(x, y) (((x) + (y)) < -32768 ? -32768 : \
11 (((x) + (y)) > 32767 ? 32767 : ((x) + (y)))) 10 (((x) + (y)) > 32767 ? 32767 : ((x) + (y))))
12 11
13 static inline void YUVPixel(uint8 y, 12 static inline void YUVPixel(uint8 y,
14 uint8 u, 13 uint8 u,
15 uint8 v, 14 uint8 v,
16 uint8* rgb_buf) { 15 uint8* rgb_buf) {
17 16
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 145
147 ConvertYUVToRGB32Row_C(y_ptr, 146 ConvertYUVToRGB32Row_C(y_ptr,
148 u_ptr, 147 u_ptr,
149 v_ptr, 148 v_ptr,
150 rgb_row, 149 rgb_row,
151 width); 150 width);
152 } 151 }
153 } 152 }
154 153
155 } // namespace media 154 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698