Skip to content

Instantly share code, notes, and snippets.

@agyild
agyild / FSR.glsl
Last active July 10, 2025 00:18
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@yeezylife
yeezylife / adaptive-sharpen.glsl
Last active February 18, 2025 01:22 — forked from igv/adaptive-sharpen.glsl
LUMA version of igv's adaptive-sharpen.With curve_height 0.1 and only works when downscaling is needed.
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright
@dkaraush
dkaraush / oklch2rgb.js
Last active May 27, 2025 23:00
conversion OKLCH into RGB and RGB into OKLCH in js, simplified
const multiplyMatrices = (A, B) => {
return [
A[0]*B[0] + A[1]*B[1] + A[2]*B[2],
A[3]*B[0] + A[4]*B[1] + A[5]*B[2],
A[6]*B[0] + A[7]*B[1] + A[8]*B[2]
];
}
const oklch2oklab = ([l, c, h]) => [
l,
@JySzE
JySzE / mpv.conf
Last active May 22, 2025 12:03
JySzE MPV Config
# Version 3.0
# 03/08/2025
###############################################################################################################################################
# Player GUI Options
###############################################################################################################################################
# Adjust all as needed.