#include "media/capture/video/linux/video_capture_device_webrtc.h"
#include "media/capture/mojom/image_capture_types.h"
#include "media/capture/video/linux/video_capture_device_factory_webrtc.h"
#include "third_party/webrtc/modules/video_capture/video_capture_factory.h"
#include "third_party/webrtc/modules/video_capture/video_capture_impl.h"
MeteringMode;
namespace media {
VideoCaptureErrorOrDevice VideoCaptureDeviceWebRtc::Create(
webrtc::VideoCaptureOptions* options,
const VideoCaptureDeviceDescriptor& device_descriptor) { … }
VideoCaptureDeviceWebRtc::VideoCaptureDeviceWebRtc(
rtc::scoped_refptr<webrtc::VideoCaptureModule> capture_module) { … }
VideoCaptureDeviceWebRtc::~VideoCaptureDeviceWebRtc() { … }
void VideoCaptureDeviceWebRtc::AllocateAndStart(
const VideoCaptureParams& params,
std::unique_ptr<Client> client) { … }
void VideoCaptureDeviceWebRtc::StopAndDeAllocate() { … }
void VideoCaptureDeviceWebRtc::TakePhoto(TakePhotoCallback callback) { … }
void VideoCaptureDeviceWebRtc::GetPhotoState(GetPhotoStateCallback callback) { … }
void VideoCaptureDeviceWebRtc::SetPhotoOptions(
mojom::PhotoSettingsPtr settings,
SetPhotoOptionsCallback callback) { … }
int32_t VideoCaptureDeviceWebRtc::OnRawFrame(
uint8_t* video_frame,
size_t video_frame_length,
const webrtc::VideoCaptureCapability& frame_info,
webrtc::VideoRotation rotation,
int64_t capture_time_ms) { … }
}