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

Side by Side Diff: media/base/yuv_convert.h

Issue 9138050: Merge 117748 - Linear sub-rectangle scaler for use in Chromoting. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « media/base/simd/convert_yuv_to_rgb_c.cc ('k') | media/base/yuv_convert.cc » ('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) 2012 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 #ifndef MEDIA_BASE_YUV_CONVERT_H_ 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_
6 #define MEDIA_BASE_YUV_CONVERT_H_ 6 #define MEDIA_BASE_YUV_CONVERT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace media { 10 namespace media {
11 11
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int source_height, 60 int source_height,
61 int width, 61 int width,
62 int height, 62 int height,
63 int ystride, 63 int ystride,
64 int uvstride, 64 int uvstride,
65 int rgbstride, 65 int rgbstride,
66 YUVType yuv_type, 66 YUVType yuv_type,
67 Rotate view_rotate, 67 Rotate view_rotate,
68 ScaleFilter filter); 68 ScaleFilter filter);
69 69
70 // Biliner Scale a frame of YV12 to 32 bits ARGB on a specified rectangle.
71 // |yplane|, etc and |rgbframe| should point to the top-left pixels of the
72 // source and destination buffers.
73 void ScaleYUVToRGB32WithRect(const uint8* yplane,
74 const uint8* uplane,
75 const uint8* vplane,
76 uint8* rgbframe,
77 int source_width,
78 int source_height,
79 int dest_width,
80 int dest_height,
81 int dest_rect_left,
82 int dest_rect_top,
83 int dest_rect_right,
84 int dest_rect_bottom,
85 int ystride,
86 int uvstride,
87 int rgbstride);
88
70 void ConvertRGB32ToYUV(const uint8* rgbframe, 89 void ConvertRGB32ToYUV(const uint8* rgbframe,
71 uint8* yplane, 90 uint8* yplane,
72 uint8* uplane, 91 uint8* uplane,
73 uint8* vplane, 92 uint8* vplane,
74 int width, 93 int width,
75 int height, 94 int height,
76 int rgbstride, 95 int rgbstride,
77 int ystride, 96 int ystride,
78 int uvstride); 97 int uvstride);
79 98
(...skipping 14 matching lines...) Expand all
94 int width, 113 int width,
95 int height); 114 int height);
96 115
97 // Empty SIMD register state after calling optimized scaler functions. 116 // Empty SIMD register state after calling optimized scaler functions.
98 // This method is only used in unit test after calling SIMD functions. 117 // This method is only used in unit test after calling SIMD functions.
99 void EmptyRegisterState(); 118 void EmptyRegisterState();
100 119
101 } // namespace media 120 } // namespace media
102 121
103 #endif // MEDIA_BASE_YUV_CONVERT_H_ 122 #endif // MEDIA_BASE_YUV_CONVERT_H_
OLDNEW
« no previous file with comments | « media/base/simd/convert_yuv_to_rgb_c.cc ('k') | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698