forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IntelRealSense#2 from IntelRealSense/nhershko_ethe…
…rnet_device stream profile class
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
typedef enum stream_type_id | ||
{ | ||
STREAM_DEPTH, | ||
STREAM_COLOR, | ||
}; | ||
|
||
typedef struct stream_resolution | ||
{ | ||
int width; | ||
int hight; | ||
}; | ||
|
||
class stream_profile | ||
{ | ||
public: | ||
stream_profile(stream_type_id id, stream_resolution res, int fps) | ||
:m_stream_type(id), | ||
m_stream_res(res), | ||
m_stream_fps(fps){} | ||
|
||
//in case we want to have self-contained sdp parser | ||
stream_profile(char* sdp_line); | ||
|
||
int width(){ return m_stream_res.width; } | ||
int hight(){ return m_stream_res.hight; } | ||
int fps(){ return m_stream_fps; } | ||
stream_type_id stream_type(){ return m_stream_type; } | ||
|
||
private: | ||
stream_type_id m_stream_type; | ||
stream_resolution m_stream_res; | ||
int m_stream_fps; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters