diff --git a/regression/extreme-rotations/Arimo-Regular.ttf b/regression/extreme-rotations/Arimo-Regular.ttf new file mode 120000 index 0000000..26ddb10 --- /dev/null +++ b/regression/extreme-rotations/Arimo-Regular.ttf @@ -0,0 +1 @@ +../.fonts/Arimo-Regular.ttf \ No newline at end of file diff --git a/regression/extreme-rotations/desc b/regression/extreme-rotations/desc new file mode 100644 index 0000000..55e26d1 --- /dev/null +++ b/regression/extreme-rotations/desc @@ -0,0 +1,27 @@ +Near-edge-on rotations about the X and Y axes with off-center rotation +origins. The samples include both rotation signs and geometry crossing +the perspective plane. + +At 1920x1080, the first four samples exhibit outline-edge shifts of about +4.43 pixels from the unquantized projection due to transform quantization +and dequantization, causing the triangles visible in the output bitmaps +to appear longer, with wider bases. These large deviations can likely +also cause our output to appear visibly different from VSFilter's. + +extreme-rotations.ass samples: + 1000: Positive Y rotation + 3000: Negative Y rotation + 5000: Negative X rotation + 7000: Positive X rotation + +The perspective-clamp.ass pair translates both position and rotation origin +0.125 pixels right between samples. The quantized linear and perspective +coefficients stay unchanged. The unclamped tip moves 0.125 pixels right, +while the two clamped corners move 100 pixels left. This exercises the +amplification and reversal of fractional placement by the depth clamp, +producing a 100.125-pixel translation error at 1920x1080. This is *massively* +different from VSFilter's behavior. + +perspective-clamp.ass samples: + 1000: Initial position + 3000: Position and rotation origin translated 0.125 pixels right diff --git a/regression/extreme-rotations/extreme-rotations-01000.png b/regression/extreme-rotations/extreme-rotations-01000.png new file mode 100644 index 0000000..0b2ed29 Binary files /dev/null and b/regression/extreme-rotations/extreme-rotations-01000.png differ diff --git a/regression/extreme-rotations/extreme-rotations-03000.png b/regression/extreme-rotations/extreme-rotations-03000.png new file mode 100644 index 0000000..1639faf Binary files /dev/null and b/regression/extreme-rotations/extreme-rotations-03000.png differ diff --git a/regression/extreme-rotations/extreme-rotations-05000.png b/regression/extreme-rotations/extreme-rotations-05000.png new file mode 100644 index 0000000..81836bf Binary files /dev/null and b/regression/extreme-rotations/extreme-rotations-05000.png differ diff --git a/regression/extreme-rotations/extreme-rotations-07000.png b/regression/extreme-rotations/extreme-rotations-07000.png new file mode 100644 index 0000000..d95bbfd Binary files /dev/null and b/regression/extreme-rotations/extreme-rotations-07000.png differ diff --git a/regression/extreme-rotations/extreme-rotations.ass b/regression/extreme-rotations/extreme-rotations.ass new file mode 100644 index 0000000..c4f9536 --- /dev/null +++ b/regression/extreme-rotations/extreme-rotations.ass @@ -0,0 +1,17 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 1920 +PlayResY: 1080 +ScaledBorderAndShadow: yes +WrapStyle: 2 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: Default,Arimo,60,&H00005CFF,&H00005CFF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,0,0,5,0,0,0,1 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:02.00,Default,positive-y,0,0,0,,{\1c&H005CFF&\an5\pos(2753.4375,541)\org(1012.1875,540)\fry89.524444641264\p1}m -1023 -1 l 1023 -1 1023 1 -1023 1 +Dialogue: 0,0:00:02.00,0:00:04.00,Default,negative-y,0,0,0,,{\1c&HFFB800&\an5\pos(1212.5625,541)\org(907.8125,540)\fry-89.524444641264\p1}m -1023 -1 l 1023 -1 1023 1 -1023 1 +Dialogue: 0,0:00:04.00,0:00:06.00,Default,negative-x,0,0,0,,{\1c&HB82EFF&\an5\pos(961,2333.4375)\org(960,592.1875)\frx-89.524444641264\p1}m -1 -1023 l 1 -1023 1 1023 -1 1023 +Dialogue: 0,0:00:06.00,0:00:08.00,Default,positive-x,0,0,0,,{\1c&H00D637&\an5\pos(961,792.5625)\org(960,487.8125)\frx89.524444641264\p1}m -1 -1023 l 1 -1023 1 1023 -1 1023 diff --git a/regression/extreme-rotations/perspective-clamp-01000.png b/regression/extreme-rotations/perspective-clamp-01000.png new file mode 100644 index 0000000..7b91c91 Binary files /dev/null and b/regression/extreme-rotations/perspective-clamp-01000.png differ diff --git a/regression/extreme-rotations/perspective-clamp-03000.png b/regression/extreme-rotations/perspective-clamp-03000.png new file mode 100644 index 0000000..cb991de Binary files /dev/null and b/regression/extreme-rotations/perspective-clamp-03000.png differ diff --git a/regression/extreme-rotations/perspective-clamp.ass b/regression/extreme-rotations/perspective-clamp.ass new file mode 100644 index 0000000..f6533cc --- /dev/null +++ b/regression/extreme-rotations/perspective-clamp.ass @@ -0,0 +1,15 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 1920 +PlayResY: 1080 +ScaledBorderAndShadow: yes +WrapStyle: 2 + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: Default,Arimo,60,&H00005CFF,&H00005CFF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,0,0,5,0,0,0,1 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:02.00,Default,clamp-translation-start,0,0,0,,{\1c&HA0D400&\an5\pos(1903.0625,540.25)\org(1022.0625,540)\fry89.98698747997814\p1}m -1023 -0.25 l 1023 -0.25 1023 0.25 -1023 0.25 +Dialogue: 0,0:00:02.00,0:00:04.00,Default,clamp-translation-eighth-pixel,0,0,0,,{\1c&H303BFF&\an5\pos(1903.1875,540.25)\org(1022.1875,540)\fry89.98698747997814\p1}m -1023 -0.25 l 1023 -0.25 1023 0.25 -1023 0.25