server: Enable adding alternative MJPEG video encoders

Enterprise / Virtualization / SPICE - Francois Gouget [codeweavers.com] - 4 May 2016 04:51 EDT

This replaces the original mjpeg_encoder API with a VideoEncoder base class which can be reimplemented by other encoders. This also renames the members and enums from mjpeg_* to video_*.

0e10629 server: Enable adding alternative MJPEG video encoders
server/Makefile.am | 2 +-
server/dcc-send.c | 27 ++++----
server/dcc.c | 24 ++++----
server/dcc.h | 2 +-
server/mjpeg-encoder.c | 85 +++++++++++++++----------
server/mjpeg-encoder.h | 102 ------------------------------
server/stream.c | 42 ++++++-------
server/stream.h | 4 +-
server/video-encoder.h | 161 ++++++++++++++++++++++++++++++++++++++++++++++++
9 files changed, 263 insertions(+), 186 deletions(-)

Upstream: cgit.freedesktop.org


  • Share