def test_invert_colors(): clip = BitmapClip( [["AB", "BC"]], color_dict={"A": (0, 0, 0), "B": (50, 100, 150), "C": (255, 255, 255)}, ).set_fps(1) clip1 = invert_colors(clip) target1 = BitmapClip( [["CD", "DA"]], color_dict={"A": (0, 0, 0), "D": (205, 155, 105), "C": (255, 255, 255)}, ).set_fps(1) assert clip1 == target1
def test_invert_colors(): clip = VideoFileClip("media/big_buck_bunny_432_433.webm") clip1 = invert_colors(clip) clip1.write_videofile(os.path.join(TMP_DIR, "invert_colors1.webm"))
def test_invert_colors(): clip = VideoFileClip("media/big_buck_bunny_432_433.webm") clip1 = invert_colors(clip) clip1.write_videofile(os.path.join(TMP_DIR, "invert_colors1.webm"))
def test_invert_colors(): clip = get_test_video() clip1 = invert_colors(clip) clip1.write_videofile(os.path.join(TMP_DIR, "invert_colors1.webm")) close_all_clips(locals())
def test_invert_colors(): clip = get_test_video() clip1 = invert_colors(clip) clip1.write_videofile(os.path.join(TMP_DIR, "invert_colors1.webm")) close_all_clips(locals())