From a8d88bf7cf398a382ddfa049b11fd79655abe37b Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 6 Nov 2023 14:39:10 -0800 Subject: [PATCH] Creates GpuBuffers around pre-allocated AHardware_Buffer objects. PiperOrigin-RevId: 579961642 --- mediapipe/gpu/BUILD | 5 ----- mediapipe/gpu/gpu_buffer_format.cc | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/mediapipe/gpu/BUILD b/mediapipe/gpu/BUILD index f39b8d3f7..b75c824b3 100644 --- a/mediapipe/gpu/BUILD +++ b/mediapipe/gpu/BUILD @@ -516,7 +516,6 @@ cc_library( ":gpu_buffer_storage", ":image_frame_view", "//mediapipe/framework/formats:image_frame", - "//mediapipe/framework/port:ret_check", "@com_google_absl//absl/strings:str_format", ], ) @@ -1224,13 +1223,9 @@ mediapipe_cc_test( ], requires_full_emulation = True, deps = [ - ":gl_texture_buffer", - ":gl_texture_util", ":gpu_buffer_format", ":gpu_buffer_storage_ahwb", - ":gpu_test_base", "//mediapipe/framework/port:gtest_main", - "//mediapipe/framework/tool:test_util", ], ) diff --git a/mediapipe/gpu/gpu_buffer_format.cc b/mediapipe/gpu/gpu_buffer_format.cc index 510a9cd48..b099f4a25 100644 --- a/mediapipe/gpu/gpu_buffer_format.cc +++ b/mediapipe/gpu/gpu_buffer_format.cc @@ -238,7 +238,7 @@ ImageFormat::Format ImageFormatForGpuBufferFormat(GpuBufferFormat format) { case GpuBufferFormat::kRGBAFloat128: return ImageFormat::VEC32F4; case GpuBufferFormat::kRGBA32: - return ImageFormat::SRGBA; + // TODO: this likely maps to ImageFormat::SRGBA case GpuBufferFormat::kGrayHalf16: case GpuBufferFormat::kOneComponent8Alpha: case GpuBufferFormat::kOneComponent8Red: