Loading media/jni/mediaeditor/VideoEditorJava.cpp +20 −9 Original line number Diff line number Diff line Loading @@ -25,11 +25,13 @@ extern "C" { void videoEditJava_checkAndThrowIllegalArgumentException( videoEditJava_checkAndThrowIllegalArgumentExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage) const char* pMessage, const char* pFile, int lineNo) { // Check if the previous action succeeded. if (*pResult) Loading @@ -39,7 +41,8 @@ videoEditJava_checkAndThrowIllegalArgumentException( { // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA",\ "videoEditJava_checkAndThrowIllegalArgumentException, %s", pMessage); "videoEditJava_checkAndThrowIllegalArgumentException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading @@ -51,11 +54,14 @@ videoEditJava_checkAndThrowIllegalArgumentException( } void videoEditJava_checkAndThrowRuntimeException( videoEditJava_checkAndThrowRuntimeExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, M4OSA_ERR result) M4OSA_ERR result, const char* pFile, int lineNo ) { const char* pMessage = NULL; Loading @@ -70,7 +76,8 @@ videoEditJava_checkAndThrowRuntimeException( // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA", "videoEditJava_checkAndThrowRuntimeException, %s", pMessage); "videoEditJava_checkAndThrowRuntimeException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading @@ -82,11 +89,14 @@ videoEditJava_checkAndThrowRuntimeException( } void videoEditJava_checkAndThrowIllegalStateException( videoEditJava_checkAndThrowIllegalStateExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage) const char* pMessage, const char* pFile, int lineNo ) { // Check if the previous action succeeded. if (*pResult) Loading @@ -96,7 +106,8 @@ videoEditJava_checkAndThrowIllegalStateException( { // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA", "videoEditJava_checkAndThrowIllegalStateException, %s", pMessage); "videoEditJava_checkAndThrowIllegalStateException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading media/jni/mediaeditor/VideoEditorJava.h +27 −6 Original line number Diff line number Diff line Loading @@ -351,26 +351,47 @@ typedef struct jmethodID methodIds[]; } VideoEditJava_MethodIds; #define videoEditJava_checkAndThrowIllegalArgumentException(\ a, b, c, d) videoEditJava_checkAndThrowIllegalArgumentExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) #define videoEditJava_checkAndThrowRuntimeException(\ a, b, c, d) videoEditJava_checkAndThrowRuntimeExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) #define videoEditJava_checkAndThrowIllegalStateException(\ a, b, c, d) videoEditJava_checkAndThrowIllegalStateExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) void videoEditJava_checkAndThrowIllegalArgumentException( videoEditJava_checkAndThrowIllegalArgumentExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage); const char* pMessage, const char* pFile, int lineNo ); void videoEditJava_checkAndThrowRuntimeException( videoEditJava_checkAndThrowRuntimeExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, M4OSA_ERR result); M4OSA_ERR result, const char* pFile, int lineNo ); void videoEditJava_checkAndThrowIllegalStateException( videoEditJava_checkAndThrowIllegalStateExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage); const char* pMessage, const char* pFile, int lineNo ); void videoEditJava_getClass( Loading Loading
media/jni/mediaeditor/VideoEditorJava.cpp +20 −9 Original line number Diff line number Diff line Loading @@ -25,11 +25,13 @@ extern "C" { void videoEditJava_checkAndThrowIllegalArgumentException( videoEditJava_checkAndThrowIllegalArgumentExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage) const char* pMessage, const char* pFile, int lineNo) { // Check if the previous action succeeded. if (*pResult) Loading @@ -39,7 +41,8 @@ videoEditJava_checkAndThrowIllegalArgumentException( { // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA",\ "videoEditJava_checkAndThrowIllegalArgumentException, %s", pMessage); "videoEditJava_checkAndThrowIllegalArgumentException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading @@ -51,11 +54,14 @@ videoEditJava_checkAndThrowIllegalArgumentException( } void videoEditJava_checkAndThrowRuntimeException( videoEditJava_checkAndThrowRuntimeExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, M4OSA_ERR result) M4OSA_ERR result, const char* pFile, int lineNo ) { const char* pMessage = NULL; Loading @@ -70,7 +76,8 @@ videoEditJava_checkAndThrowRuntimeException( // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA", "videoEditJava_checkAndThrowRuntimeException, %s", pMessage); "videoEditJava_checkAndThrowRuntimeException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading @@ -82,11 +89,14 @@ videoEditJava_checkAndThrowRuntimeException( } void videoEditJava_checkAndThrowIllegalStateException( videoEditJava_checkAndThrowIllegalStateExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage) const char* pMessage, const char* pFile, int lineNo ) { // Check if the previous action succeeded. if (*pResult) Loading @@ -96,7 +106,8 @@ videoEditJava_checkAndThrowIllegalStateException( { // Log the exception. VIDEOEDIT_LOG_EXCEPTION(ANDROID_LOG_ERROR, "VIDEO_EDITOR_JAVA", "videoEditJava_checkAndThrowIllegalStateException, %s", pMessage); "videoEditJava_checkAndThrowIllegalStateException, %s (%s:%d)", pMessage, pFile, lineNo); // Reset the result flag. (*pResult) = false; Loading
media/jni/mediaeditor/VideoEditorJava.h +27 −6 Original line number Diff line number Diff line Loading @@ -351,26 +351,47 @@ typedef struct jmethodID methodIds[]; } VideoEditJava_MethodIds; #define videoEditJava_checkAndThrowIllegalArgumentException(\ a, b, c, d) videoEditJava_checkAndThrowIllegalArgumentExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) #define videoEditJava_checkAndThrowRuntimeException(\ a, b, c, d) videoEditJava_checkAndThrowRuntimeExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) #define videoEditJava_checkAndThrowIllegalStateException(\ a, b, c, d) videoEditJava_checkAndThrowIllegalStateExceptionFunc(\ a, b, c, d, __FILE__, __LINE__) void videoEditJava_checkAndThrowIllegalArgumentException( videoEditJava_checkAndThrowIllegalArgumentExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage); const char* pMessage, const char* pFile, int lineNo ); void videoEditJava_checkAndThrowRuntimeException( videoEditJava_checkAndThrowRuntimeExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, M4OSA_ERR result); M4OSA_ERR result, const char* pFile, int lineNo ); void videoEditJava_checkAndThrowIllegalStateException( videoEditJava_checkAndThrowIllegalStateExceptionFunc( bool* pResult, JNIEnv* pEnv, bool condition, const char* pMessage); const char* pMessage, const char* pFile, int lineNo ); void videoEditJava_getClass( Loading