From 2596ea5ea76e3a6bb46ce1c7c5da3ea33bcda031 Mon Sep 17 00:00:00 2001 From: lotanrm Date: Thu, 11 Jul 2013 08:49:22 +0000 Subject: Added test to compare ffmpeg type sizes between pascal and c. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2997 b956fd51-792f-4845-bead-9b4dfca2ff2c --- test/ffmpeg_structs/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/ffmpeg_structs/README (limited to 'test/ffmpeg_structs/README') diff --git a/test/ffmpeg_structs/README b/test/ffmpeg_structs/README new file mode 100644 index 00000000..cba407d7 --- /dev/null +++ b/test/ffmpeg_structs/README @@ -0,0 +1,22 @@ +This test scans through the source files in order to find types +and pointers to types from the pascal port of the ffmpeg +libraries (TAV..., PAV...). + +It generates source files for pascal and c that print the sizes +of the types used in the sources. + +The concluding comparison shows the size differences between the +pascal types and the c structs: +- type is bigger than struct +- type is smaller than struct + +If struct members' names have changed, the compiler will complain. + +The test doesn't, however, show if struct members have been swapped +with the size staying exactly the same. Hopefully, that scenario +isn't too likely. + +With the exception of the last point, if this test doesn't yield +a result (the types and structs have the same size), it is quite +plausible that the pascal port of the c structs has been done +correctly. -- cgit v1.2.3