diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/ra.h | 2 | ||||
-rw-r--r-- | video/out/vo_sixel.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h index 97bb9eeda2..5f229f8bd6 100644 --- a/video/out/gpu/ra.h +++ b/video/out/gpu/ra.h @@ -408,7 +408,7 @@ struct ra_fns { void (*tex_destroy)(struct ra *ra, struct ra_tex *tex); // Upload data to a texture. This is an extremely common operation. When - // using a buffer, the contants of the buffer must exactly match the image + // using a buffer, the contents of the buffer must exactly match the image // - conversions between bit depth etc. are not supported. The buffer *may* // be marked as "in use" while this operation is going on, and the contents // must not be touched again by the API user until buf_poll returns true. 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; } |