fix(src): if camera is s1030, the frame rate is not show.
This commit is contained in:
parent
404d74b0b7
commit
de6dc0d712
|
@ -61,8 +61,8 @@ const std::map<Model, std::map<Capabilities, StreamRequests>>
|
||||||
stream_requests_map = {
|
stream_requests_map = {
|
||||||
{Model::STANDARD,
|
{Model::STANDARD,
|
||||||
{{Capabilities::STEREO, {
|
{{Capabilities::STEREO, {
|
||||||
{752, 480, Format::YUYV, 60},
|
{752, 480, Format::YUYV, 0},
|
||||||
{376, 240, Format::YUYV, 60}}
|
{376, 240, Format::YUYV, 0}}
|
||||||
}}
|
}}
|
||||||
},
|
},
|
||||||
{Model::STANDARD2,
|
{Model::STANDARD2,
|
||||||
|
|
|
@ -188,8 +188,13 @@ 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
|
||||||
|
<< ", format: " << request.format;
|
||||||
|
} else {
|
||||||
return os << "width: " << request.width << ", height: " << request.height
|
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