From patchwork Tue Aug 8 14:31:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vittorio Giovara X-Patchwork-Id: 4656 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.46.211 with SMTP id u202csp4338620vsu; Tue, 8 Aug 2017 07:39:43 -0700 (PDT) X-Received: by 10.223.181.10 with SMTP id a10mr3517309wrd.239.1502203183596; Tue, 08 Aug 2017 07:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502203183; cv=none; d=google.com; s=arc-20160816; b=G8IFcxn8KGr3jfuh8HI7OcREjLaVfLimUVniOSKlnmMfuDQy+TQCotRabLtZ1Nk0e/ E3d+5xAC/+hnBWPTPV9d4K6R+Ss5YPbrpV1TpZPa1lmwmb/NA/VcgblrJ21LBp8wDBXC ZKktopk/Ywn5OyZWFjuaCki+5RvmjdxcoRaJBu/CKXkOB5AApLjYh19zqgFmZQgi7yZ7 +GI4ZhDztLnGcXhlb74B6Rprfy8VeQO8Z/lh0+zuGaKMehdVEh2d1/yX95WDoAoGP8+A eeH9THirsh20r7zMtNbv2Mesce1vBIEFGETbjgGnC33xcThFdbfLBj3OkEwGPgWdP5AU LwBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=rTzITI3WzqtclMnOB+2gtO/BxD7dwwspOvwErOIkyhs=; b=vzP/mFjC7MXFTGf6dof7/ZDjVYRfYW7ZetCnDLL2AiQYM7ISBnwJYHS0xRZqhsm5I5 f2kGuNcKeGgMy9ZH1oLqHSueJBrYSe3uI29s1S1mUwpj9QVDOCI7iPL10iOF3znY11AL sR9R/BeG2bsoJIS5WKn0H9Z+QpVLPOqOnrZzjPjgvOYBy/8aT4g4PnC9p0Y0FyMRWJvx w4ndUTBRWWmbyXj9k5PoV8xo5MS0JXr6QuMWvhkrTBDBPn0GAFy3RLu8+S5elCP73iCx xN5h1+JXTHH3m4QM02Lx8r8xj3hphDSxXhdfyJwyyikBOd+7L99F7zwCSfrBQBTarYIQ kbng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lZDWGRIQ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 13si1356039wrc.505.2017.08.08.07.39.43; Tue, 08 Aug 2017 07:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lZDWGRIQ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1289A68799F; Tue, 8 Aug 2017 17:39:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2EF0D680A6C for ; Tue, 8 Aug 2017 17:39:32 +0300 (EEST) Received: by mail-qt0-f194.google.com with SMTP id i19so3356481qte.1 for ; Tue, 08 Aug 2017 07:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=yfMmgddO2Gv3mgJehoy1cqcvDlpCBO58ipRW/hzDfLY=; b=lZDWGRIQizNXl9wFsjcM1OGMnCM507A1jJurduIlUcF4qM4pxud4cRAEhlD4lAlPWF hMHN/V4LJOUx4tttbAPfNJeNgVPsXUyq+30cvlm+LgVMV8HPsnT/NcsC11+MMg/HZq4Z hgvCUqUEIxjUXWlJ62AntyL6mI7WeYYNET1RmBUWIMLtTjxr9flqkl68rRdx7a6pXW6s hXhh1Rvlu7InHwCcV5M5M6HZoCtCklJ9Z0GecCjZjv7+GQs4gcLDyX9msGNuHEHry7Sr NmfiIEflKui/5AEi7H+OJR0AWvw7HCQadrqu/9/b0K6kQi192ejrR59XMr+SAnBr7eb2 5WZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=yfMmgddO2Gv3mgJehoy1cqcvDlpCBO58ipRW/hzDfLY=; b=YR4z2M5NXndNCw24drmczGHV71rQcPnPnPkxUWF9fezdrKSirxl9UjiDHDa+AQfdNU 6JgL0YGsLbjXYw+9BWwPY4lOcDrfko+WoSskSZ+64oVF7l81KbqlYNswwvXTmBu/cnbr rLNHmiuUjpk8ncEVYQd7TBiECEuMZU+dqmGuaZzL7SsP7CbhNuh9tloG8H5H5ahbb7KC A00fH0kDU6fr1wZP009zAWpq+pZWLCH/ovjX5zRLiMaKqVnVoBOrtiiDfSiGrZXpuZeR 1ybzekrOJTyXHf3Or1Tp37yVyk9RwMg2tQMyZMTGEHkzBQ9+Sf0TkPbb2MIUOqNVDrkQ J21w== X-Gm-Message-State: AHYfb5iOsc22YjIGcgoSjCUo6538vPKwnd4pSJTuHCOPJ1RSIbq3h7Of klUT1asYMTY5yfG+ X-Received: by 10.237.63.131 with SMTP id s3mr5721208qth.90.1502202711443; Tue, 08 Aug 2017 07:31:51 -0700 (PDT) Received: from vimacbookpro.vimeo.iac.corp ([151.38.130.27]) by smtp.gmail.com with ESMTPSA id m3sm689009qkb.22.2017.08.08.07.31.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 08 Aug 2017 07:31:50 -0700 (PDT) From: Vittorio Giovara To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Aug 2017 16:31:48 +0200 Message-Id: <20170808143148.9827-1-vittorio.giovara@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170808141430.5154-1-vittorio.giovara%40gmail.com> References: <20170808141430.5154-1-vittorio.giovara%40gmail.com> Subject: [FFmpeg-devel] [PATCH] pixfmt: Support chroma-derived and ictcp color matrices 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Vittorio Giovara --- Now without the typo in the name. Vittorio libavutil/pixdesc.c | 4 ++++ libavutil/pixfmt.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 7fa6dd7c0b..f1e35f2254 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -1806,6 +1806,10 @@ static const char * const color_space_names[] = { [AVCOL_SPC_BT2020_NCL] = "bt2020nc", [AVCOL_SPC_BT2020_CL] = "bt2020c", [AVCOL_SPC_SMPTE2085] = "smpte2085", + [AVCOL_SPC_CHROMA_DERIVED_NCL] = "chroma-derived-nc", + [AVCOL_SPC_CHROMA_DERIVED_CL] = "chroma-derived-c", + [AVCOL_SPC_ICTCP] = "ictcp", + }; static const char * const chroma_location_names[] = { diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 2ba7ad1c88..2823a7ea36 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -384,6 +384,9 @@ enum AVColorSpace { AVCOL_SPC_BT2020_NCL = 9, ///< ITU-R BT2020 non-constant luminance system AVCOL_SPC_BT2020_CL = 10, ///< ITU-R BT2020 constant luminance system AVCOL_SPC_SMPTE2085 = 11, ///< SMPTE 2085, Y'D'zD'x + AVCOL_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system + AVCOL_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system + AVCOL_SPC_ICTCP = 14, ///< ITU-R BT.2100-0 ICTCP AVCOL_SPC_NB, ///< Not part of ABI };