1e0dac50fSopenharmony_ci/* 2e0dac50fSopenharmony_ci * Copyright (C) 2022-2024 Huawei Device Co., Ltd. 3e0dac50fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4e0dac50fSopenharmony_ci * you may not use this file except in compliance with the License. 5e0dac50fSopenharmony_ci * You may obtain a copy of the License at 6e0dac50fSopenharmony_ci * 7e0dac50fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8e0dac50fSopenharmony_ci * 9e0dac50fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10e0dac50fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11e0dac50fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12e0dac50fSopenharmony_ci * See the License for the specific language governing permissions and 13e0dac50fSopenharmony_ci * limitations under the License. 14e0dac50fSopenharmony_ci */ 15e0dac50fSopenharmony_ci 16e0dac50fSopenharmony_ci#ifndef INTERFACES_KITS_JS_COMMON_INCLUDE_PIXEL_MAP_NAPI_H_ 17e0dac50fSopenharmony_ci#define INTERFACES_KITS_JS_COMMON_INCLUDE_PIXEL_MAP_NAPI_H_ 18e0dac50fSopenharmony_ci 19e0dac50fSopenharmony_ci#include <memory> 20e0dac50fSopenharmony_ci#include "pixel_map.h" 21e0dac50fSopenharmony_ci#include "napi/native_api.h" 22e0dac50fSopenharmony_ci#include "napi/native_node_api.h" 23e0dac50fSopenharmony_ci 24e0dac50fSopenharmony_cinamespace OHOS { 25e0dac50fSopenharmony_cinamespace Media { 26e0dac50fSopenharmony_ciclass PixelMapNapi { 27e0dac50fSopenharmony_cipublic: 28e0dac50fSopenharmony_ci PixelMapNapi(); 29e0dac50fSopenharmony_ci ~PixelMapNapi(); 30e0dac50fSopenharmony_ci 31e0dac50fSopenharmony_ci static napi_value CreatePixelMap(napi_env env, std::shared_ptr<PixelMap> pixelmap); 32e0dac50fSopenharmony_ci napi_env getEnv(); 33e0dac50fSopenharmony_ci napi_ref getWrapper(); 34e0dac50fSopenharmony_ciprivate: 35e0dac50fSopenharmony_ci napi_env env_ = nullptr; 36e0dac50fSopenharmony_ci napi_ref wrapper_ = nullptr; 37e0dac50fSopenharmony_ci}; 38e0dac50fSopenharmony_ci} // namespace Media 39e0dac50fSopenharmony_ci} // namespace OHOS 40e0dac50fSopenharmony_ci#endif // INTERFACES_KITS_JS_COMMON_INCLUDE_PIXEL_MAP_NAPI_H_ 41