mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
Exclude from the lavfi_pix_fmts regression test the output pixel
formats which are not currently supported by NUT and which cannot be played by ffplay. Originally committed as revision 23458 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -24,6 +24,19 @@ get_common_elements() (
|
|||||||
echo $res
|
echo $res
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Returns the elements present in $1 but not in $2.
|
||||||
|
get_exclusive_elements() (
|
||||||
|
for elt1 in $1; do
|
||||||
|
common=""
|
||||||
|
for elt2 in $2; do
|
||||||
|
[ $elt1 = $elt2 ] && common="true" && break;
|
||||||
|
done
|
||||||
|
[ -z "$common" ] && res="$res $elt1"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo $res
|
||||||
|
)
|
||||||
|
|
||||||
do_lavfi() {
|
do_lavfi() {
|
||||||
test_name=$1
|
test_name=$1
|
||||||
eval test=\$do_$test_name
|
eval test=\$do_$test_name
|
||||||
@@ -55,7 +68,12 @@ vflip
|
|||||||
"
|
"
|
||||||
|
|
||||||
if [ -n "$do_lavfi_pix_fmts" ]; then
|
if [ -n "$do_lavfi_pix_fmts" ]; then
|
||||||
|
# exclude pixel format currently not supported by NUT and which are not supported as input
|
||||||
|
excluded_pix_fmts="rgb4_byte bgr4_byte rgb444le rgb444be bgr444le bgr444be"
|
||||||
|
excluded_pix_fmts="$excluded_pix_fmts $(ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2)"
|
||||||
|
|
||||||
scale_out_pix_fmts=$(tools/lavfi-showfiltfmts scale | grep "^OUTPUT" | cut -d: -f2)
|
scale_out_pix_fmts=$(tools/lavfi-showfiltfmts scale | grep "^OUTPUT" | cut -d: -f2)
|
||||||
|
scale_out_pix_fmts=$(get_exclusive_elements "$scale_out_pix_fmts" "$excluded_pix_fmts")
|
||||||
|
|
||||||
for filter_args in $filters_args; do
|
for filter_args in $filters_args; do
|
||||||
filter=$(echo $filter_args | sed -e 's/\([^=]\+\)=.*/\1/')
|
filter=$(echo $filter_args | sed -e 's/\([^=]\+\)=.*/\1/')
|
||||||
|
|||||||
Reference in New Issue
Block a user