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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st March 2015, 12:13   #41  |  Link
jmac698
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))
from http://avisynth.nl/index.php/Advanced_Scripting_Tips which I wrote.

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.
jmac698 is offline   Reply With Quote
Old 1st March 2015, 20:15   #42  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
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 ???
StainlessS is offline   Reply With Quote
Old 2nd March 2015, 17:01   #43  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
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.
StainlessS is offline   Reply With Quote
Old 2nd March 2015, 22:15   #44  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Wilbert, is avisynth.org.ru currently legal (linked via external plugins on Wiki, link works but is it deprecated ?)
What do you mean by legal? Fizick is hosting that site. I don't think he keeps anything updated. I'm sure Reel will move the contents to avisynth.nl one day
Wilbert is offline   Reply With Quote
Old 2nd March 2015, 23:58   #45  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
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.
StainlessS is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.