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

syntax = "proto3";

option go_package = "go.chromium.org/chromiumos/config/go/api/software";

package chromiumos.config.api.software;

message Resolution {
  uint32 width = 1;
  uint32 height = 2;
  // Optional bitrate in bits per second for this resolution. If not set,
  // a default bitrate will be used based on the resolution.
  uint32 bitrate = 3;
}

message CameraConfig {
  // If true, the ARC media_profiles.xml will be generated from Boxster and
  // override the one installed by overlays.
  bool generate_media_profiles = 1;

  // If non-empty, the resolutions are used for CamcorderProfiles in
  // media_profiles.xml instead of deriving from scripts.
  repeated Resolution camcorder_resolutions = 2;

  // If true, the device assumes there's an external camera connected, and ARC
  // hardware_features.xml should declare external camera feature.
  bool has_external_camera = 3;
}
