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

Side by Side Diff: remoting/base/util.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 | « remoting/base/decoder_vp8.cc ('k') | remoting/base/util.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) 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 #ifndef REMOTING_BASE_UTIL_H_ 5 #ifndef REMOTING_BASE_UTIL_H_
6 #define REMOTING_BASE_UTIL_H_ 6 #define REMOTING_BASE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
11 #include "third_party/skia/include/core/SkRect.h" 11 #include "third_party/skia/include/core/SkRect.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 std::string GetTimestampString(); 15 std::string GetTimestampString();
16 16
17 // TODO(sergeyu): Move these methods to media. 17 // TODO(sergeyu): Move these methods to media.
18 int GetBytesPerPixel(media::VideoFrame::Format format); 18 int GetBytesPerPixel(media::VideoFrame::Format format);
19 19
20 // Convert YUV to RGB32 on a specific rectangle. 20 // Convert YUV to RGB32 on a specific rectangle.
21 void ConvertYUVToRGB32WithRect(const uint8* y_plane, 21 void ConvertYUVToRGB32WithRect(const uint8* y_plane,
22 const uint8* u_plane, 22 const uint8* u_plane,
23 const uint8* v_plane, 23 const uint8* v_plane,
24 uint8* rgb_plane, 24 uint8* rgb_plane,
25 const SkIRect& rect, 25 const SkIRect& rect,
26 int y_stride, 26 int y_stride,
27 int uv_stride, 27 int uv_stride,
28 int rgb_stride); 28 int rgb_stride);
29 29
30 void ScaleYUVToRGB32WithRect(const uint8* y_plane,
31 const uint8* u_plane,
32 const uint8* v_plane,
33 uint8* rgb_plane,
34 const SkIRect& source_rect,
35 const SkIRect& dest_rect,
36 int y_stride,
37 int uv_stride,
38 int rgb_stride);
39
40 void ConvertRGB32ToYUVWithRect(const uint8* rgb_plane, 30 void ConvertRGB32ToYUVWithRect(const uint8* rgb_plane,
41 uint8* y_plane, 31 uint8* y_plane,
42 uint8* u_plane, 32 uint8* u_plane,
43 uint8* v_plane, 33 uint8* v_plane,
44 int x, 34 int x,
45 int y, 35 int y,
46 int width, 36 int width,
47 int height, 37 int height,
48 int rgb_stride, 38 int rgb_stride,
49 int y_stride, 39 int y_stride,
(...skipping 15 matching lines...) Expand all
65 void CopyRect(const uint8* src_plane, 55 void CopyRect(const uint8* src_plane,
66 int src_plane_stride, 56 int src_plane_stride,
67 uint8* dest_plane, 57 uint8* dest_plane,
68 int dest_plane_stride, 58 int dest_plane_stride,
69 int bytes_per_pixel, 59 int bytes_per_pixel,
70 const SkIRect& rect); 60 const SkIRect& rect);
71 61
72 } // namespace remoting 62 } // namespace remoting
73 63
74 #endif // REMOTING_BASE_UTIL_H_ 64 #endif // REMOTING_BASE_UTIL_H_
OLDNEW
« no previous file with comments | « remoting/base/decoder_vp8.cc ('k') | remoting/base/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698