From patchwork Tue Aug 8 14:14:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vittorio Giovara X-Patchwork-Id: 4654 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.46.211 with SMTP id u202csp4314671vsu; Tue, 8 Aug 2017 07:20:43 -0700 (PDT) X-Received: by 10.28.57.4 with SMTP id g4mr2729363wma.170.1502202043243; Tue, 08 Aug 2017 07:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502202043; cv=none; d=google.com; s=arc-20160816; b=Z2/Yudd3k9xiTKDQb18ph8IkruGPOBO2SzAnTQsqJflUjqdwadbPTEw7CmKq11sTSu kQSdP4wkpJLrD19DWozxxHs1snvmUTac0MfdM4Ql0rNO7CwPxB6Jw8ZJBU4O9nHI7FpB LjuTjLKqcLWgvRwVSECPT4vBUCsNZn28tmg03Os5/iTw+P/shPJIETXfSlkGhBAlG5sQ aU7BjB+BJCwka6JW6+3v0J3/3Ol5BrNi6LsBofWT12SFC+H6vM1bXGwlCgDBcP3WV3po OKAMrpDprqWP90johznM4cVThVqnZ3BRXRUQzfRoCMBCiRxwALnHjFFp/WcvAi0DNFPx K6LA== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=TfUNY30Bkf/ZlG7eTQuzdzZ9TBBFLd6wMdkThOW2JMg=; b=WbrjeD0GxNBQ7fgOwsuk0CJSFvuQgkrtZpT9NJbZqjkTmmIYxqZtPBQj/7+DFrHzN/ s5U9YHGmSnuCQPmHWQYwyZlX4QfcIKMTxpwHQcLZ+g+ksQpXwgjtSBEWnQVtYQqe3kOD esl1sY2dIdaiEMGaDYZul+usgRQEoLF1M7dMdCEUQWICLaKG5XWCiBAIc7y+QFtSwj3g 0TjFItnuxmV0aIqhB6R+EkbQZCHbFvMNSUWXB7ioo6VDgcgZHoQBDClcJQoy4IdWk3RX cnX7fwlIX7pW9tukELaiYtgwdAis21BOlDchYfq8evr068Vuae0Qi3ng1+0dkWYcnpiq 1Lxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=D+Ix9qIC; 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 k39si1228174wrc.533.2017.08.08.07.20.42; Tue, 08 Aug 2017 07:20: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=D+Ix9qIC; 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 A822068185F; Tue, 8 Aug 2017 17:20:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 18B8E680A4D for ; Tue, 8 Aug 2017 17:20:31 +0300 (EEST) Received: by mail-qk0-f194.google.com with SMTP id d145so3250684qkc.0 for ; Tue, 08 Aug 2017 07:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=F9n11fXRCnz7AKDSuhE8P051pcMMAjlfx55NUGI6hH8=; b=D+Ix9qICGAMhx7naOZpA1mvH18bHyCZF2v4b9WMsok2A8BxZHFN26O3jQ24OQ+geNG eLguwJOTgplf+YLWyr4qaYvEyzUyPOjRHv7d3TaWlSC5qFTH8XE57FkLQnZQ32eAhmcL dKF0hiPxmRZanJS7qRPTpVbcfLyxdmiYLyVYCMIFPXiL+i/eXloc6LGgkIcyA9E+e9D3 cbX28WZXYkRXvuJBQYwzKCZfKhAhFIMZriUQ3r5aWcUZrO9Cp2OVKvYQHSsGdkWgVEX6 35JJTAbbdrIp6+87p5duufd8ZWVhOHQcBH8QxzqesXQq0XWP5qkGLcJ6mxsFuVckH/3V TsZQ== 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; bh=F9n11fXRCnz7AKDSuhE8P051pcMMAjlfx55NUGI6hH8=; b=k/koJE0xRlNLI9bD1A0p4YUjjZn1A3E2Jt6hjGTFYbeaJxNN1EIx1mIVC6dKQbkFYz O/4znFcKBOTwhXJujqIjqcc1lH2IX1pyp5Q3lVTg9nVktc1Dl+6xXWhnMNdcCtYhTvZ/ szx7EpIFul/Y6HRKVdqRvRjpwSIIlbEf0fHY4ULcK/3igd4vBlO8LrqVeo3cTkBqASYm 6V5hYo6XMh5OmoljobasOMLStMC5HrUkZrGSP7+rQceRPZo3VXmGzig8DsJAqAu/4a+L whEmT/F/J16hgEMbf3/S4WZLOa8b3BZ6OMzVndI168E0OXBZcWgM0QbCa7P1OAcTMnBr JXmA== X-Gm-Message-State: AHYfb5jkkMmEgcr1PL+/INVde11xORA1FWvsJb/EV0JnizMltPa6yRip GB3XCaLusJtVCK5r X-Received: by 10.55.99.22 with SMTP id x22mr6281666qkb.173.1502201674314; Tue, 08 Aug 2017 07:14:34 -0700 (PDT) Received: from vimacbookpro.vimeo.iac.corp ([151.38.130.27]) by smtp.gmail.com with ESMTPSA id i15sm722128qta.61.2017.08.08.07.14.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 08 Aug 2017 07:14:33 -0700 (PDT) From: Vittorio Giovara To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Aug 2017 16:14:30 +0200 Message-Id: <20170808141430.5154-1-vittorio.giovara@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [FFmpeg-devel] [PATCH] pixfmt: Support chroma-derived and icpct 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 --- Missing version bump. 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..a72ef3faf0 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_ICPCT] = "icpct", + }; static const char * const chroma_location_names[] = { diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 2ba7ad1c88..93fd95da58 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_ICPCT = 14, ///< ITU-R BT.2100-0 ICTCP AVCOL_SPC_NB, ///< Not part of ABI };