1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef IMAGE_SOURCE_TEST_H 17 #define IMAGE_SOURCE_TEST_H 18 19 #include "napi/native_api.h" 20 #include "image_pixel_map_napi.h" 21 #include "image_source_mdk.h" 22 23 namespace OHOS { 24 namespace Media { 25 class ImageSourceNDKTest { 26 public: 27 static napi_value Init(napi_env env, napi_value exports); 28 static napi_value Create(napi_env env, napi_callback_info info); 29 static napi_value CreateIncremental(napi_env env, napi_callback_info info); 30 static napi_value InitNative(napi_env env, napi_callback_info info); 31 static napi_value CreatePixelMap(napi_env env, napi_callback_info info); 32 static napi_value CreatePixelMapList(napi_env env, napi_callback_info info); 33 static napi_value GetDelayTime(napi_env env, napi_callback_info info); 34 static napi_value GetFrameCount(napi_env env, napi_callback_info info); 35 static napi_value GetSupportedFormats(napi_env env, napi_callback_info info); 36 static napi_value GetImageInfo(napi_env env, napi_callback_info info); 37 static napi_value GetImageProperty(napi_env env, napi_callback_info info); 38 static napi_value ModifyImageProperty(napi_env env, napi_callback_info info); 39 static napi_value UpdateData(napi_env env, napi_callback_info info); 40 static napi_value Release(napi_env env, napi_callback_info info); 41 private: 42 }; 43 } // namespace Media 44 } // namespace OHOS 45 #endif // IMAGE_SOURCE_TEST_H