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 OHOS_DCAMERA_FRAME_INFO_H
17 #define OHOS_DCAMERA_FRAME_INFO_H
18 #include <string>
19 #include <dcamera_sink_frame_info.h>
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 struct DCameraFrameProcessTimePoint {
24     int64_t startEncode = 0;
25     int64_t finishEncode = 0;
26     int64_t send = 0;
27     int64_t recv = 0;
28     int64_t startDecode = 0;
29     int64_t finishDecode = 0;
30     int64_t startScale = 0;
31     int64_t finishScale = 0;
32     int64_t startSmooth = 0;
33     int64_t finishSmooth = 0;
34 };
35 struct DCameraFrameInfo {
36     int8_t type = 0;
37     std::string ver = "";
38     int32_t index = 0;
39     int32_t offset = 0;
40     int64_t pts = 0;
41     DCameraFrameProcessTimePoint timePonit {0};
42 };
43 } // namespace DistributedHardware
44 } // namespace OHOS
45 #endif // OHOS_DCAMERA_FRAME_INFO_H