mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 18:34:19 +00:00
stream: remove red_stream_ prefix from mjpeg callbacks
Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
f5c109573f
commit
1f27043b82
@ -582,7 +582,7 @@ static uint64_t get_initial_bit_rate(DisplayChannelClient *dcc, Stream *stream)
|
||||
stream->width * stream->height) / DCC_TO_DC(dcc)->streams_size_total;
|
||||
}
|
||||
|
||||
static uint32_t red_stream_mjpeg_encoder_get_roundtrip(void *opaque)
|
||||
static uint32_t get_roundtrip_ms(void *opaque)
|
||||
{
|
||||
StreamAgent *agent = opaque;
|
||||
int roundtrip;
|
||||
@ -602,14 +602,14 @@ static uint32_t red_stream_mjpeg_encoder_get_roundtrip(void *opaque)
|
||||
return roundtrip;
|
||||
}
|
||||
|
||||
static uint32_t red_stream_mjpeg_encoder_get_source_fps(void *opaque)
|
||||
static uint32_t get_source_fps(void *opaque)
|
||||
{
|
||||
StreamAgent *agent = opaque;
|
||||
|
||||
return agent->stream->input_fps;
|
||||
}
|
||||
|
||||
static void red_stream_update_client_playback_latency(void *opaque, uint32_t delay_ms)
|
||||
static void update_client_playback_delay(void *opaque, uint32_t delay_ms)
|
||||
{
|
||||
StreamAgent *agent = opaque;
|
||||
DisplayChannelClient *dcc = agent->dcc;
|
||||
@ -646,9 +646,9 @@ void dcc_create_stream(DisplayChannelClient *dcc, Stream *stream)
|
||||
MJpegEncoderRateControlCbs mjpeg_cbs;
|
||||
uint64_t initial_bit_rate;
|
||||
|
||||
mjpeg_cbs.get_roundtrip_ms = red_stream_mjpeg_encoder_get_roundtrip;
|
||||
mjpeg_cbs.get_source_fps = red_stream_mjpeg_encoder_get_source_fps;
|
||||
mjpeg_cbs.update_client_playback_delay = red_stream_update_client_playback_latency;
|
||||
mjpeg_cbs.get_roundtrip_ms = get_roundtrip_ms;
|
||||
mjpeg_cbs.get_source_fps = get_source_fps;
|
||||
mjpeg_cbs.update_client_playback_delay = update_client_playback_delay;
|
||||
|
||||
initial_bit_rate = get_initial_bit_rate(dcc, stream);
|
||||
agent->mjpeg_encoder = mjpeg_encoder_new(initial_bit_rate, &mjpeg_cbs, agent);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user