| 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 // VideoCaptureDevice is the abstract base class for realizing video capture | 5 // VideoCaptureDevice is the abstract base class for realizing video capture |
| 6 // device support in Chromium. It provides the interface for OS dependent | 6 // device support in Chromium. It provides the interface for OS dependent |
| 7 // implementations. | 7 // implementations. |
| 8 // The class is created and functions are invoked on a thread owned by | 8 // The class is created and functions are invoked on a thread owned by |
| 9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS | 9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS |
| 10 // specific implementation. | 10 // specific implementation. |
| 11 | 11 |
| 12 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ | 12 #ifndef DEVICE_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ |
| 13 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ | 13 #define DEVICE_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ |
| 14 | 14 |
| 15 #include <stddef.h> | 15 #include <stddef.h> |
| 16 #include <stdint.h> | 16 #include <stdint.h> |
| 17 | 17 |
| 18 #include <list> | 18 #include <list> |
| 19 #include <memory> | 19 #include <memory> |
| 20 #include <string> | 20 #include <string> |
| 21 | 21 |
| 22 #include "base/callback.h" | 22 #include "base/callback.h" |
| 23 #include "base/files/file.h" | 23 #include "base/files/file.h" |
| 24 #include "base/logging.h" | 24 #include "base/logging.h" |
| 25 #include "base/memory/ref_counted.h" | 25 #include "base/memory/ref_counted.h" |
| 26 #include "base/single_thread_task_runner.h" | 26 #include "base/single_thread_task_runner.h" |
| 27 #include "base/time/time.h" | 27 #include "base/time/time.h" |
| 28 #include "build/build_config.h" | 28 #include "build/build_config.h" |
| 29 #include "device/capture/capture_export.h" |
| 30 #include "device/capture/video/scoped_result_callback.h" |
| 29 #include "media/base/video_capture_types.h" | 31 #include "media/base/video_capture_types.h" |
| 30 #include "media/base/video_frame.h" | 32 #include "media/base/video_frame.h" |
| 31 #include "media/capture/capture_export.h" | |
| 32 #include "media/capture/video/scoped_result_callback.h" | |
| 33 #include "media/mojo/interfaces/image_capture.mojom.h" | 33 #include "media/mojo/interfaces/image_capture.mojom.h" |
| 34 #include "mojo/public/cpp/bindings/array.h" | 34 #include "mojo/public/cpp/bindings/array.h" |
| 35 #include "ui/gfx/gpu_memory_buffer.h" | 35 #include "ui/gfx/gpu_memory_buffer.h" |
| 36 | 36 |
| 37 namespace tracked_objects { | 37 namespace tracked_objects { |
| 38 class Location; | 38 class Location; |
| 39 } // namespace tracked_objects | 39 } // namespace tracked_objects |
| 40 | 40 |
| 41 namespace media { | 41 namespace media { |
| 42 | 42 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 const VideoCaptureParams& params) const; | 335 const VideoCaptureParams& params) const; |
| 336 | 336 |
| 337 private: | 337 private: |
| 338 // Gets the power line frequency from the current system time zone if this is | 338 // Gets the power line frequency from the current system time zone if this is |
| 339 // defined, otherwise returns 0. | 339 // defined, otherwise returns 0. |
| 340 PowerLineFrequency GetPowerLineFrequencyForLocation() const; | 340 PowerLineFrequency GetPowerLineFrequencyForLocation() const; |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 } // namespace media | 343 } // namespace media |
| 344 | 344 |
| 345 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ | 345 #endif // DEVICE_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_H_ |
| OLD | NEW |