Use Cpp style cast

This commit is contained in:
Maksym Walczak 2022-01-04 11:55:37 +01:00
parent d0cce9d97d
commit a55e33824b

View File

@ -67,7 +67,7 @@ public:
// Send image packet into the graph. // Send image packet into the graph.
size_t frameTimestampUs = size_t frameTimestampUs =
(double)cv::getTickCount() / (double)cv::getTickFrequency() * 1e6; static_cast<double>(cv::getTickCount()) / static_cast<double>(cv::getTickFrequency()) * 1e6;
auto status = graph.AddPacketToInputStream( auto status = graph.AddPacketToInputStream(
kInputStream, mediapipe::Adopt(inputFrame.release()) kInputStream, mediapipe::Adopt(inputFrame.release())
.At(mediapipe::Timestamp(frameTimestampUs))); .At(mediapipe::Timestamp(frameTimestampUs)));