fix(*): s1030 display stream config fps now be set to 30 default.
This commit is contained in:
parent
9f83e83cb6
commit
97be6807ab
|
@ -89,10 +89,16 @@ MYNTEYE_NAMESPACE::StreamRequest select_request(
|
||||||
*ok = false;
|
*ok = false;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
auto requests_display = requests;
|
||||||
|
if (Model::STANDARD == device->GetModel()) {
|
||||||
|
for (std::size_t i = 0; i < n; i++) {
|
||||||
|
requests_display[i].fps = 30;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LOG(INFO) << "MYNT EYE requests:";
|
LOG(INFO) << "MYNT EYE requests:";
|
||||||
for (std::size_t i = 0; i < n; i++) {
|
for (std::size_t i = 0; i < n; i++) {
|
||||||
auto &&request = requests[i];
|
auto &&request = requests_display[i];
|
||||||
LOG(INFO) << " index: " << i
|
LOG(INFO) << " index: " << i
|
||||||
<< ", request: " << request;
|
<< ", request: " << request;
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,13 +190,8 @@ std::size_t bytes_per_pixel(const Format &value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &os, const StreamRequest &request) {
|
std::ostream &operator<<(std::ostream &os, const StreamRequest &request) {
|
||||||
if (request.fps == 0) {
|
return os << "width: " << request.width << ", height: " << request.height
|
||||||
return os << "width: " << request.width << ", height: " << request.height
|
|
||||||
<< ", format: " << request.format;
|
|
||||||
} else {
|
|
||||||
return os << "width: " << request.width << ", height: " << request.height
|
|
||||||
<< ", format: " << request.format << ", fps: " << request.fps;
|
<< ", format: " << request.format << ", fps: " << request.fps;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *to_string(const CalibrationModel &model) {
|
const char *to_string(const CalibrationModel &model) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user