summaryrefslogtreecommitdiff
path: root/src/modules/rtv
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-01 11:43:42 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-01 13:50:26 -0700
commita81425632db81527bcecd2d0fbdb5b09c25141ba (patch)
treebdc6ba54c39e9a859d2c87e9a0a87d70b85e00a8 /src/modules/rtv
parent45d1f956b35fa9003106716e42425cc86cadc7a1 (diff)
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.
Diffstat (limited to 'src/modules/rtv')
-rw-r--r--src/modules/rtv/rtv.c7
1 files changed, 2 insertions, 5 deletions
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;
© All Rights Reserved