Skip to content

Commit

Permalink
add public getters
Browse files Browse the repository at this point in the history
  • Loading branch information
nhershko committed Dec 5, 2019
1 parent c5cd5e0 commit d665689
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ethernet/common/stream_profile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ class stream_profile
{
public:
stream_profile(stream_type_id id, stream_resolution res, int fps)
:m_stream_id(id),
: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_id;
stream_type_id m_stream_type;
stream_resolution m_stream_res;
int m_stream_fps;

Expand Down

0 comments on commit d665689

Please sign in to comment.