xref: /OK3568_Linux_fs/external/rockit/tgi/sdk/include/RTStreamInfo.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2020 Rockchip Electronics Co. LTD
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * src author: <mediapipe-team@google.com>
17  * new author: modified by <rimon.xu@rock-chips.com>
18  *       date: 2020-06-16
19  *  reference: https://github.com/google/mediapipe
20  */
21 
22 #ifndef SRC_RT_TASK_TASK_GRAPH_RTSTREAMINFO_H_
23 #define SRC_RT_TASK_TASK_GRAPH_RTSTREAMINFO_H_
24 
25 #include "rt_header.h"
26 
27 class RTStreamInfo {
28  public:
RTStreamInfo()29     RTStreamInfo() {
30         mStreamType = "none";
31         mStreamName = "none";
32     }
~RTStreamInfo()33     ~RTStreamInfo() {}
34 
setStreamType(std::string streamType)35     void setStreamType(std::string streamType) {
36         mStreamType = streamType;
37     }
streamType()38     std::string streamType() {
39         return mStreamType;
40     }
41 
setStreamName(std::string streamName)42     void setStreamName(std::string streamName) {
43         mStreamName = streamName;
44     }
streamName()45     std::string streamName() {
46         return mStreamName;
47     }
48 
setStreamId(INT32 streamId)49     void setStreamId(INT32 streamId) {
50         mStreamId = streamId;
51     }
52 
streamId()53     INT32 streamId() {
54         return mStreamId;
55     }
56 
57  private:
58     std::string mStreamType;
59     std::string mStreamName;
60     INT32 mStreamId = -1;
61 };
62 
63 #endif  // SRC_RT_TASK_TASK_GRAPH_RTSTREAMINFO_H_
64