All you do is call setMemoryModel and pass in the model you want. I do this in the static initialization of my class. For example, I do the following:
import com.xuggle.ferry.JNIMemoryManager;
import com.xuggle.ferry.JNIMemoryManager.MemoryModel;
import com.xuggle.xuggler.Global;
…
static {
try {
JNIMemoryManager.setMemoryModel(MemoryModel.JAVA_STANDARD_HEAP);
for (com.xuggle.ferry.Logger.Level c : com.xuggle.ferry.Logger.Level.values()) {
com.xuggle.ferry.Logger.setGlobalIsLogging(c, false);
}
Global.setFFmpegLoggingLevel(-1);
} catch (Throwable t) {
logger.warn("Didn't properly initialize logging and memory model in Xuggler.", t);
}
}
That disables the logging that I don’t care about and sets the memory model to the model of my choosing.
Ed St. Louis
801-999-8844
--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xuggler-user...@googlegroups.com.
To post to this group, send email to xuggle...@googlegroups.com.
Visit this group at https://groups.google.com/group/xuggler-users.
For more options, visit https://groups.google.com/d/optout.