1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MEDIACTSNATIVE_NATIVE_CODEC_DECODER_TEST_COMMON_H
18 #define MEDIACTSNATIVE_NATIVE_CODEC_DECODER_TEST_COMMON_H
19 
20 #include <jni.h>
21 
22 extern jboolean nativeTestSimpleDecode(JNIEnv* env, jobject, jstring jDecoder, jobject surface,
23                                        jstring jMediaType, jstring jtestFile, jstring jrefFile,
24                                        jint jColorFormat, jfloat jrmsError, jlong jChecksum,
25                                        jobject jRetMsg);
26 
27 extern jboolean nativeTestOnlyEos(JNIEnv* env, jobject, jstring jDecoder, jstring jMediaType,
28                                   jstring jtestFile, jint jColorFormat, jobject jRetMsg);
29 
30 extern jboolean nativeTestFlush(JNIEnv* env, jobject, jstring jDecoder, jobject surface,
31                                 jstring jMediaType, jstring jtestFile, jint jColorFormat,
32                                 jobject jRetMsg);
33 
34 extern jboolean nativeTestSimpleDecodeQueueCSD(JNIEnv* env, jobject, jstring jDecoder,
35                                                jstring jMediaType, jstring jtestFile,
36                                                jint jColorFormat, jobject jRetMsg);
37 
38 #endif // MEDIACTSNATIVE_NATIVE_CODEC_DECODER_TEST_COMMON_H
39