View Single Post
Old 10th June 2013, 17:30   #30  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
David,

Using this

Code:
Avisource("D:\avs\test.avi")#.Trim(0,-2*1280)

function fingerprint(clip a, int h) {
  rgb=a.converttorgb32
  resized=rgb.bicubicresize(a.width,h)
  fingerprinted=resized.fingerprint
  stack=stackvertical(rgb,fingerprinted.bicubicresize(rgb.width,fingerprinted.height))
  return stack
}

Last.fingerprint(128)
I get, "Iinvalid arguments to function fingerprint".


changing to
Code:
Avisource("D:\avs\test.avi")#.Trim(0,-2*1280)

function fingerprintB(clip a, int h) {
  rgb=a.converttorgb32
  resized=rgb.bicubicresize(a.width,h)
  fingerprinted=resized.fingerprint
  stack=stackvertical(rgb,fingerprinted.bicubicresize(rgb.width,fingerprinted.height))
  return stack
}

Last.fingerprintB(128)
"There is no function named fingerprint".

How should it be called (and yes, probably a bad idea to have same name function as plugin, as user function name overrides plugin_name/builtin_Avisynth_name).

@Keiyakusha, you've made "fph" an optional argument, without a default.

EDIT: I'm also seeing a date of 11 May 2013 for the Fingerprint.dll ? EDIT: Oops, thats the day you made first post on it.

EDIT: I seem to recall a plugin called WarpResize.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 10th June 2013 at 17:53.
StainlessS is offline   Reply With Quote