diff --git a/mediapipe/gpu/gl_texture_buffer.cc b/mediapipe/gpu/gl_texture_buffer.cc index e57195a4..09703d89 100644 --- a/mediapipe/gpu/gl_texture_buffer.cc +++ b/mediapipe/gpu/gl_texture_buffer.cc @@ -360,7 +360,7 @@ static std::shared_ptr ConvertToImageFrame( absl::make_unique(image_format, buf->width(), buf->height(), ImageFrame::kGlDefaultAlignmentBoundary); buf->GetProducerContext()->Run([buf, &output] { - auto view = buf->GetReadView(internal::types{}, 0); + auto view = buf->GetReadView(internal::types{}, /*plane=*/0); ReadTexture(view, buf->format(), output->MutablePixelData(), output->PixelDataSize()); }); @@ -389,8 +389,9 @@ static std::shared_ptr ConvertToCvPixelBuffer( buf->width(), buf->height(), buf->format()); buf->GetProducerContext()->Run([buf, &output] { TempGlFramebuffer framebuffer; - auto src = buf->GetReadView(internal::types{}, 0); - auto dst = output->GetWriteView(internal::types{}, 0); + auto src = buf->GetReadView(internal::types{}, /*plane=*/0); + auto dst = + output->GetWriteView(internal::types{}, /*plane=*/0); CopyGlTexture(src, dst); glFlush(); });