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