Resize Question


hello,
lets want make effect thats change buffer size,
so in frame_setup set new height , width,
then, in render have problem because input (params[0]->u.ld.data) not same size output (output->data)
so can't copy pixels 1 another...
what right way deal this?

 

(i know pf_copy can manage problem, want know myself)

 

tnx :-)

you're asking general.

if it's matter of copying input buffer center of enlarged output buffer, pf_copy takes 2 rectangles can resolve issue easily.

there few other transformation functions can handle translation of images between buffers of different sizes. (transform_world() instance)

 

if "do myself" mean ask how access image buffers directly in ram, take in ccu sample project.

the drawing of green circle done directly each pixel's location in memory.

this way can copy data between buffers of different sizes. (or other thing, can access random pixels in buffer)



More discussions in After Effects SDK


adobe

Comments