|
45 | 45 | SINE_MONO_S32_8000, |
46 | 46 | TEST_SRC_2_720P, |
47 | 47 | TEST_SRC_2_720P_H265, |
| 48 | + TEST_SRC_2_720P_VP8, |
48 | 49 | TEST_SRC_2_720P_VP9, |
49 | 50 | unsplit_device_str, |
50 | 51 | ) |
@@ -1453,14 +1454,18 @@ def test_get_frames_at_tensor_indices(self): |
1453 | 1454 | TEST_SRC_2_720P_H265, |
1454 | 1455 | AV1_VIDEO, |
1455 | 1456 | TEST_SRC_2_720P_VP9, |
| 1457 | + TEST_SRC_2_720P_VP8, |
1456 | 1458 | ), |
1457 | 1459 | ) |
1458 | 1460 | @pytest.mark.parametrize("contiguous_indices", (True, False)) |
1459 | 1461 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1460 | 1462 | def test_beta_cuda_interface_get_frame_at( |
1461 | 1463 | self, asset, contiguous_indices, seek_mode |
1462 | 1464 | ): |
1463 | | - if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1465 | + if ( |
| 1466 | + asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9, TEST_SRC_2_720P_VP8) |
| 1467 | + and seek_mode == "approximate" |
| 1468 | + ): |
1464 | 1469 | pytest.skip("asset doesn't work with approximate mode") |
1465 | 1470 |
|
1466 | 1471 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
@@ -1496,14 +1501,18 @@ def test_beta_cuda_interface_get_frame_at( |
1496 | 1501 | TEST_SRC_2_720P_H265, |
1497 | 1502 | AV1_VIDEO, |
1498 | 1503 | TEST_SRC_2_720P_VP9, |
| 1504 | + TEST_SRC_2_720P_VP8, |
1499 | 1505 | ), |
1500 | 1506 | ) |
1501 | 1507 | @pytest.mark.parametrize("contiguous_indices", (True, False)) |
1502 | 1508 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1503 | 1509 | def test_beta_cuda_interface_get_frames_at( |
1504 | 1510 | self, asset, contiguous_indices, seek_mode |
1505 | 1511 | ): |
1506 | | - if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1512 | + if ( |
| 1513 | + asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9, TEST_SRC_2_720P_VP8) |
| 1514 | + and seek_mode == "approximate" |
| 1515 | + ): |
1507 | 1516 | pytest.skip("asset doesn't work with approximate mode") |
1508 | 1517 |
|
1509 | 1518 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
@@ -1540,11 +1549,15 @@ def test_beta_cuda_interface_get_frames_at( |
1540 | 1549 | TEST_SRC_2_720P_H265, |
1541 | 1550 | AV1_VIDEO, |
1542 | 1551 | TEST_SRC_2_720P_VP9, |
| 1552 | + TEST_SRC_2_720P_VP8, |
1543 | 1553 | ), |
1544 | 1554 | ) |
1545 | 1555 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1546 | 1556 | def test_beta_cuda_interface_get_frame_played_at(self, asset, seek_mode): |
1547 | | - if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1557 | + if ( |
| 1558 | + asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9, TEST_SRC_2_720P_VP8) |
| 1559 | + and seek_mode == "approximate" |
| 1560 | + ): |
1548 | 1561 | pytest.skip("asset doesn't work with approximate mode") |
1549 | 1562 |
|
1550 | 1563 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
@@ -1577,12 +1590,16 @@ def test_beta_cuda_interface_get_frame_played_at(self, asset, seek_mode): |
1577 | 1590 | BT709_FULL_RANGE, |
1578 | 1591 | TEST_SRC_2_720P_H265, |
1579 | 1592 | TEST_SRC_2_720P_VP9, |
| 1593 | + TEST_SRC_2_720P_VP8, |
1580 | 1594 | AV1_VIDEO, |
1581 | 1595 | ), |
1582 | 1596 | ) |
1583 | 1597 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1584 | 1598 | def test_beta_cuda_interface_get_frames_played_at(self, asset, seek_mode): |
1585 | | - if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1599 | + if ( |
| 1600 | + asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9, TEST_SRC_2_720P_VP8) |
| 1601 | + and seek_mode == "approximate" |
| 1602 | + ): |
1586 | 1603 | pytest.skip("asset doesn't work with approximate mode") |
1587 | 1604 |
|
1588 | 1605 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
@@ -1617,11 +1634,15 @@ def test_beta_cuda_interface_get_frames_played_at(self, asset, seek_mode): |
1617 | 1634 | TEST_SRC_2_720P_H265, |
1618 | 1635 | AV1_VIDEO, |
1619 | 1636 | TEST_SRC_2_720P_VP9, |
| 1637 | + TEST_SRC_2_720P_VP8, |
1620 | 1638 | ), |
1621 | 1639 | ) |
1622 | 1640 | @pytest.mark.parametrize("seek_mode", ("exact", "approximate")) |
1623 | 1641 | def test_beta_cuda_interface_backwards(self, asset, seek_mode): |
1624 | | - if asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9) and seek_mode == "approximate": |
| 1642 | + if ( |
| 1643 | + asset in (AV1_VIDEO, TEST_SRC_2_720P_VP9, TEST_SRC_2_720P_VP8) |
| 1644 | + and seek_mode == "approximate" |
| 1645 | + ): |
1625 | 1646 | pytest.skip("asset doesn't work with approximate mode") |
1626 | 1647 |
|
1627 | 1648 | ref_decoder = VideoDecoder(asset.path, device="cuda", seek_mode=seek_mode) |
|
0 commit comments