Quote:
Originally Posted by vampiredom
To convert a square pixel image to a different PAR is easy. Divide the width by the PAR like such:
640x480 @ 10/11 PAR
640 / (10/11) = 704
704x480
The above example is rather simplistic. In many cases, when converting from square pixels, we'll want to scale the image overall. First we need to determine the scaling factor. To accomplish this, divide the source height by the target height:
Code:
SourceHeight / TargetHeight = ScalingFactor
1280x720 -> 704x480 @ 40/33 PAR
480 / 720 = 0.66666666666666666666666666666667
|
Sorry, AFAIU this has a mistake.
It should be
Code:
TargetHeight / SourceHeight = ScalingFactor