1794c9f46Sopenharmony_ci 2794c9f46Sopenharmony_ci/* 3794c9f46Sopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 4794c9f46Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 5794c9f46Sopenharmony_ci * you may not use this file except in compliance with the License. 6794c9f46Sopenharmony_ci * You may obtain a copy of the License at 7794c9f46Sopenharmony_ci * 8794c9f46Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 9794c9f46Sopenharmony_ci * 10794c9f46Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 11794c9f46Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 12794c9f46Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13794c9f46Sopenharmony_ci * See the License for the specific language governing permissions and 14794c9f46Sopenharmony_ci * limitations under the License. 15794c9f46Sopenharmony_ci */ 16794c9f46Sopenharmony_ci 17794c9f46Sopenharmony_ci#ifndef HISTREAMER_ABILITY_TOOL_H 18794c9f46Sopenharmony_ci#define HISTREAMER_ABILITY_TOOL_H 19794c9f46Sopenharmony_ci 20794c9f46Sopenharmony_ci#include <string> 21794c9f46Sopenharmony_ci#include <atomic> 22794c9f46Sopenharmony_ci 23794c9f46Sopenharmony_ci#include "single_instance.h" 24794c9f46Sopenharmony_cinamespace OHOS { 25794c9f46Sopenharmony_cinamespace DistributedHardware { 26794c9f46Sopenharmony_cienum class HISTREAM_PLUGIN_TYPE : uint8_t { 27794c9f46Sopenharmony_ci AUDIO_ENCODER, 28794c9f46Sopenharmony_ci AUDIO_DECODER, 29794c9f46Sopenharmony_ci VIDEO_ENCODER, 30794c9f46Sopenharmony_ci VIDEO_DECODER 31794c9f46Sopenharmony_ci}; 32794c9f46Sopenharmony_ci 33794c9f46Sopenharmony_ciclass HiStreamerQueryTool { 34794c9f46Sopenharmony_ciDECLARE_SINGLE_INSTANCE(HiStreamerQueryTool); 35794c9f46Sopenharmony_cipublic: 36794c9f46Sopenharmony_ci std::string QueryHiStreamerPluginInfo(HISTREAM_PLUGIN_TYPE type); 37794c9f46Sopenharmony_ciprivate: 38794c9f46Sopenharmony_ci std::atomic<bool> isInit = false; 39794c9f46Sopenharmony_ci void Init(); 40794c9f46Sopenharmony_ci}; 41794c9f46Sopenharmony_ci} 42794c9f46Sopenharmony_ci} 43794c9f46Sopenharmony_ci#endif