summaryrefslogtreecommitdiffstats
path: root/video/out/vo_sixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_sixel.c')
-rw-r--r--video/out/vo_sixel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/video/out/vo_sixel.c b/video/out/vo_sixel.c
index 068b47c4f5..dabf43f4ef 100644
--- a/video/out/vo_sixel.c
+++ b/video/out/vo_sixel.c
@@ -77,7 +77,7 @@ struct priv {
int num_cols, num_rows; // terminal size in cells
int canvas_ok; // whether canvas vo->dwidth and vo->dheight are positive
- int previous_histgram_colors;
+ int previous_histogram_colors;
struct mp_rect src_rect;
struct mp_rect dst_rect;
@@ -91,23 +91,23 @@ static const unsigned int depth = 3;
static int detect_scene_change(struct vo* vo)
{
struct priv* priv = vo->priv;
- int previous_histgram_colors = priv->previous_histgram_colors;
- int histgram_colors = 0;
+ int previous_histogram_colors = priv->previous_histogram_colors;
+ int histogram_colors = 0;
// If threshold is set negative, then every frame must be a scene change
if (priv->dither == NULL || priv->opts.threshold < 0)
return 1;
- histgram_colors = sixel_dither_get_num_of_histogram_colors(priv->testdither);
+ histogram_colors = sixel_dither_get_num_of_histogram_colors(priv->testdither);
- int color_difference_count = previous_histgram_colors - histgram_colors;
+ int color_difference_count = previous_histogram_colors - histogram_colors;
color_difference_count = (color_difference_count > 0) ? // abs value
color_difference_count : -color_difference_count;
if (100 * color_difference_count >
- priv->opts.threshold * previous_histgram_colors)
+ priv->opts.threshold * previous_histogram_colors)
{
- priv->previous_histgram_colors = histgram_colors; // update history
+ priv->previous_histogram_colors = histogram_colors; // update history
return 1;
} else {
return 0;
@@ -536,7 +536,7 @@ static int preinit(struct vo *vo)
}
}
- priv->previous_histgram_colors = 0;
+ priv->previous_histogram_colors = 0;
return 0;
}