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

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

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 years, 10 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/capture/video/video_frame_receiver.h ('k') | mojo/common/values_struct_traits.h » ('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_CAPTURE_VIDEO_CAPTURE_TYPES_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
6 #define MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_ 6 #define MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 VideoPixelFormat pixel_format; 114 VideoPixelFormat pixel_format;
115 VideoPixelStorage pixel_storage; 115 VideoPixelStorage pixel_storage;
116 }; 116 };
117 117
118 typedef std::vector<VideoCaptureFormat> VideoCaptureFormats; 118 typedef std::vector<VideoCaptureFormat> VideoCaptureFormats;
119 119
120 // Parameters for starting video capture. 120 // Parameters for starting video capture.
121 // This class is used by the client of a video capture device to specify the 121 // This class is used by the client of a video capture device to specify the
122 // format of frames in which the client would like to have captured frames 122 // format of frames in which the client would like to have captured frames
123 // returned. 123 // returned.
124 struct MEDIA_EXPORT VideoCaptureParams { 124 struct CAPTURE_EXPORT VideoCaptureParams {
125 VideoCaptureParams(); 125 VideoCaptureParams();
126 126
127 // Returns true if requested_format.IsValid() and all other values are within 127 // Returns true if requested_format.IsValid() and all other values are within
128 // their expected ranges. 128 // their expected ranges.
129 bool IsValid() const; 129 bool IsValid() const;
130 130
131 bool operator==(const VideoCaptureParams& other) const { 131 bool operator==(const VideoCaptureParams& other) const {
132 return requested_format == other.requested_format && 132 return requested_format == other.requested_format &&
133 resolution_change_policy == other.resolution_change_policy && 133 resolution_change_policy == other.resolution_change_policy &&
134 power_line_frequency == other.power_line_frequency; 134 power_line_frequency == other.power_line_frequency;
135 } 135 }
136 136
137 // Requests a resolution and format at which the capture will occur. 137 // Requests a resolution and format at which the capture will occur.
138 VideoCaptureFormat requested_format; 138 VideoCaptureFormat requested_format;
139 139
140 // Policy for resolution change. 140 // Policy for resolution change.
141 ResolutionChangePolicy resolution_change_policy; 141 ResolutionChangePolicy resolution_change_policy;
142 142
143 // User-specified power line frequency. 143 // User-specified power line frequency.
144 PowerLineFrequency power_line_frequency; 144 PowerLineFrequency power_line_frequency;
145 }; 145 };
146 146
147 } // namespace media 147 } // namespace media
148 148
149 #endif // MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_ 149 #endif // MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
OLDNEW
« no previous file with comments | « media/capture/video/video_frame_receiver.h ('k') | mojo/common/values_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698