From patchwork Thu Jul 28 14:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 34777 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1649:b0:8b:613a:194d with SMTP id no9csp326321pzb; Thu, 28 Jul 2022 07:50:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tMn49pdWxA3LLfw2TevxSl6l4QSjdOQMTk3sow71h8b4Kj7+QfP3om/AkPgWMQPGTfmbSn X-Received: by 2002:a05:6402:888:b0:43c:fce0:2f0e with SMTP id e8-20020a056402088800b0043cfce02f0emr1654482edy.247.1659019827182; Thu, 28 Jul 2022 07:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659019827; cv=none; d=google.com; s=arc-20160816; b=k8D3rh4XuKMSmPE6fZ0FCOucbRqlhVFG494HyQuTi9AXbfQE8QWbfXvAXmu9eetDyX 3ZvMPP64vS8PFpgQZvewRys4ZFZHhAxULiQSRJutVAuSk/MExUGNQKpUdDCl3ZpJoSWO giKfbmOWQiI6gHlWoqdYjp5FHhooomi2Vhy2KuOas1rIj20/w+jEwuDx7v1l1XhFesGu tLRRsW0n6g2dRM19dwiXBKFf5jmWaMO2w1WjaMc0YtHq4G94uLDkTefPzpsYDfSLjHvA z7ow0xrGqB8M2W5HGSTZrMjvqa3Ybdd5PZKq1shxJIkRkXKaZqSTDXtqHZAYy7gZtp7J 4fxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=EK15/XrXaO6PL4GSEocl/xhD9470H6Z7p+100j6/h0M=; b=zxYCmZRzZ82WyD+YV6fl39vxFIgbsXvjxFV+vcz0bOsaVFD1g7aYvaF5Zswbenwrzx a6vFfxsL50b8l30X8Cvx3akSd5N7C1+7Wvf/hKW0q7BjpPGm4Y6aRLCYcdlR70i9aXYt d4gHxG5FswEqXSf2x33niqkemcyAGrV1rYtXKchX7EbA0TQEAgOwg17E8+w2Grp1adoG 2wXGqVqWvGL2xttlrcvAs49tM1WRqduj6kDjjvdlM9A1cCZzfEaEvw/XvNQKUFaEQBic pUsNMH9Vp3ip9VUInEZD+9F4OwGrv0Wgyh1tf8keMgxy2K/KfdhY8oLvOYJ2tOj3vNcx aEMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b="lPuMDX/q"; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i19-20020a170906115300b00718bf486a1csi685798eja.782.2022.07.28.07.50.26; Thu, 28 Jul 2022 07:50:27 -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=@haasn.xyz header.s=mail header.b="lPuMDX/q"; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F0CF568B9C4; Thu, 28 Jul 2022 17:50:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D268F68B8E9 for ; Thu, 28 Jul 2022 17:50:06 +0300 (EEST) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 3668343649 for ; Thu, 28 Jul 2022 16:50:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1659019806; bh=WbmDXsH9FfFFHzm8tbB6Y9qt6yGy/PLRbvy1IZpvUX4=; h=From:To:Subject:Date:From; b=lPuMDX/qiKRYW8VnhlVdFq8K4nR6FLhOgp/CgJ7dZrOtr0D7PMlDzu4QE2+SAPCPM k0ugSYAAXXR/RDF6wluYMW1aKT6rDaFucYsSjXT3q0G/jyAzCkqn9ISnfiT/BnLrXv muvOkjtJgHajwT862SGj7c/ztIrA2retgLQjzInA= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Jul 2022 16:49:55 +0200 Message-Id: <20220728145002.102600-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 0/7] ICC profile support in avcodec X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: y4siThWgvB4x This tidies up the previous patchset slightly and adds the necessary user-facing bits to make it actually usable, plus tests. Will merge this soon since there was no additional feedback on v3. Changes in v4: - add the "icc_profiles" option to "flags2", and document it - fix the corresponding check in avcodec/decode.c - add FATE test for the new functionality Changes in v3: - switch from `int icc_profiles` to a new AV_CODEC_FLAG2 to avoid ABI break - rebased onto master and fixed merge conflicts Changes in v2: - remove unnecessary import - fixed assignment-instead-of-equality - fixed #ifdef -> #if