Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 typedef std::vector<VideoCaptureFormat> VideoCaptureFormats; | 96 typedef std::vector<VideoCaptureFormat> VideoCaptureFormats; |
| 97 | 97 |
| 98 // Parameters for starting video capture. | 98 // Parameters for starting video capture. |
| 99 // This class is used by the client of a video capture device to specify the | 99 // This class is used by the client of a video capture device to specify the |
| 100 // format of frames in which the client would like to have captured frames | 100 // format of frames in which the client would like to have captured frames |
| 101 // returned. | 101 // returned. |
| 102 class MEDIA_EXPORT VideoCaptureParams { | 102 class MEDIA_EXPORT VideoCaptureParams { |
| 103 public: | 103 public: |
| 104 VideoCaptureParams(); | 104 VideoCaptureParams(); |
| 105 | 105 |
| 106 bool operator==(const VideoCaptureParams& other) const { | 106 bool operator==(const VideoCaptureParams& other) const { |
|
tommi (sloooow) - chröme
2015/06/15 19:08:58
update this operator too?
mcasas
2015/06/16 05:50:02
Done.
| |
| 107 return requested_format == other.requested_format && | 107 return requested_format == other.requested_format && |
| 108 resolution_change_policy == other.resolution_change_policy; | 108 resolution_change_policy == other.resolution_change_policy; |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Requests a resolution and format at which the capture will occur. | 111 // Requests a resolution and format at which the capture will occur. |
| 112 VideoCaptureFormat requested_format; | 112 VideoCaptureFormat requested_format; |
| 113 | 113 |
| 114 // Policy for resolution change. | 114 // Policy for resolution change. |
| 115 ResolutionChangePolicy resolution_change_policy; | 115 ResolutionChangePolicy resolution_change_policy; |
| 116 | |
| 117 #if defined(OS_LINUX) | |
| 118 // Indication to the Driver to try to use native GpuMemoryBuffers. | |
| 119 bool use_native_gpu_memory_buffers; | |
|
tommi (sloooow) - chröme
2015/06/15 19:08:58
the member variables in this class and above, don'
mcasas
2015/06/16 05:50:02
Done. And VideoCaptureFormat as well in l.67
| |
| 120 #endif | |
| 116 }; | 121 }; |
| 117 | 122 |
| 118 } // namespace media | 123 } // namespace media |
| 119 | 124 |
| 120 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ | 125 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |
| OLD | NEW |