View Single Post
Old 4th June 2009, 18:05   #19  |  Link
bsmith1593
Registered User
 
Join Date: May 2009
Posts: 24
Quote:
Originally Posted by neuron2 View Post
Can't you look at the ColorRGB.auf.avsi script and figure out the problem?

If not, post that script in its entirety.
I'm not very experienced in AviSynth except for scripts of others I've used and minor stuff. I know what it says is wrong, but I don't know how to fix it, several files have similar code and that's how they're supposed to work I guess.

http://eva.adriels.com/miscellaneous/ColorRGB.auf.avsi
Code:
info = LoadPlugin("ColorYUY2.dll")
filt = AvisynthFilters("RGB color adjust filter", info)
func = filt.AddFunction("ColorYUY2")

func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)

func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)

func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)
func.AddValue(0.0)

func.AddTrack("R(gain)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("R(offs)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("R(gamm)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("R(cont)", 0, -256, 256, -256.0, 256.0)

func.AddTrack("G(gain)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("G(offs)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("G(gamm)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("G(cont)", 0, -256, 256, -256.0, 256.0)

func.AddTrack("B(gain)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("B(offs)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("B(gamm)", 0, -256, 256, -256.0, 256.0)
func.AddTrack("B(cont)", 0, -256, 256, -256.0, 256.0)

func.AddArray("levels", 0, "", "TV->PC", "PC->TV", "PC->TV.Y", "TV->PC.Y", "709->601", "709TV->601PC", "709PC->601TV")
func.AddArray("opt", 0, "", "coring", "1-254")
func.AddArray("matrix", 0, "", "rec709", "rec601s", "rec709s")

func.AddTrack("debug",   0,  0,   5)
func.AddTrack("hscale", 70, 10, 100)

func.AddTrack("X", 0, -1, 1280)
func.AddTrack("Y", 0, -1,  960)

func.AddArray("interpolation", 0, "", "411->422", "411->422R", "411->444", "411->444R", "420->422", "420->444", "422->444")
func.AddArray("output", 0, "", "YUY2", "YV12", "I420", "RGB32", "RGB24")

return filt
bsmith1593 is offline   Reply With Quote