NewChromantics / PopH264

Low-level, minimal H264 decoder & encoder library for windows, hololens/uwp, ios/tvos/macos, linux, android/quest/magic leap. CAPI for use with c#, unreal, swift
http://poph264.com/
Mozilla Public License 2.0
84 stars 15 forks source link

Decoded frame pixels are copied twice #44

Open SoylentGraham opened 3 years ago

SoylentGraham commented 3 years ago

We always pass SoyPixelsImpl& through the system, but sometimes, this data was JUST allocated.

Switch to locking pixel buffers, (which will immediately lock&copy 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)