1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-29 11:12:56 +00:00
mpv/libswscale/swscale-test-all.sh
stefano a2a9a53d3f Make swscale-test take in input the name of the input and the output
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
2010-03-04 00:31:10 +00:00

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