search for: jnienv

Displaying 20 results from an estimated 24 matches for "jnienv".

2008 May 29
0
Again, teach me speex AEC please!
...will be used in my Voip program, so it should be async by nature. /** * com_peterhi_Speex.h */ #include <jni.h> #ifndef _Included_com_peterhi_Speex #define _Included_com_peterhi_Speex #ifdef __cplusplus extern "C" { #endif JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encoder__(JNIEnv *, jclass); JNIEXPORT jint JNICALL Java_com_peterhi_Speex_decoder__(JNIEnv *, jclass); JNIEXPORT void JNICALL Java_com_peterhi_Speex_encoder__I(JNIEnv *, jclass, jint); JNIEXPORT void JNICALL Java_com_peterhi_Speex_decoder__I(JNIEnv *, jclass, jint); JNIEXPORT jint JNICALL Java_com_peterhi_Speex_en...
2011 Feb 07
1
rjava does not install
...rror: expected ?)? before ?*? token rJava.h:211: error: expected ?)? before ?*? token rJava.h:213: error: expected ?)? before ?*? token rJava.h:215: error: expected ?)? before ?*? token rJava.h:217: error: expected ?)? before ?*? token Rglue.c: In function ?JRefObjectFinalizer?: Rglue.c:79: error: ?JNIEnv? undeclared (first use in this function) Rglue.c:79: error: (Each undeclared identifier is reported only once Rglue.c:79: error: for each function it appears in.) Rglue.c:79: error: ?env? undeclared (first use in this function) Rglue.c:79: warning: implicit declaration of function ?getJNIEnv? Rglue...
2017 Mar 03
14
[PATCH 00/11] Various Coverity fixes
Hi, this patch series fixes some issues discovered by Coverity. Most of them are memory leaks, usually on error; there are also invalid memory access issues. Thanks, Pino Toscano (11): java: link libguestfs_jni against libutils java: fix invalid memory access for FBuffer in struct lists daemon: tsk: properly use GUESTFS_MAX_CHUNK_SIZE edit: fix small memory leak on error java: fix
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...rror: expected ?)? before ?*? token rJava.h:164: error: expected ?)? before ?*? token rJava.h:166: error: expected ?)? before ?*? token rJava.h:168: error: expected ?)? before ?*? token rJava.h:170: error: expected ?)? before ?*? token Rglue.c: In function ?JRefObjectFinalizer?: Rglue.c:79: error: ?JNIEnv? undeclared (first use in this function) Rglue.c:79: error: (Each undeclared identifier is reported only once Rglue.c:79: error: for each function it appears in.) Rglue.c:79: error: ?env? undeclared (first use in this function) Rglue.c:79: warning: implicit declaration of function ?getJNIEnv? Rglue...
2012 Mar 14
0
Audio file is corrupted after decoding
...decoded file is near. But i am not able to play the decoded audio file, the mediaplayer says that the file has been corrupted. ENCODING: #include <jni.h> #include <stdio.h> #include "speex/speex.h" #define FRAME_SIZE 320 void Java_com_m2_iSmartDm_ISmartDMActivity_spxEnc(JNIEnv * env, jobject jobj,jstring dir1,jstring dir2) { const char *inFile= (*env)->GetStringUTFChars(env,dir1,0); const char *outFile= (*env)->GetStringUTFChars(env,dir2,0); FILE *fin; FILE *fout; short in[FRAME_SIZE]; float input[FRAME_SIZE]; char cbits[360]; int nbBytes; void...
2016 Feb 05
7
[PATCH 0/7] lib: Stop exporting the safe_malloc, etc. functions.
The safe_malloc (etc) functions call g->abort_fn on failure. That's not appropriate for language bindings, and we never intended that these internal functions be used from language bindings, that was just a historical accident. This patch series removes any external use of the safe_* functions. Rich.
2017 Mar 03
5
[PATCH v2 0/4] Avoid 0-bytes malloc in bindings
Hi, some of the bindings may try to malloc with 0 bytes as size when closing an handle, because there were no event handlers registered. Since this can have different behaviours in POSIX, avoid that situation altogether by just skipping allocating anything when there were no event handlers. Thanks, Pino Toscano (4): ocaml: do not try to malloc 0 elements in get_all_event_callbacks python:
2012 Mar 07
1
Error while decoding the audio file.
I have successfully encoded a wav file in android using speex(ndk). But when i try to decode it back, the file size keep on increasing to a very large size. The recorded audio file consists of sample rate - 8000 , 16 BIT, MONO. Why the decoder gives such a large size wav file? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Oct 12
0
Jmeeting & Wine .22
...d (0x2003e - 0x1002c 0xb41e748 ): semi-stub fixme:avicap:capCreateCaptureWindowW L"VfwCamDetect", 50000000, 00000000, 00000000, 00000140, 000000f0, 0x10040, 00022100 VFW Driver +Could not create capture window JNIEXPORT void JNICALL Java_com_jsyntax_directshow_CaptureDeviceManager_detect0(JNIEnv * pEnv, jclass jCaptureDeviceManagerClass, jobject jDevicesList) fixme:imm:ImmGetOpenStatus (0xb491f40): semi-stub There are more similar errors, but that's the jist of it. I'm sure avicap had been attended to - or is it just that function that's not implemented? Anyone planning on a...
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...-fpic -I/usr/java/jdk1.5.0_12/include -I/usr/java/jdk1.5.0_12/include/linux 3. From JAVA call to load so lib (I can load and link to the function) 4.Load so and call the function It can call BUT it will have crashed at the wine lib functions. JNIEXPORT jstring JNICALL Java_HelloImpl_sayHello (JNIEnv *jEvn, jobject jObj){ printf("sayHello [BEGIN]\n"); char sText[255]; HELLOIMPL_global_sayHello_2(sText); printf("sayHello [END CALL]\n"); jstring retmess; retmess = (*jEvn)->NewStringUTF(jEvn, sText); return retmess; } Crashed at: H...
2012 Feb 20
2
[LLVMdev] ARM opcode format
...th in the ARMCodeEmitter.cpp and that's the problem I'm facing. The triple I'm using is "armv7-unknown-linux-gnueabi" and the bitcode I'm dealing with is: ; ModuleID = 'CRYO jit' target triple = "armv7a-unknown-linux-gnueabi" define i32 @execute(i8* %JNIEnv, i8* %v8) { entry: %litTemp = alloca i32 %v0_INTEGER = alloca i32 %v4_INTEGER = alloca i32 %v5_INTEGER = alloca i32 %v2_INTEGER = alloca i32 %v6_INTEGER = alloca i32 %v5_POINTER = alloca i8* %v1_INTEGER = alloca i32 %v3_INTEGER = alloca i32 %v7_INTEGER = alloca i32...
2013 Jan 04
1
Integrating Java, C++ and R
Hi, I am able to integrate C++ and R through RInside library. However when I use a jni call as my UI is through java it crashes at C++ side. My files are ------------------------------------------------ JNICallingClass.C: JNIEXPORT void JNICALL Java_CallR_run (JNIEnv* env, jobject callr){ std::cout << "Inside JNICALL" << std::endl; testR(); std::cout << "ENd of JNICALL" << std::endl; } ------------------------------------------------- CppCall2R.C void testR(){ Rcpp::NumericVecto...
2000 Dec 13
2
ov_clear segfaults?
...; #include <stdio.h> #include <stdlib.h> #include <math.h> #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" #ifdef _WIN32 #include <io.h> #include <fcntl.h> #endif JNIEXPORT void JNICALL Java_com_vorbis_ogg_HelloWorld_displayHelloWorld (JNIEnv *env, jobject obj) { OggVorbis_File vf; FILE *fp; char **ptr; vorbis_info *vi; fp = fopen("test.ogg", "r"); if (!fp) { fprintf(stderr, "File not found.\n"); return; } if( ov_open(fp, &vf, NULL, 0) < 0 ) { fprintf(stderr,"File...
2012 Feb 20
0
[LLVMdev] ARM opcode format
...th in the ARMCodeEmitter.cpp and that's the problem I'm facing. The triple I'm using is "armv7-unknown-linux-gnueabi" and the bitcode I'm dealing with is: ; ModuleID = 'CRYO jit' target triple = "armv7a-unknown-linux-gnueabi" define i32 @execute(i8* %JNIEnv, i8* %v8) { entry: %litTemp = alloca i32 %v0_INTEGER = alloca i32 %v4_INTEGER = alloca i32 %v5_INTEGER = alloca i32 %v2_INTEGER = alloca i32 %v6_INTEGER = alloca i32 %v5_POINTER = alloca i8* %v1_INTEGER = alloca i32 %v3_INTEGER = alloca i32 %v7_INTEGER = alloca i32...
2012 Feb 20
3
[LLVMdev] ARM opcode format
...> > The triple I'm using is "armv7-unknown-linux-gnueabi" and the bitcode I'm > dealing with is:**** > > ** ** > > ; ModuleID = 'CRYO jit'**** > > target triple = "armv7a-unknown-linux-gnueabi"**** > > define i32 @execute(i8* %JNIEnv, i8* %v8) {**** > > entry:**** > > %litTemp = alloca i32**** > > %v0_INTEGER = alloca i32**** > > %v4_INTEGER = alloca i32**** > > %v5_INTEGER = alloca i32**** > > %v2_INTEGER = alloca i32**** > > %v6_INTEGER = alloca i32**** > >...
2017 Mar 06
7
[PATCH 0/6] Various Coverity fixes #2
Hi, this patch series fixes few more issues discovered by Coverity. Thanks, Pino Toscano (6): tail: check the return value pf guestfs_set_pgroup daemon: btrfs: check end_stringsbuf return values everywhere java: use cleanup handlers for structs (lists) as return values lib: qemu: improve handling of FILE* p2v: check more return values p2v: fix possible close(-1) issue cat/tail.c
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...| BufferIn n -> pr "byte[] %s" n - | StringList n | DeviceList n | FilenameList n -> + | StringList (_, n) -> pr "String[] %s" n | Bool n -> pr "boolean %s" n @@ -641,18 +635,12 @@ throw_out_of_memory (JNIEnv *env, const char *msg) pr " (JNIEnv *env, jobject obj, jlong jg"; List.iter ( function - | Pathname n - | Device n | Mountable n | Dev_or_Path n | Mountable_or_Path n - | String n - | OptString n - | FileIn n - | FileOut n...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...rgs <> [] then doc ^ "\n\nOptional arguments are supplied in the final Map<String,Object> parameter, which is a hash of the argument name to its value (cast to Object). Pass an empty Map or null for no optional arguments." @@ -625,7 +627,7 @@ throw_out_of_memory (JNIEnv *env, const char *msg) ); pr "JNICALL\n"; pr "Java_com_redhat_et_libguestfs_GuestFS_"; - pr "%s" (replace_str ("_" ^ name) "_" "_1"); + pr "%s" (String.replace ("_" ^ name) "_" &...
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.