Skip to content

Instantly share code, notes, and snippets.

pcroland

Block or report user

Report or block pcroland

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View UpscaleCheck.avsi
function UpscaleCheck(clip c, string "resolution") {
resolution = default(resolution, "720")
eval("""Interleave(c.myffinfo("source", color_lawngreen), c.AutoResize(""" + Chr(34) + resolution + Chr(34) + """).z_Spline36Resize(c.width, c.height).myffinfo("source -> """ + resolution +""" -> source", color_cyan))""")
}
View Corners.avsi
# Corners.avsi, https://forum.doom9.org/showthread.php?p=1819881#post1819881
# Crops all 4 corners of input and outputs stack4 window clip of those corners, allows viewing of corners without scrolling large input clip.
# Giving W=Width(default width/4) and H=Height(default Height/4) of corners. (Default output dim half of input dim, ie 2*Width/4, 2*Height/4).
# (Max W=c.Width, H=c.Height, where output 4 window stack of double dimensions to input).
Function Corners(clip c, Int "W", Int "H") {
c
W = Default(W, 720)
H = Default(H, 360)
W = Default(W,Width/4) H = Default(H,Height/4) # Default corners quarter of dimensions
W=W/4*4 H=H/4*4 # W Mod4 (YV411 compat), H Mod4 (YV12 Interlaced compat)
View bbmod.avsi
function bbmoda(clip c, int top, int bottom, int left, int right, int "thresh", int "blur")
{
t = Int(Pow(2, (BitsPerComponent(c)-1)))
thresh = Default(thresh, t)
blur = Default(blur, 999)
Assert(blur > 0, "Blur parameter must be > 0")
Assert(thresh > 0, "Thresh parameter must be > 0")
@pcroland
pcroland / myffinfo.avsi
Last active May 27, 2019
Modified FFInfo for showing only the important parts with white and you can add a bonustext (group name for example) with predefined colors.
View myffinfo.avsi
green = $B2FF7C
blue = $8F97FF
yellow = $FFE07C
orange = $FFB97C
red = $FF7C7C
cyan = $7DF9FF
magenta= $FF7CCB
purple = $B788FF
function myffinfo(clip c, string "bonus_text", int "bonus_text_color") {
You can’t perform that action at this time.