blob: 4787b4164c3386b1c85e5f16532918fc6312abd5 [file]
// Copyright 2025 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libec/fingerprint/fp_info_params.h"
#include <tuple>
#include "libec/ec_command.h"
bool operator==(const struct fp_image_frame_params& lhs,
const struct fp_image_frame_params& rhs) {
return std::tie(lhs.frame_size, lhs.pixel_format, lhs.width, lhs.height,
lhs.bpp, lhs.fp_capture_type, lhs.reserved) ==
std::tie(rhs.frame_size, rhs.pixel_format, rhs.width, rhs.height,
rhs.bpp, rhs.fp_capture_type, rhs.reserved);
}
bool operator==(const struct fp_image_frame_params_v2& lhs,
const struct fp_image_frame_params_v2& rhs) {
return std::tie(lhs.frame_size, lhs.image_data_offset_bytes, lhs.pixel_format,
lhs.width, lhs.height, lhs.bpp, lhs.fp_capture_type,
lhs.reserved) ==
std::tie(rhs.frame_size, rhs.image_data_offset_bytes, rhs.pixel_format,
rhs.width, rhs.height, rhs.bpp, rhs.fp_capture_type,
rhs.reserved);
}