From patchwork Wed Nov 30 18:16:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vittorio Giovara X-Patchwork-Id: 1613 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.86 with SMTP id o83csp508513vsa; Wed, 30 Nov 2016 10:16:36 -0800 (PST) X-Received: by 10.28.146.203 with SMTP id u194mr28403408wmd.79.1480529796455; Wed, 30 Nov 2016 10:16:36 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i128si8187526wme.137.2016.11.30.10.16.35; Wed, 30 Nov 2016 10:16:36 -0800 (PST) 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; 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 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 74AD7689F18; Wed, 30 Nov 2016 20:16:27 +0200 (EET) 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 BE6AB689EF4 for ; Wed, 30 Nov 2016 20:16:21 +0200 (EET) Received: by mail-qt0-f194.google.com with SMTP id m48so20572244qta.2 for ; Wed, 30 Nov 2016 10:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=8oZozPgcilgv5TQXit5NN1Rhy7tM04r8NbAgrjqKmH4=; b=a4mB2KEzb1rCFpN7rUj3DiHbCLD9IRdXjVogaIzVXnp3VwR6avXxVhEcyBBlN6//tt P7pGQQ1NttXgVhcte1CBmgANucQt/qcAKyEC4WDdHrBzf51WZReR6/SpBou+57keXjdj xtPQmHC2yFEvs6U9Uboc0ZDp3uht6AT7ZWLGv3aOAe2a1ZaqRnpPNUBsw+2ns5fU3fqx w9U53f+I6A0wOvmAHvYwqubutiNs1hq8dHZotg9rIG4CyhFZkBbOzPk16E6bp7h2LOzK DocvPTcYOjk4tleK0tEfGClPh+jdg1FGckDRbU+gMMBAqZ3jIjACMGofd8dTz1tYnRBV llzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=8oZozPgcilgv5TQXit5NN1Rhy7tM04r8NbAgrjqKmH4=; b=VFuJAQRJk3NR60hiJtRiAHC1ErDcJbkxi2kQy1HIJEldGXGFnYQDnGswpT5LVlQ1C0 E47ma4kxNixxgjzS0JJSqzfY/LA3Jqb/WS83E1Qrzucqw0mIc3a6fZs+0P9QZQvxqUGk 7ru6Y5wdl9pLOxtQmzgK0r/A+gxi6aLyYoVojuvY1E1WCr+y9cBtwHk/lLGDOgQ8rIwQ Egn60Cg0kbVry/jWgH19maHYrWK5/7TqfhqolTPJYwWU/eSPeaYwEajATB6RPi4gC3ob 8yoWpDE+STvx/I8/LZnGaSDd08pRtx7GTP6D1COD49hLbgZOjvdmiVHoos8nUt/Kn5cb HU5w== X-Gm-Message-State: AKaTC020ioFCC7vDXgXH4vpQMDaTPHO+MREUWo/15Z1czojgg5gRKJO3nAYllJLXa4oGjA== X-Received: by 10.200.34.5 with SMTP id o5mr28919897qto.32.1480529786917; Wed, 30 Nov 2016 10:16:26 -0800 (PST) Received: from vimacbookpro.vimeows.com (nyv-exweb.iac.com. [216.112.252.10]) by smtp.gmail.com with ESMTPSA id l135sm33994155qke.13.2016.11.30.10.16.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 30 Nov 2016 10:16:26 -0800 (PST) From: Vittorio Giovara To: ffmpeg-devel@ffmpeg.org Date: Wed, 30 Nov 2016 13:16:24 -0500 Message-Id: <20161130181625.34192-1-vittorio.giovara@gmail.com> X-Mailer: git-send-email 2.10.0 Subject: [FFmpeg-devel] [PATCH 1/2] lavu: Add JEDEC P22 color primaries 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 --- Please CC. Vittorio libavutil/pixdesc.c | 1 + libavutil/pixfmt.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 3b9c45d..04eab0b 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2183,6 +2183,7 @@ static const char *color_primaries_names[AVCOL_PRI_NB] = { [AVCOL_PRI_SMPTE428] = "smpte428", [AVCOL_PRI_SMPTE431] = "smpte431", [AVCOL_PRI_SMPTE432] = "smpte432", + [AVCOL_PRI_JEDEC_P22] = "jedec-p22", }; static const char *color_transfer_names[] = { diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index dfb1b11..d6c5a57 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -413,6 +413,7 @@ enum AVColorPrimaries { AVCOL_PRI_SMPTEST428_1 = AVCOL_PRI_SMPTE428, AVCOL_PRI_SMPTE431 = 11, ///< SMPTE ST 431-2 (2011) AVCOL_PRI_SMPTE432 = 12, ///< SMPTE ST 432-1 D65 (2010) + AVCOL_PRI_JEDEC_P22 = 22, ///< JEDEC P22 phosphors AVCOL_PRI_NB ///< Not part of ABI };