blob: 3e74e6d54e8fafedde8d6f9505fcef5e75f4a8b8 [file] [log] [blame]
/*
* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CAMERA_HAL_USB_QUIRKS_H_
#define CAMERA_HAL_USB_QUIRKS_H_
#include <cstdint>
#include <string>
#include "hal/usb/common_types.h"
namespace cros {
// The bitmask for each quirk.
enum : uint32_t {
kQuirkPreferMjpeg = 1 << 0,
kQuirkRestartOnTimeout = 1 << 1,
kQuirkReportLeastFpsRanges = 1 << 2,
kQuirkDisableFrameRateSetting = 1 << 3,
kQuirkV1Device = 1 << 4,
kQuirkUserSpaceTimestamp = 1 << 5,
};
uint32_t GetQuirks(const std::string& vid, const std::string& pid);
} // namespace cros
#endif // CAMERA_HAL_USB_QUIRKS_H_