2 Replies Latest reply: Dec 18, 2012 2:20 PM by walczakb RSS

    Why, oh why - question about downsampling ratios

    walczakb Community Member

      I've been trying to figure this out for quite a while, and I have no freaking idea why this does not work.

       

      y = height_percent * in_data->height / 100 + in_data->pre_effect_origin_y * in_data->downsample_y.den / (float) in_data->downsample_y.num;

       

      It works perfectly for x. It works perfectly in After Effects, and even works perfectly in Premiere when downsampling is other than full resolution (for 1/2, 1/4 and even 1/16).

       

      For full resolution in Premiere Pro it does not work properly. It always adds more, than it should. About 2 times more. When I remove the multiplication for downsampling, it works in full resolution, but does not work in other (understandable).

       

      I need one of the 2 things:

       

      1. Explanation of how I can make it work for full resolution as well or what I am doing wrong.

      2. The exact fraction that Premiere Pro gets for full resolution, so that I can apply a condition that will skip the multiplication if full res. Obviously .num == .den did not work, as it should.

       

      I'll be grateful for any help. Thanks.

      Bart