OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/common/video_capture_traits.h" |
| 6 |
| 7 #include "services/video_capture/public/interfaces/video_capture_device_proxy_tr
aits.h" |
| 8 #include "services/video_capture/public/interfaces/video_capture_format_traits.h
" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 // static |
| 13 bool StructTraits<content::mojom::VideoCaptureParamsDataView, |
| 14 media::VideoCaptureParams>:: |
| 15 Read(content::mojom::VideoCaptureParamsDataView data, |
| 16 media::VideoCaptureParams* out) { |
| 17 if (!data.ReadRequestedFormat(&out->requested_format)) |
| 18 return false; |
| 19 if (!data.ReadResolutionChangePolicy(&out->resolution_change_policy)) |
| 20 return false; |
| 21 if (!data.ReadPowerLineFrequency(&out->power_line_frequency)) |
| 22 return false; |
| 23 return true; |
| 24 } |
| 25 |
| 26 } // namespace mojo |
OLD | NEW |