1 package com.intel.realsense.camera;
3 import androidx.annotation.NonNull;
12 import java.util.List;
25 mIndex = index < profiles.size() ? index : 0;
44 if(mIndex < 0 || mIndex >= mProfiles.size())
45 return mProfiles.get(0);
46 return mProfiles.get(mIndex);
82 mIndex =
findIndex(mFormat, mFps, mWidth, mHeight);
86 mWidth = Integer.parseInt(str.split(
"x")[0]);
87 mHeight = Integer.parseInt(str.split(
"x")[1]);
88 mIndex =
findIndex(mFormat, mFps, mWidth, mHeight);
92 mFps = Integer.parseInt(str);
93 mIndex =
findIndex(mFormat, mFps, mWidth, mHeight);
98 mIndex =
findIndex(mFormat, mFps, mWidth, mHeight);
103 return getName().compareTo(streamProfileSelector.getName());
String getResolutionString()
StreamProfileSelector(boolean enable, int index, List< StreamProfile > profiles)
void updateResolution(String str)
StreamProfile getProfile()
::std_msgs::String_< std::allocator< void > > String
void updateFrameRate(String str)
int compareTo(@NonNull StreamProfileSelector streamProfileSelector)
void updateEnabled(boolean state)
GLint GLsizei GLsizei height
GLint GLint GLsizei GLint GLenum format
void updateFormat(String str)
List< StreamProfile > getProfiles()
List< StreamProfile > mProfiles
int findIndex(StreamFormat format, int fps, int width, int height)