chromium/media/capture/video/video_capture_metrics.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// These resolutions are ones supported on a test webcam. Names given
// where possible, from https://en.wikipedia.org/wiki/List_of_common_resolutions
enum class VideoResolutionDesignation {};

struct FrameSizeCompare {};

constexpr auto kResolutions =;

static_assert;

VideoResolutionDesignation ResolutionNameFromSize(gfx::Size frame_size) {}

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class VideoEffectStatus {};

}  // namespace

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) {}

}  // namespace media