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/find_avtypes | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 test/ffmpeg_structs/find_avtypes (limited to 'test/ffmpeg_structs/find_avtypes') diff --git a/test/ffmpeg_structs/find_avtypes b/test/ffmpeg_structs/find_avtypes new file mode 100755 index 00000000..c13672f5 --- /dev/null +++ b/test/ffmpeg_structs/find_avtypes @@ -0,0 +1,57 @@ +#!/bin/sh + +SRC_DIR='../../src' +PAS='ffmpeg_pas.pas' +C='ffmpeg_c.c' + +types=$(find $SRC_DIR -path "$SRC_DIR/lib" -prune -o -name "*.pas" -print0|xargs -0 grep --files-with-match '\bavcodec\b'|xargs grep --no-filename --only-matching '\b[PT]AV\w\+'|sed 's/^P/T/'|sort|uniq) + +# swscale doesn't seem to contain noteworthy types, thus it's not considered + +cat >$PAS <>$PAS +done + +cat >>$PAS <$C <>$C +done + +cat >>$C <