fix(channels.cc): compatible s_color and s
This commit is contained in:
parent
e2478c644a
commit
23775810b2
|
@ -758,11 +758,14 @@ std::set<Resolution> ChannelsAdapter::GetResolutionSupports() {
|
||||||
std::set<Resolution> res;
|
std::set<Resolution> res;
|
||||||
auto requests_map = stream_requests_map.at(model_);
|
auto requests_map = stream_requests_map.at(model_);
|
||||||
for (auto&& r_map : requests_map) {
|
for (auto&& r_map : requests_map) {
|
||||||
if (r_map.first == Capabilities::STEREO ||
|
if (r_map.first == Capabilities::STEREO) {
|
||||||
r_map.first == Capabilities::STEREO_COLOR) {
|
|
||||||
for (auto&& r : r_map.second) {
|
for (auto&& r : r_map.second) {
|
||||||
res.insert({r.width, r.height});
|
res.insert({r.width, r.height});
|
||||||
}
|
}
|
||||||
|
} else if (r_map.first == Capabilities::STEREO_COLOR) {
|
||||||
|
for (auto&& r : r_map.second) {
|
||||||
|
res.insert({static_cast<std::uint16_t>(r.width / 2), r.height});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user