#include "media/capture/video/video_capture_metrics.h"
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_map.h"
#include "base/containers/flat_set.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "ui/gfx/geometry/size.h"
namespace {
enum class VideoResolutionDesignation { … };
struct FrameSizeCompare { … };
constexpr auto kResolutions = …;
static_assert …;
VideoResolutionDesignation ResolutionNameFromSize(gfx::Size frame_size) { … }
enum class VideoEffectStatus { … };
}
namespace media {
void LogCaptureDeviceMetrics(
base::span<const media::VideoCaptureDeviceInfo> devices_info) { … }
void LogCaptureDeviceHashedModelId(
const media::VideoCaptureDeviceDescriptor& descriptor) { … }
VideoEffectStatus GetStatus(bool is_supported, bool is_enabled) { … }
void LogCaptureDeviceEffects(mojom::PhotoStatePtr photo_state) { … }
void LogCaptureCurrentDeviceResolution(int width, int height) { … }
void LogCaptureCurrentDevicePixelFormat(
const media::VideoPixelFormat pixel_format) { … }
}