From a81425632db81527bcecd2d0fbdb5b09c25141ba Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 1 May 2022 11:43:42 -0700 Subject: modules/*: make use of generic fragmenters Just one case, modules/submit, was using 32x32 tiles and is now using 64x64. I don't expect it to make any difference. While here I fixed up the num_cpus/n_cpus naming inconsistencies, normalizing on n_cpus. --- src/modules/rtv/rtv.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/modules/rtv') diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c index f50d9a8..ef6be98 100644 --- a/src/modules/rtv/rtv.c +++ b/src/modules/rtv/rtv.c @@ -33,8 +33,6 @@ typedef struct rtv_channel_t { } rtv_channel_t; typedef struct rtv_context_t { - unsigned n_cpus; - time_t next_switch, next_hide_caption; rtv_channel_t *channel, *last_channel; txt_t *caption; @@ -61,7 +59,7 @@ typedef struct rtv_setup_t { } rtv_setup_t; static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks); -static void * rtv_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup); +static void * rtv_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup); static void rtv_destroy_context(void *context); static void rtv_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, til_fb_fragment_t *fragment, til_fragmenter_t *res_fragmenter); static void rtv_finish_frame(void *context, unsigned ticks, til_fb_fragment_t *fragment); @@ -207,7 +205,7 @@ static int rtv_should_skip_module(const rtv_setup_t *setup, const til_module_t * } -static void * rtv_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup) +static void * rtv_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup) { rtv_context_t *ctxt; const til_module_t **modules; @@ -228,7 +226,6 @@ static void * rtv_create_context(unsigned ticks, unsigned num_cpus, til_setup_t if (!ctxt) return NULL; - ctxt->n_cpus = num_cpus; ctxt->duration = ((rtv_setup_t *)setup)->duration; ctxt->context_duration = ((rtv_setup_t *)setup)->context_duration; ctxt->snow_duration = ((rtv_setup_t *)setup)->snow_duration; -- cgit v1.2.3