edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! A hardware decode error part-way through a span hands the rest of the span |
| 2 | //! to the software seat, at the picture it failed on. |
| 3 | //! |
| 4 | //! The error is injected (`engine::hw::inject_failure_after`) because a real |
| 5 | //! one needs a hung GPU ring. The test compares the pictures delivered after |
| 6 | //! the failure with a pure software decode of the same range (the hook set to |
| 7 | //! 0 makes the hardware refuse its first picture, so the whole span runs in |
| 8 | //! software), and checks the stream is complete: before the fallback existed it |
| 9 | //! stopped at the failure. One test, because the hook is process-wide. |
| 10 | //! |
| 11 | //! Needs a built `libengine_hw.so` and a VA-API decoder; without them it skips. |
| 12 | |
| 13 | use cratehwchild; |
| 14 | |
| 15 | use PathBuf; |
| 16 | |
| 17 | use DecodeSession; |
| 18 | use ; |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 |