edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Regression for the threaded decode (lane-av1panichang): a worker that |
| 2 | //! panics must end the decode with an error, never hang it. |
| 3 | //! |
| 4 | //! Every worker site the threaded decoder waits on is armed in turn through |
| 5 | //! `ec_av1::fault`: the frame job itself (inside and past its own catch). Each |
| 6 | //! decode runs on a helper thread and must answer within 60 s; the answer must |
| 7 | //! be an error that names the panic. A second decode in the same process must |
| 8 | //! then succeed. |
| 9 | |
| 10 | use fault; |
| 11 | use decode_stream_with_threads; |
| 12 | use Mutex; |
| 13 | use mpsc; |
| 14 | use Duration; |
| 15 | |
| 16 | /// The fault plan is process-global, so the tests in this binary take turns. |
| 17 | static SERIAL: = new; |
| 18 | |
| 19 | const BUDGET: Duration = from_secs; |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// Decodes `data` on a helper thread and returns the shown-picture count, or |
| 29 | /// the error text. Panics (failing the test) if no answer arrives in time. |
| 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 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 |