From patchwork Sat May 11 18:31:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Langdale X-Patchwork-Id: 13075 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 DFD7244928B for ; Sat, 11 May 2019 21:32:16 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BDF2368AA33; Sat, 11 May 2019 21:32:16 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.overt.org (mail.overt.org [157.230.92.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B71D268A9B4 for ; Sat, 11 May 2019 21:32:08 +0300 (EEST) Received: from authenticated-user (mail.overt.org [157.230.92.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.overt.org (Postfix) with ESMTPSA id 71F11409B9; Sat, 11 May 2019 13:32:07 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=overt.org; s=mail; t=1557599527; bh=1DOxiDcFNgeTnd0FLDurzb3/R5oBP8EKiwYcRBV/PdY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Aqm1HEX79tetl0V0W2sp5/28cugkvFjgInQPlwQ3mTKvtSrmHw+Ify9OgEhl/NPKG Awgd9KjnsaU4/gsKBKoM9a/TDY3IdtUFsaRLKpEg1A6u1tjRLcIzcBkMKCxIxgEunr 7KfpsR8dPqXnqRMnXhZ8o/PXDDi9gpECokLvd96g/cy1bcvsSm8KrzX9lZf875zbKQ 94TGNXrNYTf4MmGqS6SfdSJYj882HKaaOapp1P7/AaoHeQH1cBmbJvvRTBBsXb4oWk XmtsCXz1x0PZ43sJynrEvnuZNt7inT2WyQEhBFKC/IaVagOFX1dZNz9vaG+Yp268mP +3V0auVjnUOeA== From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 May 2019 11:31:57 -0700 Message-Id: <20190511183157.27909-4-philipl@overt.org> In-Reply-To: <20190511183157.27909-1-philipl@overt.org> References: <20190511183157.27909-1-philipl@overt.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] swscale: Add test for isSemiPlanarYUV to pixdesc_query 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: Philip Langdale Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Lauri had asked me what the semi planar formats were and that reminded me that we could add it to pixdesc_query so we know exactly what the list is. Signed-off-by: Philip Langdale --- libswscale/tests/pixdesc_query.c | 1 + tests/ref/fate/sws-pixdesc-query | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/libswscale/tests/pixdesc_query.c b/libswscale/tests/pixdesc_query.c index a5585c4314..f6dd8bae68 100644 --- a/libswscale/tests/pixdesc_query.c +++ b/libswscale/tests/pixdesc_query.c @@ -32,6 +32,7 @@ static const struct { {"isBE", isBE}, {"isYUV", isYUV}, {"isPlanarYUV", isPlanarYUV}, + {"isSemiPlanarYUV", isSemiPlanarYUV}, {"isRGB", isRGB}, {"Gray", isGray}, {"RGBinInt", isRGBinInt}, diff --git a/tests/ref/fate/sws-pixdesc-query b/tests/ref/fate/sws-pixdesc-query index bc8147e3c7..e23492293e 100644 --- a/tests/ref/fate/sws-pixdesc-query +++ b/tests/ref/fate/sws-pixdesc-query @@ -347,6 +347,19 @@ isPlanarYUV: yuvj440p yuvj444p +isSemiPlanarYUV: + nv12 + nv16 + nv20be + nv20le + nv21 + nv24 + nv42 + p010be + p010le + p016be + p016le + isRGB: 0bgr 0rgb