orbbec-sdk-sys 0.1.2+2.5.5

Low-level Rust bindings for https://github.com/orbbec/OrbbecSDK_v2
Documentation
// Copyright (c) Orbbec Inc. All Rights Reserved.
// Licensed under the MIT License.

#pragma once

#include "timestamp/FrameTimestampCalculator.hpp"

namespace libobsensor {
class G2VideoFrameTimestampCalculator : public FrameTimestampCalculatorBaseDeviceTime {
public:
    G2VideoFrameTimestampCalculator(IDevice *owner, uint64_t deviceTimeFreq, uint64_t frameTimeFreq);
    ~G2VideoFrameTimestampCalculator() noexcept override = default;

    void calculate(std::shared_ptr<Frame> frame) override;
};

class G2LVideoFrameTimestampCalculator : public FrameTimestampCalculatorBaseDeviceTime {
public:
    G2LVideoFrameTimestampCalculator(IDevice *owner, uint64_t deviceTimeFreq, uint64_t frameTimeFreq);
    ~G2LVideoFrameTimestampCalculator() noexcept override = default;

    void calculate(std::shared_ptr<Frame> frame) override;
};
}  // namespace libobsensor