Skip to content

Commit

Permalink
test/filter_test.py: add setframeprops test
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Apr 4, 2024
1 parent 45a250e commit 0c9b5da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/filter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 0c9b5da

Please sign in to comment.