⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 Swfdec still is development software, but has also followed a rigid no-crashes-allowed policy. I b
💻
字号:
This directory contains tests thting the sound output of SwfdecWhat tests belong here?If you want to make sure the images produced by Swfdec are correct, this is the place to start.How does it work?  ./image [FILE1 [FILE2 [...]]]The program image in this directory takes all files on the command line or allfiles in the current directory and runs them. Running consists of instancing aSwfdecPlayer and advancing $FILE 10 times. After that, the current state of the player is rendered to an image and compared to the reference image named$FILE.png. The image must be in PNG format. Comparing in this context meanschecking that the difference between the red, green, blue and alpha channel forevery pixel isn't greater than a given threshold. Currently the threshold isset to 3 to account for rounding errors.If the environment variable SWFDEC_TEST_DUMP is set, for every failed test theimage containing the player's output is dumped to $FILE.dump.png. If available,a difference image detailing the differences between the reference image andthe current image is saved to $FILE.diff.png.How do I run my new test?Create a file to test, say "test.swf", and create a corresponding file for theexpected output image. In this case that would be "test.swf.png". After that, just call the image application with your file, like this:  ./image test.swfYou may need to build the image application if you haven't run make check before, just run make image.How do I create the expected reference image?Ideally you create a SWF file where the image doesn't change. Alternativelyuse a low frame rate. Play the file with the Adobe Flash Player in Wine and take a screenshot of its output.If the Swfdec output doesn't match exactly, but is close enough, use that output as the reference image but keep the original expected output, too. Nameit $FILE.org.png.How do I add a test to the testsuite?Just put the file and its reference image - and the original reference image, too, if available (see above) - into this directory and add them allto EXTRA_DIST in Makefile.am. It should appear in the output when running make check. (Note that the order of files tested during make check is pretty much random.)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -