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

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

Issue 2398813002: Cleanup of video capture into GpuMemoryBuffer (Closed)
Patch Set: Rebase Created 4 years, 2 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/media_switches.cc ('k') | media/base/video_capture_types.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_CAPTURE_TYPES_H_ 5 #ifndef MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_
6 #define MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ 6 #define MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "media/base/media_export.h" 13 #include "media/base/media_export.h"
14 #include "media/base/video_types.h" 14 #include "media/base/video_types.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 // TODO(wjia): this type should be defined in a common place and 19 // TODO(wjia): this type should be defined in a common place and
20 // shared with device manager. 20 // shared with device manager.
21 typedef int VideoCaptureSessionId; 21 typedef int VideoCaptureSessionId;
22 22
23 // Storage type for the pixels. In principle, all combinations of Storage and 23 // Storage type for the pixels.
24 // Format are possible, though some are very typical, such as texture + ARGB,
25 // and others are only available if the platform allows it e.g. GpuMemoryBuffer.
26 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class. 24 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class.
25 // TODO(chfremer): Extend or remove this enum.
27 enum VideoPixelStorage { 26 enum VideoPixelStorage {
28 PIXEL_STORAGE_CPU, 27 PIXEL_STORAGE_CPU,
29 PIXEL_STORAGE_GPUMEMORYBUFFER, 28 PIXEL_STORAGE_MAX = PIXEL_STORAGE_CPU,
30 PIXEL_STORAGE_MAX = PIXEL_STORAGE_GPUMEMORYBUFFER,
31 }; 29 };
32 30
33 // Policies for capture devices that have source content that varies in size. 31 // Policies for capture devices that have source content that varies in size.
34 // It is up to the implementation how the captured content will be transformed 32 // It is up to the implementation how the captured content will be transformed
35 // (e.g., scaling and/or letterboxing) in order to produce video frames that 33 // (e.g., scaling and/or letterboxing) in order to produce video frames that
36 // strictly adheree to one of these policies. 34 // strictly adheree to one of these policies.
37 enum ResolutionChangePolicy { 35 enum ResolutionChangePolicy {
38 // Capture device outputs a fixed resolution all the time. The resolution of 36 // Capture device outputs a fixed resolution all the time. The resolution of
39 // the first frame is the resolution for all frames. 37 // the first frame is the resolution for all frames.
40 RESOLUTION_POLICY_FIXED_RESOLUTION, 38 RESOLUTION_POLICY_FIXED_RESOLUTION,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Policy for resolution change. 141 // Policy for resolution change.
144 ResolutionChangePolicy resolution_change_policy; 142 ResolutionChangePolicy resolution_change_policy;
145 143
146 // User-specified power line frequency. 144 // User-specified power line frequency.
147 PowerLineFrequency power_line_frequency; 145 PowerLineFrequency power_line_frequency;
148 }; 146 };
149 147
150 } // namespace media 148 } // namespace media
151 149
152 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ 150 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/base/video_capture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698