mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
a2a9a53d3f
format. Make swscale-test only perform the test from the input to the output format rather than perform all. Also implement swscale-test-all.sh, for performing all the tests. Improve flexibility of the swscale-test tool, this way is simpler to perform only a subset of tests. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30825 b3059339-0415-0410-9bf9-f77b7e298cf2
12 lines
348 B
Bash
12 lines
348 B
Bash
#! /bin/sh
|
|
FFMPEG=../ffmpeg
|
|
|
|
input_pix_fmts=$($FFMPEG -pix_fmts | sed -ne '9,$p' | grep '^I' | cut -d" " -f2)
|
|
output_pix_fmts=$($FFMPEG -pix_fmts | sed -ne '9,$p' | grep '^.O' | cut -d" " -f2)
|
|
|
|
for input_pix_fmt in $input_pix_fmts; do
|
|
for output_pix_fmt in $output_pix_fmts; do
|
|
swscale-test $input_pix_fmt $output_pix_fmt
|
|
done
|
|
done
|