From 292a5868cb60c481ae9eaed7d21e67dcff41938f Mon Sep 17 00:00:00 2001 From: Harri Nieminen Date: Mon, 27 Mar 2023 23:42:17 +0300 Subject: various: fix typos Found by codespell --- video/filter/vf_d3d11vpp.c | 2 +- video/mp_image_pool.c | 2 +- video/out/d3d11/ra_d3d11.c | 2 +- video/out/gpu/context.h | 2 +- video/out/gpu/ra.h | 2 +- video/out/hwdec/hwdec_drmprime.c | 2 +- video/out/hwdec/hwdec_vaapi.c | 2 +- video/out/vo.h | 2 +- video/out/vo_direct3d.c | 2 +- video/out/vo_dmabuf_wayland.c | 2 +- video/out/vo_gpu_next.c | 2 +- video/out/vo_sixel.c | 2 +- video/out/wayland_common.c | 8 ++++---- 13 files changed, 16 insertions(+), 16 deletions(-) (limited to 'video') diff --git a/video/filter/vf_d3d11vpp.c b/video/filter/vf_d3d11vpp.c index 73f7d70dea..3f00c5aa4d 100644 --- a/video/filter/vf_d3d11vpp.c +++ b/video/filter/vf_d3d11vpp.c @@ -180,7 +180,7 @@ static int recreate_video_proc(struct mp_filter *vf) rindex = 0; } - // TOOD: so, how do we select which rate conversion mode the processor uses? + // TODO: so, how do we select which rate conversion mode the processor uses? hr = ID3D11VideoDevice_CreateVideoProcessor(p->video_dev, p->vp_enum, rindex, &p->video_proc); diff --git a/video/mp_image_pool.c b/video/mp_image_pool.c index 6947812079..2f0259146a 100644 --- a/video/mp_image_pool.c +++ b/video/mp_image_pool.c @@ -274,7 +274,7 @@ int mp_image_hw_download_get_sw_format(struct mp_image *src) return imgfmt; } -// Copies the contents of the HW surface src to system memory and retuns it. +// Copies the contents of the HW surface src to system memory and returns it. // If swpool is not NULL, it's used to allocate the target image. // src must be a hw surface with a AVHWFramesContext attached. // The returned image is cropped as needed. diff --git a/video/out/d3d11/ra_d3d11.c b/video/out/d3d11/ra_d3d11.c index f47513692f..7cf3686593 100644 --- a/video/out/d3d11/ra_d3d11.c +++ b/video/out/d3d11/ra_d3d11.c @@ -2021,7 +2021,7 @@ static ra_timer *timer_create(struct ra *ra) // Measuring duration in D3D11 requires three queries: start and end // timestamps, and a disjoint query containing a flag which says whether - // the timestamps are usable or if a discontinuity occured between them, + // the timestamps are usable or if a discontinuity occurred between them, // like a change in power state or clock speed. The disjoint query also // contains the timer frequency, so the timestamps are useless without it. hr = ID3D11Device_CreateQuery(p->dev, diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h index 8ad77a6698..27d8462f97 100644 --- a/video/out/gpu/context.h +++ b/video/out/gpu/context.h @@ -103,5 +103,5 @@ struct ra_swapchain_fns { struct ra_ctx *ra_ctx_create(struct vo *vo, struct ra_ctx_opts opts); void ra_ctx_destroy(struct ra_ctx **ctx); -// Special case of creating a ra_ctx while specifiying a specific context by name. +// Special case of creating a ra_ctx while specifying a specific context by name. struct ra_ctx *ra_ctx_create_by_name(struct vo *vo, const char *name); diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h index b38eba7a82..97bb9eeda2 100644 --- a/video/out/gpu/ra.h +++ b/video/out/gpu/ra.h @@ -461,7 +461,7 @@ struct ra_fns { // Copy a sub-rectangle from one texture to another. The source/dest region // is always within the texture bounds. Areas outside the dest region are - // preserved. The formats of the textures must be losely compatible. The + // preserved. The formats of the textures must be loosely compatible. The // dst texture can be a swapchain framebuffer, but src can not. Only 2D // textures are supported. // The textures must have blit_src and blit_dst set, respectively. diff --git a/video/out/hwdec/hwdec_drmprime.c b/video/out/hwdec/hwdec_drmprime.c index d74f9593ba..52ac54e30d 100644 --- a/video/out/hwdec/hwdec_drmprime.c +++ b/video/out/hwdec/hwdec_drmprime.c @@ -236,7 +236,7 @@ static int mapper_map(struct ra_hwdec_mapper *mapper) } // We can handle composed formats if the total number of planes is still - // equal the number of planes we expect. Complex formats with auxilliary + // equal the number of planes we expect. Complex formats with auxiliary // planes cannot be supported. int num_returned_planes = 0; diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index e5ea3b1289..72a6cce263 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -301,7 +301,7 @@ static int mapper_map(struct ra_hwdec_mapper *mapper) } // We can handle composed formats if the total number of planes is still - // equal the number of planes we expect. Complex formats with auxilliary + // equal the number of planes we expect. Complex formats with auxiliary // planes cannot be supported. if (p->num_planes != 0 && p->num_planes != num_returned_planes) { mp_msg(mapper->log, p_owner->probing_formats ? MSGL_DEBUG : MSGL_ERR, diff --git a/video/out/vo.h b/video/out/vo.h index 0f01a4b056..55c55df15e 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -132,7 +132,7 @@ enum mp_voctrl { VOCTRL_EXTERNAL_RESIZE, }; -// Helper to expose what kind of content is curently playing to the VO. +// Helper to expose what kind of content is currently playing to the VO. enum mp_content_type { MP_CONTENT_NONE, // used for force-window MP_CONTENT_IMAGE, diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 2fe26db173..1c78cebbc6 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -570,7 +570,7 @@ static bool change_d3d_backbuffer(d3d_priv *priv) } } else { if (FAILED(IDirect3DDevice9_Reset(priv->d3d_device, &present_params))) { - MP_ERR(priv, "Reseting Direct3D device failed.\n"); + MP_ERR(priv, "Resetting Direct3D device failed.\n"); return 0; } } diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c index 6b85bdf226..9606d1b0db 100644 --- a/video/out/vo_dmabuf_wayland.c +++ b/video/out/vo_dmabuf_wayland.c @@ -200,7 +200,7 @@ static void resize(struct vo *vo) if (wl->viewport) wp_viewport_set_destination(wl->viewport, 2 * dst.x0 + mp_rect_w(dst), 2 * dst.y0 + mp_rect_h(dst)); - //now we restore pan for video viewport caculation + //now we restore pan for video viewport calculation vo->opts->pan_x = vo_opts->pan_x; vo->opts->pan_y = vo_opts->pan_y; vo_get_src_dst_rects(vo, &src, &dst, &osd); diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index d66ffceb99..2539dc57e4 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1141,7 +1141,7 @@ static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args) status = pl_queue_update(p->queue, &mix, pl_queue_params(.pts = p->last_pts)); assert(status != PL_QUEUE_EOF); if (status == PL_QUEUE_ERR) { - MP_ERR(vo, "Unknown error occured while trying to take screenshot!\n"); + MP_ERR(vo, "Unknown error occurred while trying to take screenshot!\n"); return; } if (!mix.num_frames) { diff --git a/video/out/vo_sixel.c b/video/out/vo_sixel.c index 873c7875cc..068b47c4f5 100644 --- a/video/out/vo_sixel.c +++ b/video/out/vo_sixel.c @@ -161,7 +161,7 @@ static SIXELSTATUS prepare_dynamic_palette(struct vo *vo) SIXELSTATUS status = SIXEL_FALSE; struct priv *priv = vo->priv; - /* create histgram and construct color palette + /* create histogram and construct color palette * with median cut algorithm. */ status = sixel_dither_initialize(priv->testdither, priv->buffer, priv->width, priv->height, diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index b5bfb8b917..40d344ffb6 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -276,7 +276,7 @@ static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, } else { window_move(wl, serial); } - // Explictly send an UP event after the client finishes a move/resize + // Explicitly send an UP event after the client finishes a move/resize mp_input_put_key(wl->vo->input_ctx, button | MP_KEY_STATE_UP); } } @@ -1073,7 +1073,7 @@ static void feedback_presented(void *data, struct wp_presentation_feedback *fbac // Notes: // - tv_sec_lo + tv_sec_hi is the equivalent of oml's ust // - seq_lo + seq_hi is the equivalent of oml's msc - // - these values are updated everytime the compositor receives feedback. + // - these values are updated every time the compositor receives feedback. int64_t sec = (uint64_t) tv_sec_lo + ((uint64_t) tv_sec_hi << 32); int64_t ust = sec * 1000000LL + (uint64_t) tv_nsec / 1000; @@ -1443,7 +1443,7 @@ static int create_xdg_surface(struct vo_wayland_state *wl) xdg_toplevel_add_listener(wl->xdg_toplevel, &xdg_toplevel_listener, wl); if (!wl->xdg_surface || !wl->xdg_toplevel) { - MP_ERR(wl, "failled to create xdg_surface and xdg_toplevel!\n"); + MP_ERR(wl, "failed to create xdg_surface and xdg_toplevel!\n"); return 1; } return 0; @@ -2414,7 +2414,7 @@ void vo_wayland_wait_frame(struct vo_wayland_state *wl) /* We need some vblank interval to use for the timeout in * this function. The order of preference of values to use is: * 1. vsync duration from presentation time - * 2. refresh inteval reported by presentation time + * 2. refresh interval reported by presentation time * 3. refresh rate of the output reported by the compositor * 4. make up crap if vblank_time is still <= 0 (better than nothing) */ -- cgit v1.2.3