|
45 | 45 | SINE_MONO_S32_8000, |
46 | 46 | TEST_SRC_2_720P, |
47 | 47 | TEST_SRC_2_720P_H265, |
| 48 | + TEST_SRC_2_720P_VP9, |
48 | 49 | unsplit_device_str, |
49 | 50 | ) |
50 | 51 |
|
@@ -588,7 +589,7 @@ def test_get_frame_at_av1(self, device): |
588 | 589 | return |
589 | 590 |
|
590 | 591 | if device == "cuda" and in_fbcode(): |
591 | | - pytest.skip("AV1 decoding on CUDA is not supported internally") |
| 592 | + pytest.skip("decoding on CUDA is not supported internally") |
592 | 593 |
|
593 | 594 | decoder = VideoDecoder(AV1_VIDEO.path, device=device) |
594 | 595 | device, _ = unsplit_device_str(device) |
@@ -1451,15 +1452,16 @@ def test_get_frames_at_tensor_indices(self): |
1451 | 1452 | BT709_FULL_RANGE, |
1452 | 1453 | TEST_SRC_2_720P_H265, |
1453 | 1454 | AV1_VIDEO, |
| 1455 | + TEST_SRC_2_720P_VP9, |
1454 | 1456 | ), |
1455 | 1457 | ) |
1456 | 1458 | @pytest.mark.parametrize("contiguous_indices", (True, False)) |
1457 | 1459 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1458 | 1460 | def test_beta_cuda_interface_get_frame_at( |
1459 | 1461 | self, asset, contiguous_indices, seek_mode |
1460 | 1462 | ): |
1461 | | - if asset == AV1_VIDEO and seek_mode == "approximate": |
1462 | | - pytest.skip("AV1 asset doesn't work with approximate mode") |
| 1463 | + if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1464 | + pytest.skip("asset doesn't work with approximate mode") |
1463 | 1465 |
|
1464 | 1466 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
1465 | 1467 | beta_decoder = VideoDecoder( |
@@ -1493,15 +1495,16 @@ def test_beta_cuda_interface_get_frame_at( |
1493 | 1495 | BT709_FULL_RANGE, |
1494 | 1496 | TEST_SRC_2_720P_H265, |
1495 | 1497 | AV1_VIDEO, |
| 1498 | + TEST_SRC_2_720P_VP9, |
1496 | 1499 | ), |
1497 | 1500 | ) |
1498 | 1501 | @pytest.mark.parametrize("contiguous_indices", (True, False)) |
1499 | 1502 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1500 | 1503 | def test_beta_cuda_interface_get_frames_at( |
1501 | 1504 | self, asset, contiguous_indices, seek_mode |
1502 | 1505 | ): |
1503 | | - if asset == AV1_VIDEO and seek_mode == "approximate": |
1504 | | - pytest.skip("AV1 asset doesn't work with approximate mode") |
| 1506 | + if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1507 | + pytest.skip("asset doesn't work with approximate mode") |
1505 | 1508 |
|
1506 | 1509 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
1507 | 1510 | beta_decoder = VideoDecoder( |
@@ -1536,12 +1539,13 @@ def test_beta_cuda_interface_get_frames_at( |
1536 | 1539 | BT709_FULL_RANGE, |
1537 | 1540 | TEST_SRC_2_720P_H265, |
1538 | 1541 | AV1_VIDEO, |
| 1542 | + TEST_SRC_2_720P_VP9, |
1539 | 1543 | ), |
1540 | 1544 | ) |
1541 | 1545 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1542 | 1546 | def test_beta_cuda_interface_get_frame_played_at(self, asset, seek_mode): |
1543 | | - if asset == AV1_VIDEO and seek_mode == "approximate": |
1544 | | - pytest.skip("AV1 asset doesn't work with approximate mode") |
| 1547 | + if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1548 | + pytest.skip("asset doesn't work with approximate mode") |
1545 | 1549 |
|
1546 | 1550 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
1547 | 1551 | beta_decoder = VideoDecoder( |
@@ -1572,13 +1576,14 @@ def test_beta_cuda_interface_get_frame_played_at(self, asset, seek_mode): |
1572 | 1576 | TEST_SRC_2_720P, |
1573 | 1577 | BT709_FULL_RANGE, |
1574 | 1578 | TEST_SRC_2_720P_H265, |
| 1579 | + TEST_SRC_2_720P_VP9, |
1575 | 1580 | AV1_VIDEO, |
1576 | 1581 | ), |
1577 | 1582 | ) |
1578 | 1583 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1579 | 1584 | def test_beta_cuda_interface_get_frames_played_at(self, asset, seek_mode): |
1580 | | - if asset == AV1_VIDEO and seek_mode == "approximate": |
1581 | | - pytest.skip("AV1 asset doesn't work with approximate mode") |
| 1585 | + if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1586 | + pytest.skip("asset doesn't work with approximate mode") |
1582 | 1587 |
|
1583 | 1588 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
1584 | 1589 | beta_decoder = VideoDecoder( |
@@ -1611,12 +1616,13 @@ def test_beta_cuda_interface_get_frames_played_at(self, asset, seek_mode): |
1611 | 1616 | BT709_FULL_RANGE, |
1612 | 1617 | TEST_SRC_2_720P_H265, |
1613 | 1618 | AV1_VIDEO, |
| 1619 | + TEST_SRC_2_720P_VP9, |
1614 | 1620 | ), |
1615 | 1621 | ) |
1616 | 1622 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1617 | 1623 | def test_beta_cuda_interface_backwards(self, asset, seek_mode): |
1618 | | - if asset == AV1_VIDEO and seek_mode == "approximate": |
1619 | | - pytest.skip("AV1 asset doesn't work with approximate mode") |
| 1624 | + if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1625 | + pytest.skip("asset doesn't work with approximate mode") |
1620 | 1626 |
|
1621 | 1627 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
1622 | 1628 | beta_decoder = VideoDecoder( |
|
0 commit comments