Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
1st March 2015, 12:13 | #41 | Link |
Registered User
Join Date: Jan 2006
Posts: 1,867
|
I originally wanted this, only to find out you can get values from a runtime value.
Code:
current_frame=0 blankclip(pixel_type="YV12",color_yuv=$408080) avgluma=AverageLuma messageclip(string(avgluma)) I probably wrote a getpixel script function somewhere in my many posted scripts. edit: yep, for the millionth time I searched my own code with the keyboard pset. Code:
Function GetPixel(clip clip, int x, int y) { #Return luma of a pixel current_frame=0 clip IsYUY2 ? ConvertToYV12 : clip#AverageLuma only works on planar. YV12 is planar. pointresize(6,6,x,y,1,1)#Blow up the pixel at x,y by 6 times (minimum possible with resize) int(AverageLuma) } Function PutPixel(clip clip, int x, int y, int luma) { #Plot a pixel clip ClipIsYV12=IsYV12 ClipIsYV12 ? ConvertToYUY2 : last pointresize(width*2, height) u=128 v=128 pixel=blankclip(last, color_yuv=luma*65536+u*256+v, width=2, height=1) layer(last, pixel, "add", 256, x*2, y)#Layer only works with YUY2 pointresize(width/2, height) ClipIsYV12 ? ConvertToYV12 : last } Last edited by jmac698; 1st March 2015 at 12:33. |
1st March 2015, 20:15 | #42 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I found the dll + source for ShowPixelValues (where else, on the Wiki) http://avisynth.nl/index.php/ShowPixelValues
Great work on the Wiki guys.
__________________
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 ??? |
2nd March 2015, 17:01 | #43 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Having looked at source for a few plugz implementing some sort of GUI, suggest better example is TMonitor (by tritical) which
supports multiple instance in script:- http://avisynth.org.ru/docs/english/...s/tmonitor.htm Wilbert, is avisynth.org.ru currently legal (linked via external plugins on Wiki, link works but is it deprecated ?) EDIT: TMonitor requires linking with vfw32.lib.
__________________
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; 2nd March 2015 at 17:14. |
2nd March 2015, 22:15 | #44 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
|
|
2nd March 2015, 23:58 | #45 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Sorry, wrong word, meant "condoned" or similar, was not sure if .org.ru was also dropped as avisynth accepted domain.
Also, is fizick still active, had pm from user (martin53) recently about possible update/fork of fft3dfilter (m53 supplied). He (fizick) seems to visit occasionally but not often. Perhaps m53 can post his suggestions here. (From memory (mobile currently) m53 has suggested about 10% speed increase from his work.) Edit: or post somewhere. Edit: faster than. GPU version.(which for me was always slower and lesser quality).
__________________
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; 3rd March 2015 at 00:38. |
|
|