1 1) playing DVD on 4:3 screen
4 - video size in pixels: 720x576
5 - intended physical aspect ratio: 4/3
6 - pixel aspect ratio: 16/15
8 normal 4:3 computer screen:
9 - screen size in pixels: 1024x768
10 - physical aspect ratio: 4/3
11 - pixel aspect ratio: 1/1
13 -> scale to video size 720 . 16 / 576 . 15 = 11520 / 8640 = 144 / 108
16 2) playing PAL DVD on PAL TV
19 - video size in pixels: 720x576
20 - pixel aspect ratio: 16/15
22 => intended display aspect ratio: 4/3
24 w/h = DAR/PAR (with w and h of pixel video size)
26 DirectFB PAL TV output:
27 - screen size in pixels: 720x576
28 - pixel aspect ratio: 16/15
30 => display aspect ratio: 4/3
32 (v = video, source material - d = display)
33 DARv = DARd <=> wv / hv * PARv = wd / hd * PARd
34 <=> wd / hd = wv / hv * (PARv / PARd)
38 4) playing an NTSC vob on PAL TV
42 - pixel aspect ratio: 8/9
44 => intended DAR: DAR = 720/480 * 8/9 = 80 / 60 = 4 /3
46 wd / hd = wv / hv * PARv / PARd
47 = 720/480 * 8/9 / (16/15)
48 = 720 * 8 * 15 / (480 * 9 * 16)
49 = 120 * 1 * 5 / (80 * 3 * 2)
53 --> 720 x ( 720 * 4 / 5) = 720 x 576
57 - 720 x 480, 32/27 on a square display
58 -> intended DAR: DAR = 720/480 * 32/27 = 80/3 * 1/15 = 16/9
61 720/h * 1/1 = 16/9 -> h = 720/16 * 9 = 45 * 9 = 405
64 w/480 * 1/1 = 16/9 -> w = 480 * 16 / 9 = 160 / 3 * 16 = 853.33