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

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

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h 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/video_frame.h ('k') | media/base/yuv_convert_unittest.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) 2012 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_VIDEO_UTIL_H_ 5 #ifndef MEDIA_BASE_VIDEO_UTIL_H_
6 #define MEDIA_BASE_VIDEO_UTIL_H_ 6 #define MEDIA_BASE_VIDEO_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class VideoFrame; 15 class VideoFrame;
16 16
17 // Computes the size of |visible_size| for a given aspect ratio. 17 // Computes the size of |visible_size| for a given aspect ratio.
18 MEDIA_EXPORT gfx::Size GetNaturalSize(const gfx::Size& visible_size, 18 MEDIA_EXPORT gfx::Size GetNaturalSize(const gfx::Size& visible_size,
19 int aspect_ratio_numerator, 19 int aspect_ratio_numerator,
20 int aspect_ratio_denominator); 20 int aspect_ratio_denominator);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Copy an RGB bitmap into the specified |region_in_frame| of a YUV video frame. 87 // Copy an RGB bitmap into the specified |region_in_frame| of a YUV video frame.
88 // Fills the regions outside |region_in_frame| with black. 88 // Fills the regions outside |region_in_frame| with black.
89 MEDIA_EXPORT void CopyRGBToVideoFrame(const uint8* source, 89 MEDIA_EXPORT void CopyRGBToVideoFrame(const uint8* source,
90 int stride, 90 int stride,
91 const gfx::Rect& region_in_frame, 91 const gfx::Rect& region_in_frame,
92 VideoFrame* frame); 92 VideoFrame* frame);
93 93
94 } // namespace media 94 } // namespace media
95 95
96 #endif // MEDIA_BASE_VIDEO_UTIL_H_ 96 #endif // MEDIA_BASE_VIDEO_UTIL_H_
OLDNEW
« no previous file with comments | « media/base/video_frame.h ('k') | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698