From bb5b4b1ba61b67da40c85c34376aced9383fc366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Mon, 25 Apr 2022 19:27:18 +0800 Subject: various: fix typos --- video/out/cocoa_common.m | 4 ++-- video/out/d3d11/context.c | 2 +- video/out/filter_kernels.c | 2 +- video/out/gpu/hwdec.h | 2 +- video/out/gpu/video.c | 2 +- video/out/gpu/video_shaders.c | 2 +- video/out/mac/common.swift | 8 ++++---- video/out/mac/view.swift | 4 ++-- video/out/mac/window.swift | 2 +- video/out/opengl/context_drm_egl.c | 2 +- video/out/vo_direct3d.c | 2 +- video/out/vo_vdpau.c | 2 +- video/out/w32_common.c | 2 +- 13 files changed, 18 insertions(+), 18 deletions(-) (limited to 'video/out') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 09637c41a5..aa486fb461 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -80,7 +80,7 @@ struct vo_cocoa_state { bool window_is_dragged; id event_monitor_mouseup; - bool embedded; // wether we are embedding in another GUI + bool embedded; // whether we are embedding in another GUI IOPMAssertionID power_mgmt_assertion; io_connect_t light_sensor; @@ -185,7 +185,7 @@ static void set_application_icon(NSApplication *app) static int lmuvalue_to_lux(uint64_t v) { - // the polinomial approximation for apple lmu value -> lux was empirically + // the polynomial approximation for apple lmu value -> lux was empirically // derived by firefox developers (Apple provides no documentation). // https://bugzilla.mozilla.org/show_bug.cgi?id=793728 double power_c4 = 1/pow((double)10,27); diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c index 43a4fcb1f3..b96039fe55 100644 --- a/video/out/d3d11/context.c +++ b/video/out/d3d11/context.c @@ -458,7 +458,7 @@ static void d3d11_uninit(struct ra_ctx *ctx) vo_w32_uninit(ctx->vo); SAFE_RELEASE(p->device); - // Destory the RA last to prevent objects we hold from showing up in D3D's + // Destroy the RA last to prevent objects we hold from showing up in D3D's // leak checker if (ctx->ra) ctx->ra->fns->destroy(ctx->ra); diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index bf0ceba0ee..a33fb9179f 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -382,7 +382,7 @@ const struct filter_kernel mp_filter_kernels[] = { {{"ewa_lanczossoft", 3.2383154841662362, jinc, .blur = 1.015, .resizable = true}, .polar = true, .window = "jinc"}, // Very soft (blurred) hanning-windowed jinc; removes almost all aliasing. - // Blur paramater picked to match orthogonal and diagonal contributions + // Blur parameter picked to match orthogonal and diagonal contributions {{"haasnsoft", 3.2383154841662362, jinc, .blur = 1.11, .resizable = true}, .polar = true, .window = "hanning"}, // Cubic filters diff --git a/video/out/gpu/hwdec.h b/video/out/gpu/hwdec.h index 24a2efc344..34f8bc7856 100644 --- a/video/out/gpu/hwdec.h +++ b/video/out/gpu/hwdec.h @@ -82,7 +82,7 @@ struct ra_hwdec_mapper_driver { void (*uninit)(struct ra_hwdec_mapper *mapper); // Map mapper->src as texture, and set mapper->frame to textures using it. - // It is expected that that the textures remain valid until the next unmap + // It is expected that the textures remain valid until the next unmap // or uninit call. // The function is allowed to unref mapper->src if it's not needed (i.e. // this function creates a copy). diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 5dedb7efc9..9a78d69ead 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3246,7 +3246,7 @@ static void gl_video_interpolate_frame(struct gl_video *p, struct vo_frame *t, } if (oversample) { - // Oversample uses the frame area as mix ratio, not the the vsync + // Oversample uses the frame area as mix ratio, not the vsync // position itself double vsync_dist = t->vsync_interval / t->ideal_frame_duration, threshold = tscale->conf.kernel.params[0]; diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c index 9628274b19..d9393faa48 100644 --- a/video/out/gpu/video_shaders.c +++ b/video/out/gpu/video_shaders.c @@ -392,7 +392,7 @@ void pass_linearize(struct gl_shader_cache *sc, enum mp_csp_trc trc) " / (vec3(%f) - vec3(%f) * color.rgb);\n", PQ_C1, PQ_C2, PQ_C3); GLSLF("color.rgb = pow(color.rgb, vec3(%f));\n", 1.0 / PQ_M1); - // PQ's output range is 0-10000, but we need it to be relative to to + // PQ's output range is 0-10000, but we need it to be relative to // MP_REF_WHITE instead, so rescale GLSLF("color.rgb *= vec3(%f);\n", 10000 / MP_REF_WHITE); break; diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 6289c6bf6a..5a48ccef7b 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -152,7 +152,7 @@ class Common: NSObject { } func uninitCommon() { - setCursorVisiblility(true) + setCursorVisibility(true) stopDisplaylink() uninitLightSensor() removeDisplayReconfigureObserver() @@ -388,10 +388,10 @@ class Common: NSObject { } func updateCursorVisibility() { - setCursorVisiblility(cursorVisibilityWanted) + setCursorVisibility(cursorVisibilityWanted) } - func setCursorVisiblility(_ visible: Bool) { + func setCursorVisibility(_ visible: Bool) { NSCursor.setHiddenUntilMouseMoves(!visible && (view?.canHideCursor() ?? false)) } @@ -593,7 +593,7 @@ class Common: NSObject { let cursorVisibility = data.assumingMemoryBound(to: CBool.self) cursorVisibilityWanted = cursorVisibility.pointee DispatchQueue.main.async { - self.setCursorVisiblility(self.cursorVisibilityWanted) + self.setCursorVisibility(self.cursorVisibilityWanted) } return VO_TRUE case VOCTRL_GET_ICC_PROFILE: diff --git a/video/out/mac/view.swift b/video/out/mac/view.swift index a54f1da948..b860c1686d 100644 --- a/video/out/mac/view.swift +++ b/video/out/mac/view.swift @@ -65,7 +65,7 @@ class View: NSView { } func isURL(_ str: String) -> Bool { - // force unwrapping is fine here, regex is guarnteed to be valid + // force unwrapping is fine here, regex is guaranteed to be valid let regex = try! NSRegularExpression(pattern: "^(https?|ftp)://[^\\s/$.?#].[^\\s]*$", options: .caseInsensitive) let isURL = regex.numberOfMatches(in: str, @@ -127,7 +127,7 @@ class View: NSView { cocoa_put_key_with_modifiers(SWIFT_KEY_MOUSE_LEAVE, 0) } common.titleBar?.hide() - common.setCursorVisiblility(true) + common.setCursorVisibility(true) } override func mouseMoved(with event: NSEvent) { diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift index 8b6c5f0518..8ae3a6549e 100644 --- a/video/out/mac/window.swift +++ b/video/out/mac/window.swift @@ -554,7 +554,7 @@ class Window: NSWindow, NSWindowDelegate { } func windowDidResignKey(_ notification: Notification) { - common.setCursorVisiblility(true) + common.setCursorVisibility(true) } func windowDidBecomeKey(_ notification: Notification) { diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index b571ca7057..86292b04cf 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -133,7 +133,7 @@ static const char *gbm_format_to_string(uint32_t format) // Allow falling back to an ARGB EGLConfig when we have an XRGB framebuffer. // Also allow falling back to an XRGB EGLConfig for ARGB framebuffers, since -// this seems neccessary to work with broken Mali drivers that don't report +// this seems necessary to work with broken Mali drivers that don't report // their EGLConfigs as supporting alpha properly. static uint32_t fallback_format_for(uint32_t format) { diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 02572a8c53..74e5f7b1fe 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -98,7 +98,7 @@ typedef struct d3d_priv { RECT fs_panscan_rect; /**< PanScan source surface cropping in fullscreen */ int src_width; /**< Source (movie) width */ - int src_height; /**< Source (movie) heigth */ + int src_height; /**< Source (movie) height */ struct mp_osd_res osd_res; int image_format; /**< mplayer image format */ struct mp_image_params params; diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index a9e115c8fa..b08348987a 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -346,7 +346,7 @@ static int win_x11_init_vdpau_flip_queue(struct vo *vo) "vdp_presentation_queue_target_create_x11"); } - /* Emperically this seems to be the first call which fails when we + /* Empirically this seems to be the first call which fails when we * try to reinit after preemption while the user is still switched * from X to a virtual terminal (creating the vdp_device initially * succeeds, as does creating the flip_target above). This is diff --git a/video/out/w32_common.c b/video/out/w32_common.c index a69048414d..51ab3ac3e4 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -99,7 +99,7 @@ struct vo_w32_state { bool focused; - // whether the window position and size were intialized + // whether the window position and size were initialized bool window_bounds_initialized; bool current_fs; -- cgit v1.2.3