edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | /* |
| 2 | * ABI probe for the hand-written libva FFI in src/sys.rs. |
| 3 | * |
| 4 | * src/sys.rs transcribes libva struct layouts by hand (no bindgen, family rule). |
| 5 | * This probe is the evidence for that transcription: it prints the sizes, |
| 6 | * alignments and field offsets that the *system* headers produce, so the |
| 7 | * `const _: () = assert!(...)` block in sys.rs can be checked against a real |
| 8 | * compiler instead of against a reading of the header. |
| 9 | * |
| 10 | * Run: |
| 11 | * cc -o /tmp/ec-va-abi-probe crates/ec-va/abi-probe.c $(pkg-config --cflags --libs libva) \ |
| 12 | * && /tmp/ec-va-abi-probe |
| 13 | * |
| 14 | * Recorded output (libva 1.23.0, x86_64-unknown-linux-gnu, gcc 15) is pasted |
| 15 | * into the assertion block in sys.rs. Any mismatch after a libva upgrade means |
| 16 | * the transcription drifted — the exact failure mode that broke cros-libva at |
| 17 | * libva >= 1.23. |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | int |
| 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 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 |