FastCV Sample Application
1.7.1
|
00001 #ifndef SCALEDOWNMN_H 00002 #define SCALEDOWNMN_H 00003 00004 /* 00005 * Copyright (c) 2012 Qualcomm Technologies Incorporated. All Rights Reserved. 00006 * Qualcomm Technologies Proprietary and Confidential. 00007 * 00008 * 00009 * @file Definition of FastCV Transform ScaleDownMN Java Native Interface (JNI). 00010 * 00011 */ 00012 00013 //============================================================================== 00014 // Include Files 00015 //============================================================================== 00016 #include <jni.h> 00017 00018 //============================================================================== 00019 // Declarations 00020 //============================================================================== 00021 extern "C" { 00022 //------------------------------------------------------------------------------ 00026 //------------------------------------------------------------------------------ 00027 JNIEXPORT void JNICALL Java_com_qualcomm_fastcvdemo_apis_imageTransformation_ScaleDownMN_setPreview 00028 ( 00029 JNIEnv* env, 00030 jobject obj, 00031 bool pre 00032 ); 00033 00034 00035 JNIEXPORT void JNICALL Java_com_qualcomm_fastcvdemo_apis_imageTransformation_ScaleDownMN_setScaling 00036 ( 00037 JNIEnv* env, 00038 jobject obj, 00039 int scale 00040 ); 00041 00042 //------------------------------------------------------------------------------ 00047 //------------------------------------------------------------------------------ 00048 JNIEXPORT void JNICALL Java_com_qualcomm_fastcvdemo_apis_imageTransformation_ScaleDownMN_update 00049 ( 00050 JNIEnv* env, 00051 jobject obj, 00052 jbyteArray img, 00053 jint w, 00054 jint h 00055 ); 00056 00057 //--------------------------------------------------------------------------- 00060 //--------------------------------------------------------------------------- 00061 JNIEXPORT void JNICALL Java_com_qualcomm_fastcvdemo_apis_imageTransformation_ScaleDownMN_cleanup 00062 ( 00063 JNIEnv * env, 00064 jobject obj 00065 ); 00066 00067 JNIEXPORT void JNICALL Java_com_qualcomm_fastcvdemo_apis_imageTransformation_ScaleDownMN_setScalePref 00068 ( 00069 JNIEnv* env, 00070 jobject obj, 00071 bool scaleP 00072 ); 00073 00074 } 00075 00076 #endif // ScaleDownMN_H