diff options
author | Dr.Smile <vabnick@gmail.com> | 2021-05-13 06:12:02 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2021-06-10 19:57:33 +0300 |
commit | 7715512745125e18ecfca61f0e6b64d85b4816a6 (patch) | |
tree | 8558dc897303bccc17d28a3011de29d6ab778db6 /compare/README.md | |
parent | a6792e2a7bbe8b47d05ca23fb5900cedf4227b39 (diff) | |
download | libass-7715512745125e18ecfca61f0e6b64d85b4816a6.tar.bz2 libass-7715512745125e18ecfca61f0e6b64d85b4816a6.tar.xz |
compare: add support for multiple input directories
Diffstat (limited to 'compare/README.md')
-rw-r--r-- | compare/README.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compare/README.md b/compare/README.md index eb750aa..c161c1c 100644 --- a/compare/README.md +++ b/compare/README.md @@ -5,16 +5,16 @@ To build a test utility configure libass with the `--enable-compare` flag. The utility works with `png` image files so there is external dependency of libpng. Test program command line: -`compare [-i] <input-dir> [-o <output-dir>] [-s <scale:1-8>]` +`compare ([-i] <input-dir>)+ [-o <output-dir>] [-s <scale:1-8>]` -* `<input-dir>` is a test input directory; +* `<input-dir>` is a test input directory, can be several of them; * `<output-dir>` if present sets directory to store the rendering results; * `<scale>` sets an oversampling factor (positive integer up to 8, default 1). An input directory consists of font files (`*.ttf`, `*.otf` and `*.pfb`), subtitle files (`*.ass`), and image files (`*.png`). -All the fonts required for rendering should be present in the input directory as +All the fonts required for rendering should be present in the input directories as libass is configured to not use anything external outside of it (`ASS_FONTPROVIDER_NONE`). -After loading all the fonts in the directory, the test program scans for subtitle files (`<sub_name>.ass`) +After loading all the fonts in the directories, the test program scans for subtitle files (`<sub_name>.ass`) and their corresponding image files in the form of `<sub_name>-NNNN.png`, where `NNNN` is an arbitrary number of decimal digits. The subtitle file then would be rendered at the time of `NNNN` milliseconds and compared with the loaded image file. @@ -32,7 +32,7 @@ test/ sub2-153000.png ``` -More precisely, the test program (`compare`) would scan the input directory and do the following: +More precisely, the test program (`compare`) would scan all input directories and do the following: 1) load all the fonts found (`*.ttf`, `*.otf`, `*.pfb`); 2) search for subtitle files (`*.ass`); 3) for every file found (`<sub_name>.ass`) scan for the files with names of `<sub_name>-NNNN.png`; |