1 /* 2 * Copyright (c) 2021 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 DISTRIBUTED_CAMERA_H 17 #define DISTRIBUTED_CAMERA_H 18 19 #include <foundation/distributedhardware/distributedcamera/camera_hdf/interfaces/include/types.h> 20 #ifdef BALTIMORE_CAMERA 21 #include <drivers/peripheral/adapter/camera/interfaces/include/types.h> 22 #else 23 #include <drivers/peripheral/camera/interfaces/include/types.h> 24 #endif 25 26 namespace OHOS { 27 namespace DistributedHardware { 28 using namespace OHOS::Camera; 29 using RetCode = uint32_t; 30 using MetaType = int32_t; 31 32 CamRetCode MapToExternalRetCode(DCamRetCode retCode); 33 34 DCamRetCode MapToInternalRetCode(CamRetCode retCode); 35 36 uint64_t GetCurrentLocalTimeStamp(); 37 38 void SplitString(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters); 39 } // end namespace DistributedHardware 40 } // end namespace OHOS 41 42 #endif // DISTRIBUTED_CAMERA_H