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

Side by Side Diff: content/common/gpu/media/v4l2_video_device.h

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file defines the V4L2Device interface which is used by the 5 // This file defines the V4L2Device interface which is used by the
6 // V4L2DecodeAccelerator class to delegate/pass the device specific 6 // V4L2DecodeAccelerator class to delegate/pass the device specific
7 // handling of any of the functionalities. 7 // handling of any of the functionalities.
8 8
9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_ 9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_ 10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
11 11
12 #include "media/base/video_decoder_config.h" 12 #include "media/base/video_decoder_config.h"
13 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/geometry/size.h"
15 #include "ui/gl/gl_bindings.h" 15 #include "ui/gl/gl_bindings.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class V4L2Device { 19 class V4L2Device {
20 public: 20 public:
21 // Utility format conversion functions 21 // Utility format conversion functions
22 static media::VideoFrame::Format V4L2PixFmtToVideoFrameFormat(uint32 format); 22 static media::VideoFrame::Format V4L2PixFmtToVideoFrameFormat(uint32 format);
23 static uint32 VideoFrameFormatToV4L2PixFmt(media::VideoFrame::Format format); 23 static uint32 VideoFrameFormatToV4L2PixFmt(media::VideoFrame::Format format);
24 static uint32 VideoCodecProfileToV4L2PixFmt(media::VideoCodecProfile profile); 24 static uint32 VideoCodecProfileToV4L2PixFmt(media::VideoCodecProfile profile);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Returns the preferred V4L2 input format or 0 if don't care. 93 // Returns the preferred V4L2 input format or 0 if don't care.
94 virtual uint32 PreferredInputFormat() = 0; 94 virtual uint32 PreferredInputFormat() = 0;
95 95
96 // Returns the preferred V4L2 output format or 0 if don't care. 96 // Returns the preferred V4L2 output format or 0 if don't care.
97 virtual uint32 PreferredOutputFormat() = 0; 97 virtual uint32 PreferredOutputFormat() = 0;
98 }; 98 };
99 99
100 } // namespace content 100 } // namespace content
101 101
102 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_ 102 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DEVICE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/v4l2_video_decode_accelerator.h ('k') | content/common/gpu/media/v4l2_video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698