View Single Post
Old 20th November 2012, 22:25   #14  |  Link
martin53
Registered User
 
Join Date: Mar 2007
Posts: 407
David,

I'd like to suggest some extensions that I hope are manageable to program, yet extend the capabilities significantly.

A) Extension of RPN
  • dup, unary operator, duplicates top operand for later
    re-use
  • sign, unary operator for sign (-1 for <0, 0 for 0, 1 for >0)
  • round, floor, ceil, converting float to integer like AviSynth does
  • log, exp, logarithm and exponent

B) Extension of input variables
r/g/b/a red/green/blue/alpha pixel values

C) Extension of parameters
r/g/b/a red/green/blue/alpha pixel values additionally to x/y coordinates - i understand that xyremap is made with two cascaded loops, one over the lines and one over the columns? so, with the extensions b) and c), instead of remapping, xyremap could be used as color manipulation function beyond YV12LUT() for RGB format.

D) A background clip, and dx, dy parameters to overlay output with offset over it - considering alpha, of course.

E) new name xyrgbaSwissKnife
martin53 is offline   Reply With Quote