#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/capture/video/video_capture_device_descriptor.h"
#include "base/strings/string_util.h"
namespace media {
namespace {
std::string TrimDisplayName(const std::string& display_name) { … }
}
VideoCaptureDeviceDescriptor::VideoCaptureDeviceDescriptor()
: … { … }
VideoCaptureDeviceDescriptor::VideoCaptureDeviceDescriptor(
const std::string& display_name,
const std::string& device_id,
VideoCaptureApi capture_api,
const VideoCaptureControlSupport& control_support,
VideoCaptureTransportType transport_type)
: … { … }
VideoCaptureDeviceDescriptor::VideoCaptureDeviceDescriptor(
const std::string& display_name,
const std::string& device_id,
const std::string& model_id,
VideoCaptureApi capture_api,
const VideoCaptureControlSupport& control_support,
VideoCaptureTransportType transport_type,
VideoFacingMode facing,
std::optional<CameraAvailability> availability)
: … { … }
VideoCaptureDeviceDescriptor::~VideoCaptureDeviceDescriptor() = default;
VideoCaptureDeviceDescriptor::VideoCaptureDeviceDescriptor(
const VideoCaptureDeviceDescriptor& other) = default;
bool VideoCaptureDeviceDescriptor::operator<(
const VideoCaptureDeviceDescriptor& other) const { … }
const char* VideoCaptureDeviceDescriptor::GetCaptureApiTypeString() const { … }
std::string VideoCaptureDeviceDescriptor::GetNameAndModel() const { … }
void VideoCaptureDeviceDescriptor::set_display_name(const std::string& name) { … }
}