diff options
author | Alexander Seiler <seileralex@gmail.com> | 2023-03-28 17:16:42 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-28 19:29:44 +0000 |
commit | bdf7b5c3b81033a61e218808a95fd3144f20d993 (patch) | |
tree | 619c4a9ad0da5c5c274d52c65d0e0bdc6306dbec /video | |
parent | 292a5868cb60c481ae9eaed7d21e67dcff41938f (diff) | |
download | mpv-bdf7b5c3b81033a61e218808a95fd3144f20d993.tar.bz2 mpv-bdf7b5c3b81033a61e218808a95fd3144f20d993.tar.xz |
various: fix various typos in the code base
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
Diffstat (limited to 'video')
-rw-r--r-- | video/mp_image.c | 4 | ||||
-rw-r--r-- | video/out/gpu/ra.h | 2 | ||||
-rw-r--r-- | video/out/vo_sixel.c | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index c061cb6a16..bc29d298e2 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -136,7 +136,7 @@ static bool mp_image_fill_alloc(struct mp_image *mpi, int stride_align, // The allocated size of buffer must be given by buffer_size. buffer_size should // be at least the value returned by mp_image_get_alloc_size(). If buffer is not // already aligned to stride_align, the function will attempt to align the -// pointer itself by incrementing the buffer pointer until ther alignment is +// pointer itself by incrementing the buffer pointer until their alignment is // achieved (if buffer_size is not large enough to allow aligning the buffer // safely, the function fails). To be safe, you may want to overallocate the // buffer by stride_align bytes, and include the overallocation in buffer_size. @@ -939,7 +939,7 @@ void mp_image_params_guess_csp(struct mp_image_params *params) if (params->color.light == MP_CSP_LIGHT_AUTO) { // HLG is always scene-referred (using its own OOTF), everything else - // we assume is display-refered by default. + // we assume is display-referred by default. if (params->color.gamma == MP_CSP_TRC_HLG) { params->color.light = MP_CSP_LIGHT_SCENE_HLG; } else { 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; } |