Updated comment arguments in MPPImageUtils

This commit is contained in:
Prianka Liz Kariat 2023-02-20 11:27:21 +05:30
parent 4d2dd50703
commit 68fdf6b6cb

View File

@ -148,8 +148,8 @@ using ::mediapipe::ImageFrame;
}
std::unique_ptr<ImageFrame> imageFrame =
absl::make_unique<ImageFrame>(::mediapipe::ImageFormat::SRGB, /*width=*/width,
/*height=*/height, stride, static_cast<uint8 *>(rgbPixelData),
absl::make_unique<ImageFrame>(::mediapipe::ImageFormat::SRGB, width,
height, stride, static_cast<uint8 *>(rgbPixelData),
/*deleter=*/free);
return imageFrame;
@ -223,7 +223,7 @@ using ::mediapipe::ImageFrame;
CGColorSpaceRelease(colorSpace);
std::unique_ptr<ImageFrame> imageFrame = absl::make_unique<ImageFrame>(
mediapipe::ImageFormat::SRGB, /*width=*/(int)width, /*height=*/(int)height, (int)bytesPerRow,
mediapipe::ImageFormat::SRGB, (int)width, (int)height, (int)bytesPerRow,
static_cast<uint8 *>(pixelDataToReturn),
/*deleter=*/free);