No public description
PiperOrigin-RevId: 559133490
This commit is contained in:
parent
edb0a64d0e
commit
7517b56476
|
@ -219,6 +219,10 @@ GlTexture GlCalculatorHelper::CreateDestinationTexture(
|
||||||
return MapGpuBuffer(gpu_buffer, gpu_buffer.GetWriteView<GlTextureView>(0));
|
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(
|
GlTexture GlCalculatorHelper::CreateSourceTexture(
|
||||||
const mediapipe::Image& image) {
|
const mediapipe::Image& image) {
|
||||||
return CreateSourceTexture(image.GetGpuBuffer());
|
return CreateSourceTexture(image.GetGpuBuffer());
|
||||||
|
|
|
@ -162,6 +162,9 @@ class GlCalculatorHelper {
|
||||||
int output_width, int output_height,
|
int output_width, int output_height,
|
||||||
GpuBufferFormat format = GpuBufferFormat::kBGRA32);
|
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.
|
// Creates a destination texture copying and uploading passed image frame.
|
||||||
//
|
//
|
||||||
// WARNING: mind that this functions creates a new texture every time and
|
// WARNING: mind that this functions creates a new texture every time and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user