From c8b9cec7efe3cff36595ce12717ac9270f7459e2 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Thu, 13 Apr 2023 00:11:55 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 523916108 --- mediapipe/calculators/video/tool/flow_quantizer_model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/calculators/video/tool/flow_quantizer_model.cc b/mediapipe/calculators/video/tool/flow_quantizer_model.cc index 0cfad8539..f0b00063f 100644 --- a/mediapipe/calculators/video/tool/flow_quantizer_model.cc +++ b/mediapipe/calculators/video/tool/flow_quantizer_model.cc @@ -20,7 +20,7 @@ namespace mediapipe { // Uniform normalization to 0-255. -uint8 FlowQuantizerModel::Apply(const float val, const int channel) const { +uint8_t FlowQuantizerModel::Apply(const float val, const int channel) const { CHECK_LT(channel, model_.min_value_size()); const auto& min_value = model_.min_value(channel); const auto& max_value = model_.max_value(channel); @@ -31,7 +31,7 @@ uint8 FlowQuantizerModel::Apply(const float val, const int channel) const { } else if (res > 1.0) { res = 1.0; } - return static_cast(res * 255); + return static_cast(res * 255); } void FlowQuantizerModel::LoadFromProto(const QuantizerModelData& data) {