Factor out CvPixelBufferPoolWrapper

This is platform-specific and does not need to live in the main multi_pool sources.

PiperOrigin-RevId: 488781934
This commit is contained in:
Camillo Lugaresi
2022-11-15 16:04:27 -08:00
committed by Copybara-Service
parent ab2dd779e7
commit 0d273dd11a
5 changed files with 149 additions and 67 deletions
+22
View File
@@ -356,6 +356,26 @@ cc_library(
],
)
cc_library(
name = "cv_pixel_buffer_pool_wrapper",
srcs = ["cv_pixel_buffer_pool_wrapper.cc"],
hdrs = ["cv_pixel_buffer_pool_wrapper.h"],
copts = select({
"//conditions:default": [],
"//mediapipe:apple": [
"-x objective-c++",
"-fobjc-arc",
],
}),
deps = [
":gpu_buffer",
":pixel_buffer_pool_util",
"//mediapipe/framework/port:logging",
"//mediapipe/objc:CFHolder",
"@com_google_absl//absl/synchronization",
],
)
cc_library(
name = "gpu_buffer_storage_image_frame",
hdrs = ["gpu_buffer_storage_image_frame.h"],
@@ -631,12 +651,14 @@ cc_library(
":gl_texture_buffer_pool",
],
"//mediapipe:ios": [
":cv_pixel_buffer_pool_wrapper",
":cv_texture_cache_manager",
":pixel_buffer_pool_util",
"//mediapipe/objc:CFHolder",
"//mediapipe/objc:util",
],
"//mediapipe:macos": [
":cv_pixel_buffer_pool_wrapper",
":cv_texture_cache_manager",
":pixel_buffer_pool_util",
":gl_texture_buffer",