Permalink
Browse files

More new native lib stuff

  • Loading branch information...
1 parent 591ba13 commit 05506dbce57b8bd364cc06ea6a7f9549bcf2f558 @pcgod pcgod committed Sep 17, 2010
View
@@ -35,15 +35,15 @@ LOCAL_SRC_FILES := cb_search.c exc_10_32_table.c exc_8_128_table.c filters.c
exc_5_64_table.c gain_table_lbr.c hexc_10_32_table.c lpc.c \
lsp_tables_nb.c modes.c modes_wb.c nb_celp.c \
quant_lsp.c sb_celp.c speex_callbacks.c speex_header.c \
- window.c resample.c
+ window.c resample.c jitter.c
LOCAL_CFLAGS := -I$(LOCAL_PATH)/../include -D__EMX__ -DFIXED_POINT -DEXPORT=''
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
-LOCAL_PATH := $(ROOT)/celt_wrapper
-LOCAL_MODULE := libcelt_interface
-LOCAL_SRC_FILES := celt_wrap.c
-LOCAL_CFLAGS := -I$(LIBPATH) -fvisibility=hidden
+LOCAL_PATH := $(ROOT)/new
+LOCAL_MODULE := libnative
+LOCAL_SRC_FILES := hawtjni.c hawtjni_native.c hawtjni_native_stats.c hawtjni_native_structs.c
+LOCAL_CFLAGS := -I$(ROOT)/celt/libcelt -fvisibility=hidden
LOCAL_STATIC_LIBRARIES := libcelt libspeex
include $(BUILD_SHARED_LIBRARY)
@@ -1,26 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public class SWIGTYPE_p_CELTDecoder {
- private long swigCPtr;
-
- protected SWIGTYPE_p_CELTDecoder(long cPtr, boolean futureUse) {
- swigCPtr = cPtr;
- }
-
- protected SWIGTYPE_p_CELTDecoder() {
- swigCPtr = 0;
- }
-
- protected static long getCPtr(SWIGTYPE_p_CELTDecoder obj) {
- return (obj == null) ? 0 : obj.swigCPtr;
- }
-}
-
@@ -1,26 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public class SWIGTYPE_p_CELTEncoder {
- private long swigCPtr;
-
- protected SWIGTYPE_p_CELTEncoder(long cPtr, boolean futureUse) {
- swigCPtr = cPtr;
- }
-
- protected SWIGTYPE_p_CELTEncoder() {
- swigCPtr = 0;
- }
-
- protected static long getCPtr(SWIGTYPE_p_CELTEncoder obj) {
- return (obj == null) ? 0 : obj.swigCPtr;
- }
-}
-
@@ -1,26 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public class SWIGTYPE_p_CELTMode {
- private long swigCPtr;
-
- protected SWIGTYPE_p_CELTMode(long cPtr, boolean futureUse) {
- swigCPtr = cPtr;
- }
-
- protected SWIGTYPE_p_CELTMode() {
- swigCPtr = 0;
- }
-
- protected static long getCPtr(SWIGTYPE_p_CELTMode obj) {
- return (obj == null) ? 0 : obj.swigCPtr;
- }
-}
-
@@ -1,26 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public class SWIGTYPE_p_SpeexResamplerState {
- private long swigCPtr;
-
- protected SWIGTYPE_p_SpeexResamplerState(long cPtr, boolean futureUse) {
- swigCPtr = cPtr;
- }
-
- protected SWIGTYPE_p_SpeexResamplerState() {
- swigCPtr = 0;
- }
-
- protected static long getCPtr(SWIGTYPE_p_SpeexResamplerState obj) {
- return (obj == null) ? 0 : obj.swigCPtr;
- }
-}
-
View
@@ -1,68 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public class celt implements celtConstants {
- public static SWIGTYPE_p_CELTMode celt_mode_create(int Fs, int frame_size) {
- long cPtr = celtJNI.celt_mode_create(Fs, frame_size);
- return (cPtr == 0) ? null : new SWIGTYPE_p_CELTMode(cPtr, false);
- }
-
- public static void celt_mode_destroy(SWIGTYPE_p_CELTMode mode) {
- celtJNI.celt_mode_destroy(SWIGTYPE_p_CELTMode.getCPtr(mode));
- }
-
- public static int celt_mode_info(SWIGTYPE_p_CELTMode mode, int request, int[] value) {
- return celtJNI.celt_mode_info(SWIGTYPE_p_CELTMode.getCPtr(mode), request, value);
- }
-
- public static SWIGTYPE_p_CELTEncoder celt_encoder_create(SWIGTYPE_p_CELTMode mode, int channels) {
- long cPtr = celtJNI.celt_encoder_create(SWIGTYPE_p_CELTMode.getCPtr(mode), channels);
- return (cPtr == 0) ? null : new SWIGTYPE_p_CELTEncoder(cPtr, false);
- }
-
- public static void celt_encoder_destroy(SWIGTYPE_p_CELTEncoder st) {
- celtJNI.celt_encoder_destroy(SWIGTYPE_p_CELTEncoder.getCPtr(st));
- }
-
- public static int celt_encode(SWIGTYPE_p_CELTEncoder st, short[] pcm, short[] compressed, int nbCompressedBytes) {
- return celtJNI.celt_encode(SWIGTYPE_p_CELTEncoder.getCPtr(st), pcm, compressed, nbCompressedBytes);
- }
-
- public static int celt_encoder_ctl(SWIGTYPE_p_CELTEncoder st, int request, int value) {
- return celtJNI.celt_encoder_ctl(SWIGTYPE_p_CELTEncoder.getCPtr(st), request, value);
- }
-
- public static SWIGTYPE_p_CELTDecoder celt_decoder_create(SWIGTYPE_p_CELTMode mode, int channels) {
- long cPtr = celtJNI.celt_decoder_create(SWIGTYPE_p_CELTMode.getCPtr(mode), channels);
- return (cPtr == 0) ? null : new SWIGTYPE_p_CELTDecoder(cPtr, false);
- }
-
- public static void celt_decoder_destroy(SWIGTYPE_p_CELTDecoder st) {
- celtJNI.celt_decoder_destroy(SWIGTYPE_p_CELTDecoder.getCPtr(st));
- }
-
- public static int celt_decode(SWIGTYPE_p_CELTDecoder st, short[] data, int len, short[] pcm) {
- return celtJNI.celt_decode(SWIGTYPE_p_CELTDecoder.getCPtr(st), data, len, pcm);
- }
-
- public static SWIGTYPE_p_SpeexResamplerState speex_resampler_init(long nb_channels, long in_rate, long out_rate, int quality) {
- long cPtr = celtJNI.speex_resampler_init(nb_channels, in_rate, out_rate, quality);
- return (cPtr == 0) ? null : new SWIGTYPE_p_SpeexResamplerState(cPtr, false);
- }
-
- public static void speex_resampler_destroy(SWIGTYPE_p_SpeexResamplerState st) {
- celtJNI.speex_resampler_destroy(SWIGTYPE_p_SpeexResamplerState.getCPtr(st));
- }
-
- public static int speex_resampler_process_int(SWIGTYPE_p_SpeexResamplerState st, int channel_index, short[] in, int[] in_len, short[] out, int[] out_len) {
- return celtJNI.speex_resampler_process_int(SWIGTYPE_p_SpeexResamplerState.getCPtr(st), channel_index, in, in_len, out, out_len);
- }
-
-}
@@ -1,30 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-public interface celtConstants {
- public final static int CELT_OK = 0;
- public final static int CELT_BAD_ARG = -1;
- public final static int CELT_INVALID_MODE = -2;
- public final static int CELT_INTERNAL_ERROR = -3;
- public final static int CELT_CORRUPTED_DATA = -4;
- public final static int CELT_UNIMPLEMENTED = -5;
- public final static int CELT_INVALID_STATE = -6;
- public final static int CELT_ALLOC_FAIL = -7;
- public final static int CELT_GET_MODE_REQUEST = 1;
- public final static int CELT_SET_COMPLEXITY_REQUEST = 2;
- public final static int CELT_SET_PREDICTION_REQUEST = 4;
- public final static int CELT_SET_VBR_RATE_REQUEST = 6;
- public final static int CELT_RESET_STATE_REQUEST = 8;
- public final static int CELT_RESET_STATE = 8;
- public final static int CELT_GET_FRAME_SIZE = 1000;
- public final static int CELT_GET_LOOKAHEAD = 1001;
- public final static int CELT_GET_SAMPLE_RATE = 1003;
- public final static int CELT_GET_BITSTREAM_VERSION = 2000;
-}
@@ -1,25 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.pcgod.mumbleclient.jni;
-
-class celtJNI {
- public final static native long celt_mode_create(int jarg1, int jarg2);
- public final static native void celt_mode_destroy(long jarg1);
- public final static native int celt_mode_info(long jarg1, int jarg2, int[] jarg3);
- public final static native long celt_encoder_create(long jarg1, int jarg2);
- public final static native void celt_encoder_destroy(long jarg1);
- public final static native int celt_encode(long jarg1, short[] jarg2, short[] jarg3, int jarg4);
- public final static native int celt_encoder_ctl(long jarg1, int jarg2, int jarg3);
- public final static native long celt_decoder_create(long jarg1, int jarg2);
- public final static native void celt_decoder_destroy(long jarg1);
- public final static native int celt_decode(long jarg1, short[] jarg2, int jarg3, short[] jarg4);
- public final static native long speex_resampler_init(long jarg1, long jarg2, long jarg3, int jarg4);
- public final static native void speex_resampler_destroy(long jarg1);
- public final static native int speex_resampler_process_int(long jarg1, int jarg2, short[] jarg3, int[] jarg4, short[] jarg5, int[] jarg6);
-}
Oops, something went wrong.

0 comments on commit 05506db

Please sign in to comment.