#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);
}
}