From patchwork Wed Oct 30 13:20:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 16037 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1A3D144ABA8 for ; Wed, 30 Oct 2019 15:21:16 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0778768B33F; Wed, 30 Oct 2019 15:21:16 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D58E768B316 for ; Wed, 30 Oct 2019 15:21:07 +0200 (EET) Received: by mail-pf1-f174.google.com with SMTP id b128so1597095pfa.1 for ; Wed, 30 Oct 2019 06:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dT2py0Pm/hHMqzOdItglOWKZUhYrZU+4FY/k71kVARo=; b=sbnlpD0Y2fxuFgXb1UbK8Jw3yLL9WahJ5FhGQ/ef3GYRgkh6vEqoytVU0E2eD6GC9I GbrgTBV7eQjGZnT4RMzcFYnY9RIwnUD4B9GOMmv2+QzrH3KH6QBpj4AGozBUzuAmlmpe SxWoXnFUXTsWbfzFYYy1pEHG4uTUf/cFUftvLs9MnmTGShNqBbXUU2UrBGsZSA8Afs9F C1PKNSawCpV8kHEt95PwkRPTEsLEu6H1i19D23mnRtvmXq1W1NQP1nb6TN5dOSIH3KKF R9MiyJIJ0mpLx7Y0LjwC+eYJcAjR2RuNIFn6Sf+iT5EI5i75agAs4z9lN9mx6bORajJa PWRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dT2py0Pm/hHMqzOdItglOWKZUhYrZU+4FY/k71kVARo=; b=ntdCds93BoniismnrI2bm0Z4rn9+DQH79oIpONoCJEqIP4JLP93cbhrx8xHQwOl/4P uXHHRZXqOR1X/jthpMSNC7fnDugnvJoSuHXvhuYH5iJBDjHua8cvosWtTOuTnLk3KGrp arwwMpshjb4K17ctSnEV/iBwZBqvRxqCbBF8WhbEyVMpDuoWNja8ovSWMJWxvqALBGnh 2N8RCZ9u01adkQ6VjHa9T1+xp/DaDaqkZkl6cCB3HCCS4IyVZGfiM9YbRKZhqB7PALcw V82MiUK9akcr1MY99fXJiWcNTKQ5tbVHOvdhZtTcD/uPV/U+vuPX87hDJiU+W6kNaMfq Bl2Q== X-Gm-Message-State: APjAAAWFP6LFxoGzEkX7RbLd6JNXPEMQHS5VSTwFPM+5ABkEz+QLo0jU kRECxp/hF8VTJHonDDIbkxOBUCRSVas= X-Google-Smtp-Source: APXvYqxmLBRECxnaNDoERvr0TcHFZ6jAUVgEbgh4sFANDFo7wStN8K95EZ4ZnSaBmUoW4fVX5W+JCw== X-Received: by 2002:a63:f250:: with SMTP id d16mr33622945pgk.165.1572441666147; Wed, 30 Oct 2019 06:21:06 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id 127sm3067149pfy.56.2019.10.30.06.21.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Oct 2019 06:21:05 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 30 Oct 2019 21:20:53 +0800 Message-Id: <20191030132056.21150-2-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20191030132056.21150-1-lance.lmwang@gmail.com> References: <20191030132056.21150-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v2 2/5] tests/fate-run: add pixel format endian mode parameter for pixfmts function X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- tests/fate-run.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index aec12c16a3..6ea0ab4f3c 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -385,6 +385,8 @@ pixfmts(){ filter_args=$1 prefilter_chain=$2 nframes=${3:-1} + # be,le + endian_mode=$4 showfiltfmts="$target_exec $target_path/libavfilter/tests/filtfmts${EXECSUF}" scale_exclude_fmts=${outfile}_scale_exclude_fmts @@ -402,8 +404,13 @@ pixfmts(){ outertest=$test for pix_fmt in $pix_fmts; do - test=$pix_fmt - video_filter "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt -frames:v $nframes + if [ "$endian_mode" = "le" ]; then + output_pix_fmt=`echo $pix_fmt | sed "s/\(.*\)be/\1le/"` + else + output_pix_fmt=$pix_fmt + fi + test=$output_pix_fmt + video_filter "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $output_pix_fmt -frames:v $nframes done rm $in_fmts $scale_in_fmts $scale_out_fmts $scale_exclude_fmts