[FFmpeg-devel] [PATCH] lavfi test for 1-1 filters pixel format output

Ramiro Polla ramiro.polla
Fri Jun 18 04:07:47 CEST 2010


On Wed, Jun 2, 2010 at 6:42 PM, Stefano Sabatini
<stefano.sabatini-lala at poste.it> wrote:
[...]
> diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh
> index ed2a968..b02f1c3 100755
> --- a/tests/lavfi-regression.sh
> +++ b/tests/lavfi-regression.sh
> @@ -67,17 +67,19 @@ scale=200:100
>  vflip
>  "
>
> +showfiltfmts="$target_exec ${target_path}/tests/lavfi-showfiltfmts"
> +
>  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)"
> +    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=$($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
>          filter=$(echo $filter_args | sed -e 's/\([^=]\+\)=.*/\1/')
> -        in_pix_fmts=$(tools/lavfi-showfiltfmts $filter | grep "^INPUT" | cut -d: -f2)
> +        in_pix_fmts=$($showfiltfmts $filter | grep "^INPUT" | cut -d: -f2)
>          pix_fmts=$(get_common_elements "$in_pix_fmts" "$scale_out_pix_fmts")
>
>          for pix_fmt in $pix_fmts; do

This hunk no longer applies, could you send an update please?



More information about the ffmpeg-devel mailing list