No public description

PiperOrigin-RevId: 559133490
This commit is contained in:
MediaPipe Team
2023-08-22 09:22:42 -07:00
committed by Copybara-Service
parent edb0a64d0e
commit 7517b56476
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -219,6 +219,10 @@ GlTexture GlCalculatorHelper::CreateDestinationTexture(
return MapGpuBuffer(gpu_buffer, gpu_buffer.GetWriteView<GlTextureView>(0));
}
GlTexture GlCalculatorHelper::CreateDestinationTexture(GpuBuffer& gpu_buffer) {
return MapGpuBuffer(gpu_buffer, gpu_buffer.GetWriteView<GlTextureView>(0));
}
GlTexture GlCalculatorHelper::CreateSourceTexture(
const mediapipe::Image& image) {
return CreateSourceTexture(image.GetGpuBuffer());
+3
View File
@@ -162,6 +162,9 @@ class GlCalculatorHelper {
int output_width, int output_height,
GpuBufferFormat format = GpuBufferFormat::kBGRA32);
// Allows user provided buffers to be used as rendering destinations.
GlTexture CreateDestinationTexture(GpuBuffer& buffer);
// Creates a destination texture copying and uploading passed image frame.
//
// WARNING: mind that this functions creates a new texture every time and