AGM

From Avisynth wiki
Revision as of 15:06, 15 May 2022 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Abstract
Author Asd-g
Version 1.0.0
Download AGM-1.0.0.7z
Category Effects
License GPLv3
Discussion

Contents

Description

AGM: Adaptive Grain Mask.

Generally, the lower a frame's average luma, the more grain is applied even to the brighter areas. This abuses the fact that our eyes are instinctively drawn to the brighter part of any image, making the grain less necessary in images with an overall very high luma.

This is a port of the VapourSynth adaptive_grain mask. See the "Adaptive Graining Methods" article for in-depth information.

Requirements


*** vcredist_x86.exe is required for AGM-x86
*** vcredist_x64.exe is required for AGM-x64


Syntax and Parameters

AGM (clip input, float "luma_scaling", bool "fade", int "opt")


clip   =
A clip to process.
Must be in YUV planar format.


float  luma_scaling = 10.0
Grain opacity curve.
Lower values will generate more grain even in brighter scenes while higher values will generate less even in dark scenes.
Default: 10.0.


bool  fade = true
If the clip has bit depth less than 32-bit, the range must be TV (limited range).
True: If the clip has bit depth less than 32-bit - pure white and pure black pixels are copied (16/235 8-bit); pixels with value of 18/17 (8-bit) fades out.
If the clip has bit depth 32-bit - pixels with value 0.0 and 1.0 are copied.
Default: True.


int  opt = -1
Sets which cpu optimizations to use.
  • -1: Auto-detect.
  • 0: Use C++ code.
  • 1: Use SSE2 code.
  • 2: Use AVX2 code.
  • 3: Use AVX512 code.
Default: -1.


Examples

AGM with default settings:

AviSource("Blah.avi")
AGM(luma_scaling=10.0, fade=true, opt=-1)


Changelog

Version         Date            Changes
1.0.0 2022/05/15 - Initial release - Registered as MT_MULTI_INSTANCE.


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools