Thread: Bloom Effect
View Single Post
Old 27th March 2013, 16:22   #2  |  Link
MJLives12
Registered User
 
Join Date: Mar 2012
Posts: 29
This is the fastest I have.
Runs 30 fps on 1.6 ghz core 2 duo in realtime (Resize a 720p to 480p)

code:

##########################
#toon and some bloom(experimental)#
##########################
spline16resize(720,480)

ConvertToYV12()

Q = mt_lutxy(gaussresize(width/4,height/4,2,2,-2,-2,p=1)
\ .bilinearresize(last.width,last.height,1,0)
\ , expr="x y - abs -0.50 * x +"
\ ,vexpr="x y - abs +1.00 * x +",V=3,U=3,Y=3)

mt_lut(bilinearresize(width/18,height/12,26,12,-26,-12)
\ .fastgaussblur(96)
\ .bilinearresize(last.width,last.height)
\ ,yexpr="x y - abs +1.5 * x +" ,uexpr="x y - abs -1.0 * x y +",vexpr="x y - abs +1.0 * x y +",Y=3,U=3,v=3)

G = last

BLEND_MT_ALPHA2(Q,G,BLmode = "lighten", OPAC = 0.25,cmode=3)

ColorYUV(gain_y=0, off_y=10, gamma_y=0, cont_y=80)
MJLives12 is offline   Reply With Quote