streaming: Always delegate bit rate control to the video encoder

Enterprise / Virtualization / SPICE - Francois Gouget [codeweavers.com] - 21 November 2016 10:47 EST

The video encoders already have sophisticated bit rate control code that can react to both stream reports sent by the client, and server frame drop notifications. Furthermore they can adjust both the frame rate and the image quality to best match the network conditions.

But if the client cannot send stream reports all this is bypassed and instead the streaming code performs its own primitive bit rate control that can only adjust the frame rate.

So this patch removes the code duplication and lets the video encoders do their job.

97fcad8 streaming: Always delegate bit rate control to the video encoder
server/dcc-private.h | 1 -
server/dcc-send.c | 15 ---------
server/dcc.c | 7 ----
server/dcc.h | 1 -
server/gstreamer-encoder.c | 9 ++----
server/mjpeg-encoder.c | 76 ++++++++++++++++----------------------------
server/stream.c | 69 ++++++----------------------------------
server/stream.h | 3 --
8 files changed, 39 insertions(+), 142 deletions(-)

Upstream: cgit.freedesktop.org


  • Share