Skip to content
Snippets Groups Projects
Commit 43dd85b9 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Also dispatch feed frameset

parent e071e15c
No related branches found
No related tags found
1 merge request!338Resolves #375 full colour resolution
Pipeline #29335 failed
......@@ -192,7 +192,10 @@ Feed::Feed(nlohmann::json &config, ftl::net::Universe*net) :
});
if (!did_pipe) {
LOG(WARNING) << "GUI Pipeline dropped";
LOG(WARNING) << "Feed Pipeline dropped";
ftl::pool.push([this,fs](int id) {
_dispatch(fs);
});
}
} else {
_dispatch(fs);
......
......@@ -490,20 +490,13 @@ void Sender::_encodeVideoChannel(ftl::data::FrameSet &fs, Channel c, bool reset)
int encoder_number = 0;
while (offset < fs.frames.size()) {
Channel cc = c;
//if ((cc == Channel::Colour) && fs.firstFrame().hasChannel(Channel::ColourHighRes)) {
// cc = Channel::ColourHighRes;
//}
//if ((cc == Channel::Right) && fs.firstFrame().hasChannel(Channel::RightHighRes)) {
// cc = Channel::RightHighRes;
// fs.frames[offset].upload(cc);
// FIXME: Don't change tile layout when channel temporarily drops.
//if (!fs.frames[offset].hasChannel(cc)) {
// offset++;
// continue;
//}
if (!fs.frames[offset].hasChannel(cc)) {
offset++;
continue;
}
StreamPacket spkt;
spkt.version = 5;
spkt.timestamp = fs.timestamp();
......@@ -545,9 +538,6 @@ void Sender::_encodeVideoChannel(ftl::data::FrameSet &fs, Channel c, bool reset)
break;
}
//cudaSafeCall(cudaStreamSynchronize(enc->stream()));
//enc->stream().waitForCompletion();
if (enc) {
if (reset) enc->reset();
......@@ -644,8 +634,6 @@ void Sender::_encodeAudioChannel(ftl::data::FrameSet &fs, Channel c, bool reset)
}
void Sender::_encodeDataChannel(ftl::data::FrameSet &fs, Channel c, bool reset) {
int i=0;
// TODO: Pack all frames into a single packet
for (auto &f : fs.frames) {
StreamPacket spkt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment