mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 15:23:13 +08:00
17 lines
468 B
Go
17 lines
468 B
Go
package ffmpeg
|
|
|
|
/*
|
|
#include <libavcodec/jni.h>
|
|
*/
|
|
import "C"
|
|
|
|
// AvJniSetJavaVm sets a Java virtual machine which will be used to retrieve the JNI environment.
|
|
func AvJniSetJavaVm(vm, logCtx CVoidPointer) int32 {
|
|
return (int32)(C.av_jni_set_java_vm(VoidPointer(vm), VoidPointer(logCtx)))
|
|
}
|
|
|
|
// AvJniGetJavaVm gets the Java virtual machine which has been set with AvJniSetJavaVm.
|
|
func AvJniGetJavaVm(logCtx CVoidPointer) {
|
|
C.av_jni_get_java_vm(VoidPointer(logCtx))
|
|
}
|