CLExpr

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(CLExpr: add documentation)
m (Requirements)
Line 29: Line 29:
 
<br>
 
<br>
 
* [https://www.microsoft.com/en-us/download/details.aspx?id=40784 Microsoft Visual C++ 2013 Redistributable Package (x86 / x64)]
 
* [https://www.microsoft.com/en-us/download/details.aspx?id=40784 Microsoft Visual C++ 2013 Redistributable Package (x86 / x64)]
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> is required for <tt>modPlus-x86</tt>
+
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> is required for <tt>CLExpr-x86</tt>
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> is required for <tt>modPlus-x64</tt>
+
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> is required for <tt>CLExpr-x64</tt>
 
<br>
 
<br>
 +
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef| cl_expr (clip, string "expr", string "yExpr", string "uExpr, string "vExpr", int "Y", int "U", int "V", string "chroma", bool "lsb")}}
 
:{{Template:FuncDef| cl_expr (clip, string "expr", string "yExpr", string "uExpr, string "vExpr", int "Y", int "U", int "V", string "chroma", bool "lsb")}}

Revision as of 03:23, 22 April 2020

Abstract
Author tp7
Version v0.91
Download [x86] CLExpr-x86.zip

[x64] CLExpr-x64.zip

Category Multipurpose
License
Discussion

Contents

Description

AviSynth Expr filter implemented in OpenCL.

Provides three functions:

  • cl_expr - analogue of mt_lut
  • cl_exprxy - analogue of mt_lutxy
  • cl_exprxyz - analogue of mt_lutxyz

All expressions are calculated in runtime. 16-bit stacked clips are supported with the lsb parameter. Full set of masktools lut operators and functions is supported.

AviSynth+: self-registers as MT_MULTI_INSTANCE

Requirements


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


Syntax and Parameters

cl_expr (clip, string "expr", string "yExpr", string "uExpr, string "vExpr", int "Y", int "U", int "V", string "chroma", bool "lsb")
cl_exprxy (clip, clip, string "expr", string "yExpr", string "uExpr, string "vExpr", int "Y", int "U", int "V", string "chroma", bool "lsb")
cl_exprxyz (clip, clip, clip, string "expr", string "yExpr", string "uExpr, string "vExpr", int "Y", int "U", int "V", string "chroma", bool "lsb")


clip   =
Input clip.


string  yExpr = ""
string  uExpr = ""
string  vExpr = ""
Expression; full set of MaskTools2 LUT operators and functions is supported.


int  Y = 3
int  U = 2
int  V = 2
Plane processing:
  • 1 : do nothing (garbage)
  • 2 : copy
  • 3 : process
  • 4 : copy second
  • 5 : copy third



string  chroma = ""
Chroma processing: "process" | "copy" | "copy second" | "copy third"


bool  lsb = false
Stack16 input and output, set to true to enable.



Examples

TODO

Changelog

Version      Date            Changes
v0.91 2014/10/25 - Expressions with integer constants should now work more often. v0.09 2014/09/21 - Initial release


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools