From 0c9b5da1704e4c11a186adcbec24d189d6505aec Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Thu, 4 Apr 2024 10:35:32 +0800 Subject: [PATCH] test/filter_test.py: add setframeprops test --- test/filter_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/filter_test.py b/test/filter_test.py index 6fdb313f7..15f35fcaf 100644 --- a/test/filter_test.py +++ b/test/filter_test.py @@ -20,5 +20,12 @@ def test_transposeS(self): clip = self.BlankClip(format=vs.YUV444PS, color=[0, 0, 0], width=1156, height=752) self.Transpose(clip).get_frame(0) + def test_setframeprops(self): + """ https://github.com/vapoursynth/vapoursynth/issues/1046 """ + matrix = vs.MatrixCoefficients.MATRIX_ST170_M + clip = self.BlankClip(format=vs.GRAY8, width=1, height=1) + clip = clip.std.SetFrameProps(_Matrix=matrix) + self.assertEqual(clip.get_frame(0).props["_Matrix"], int(matrix)) + if __name__ == '__main__': unittest.main()