aboutsummaryrefslogtreecommitdiffstats
path: root/test/ffmpeg_structs/README
diff options
context:
space:
mode:
authorlotanrm <lotanrm@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-07-11 08:49:22 +0000
committerlotanrm <lotanrm@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-07-11 08:49:22 +0000
commit2596ea5ea76e3a6bb46ce1c7c5da3ea33bcda031 (patch)
tree047d0e7e28195c110f7ea38f84cc7df3ffc49db3 /test/ffmpeg_structs/README
parentcc0b72e5e5e1c620b654ecf14d89ac9c4706e4e6 (diff)
downloadusdx-2596ea5ea76e3a6bb46ce1c7c5da3ea33bcda031.tar.gz
usdx-2596ea5ea76e3a6bb46ce1c7c5da3ea33bcda031.tar.xz
usdx-2596ea5ea76e3a6bb46ce1c7c5da3ea33bcda031.zip
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
Diffstat (limited to '')
-rw-r--r--test/ffmpeg_structs/README22
1 files changed, 22 insertions, 0 deletions
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.