| 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 #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 "media/base/video_frame.h" | 8 #include "media/base/video_frame.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 std::string GetTimestampString(); |
| 13 |
| 12 // TODO(sergeyu): Move these methods to media. | 14 // TODO(sergeyu): Move these methods to media. |
| 13 int GetBytesPerPixel(media::VideoFrame::Format format); | 15 int GetBytesPerPixel(media::VideoFrame::Format format); |
| 14 | 16 |
| 15 // Convert YUV to RGB32 on a specific rectangle. | 17 // Convert YUV to RGB32 on a specific rectangle. |
| 16 void ConvertYUVToRGB32WithRect(const uint8* y_plane, | 18 void ConvertYUVToRGB32WithRect(const uint8* y_plane, |
| 17 const uint8* u_plane, | 19 const uint8* u_plane, |
| 18 const uint8* v_plane, | 20 const uint8* v_plane, |
| 19 uint8* rgb_plane, | 21 uint8* rgb_plane, |
| 20 int x, | 22 int x, |
| 21 int y, | 23 int y, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 int y, | 35 int y, |
| 34 int width, | 36 int width, |
| 35 int height, | 37 int height, |
| 36 int rgb_stride, | 38 int rgb_stride, |
| 37 int y_stride, | 39 int y_stride, |
| 38 int uv_stride); | 40 int uv_stride); |
| 39 | 41 |
| 40 } // namespace remoting | 42 } // namespace remoting |
| 41 | 43 |
| 42 #endif // REMOTING_BASE_UTIL_H_ | 44 #endif // REMOTING_BASE_UTIL_H_ |
| OLD | NEW |