Lee Wilson
Veteran
ok, so here it is for fcp. it renders in realtime. it's also part of my tmts plugin pack.
http://www.mattias.nu/
/matt
Code:// Copyright 2008 Matt Sandström/Too Much Too Soon // Magic Numbers courtesy of Lee Wilson and DC Gear // [URL]http://www.dc-gear.com/d90/[/URL] // This script is freeware, meaning you may copy and // distribute it free of charge, as long as it's kept intact, // including this message. Feel free to use the code as // inspiration for your own scripts, but don't steal. // Email me at [EMAIL="mattias@beauty.se"]mattias@beauty.se[/EMAIL] if you have any questions. // Thank you. Have fun. filter "D90 Rescaler" group "TMTS Video" FullFrame InformationFlag("YUVaware") code float i; float kern[3][3]; point sp[4], dp[4] image buf1[1280][802],buf2[1280][802] float magicnumbers[82]; float srcy=0, desty=0; float w,h; dimensionsof(dest,w,h); magicnumbers = {7,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,7} channelfill(buf1,0,255,255,255); if w == 1280 && h == 720 then; for i = 0 to 81 MakeRect(dp, -640, desty-401, 1280, magicnumbers[i]) MakeRect(sp, -640, srcy-360, 1280, magicnumbers[i]) blitrect(src1,sp,buf1,dp); srcy = srcy + magicnumbers[i]; desty = desty + magicnumbers[i] + 1; next; kern = { 0,1,0,0,0,0,0,1,0 }; convolve(buf1,buf2,kern,2,0); matte(buf1, buf2, buf2, 1, kalpha); MakeRect(dp, -640, -360, 1280, 720) MakeRect(sp, -640, -401, 1280, 802) blitrect(buf2,sp,dest,dp); else dest = src1; end if;
Love seeing my name in code, the smell of grease paint, the tap of the qwerty keyboard . . . . :crybaby:
