orbbec-sdk-sys 0.1.2+2.5.5

Low-level Rust bindings for https://github.com/orbbec/OrbbecSDK_v2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "FemtoMegaFrameTimestampCalculator.hpp"
#include "frame/Frame.hpp"

namespace libobsensor {
FemtoMegaColorFrameTimestampCalculatorV10300::FemtoMegaColorFrameTimestampCalculatorV10300(IDevice *device, uint64_t deviceTimeFreq, uint64_t frameTimeFreq)
    : FrameTimestampCalculatorBaseDeviceTime(device, deviceTimeFreq, frameTimeFreq) {}

void FemtoMegaColorFrameTimestampCalculatorV10300::calculate(std::shared_ptr<Frame> frame) {
    auto format = frame->getFormat();
    if(format == OB_FORMAT_MJPEG || format == OB_FORMAT_RGB || format == OB_FORMAT_RGBA || format == OB_FORMAT_BGRA) {
        return;
    }
    FrameTimestampCalculatorBaseDeviceTime::calculate(frame);
}

}  // namespace libobsensor