reds: Add ability to query the video-codecs currently enabled

Enterprise / Virtualization / SPICE - Kevin Pouget [redhat.com] - 5 July 2019 10:11 EDT

spice_server_get_video_codecs: new public function to query the video encoders/codecs currently enabled in the spice server. It returns a string that can be fed to the setter counter (spice_server_set_video_codecs). The string returned by this function should be released with spice_server_free_video_codecs.

spice_server_free_video_codecs: new public function to free the the
video codec list returned by spice_server_get_video_codecs.

video_codecs_to_string: new private function to transform an array of RedVideoCodec into a string.

321c5cb7 reds: Add ability to query the video-codecs currently enabled
server/dcc.c | 13 ++++---------
server/reds.c | 38 ++++++++++++++++++++++++++++++++++++++
server/reds.h | 2 ++
server/spice-server.h | 16 ++++++++++++++++
server/spice-server.syms | 6 ++++++
server/video-encoder.h | 2 ++
server/video-stream.c | 23 +++++++++++++++++++++++
7 files changed, 91 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share