ref: 65d6826470e984b550ffdec4e4b25e29c8778bc1
parent: ad9e65b96aaa93a06f1b564a0714a648fd904c80
author: Martin Storsjö <martin@martin.st>
date: Mon Apr 27 10:25:47 EDT 2015
Astyle a cpp file in the android test project This gets rid of indentation with tabs.
--- a/codec/build/android/enc/jni/myjni.cpp
+++ b/codec/build/android/enc/jni/myjni.cpp
@@ -11,21 +11,21 @@
JNIEXPORT void JNICALL Java_com_wels_enc_WelsEncTest_DoEncoderAutoTest
(JNIEnv* env, jobject thiz, jstring jsIncfgName, jstring jsInlayerName, jstring jsInyuvName, jstring jsOutbitName) {
/**************** Add the native codes/API *****************/
- const char* argv[]={
- (char*)("encConsole.exe"),
- (char*) ((*env).GetStringUTFChars (jsIncfgName, NULL)),
- (char*)("-org"),
- (char*) ((*env).GetStringUTFChars (jsInyuvName, NULL)),
- (char*)("-bf"),
- (char*) ((*env).GetStringUTFChars (jsOutbitName, NULL)),
- (char*)("-numl"),
- (char*)("1"),
- (char*)("-lconfig"),
- (char*)("0"),
- (char*) ((*env).GetStringUTFChars (jsInlayerName, NULL))
+ const char* argv[] = {
+ (char*) ("encConsole.exe"),
+ (char*) ((*env).GetStringUTFChars (jsIncfgName, NULL)),
+ (char*) ("-org"),
+ (char*) ((*env).GetStringUTFChars (jsInyuvName, NULL)),
+ (char*) ("-bf"),
+ (char*) ((*env).GetStringUTFChars (jsOutbitName, NULL)),
+ (char*) ("-numl"),
+ (char*) ("1"),
+ (char*) ("-lconfig"),
+ (char*) ("0"),
+ (char*) ((*env).GetStringUTFChars (jsInlayerName, NULL))
};
LOGI ("Start to run JNI module!+++");
- EncMain(sizeof(argv)/sizeof(argv[0]),(char**)&argv[0]);
+ EncMain (sizeof (argv) / sizeof (argv[0]), (char**)&argv[0]);
LOGI ("End to run JNI module!+++");
}