Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bea17b43
authored
May 17, 2022
by
andrewlewis
Committed by
Ian Baker
May 24, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Attempt to load OpenCV when loading MediaPipe
PiperOrigin-RevId: 449227706
parent
d6dc3c53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeFrameProcessor.java
demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeFrameProcessor.java
View file @
bea17b43
...
@@ -50,6 +50,16 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
...
@@ -50,6 +50,16 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
}
}
};
};
static
{
// Not all build configurations require OpenCV to be loaded separately, so attempt to load the
// library but ignore the error if it's not present.
try
{
System
.
loadLibrary
(
"opencv_java3"
);
}
catch
(
UnsatisfiedLinkError
e
)
{
// Do nothing.
}
}
private
static
final
String
COPY_VERTEX_SHADER_NAME
=
"vertex_shader_copy_es2.glsl"
;
private
static
final
String
COPY_VERTEX_SHADER_NAME
=
"vertex_shader_copy_es2.glsl"
;
private
static
final
String
COPY_FRAGMENT_SHADER_NAME
=
"shaders/fragment_shader_copy_es2.glsl"
;
private
static
final
String
COPY_FRAGMENT_SHADER_NAME
=
"shaders/fragment_shader_copy_es2.glsl"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment