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

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

Issue 1090273006: Revert of VideoCapture: add support for GpuMemoryBuffer allocation and lifetime mgmt in VideoCaptureBufferPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « content/public/common/content_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 <vector> 8 #include <vector>
9 9
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 11 matching lines...) Expand all
22 PIXEL_FORMAT_YV12, 22 PIXEL_FORMAT_YV12,
23 PIXEL_FORMAT_NV12, 23 PIXEL_FORMAT_NV12,
24 PIXEL_FORMAT_NV21, 24 PIXEL_FORMAT_NV21,
25 PIXEL_FORMAT_UYVY, 25 PIXEL_FORMAT_UYVY,
26 PIXEL_FORMAT_YUY2, 26 PIXEL_FORMAT_YUY2,
27 PIXEL_FORMAT_RGB24, 27 PIXEL_FORMAT_RGB24,
28 PIXEL_FORMAT_RGB32, 28 PIXEL_FORMAT_RGB32,
29 PIXEL_FORMAT_ARGB, 29 PIXEL_FORMAT_ARGB,
30 PIXEL_FORMAT_MJPEG, 30 PIXEL_FORMAT_MJPEG,
31 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. 31 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture.
32 PIXEL_FORMAT_GPUMEMORYBUFFER,
33 PIXEL_FORMAT_UNKNOWN, // Color format not set. 32 PIXEL_FORMAT_UNKNOWN, // Color format not set.
34 PIXEL_FORMAT_MAX, 33 PIXEL_FORMAT_MAX,
35 }; 34 };
36 35
37 // Policies for capture devices that has source content with dynamic resolution. 36 // Policies for capture devices that has source content with dynamic resolution.
38 enum ResolutionChangePolicy { 37 enum ResolutionChangePolicy {
39 // Capture device outputs a fixed resolution all the time. The resolution of 38 // Capture device outputs a fixed resolution all the time. The resolution of
40 // the first frame is the resolution for all frames. 39 // the first frame is the resolution for all frames.
41 // It is implementation specific for the capture device to scale, letter-box 40 // It is implementation specific for the capture device to scale, letter-box
42 // and pillar-box. The only guarantee is that resolution will never change. 41 // and pillar-box. The only guarantee is that resolution will never change.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Requests a resolution and format at which the capture will occur. 94 // Requests a resolution and format at which the capture will occur.
96 VideoCaptureFormat requested_format; 95 VideoCaptureFormat requested_format;
97 96
98 // Policy for resolution change. 97 // Policy for resolution change.
99 ResolutionChangePolicy resolution_change_policy; 98 ResolutionChangePolicy resolution_change_policy;
100 }; 99 };
101 100
102 } // namespace media 101 } // namespace media
103 102
104 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ 103 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | media/base/video_capture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698