Allow Aplpha channel for Bundle (Session Group Source)

This commit is contained in:
Bruno Herbelin
2023-03-12 15:06:50 +01:00
parent bc5e1c7df9
commit 731d7e5d6b
2 changed files with 7 additions and 10 deletions

View File

@@ -181,14 +181,15 @@ void InfoVisitor::visit (SessionGroupSource& s)
uint T = s.session()->numSources();
if (T>N)
oss << " (" << std::to_string(T) << " total)";
oss << std::endl;
if (s.session()->frame()){
if (brief_) {
oss << ", RGB, " << s.session()->frame()->width() << " x " << s.session()->frame()->height();
oss << (s.session()->frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA, " : "RGB, ");
oss << s.session()->frame()->width() << " x " << s.session()->frame()->height();
}
else {
oss << std::endl;
oss << "RGB" << std::endl;
oss << (s.session()->frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA" : "RGB") << std::endl;
oss << s.session()->frame()->width() << " x " << s.session()->frame()->height();
}
}