chromium/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.cc

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

#include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h"

#include <algorithm>

#include "base/logging.h"

namespace ui {

PalmFilterDeviceInfo CreatePalmFilterDeviceInfo(
    const EventDeviceInfo& devinfo) {}

namespace {
float ScaledRadius(
    float radius,
    const NeuralStylusPalmDetectionFilterModelConfig& model_config) {}

float interpolate(float start_value, float end_value, float proportion) {}

/**
 * During resampling, the later events are used as a basis to populate
 * non-resampled fields like major and minor. However, if the requested time is
 * within this delay of the earlier event, the earlier event will be used as a
 * basis instead.
 */
const static auto kPreferInitialEventDelay =;

/**
 * Interpolate between the "before" and "after" events to get a resampled value
 * at the timestamp 'time'. Not all fields are interpolated. For fields that are
 * not interpolated, the values are taken from the 'after' sample unless the
 * requested time is very close to the 'before' sample.
 */
PalmFilterSample GetSampleAtTime(base::TimeTicks time,
                                 const PalmFilterSample& before,
                                 const PalmFilterSample& after) {}
}  // namespace

PalmFilterSample CreatePalmFilterSample(
    const InProgressTouchEvdev& touch,
    const base::TimeTicks& time,
    const NeuralStylusPalmDetectionFilterModelConfig& model_config,
    const PalmFilterDeviceInfo& dev_info) {}

PalmFilterStroke::PalmFilterStroke(
    const NeuralStylusPalmDetectionFilterModelConfig& model_config,
    int tracking_id)
    :{}
PalmFilterStroke::PalmFilterStroke(const PalmFilterStroke& other) = default;
PalmFilterStroke::PalmFilterStroke(PalmFilterStroke&& other) = default;
PalmFilterStroke::~PalmFilterStroke() {}

void PalmFilterStroke::ProcessSample(const PalmFilterSample& sample) {}

void PalmFilterStroke::AddSample(const PalmFilterSample& sample) {}

void PalmFilterStroke::AddToUnscaledCentroid(const gfx::Vector2dF point) {}

gfx::PointF PalmFilterStroke::GetCentroid() const {}

const std::deque<PalmFilterSample>& PalmFilterStroke::samples() const {}

int PalmFilterStroke::tracking_id() const {}

base::TimeDelta PalmFilterStroke::Duration() const {}

base::TimeDelta PalmFilterStroke::PreviousDuration() const {}

bool PalmFilterStroke::LastSampleCrossed(base::TimeDelta duration) const {}

PalmFilterSample PalmFilterStroke::GetSampleAt(base::TimeTicks time) const {}

uint64_t PalmFilterStroke::samples_seen() const {}

float PalmFilterStroke::MaxMajorRadius() const {}

float PalmFilterStroke::BiggestSize() const {}

}  // namespace ui