Open SoylentGraham opened 3 years ago
We always pass SoyPixelsImpl& through the system, but sometimes, this data was JUST allocated.
SoyPixelsImpl&
Switch to locking pixel buffers, (which will immediately lock© when queuing frames... not great) or pooled shared_ptr<pixels> (which moves copy to decoder, also not great)
shared_ptr<pixels>
Or even PushFrame() with a callback to fill the outgoing pixels? (same as locking buffers)
PushFrame()
We always pass
SoyPixelsImpl&
through the system, but sometimes, this data was JUST allocated.Switch to locking pixel buffers, (which will immediately lock© when queuing frames... not great) or pooled
shared_ptr<pixels>
(which moves copy to decoder, also not great)Or even
PushFrame()
with a callback to fill the outgoing pixels? (same as locking buffers)