Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Xuggler
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Bioimage Analysis
Icy
Extensions
Xuggler
Commits
de9e17f4
Commit
de9e17f4
authored
3 years ago
by
Stéphane DALLONGEVILLE
Browse files
Options
Downloads
Patches
Plain Diff
Added XugglerPlugin.init() to help with native library loading
parent
393e0f41
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/plugins/stef/library/XugglerPlugin.java
+44
-1
44 additions, 1 deletion
src/main/java/plugins/stef/library/XugglerPlugin.java
with
44 additions
and
1 deletion
src/main/java/plugins/stef/library/XugglerPlugin.java
+
44
−
1
View file @
de9e17f4
package
plugins.stef.library
;
package
plugins.stef.library
;
import
com.xuggle.ferry.Ferry
;
import
icy.plugin.abstract_.Plugin
;
import
icy.plugin.abstract_.Plugin
;
import
icy.plugin.interface_.PluginLibrary
;
import
icy.plugin.interface_.PluginLibrary
;
...
@@ -10,5 +12,46 @@ import icy.plugin.interface_.PluginLibrary;
...
@@ -10,5 +12,46 @@ import icy.plugin.interface_.PluginLibrary;
*/
*/
public
class
XugglerPlugin
extends
Plugin
implements
PluginLibrary
public
class
XugglerPlugin
extends
Plugin
implements
PluginLibrary
{
{
//
static
boolean
initialized
=
false
;
/**
* Force initialization (native library loading mainly) of Xuggler library
*/
public
static
synchronized
void
init
()
{
// we try the easier library loading process
if
(!
initialized
)
{
Throwable
error
=
null
;
if
(
loadLibrary
(
XugglerPlugin
.
class
,
"xuggle"
))
initialized
=
true
;
try
{
Ferry
.
load
();
initialized
=
true
;
}
catch
(
Throwable
t
)
{
error
=
t
;
}
if
(!
initialized
)
{
if
(
error
!=
null
)
System
.
err
.
println
(
error
.
getMessage
());
System
.
err
.
println
(
"Xuggler native library load failed."
);
}
}
}
/**
* @return true if Xuggler library has been initialized
*/
public
static
boolean
isInitialized
()
{
return
initialized
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment