-
1. Re: Pixel iteration when footage smaller than sequence size?
Zac Lam Aug 20, 2012 3:53 PM (in response to walczakb)Hi Bart,
(Actually this would be a great topic for the AE SDK forum, since it's usage of the AE SDK, although in PPro)
If the media and sequence resolution don’t match in PPro, you can locate the media in that sequence by using PF_InData->pre_effect_source_origin and then factoring in downsample.
Cheers,
Zac
-
2. Re: Pixel iteration when footage smaller than sequence size?
walczakb Dec 3, 2012 5:47 PM (in response to Zac Lam)OK, I got this mostly figured out with one exception. The following code:
ciP.crop_topF = params[CROP_TOP]->u.fs_d.value * in_data->height / 100 + in_data->pre_effect_source_origin_y * ciP.downsample_y.den / ciP.downsample_y.num
works fine for every downsampling ratio except for the full resolution, when the value is moved by fixed amount, independent of source origin, crop position, etc. Curiously, similar formula for x works fine, although it is later scaled by pixel ratio.
What values of are used for full resolution? What might be the reason for such behavior?



