Project import generated by Copybara.
GitOrigin-RevId: 1e13be30e2c6838d4a2ff768a39c414bc80534bb
This commit is contained in:
committed by
Sebastian Schmidt
parent
63e679d99c
commit
4dc4b19ddb
+16
-15
@@ -68,10 +68,7 @@ objc_library(
|
||||
copts = [
|
||||
"-Wno-shorten-64-to-32",
|
||||
],
|
||||
sdk_frameworks = [
|
||||
# Needed for OpenCV.
|
||||
"Accelerate",
|
||||
],
|
||||
sdk_frameworks = ["Accelerate"],
|
||||
visibility = ["//mediapipe/framework:mediapipe_internal"],
|
||||
deps = [
|
||||
":CFHolder",
|
||||
@@ -123,16 +120,11 @@ objc_library(
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
sdk_frameworks = [
|
||||
"AVFoundation",
|
||||
"CoreVideo",
|
||||
"Foundation",
|
||||
],
|
||||
visibility = ["//mediapipe/framework:mediapipe_internal"],
|
||||
deps = [
|
||||
] + select({
|
||||
"//mediapipe:ios": [
|
||||
],
|
||||
"//mediapipe:macos": [
|
||||
],
|
||||
}),
|
||||
)
|
||||
|
||||
objc_library(
|
||||
@@ -146,6 +138,10 @@ objc_library(
|
||||
copts = [
|
||||
"-Wno-shorten-64-to-32",
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"Foundation",
|
||||
"GLKit",
|
||||
],
|
||||
visibility = ["//mediapipe/framework:mediapipe_internal"],
|
||||
deps = [
|
||||
":mediapipe_framework_ios",
|
||||
@@ -166,6 +162,10 @@ objc_library(
|
||||
copts = [
|
||||
"-Wno-shorten-64-to-32",
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"Foundation",
|
||||
"GLKit",
|
||||
],
|
||||
visibility = ["//mediapipe/framework:mediapipe_internal"],
|
||||
deps = [
|
||||
":mediapipe_framework_ios",
|
||||
@@ -187,6 +187,7 @@ objc_library(
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"CoreVideo",
|
||||
"Foundation",
|
||||
],
|
||||
visibility = ["//mediapipe/framework:mediapipe_internal"],
|
||||
deps = [
|
||||
@@ -208,11 +209,11 @@ objc_library(
|
||||
"-Wno-shorten-64-to-32",
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"Accelerate",
|
||||
"AVFoundation",
|
||||
"CoreVideo",
|
||||
"Accelerate",
|
||||
"CoreGraphics",
|
||||
"CoreMedia",
|
||||
"CoreVideo",
|
||||
"GLKit",
|
||||
"OpenGLES",
|
||||
"QuartzCore",
|
||||
@@ -242,11 +243,11 @@ objc_library(
|
||||
"testdata/googlelogo_color_272x92dp.png",
|
||||
],
|
||||
sdk_frameworks = [
|
||||
"Accelerate",
|
||||
"AVFoundation",
|
||||
"CoreVideo",
|
||||
"Accelerate",
|
||||
"CoreGraphics",
|
||||
"CoreMedia",
|
||||
"CoreVideo",
|
||||
"GLKit",
|
||||
"QuartzCore",
|
||||
"UIKit",
|
||||
|
||||
@@ -221,7 +221,7 @@ static void EnsureOutputDirFor(NSString *outputFile) {
|
||||
aWidth != bWidth ||
|
||||
aHeight != bHeight) return NO;
|
||||
|
||||
size_t bytesPerPixel; // is there a generic way to get this from a pixel buffer?
|
||||
size_t bytesPerPixel = 0; // is there a generic way to get this from a pixel buffer?
|
||||
switch (aPixelFormat) {
|
||||
case kCVPixelFormatType_32BGRA:
|
||||
bytesPerPixel = 4;
|
||||
|
||||
Reference in New Issue
Block a user