From patchwork Wed Mar 8 20:03:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Izen X-Patchwork-Id: 34897 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp710125pzb; Wed, 8 Mar 2023 12:03:34 -0800 (PST) X-Google-Smtp-Source: AK7set+vRxbAdE4ypCO+vsZQVd+vg7zA73YAvEzXhe9BwMbmvDHs0g5gZebw/sakeGZR0hfOq5Rw X-Received: by 2002:aa7:c983:0:b0:4aa:a0ed:e373 with SMTP id c3-20020aa7c983000000b004aaa0ede373mr13551502edt.7.1678305814402; Wed, 08 Mar 2023 12:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678305814; cv=none; d=google.com; s=arc-20160816; b=xVTa14zIUZn37whZbTGgOiyN94a87bv4WzdI9x/iX2RD7IZXSpIY0f9dcagMF4ygUD jnd/vbUzUtgZI8OdQedMjEju92eDdn9evsLMVqYaZ8rKEtmOLl12gel2nWDRa1GR9rBK u3724vQTll0ASwKm9KmqKeEKuGID+tKnH40vQRnkT+/8M6gnCeHbXeqCcxA1CiYljXOK 3kZDmBtoadSlL+LF//PtORBAYev/Zst8rAspTWnRBGZ2JmDof76vlRxEyvXvF9ydW29+ R/bASCMIzArZTgsAeD1WM3/JBznIP1VAIghtM3sztuBTn7JGfOR1gJ2T5+BLmIHqMe0N r6QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=SwkmxzehGcm0+F5LEv80bZD9FRVgZvg8kJQTFj5Qbd4=; b=yaR+0XhDHKZ3OVLsOcRb+tSdyaZTCcHQiU+DC+UnwufrSlqiVZ/fu6gsMzv9Wt5iGH Y6JB6/gelFJHo3Zk1PIeEBbxyR59s6IIuhIw2pKkbmoOUJfpKdHHKnXBHx7j9KXVCza2 wKX6ioHd7JKiKNte/D/go1U14FYQ9rqkKCKFQUjJUyg9eHZzxqkpw9Op57clFctOa2Ko hd3wFVOdXmd0mYYO06X78u/5Gq6TolNMPH4FzaVG7Kg8DsVHx4UnvHiV+Gd6T9rJB1Yj qWOECwPtNs+/z84FM3uTYIafAjGqQkXOWQxs0ZrZUO2Akusgzb1ixjtV2X9R/cp+1vg6 OqQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=Q+rpA4Nn; 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=QUARANTINE 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 i25-20020a056402055900b004adbb59bc8fsi3471432edx.16.2023.03.08.12.03.30; Wed, 08 Mar 2023 12:03:34 -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 header.s=20210112 header.b=Q+rpA4Nn; 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=QUARANTINE 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 DCC39689213; Wed, 8 Mar 2023 22:03:26 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56D9268BC38 for ; Wed, 8 Mar 2023 22:03:20 +0200 (EET) Received: by mail-il1-f169.google.com with SMTP id p13so11161941ilp.11 for ; Wed, 08 Mar 2023 12:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678305798; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Sg/5DMD82Sve0aymPIOta2W5/ChjMxD+KKLQ+F10gzA=; b=Q+rpA4Nnyq8A/kkl2lIQQayk6WWNtWB0wO5JKVgkkgtJ4Ah/n9+jwKIOJGwc9umWE9 e/IzQ86CDXrzzQM2eD7HxLyhV+8FR+SeBKq/2GdU8sHHq3G64VNQcvoTgy6w+GoDmZnZ uIvvg/T4+0KcmCyMIoh3acpCkmAReJlhwmUUD/+GXxSTOEWL9xZ8VPbXxRWo3+UWsS8B 3NPg7vH7x0ITNt4qlZh9p6kSuNKhQ/vSZFQQSNmiB6SjqMy49wSLn4iT/xe+y9L27dAO LSdDYvf3yQpJ/TwvpOwOaFLKL+GqJOm8S1Pk+uDgN3Q0DOy0CxmNdLqituo76D/e0e0H +bdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678305798; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sg/5DMD82Sve0aymPIOta2W5/ChjMxD+KKLQ+F10gzA=; b=KGpsOLVLz2kt44I2mbHfVOLOnimx+L2W7xilxXEqRnr4mxUoGWs1gJ8Cyqs5vPOquJ xyw47e4AycVkjRycpH6chyIc0QNOtFtX45iMFi1ZD+Xj2FLujbYOYsFyffptKtPmpb8S V4FlJps/g8vlWzYMngaiRjW5lHmMFm8I141CTmxCQSSBxpl9X+g2RkIuM/hOSLaooDSR EzARJgZvSrZ7vAHz+o4wdq4AxblxWU7StlKMABmJzrwZpMtJiae/STAe5mFce5QJl4ZA tnCXaRhbVutf3lIPTmAgXJiuhZgDHwUMmyUg7jNuSVrvhEpKfBMuD4g5ET91mvKnwZEs Vg9Q== X-Gm-Message-State: AO0yUKXuoz6pUJXS/8lV8wrWc54XvbyLSXCW8lNzmrHYZTCoe49iaexK LE+DL0RacwVbxpjxDYw3AfDBE9ZknznrUg== X-Received: by 2002:a92:cc46:0:b0:317:9d16:e6c7 with SMTP id t6-20020a92cc46000000b003179d16e6c7mr9144788ilq.3.1678305798705; Wed, 08 Mar 2023 12:03:18 -0800 (PST) Received: from gauss.local (c-98-224-219-15.hsd1.mi.comcast.net. [98.224.219.15]) by smtp.gmail.com with ESMTPSA id h2-20020a02cd22000000b003c4f96913c1sm5374817jaq.105.2023.03.08.12.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 12:03:18 -0800 (PST) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Wed, 8 Mar 2023 15:03:14 -0500 Message-Id: <20230308200316.45476-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 0/2] PNG sBIT chunk support 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 Cc: Leo Izen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: L1lct1CpX0ZV Add support to the PNG decoder and encoder to support sBIT chunks, by using AVCodecContext->bits_per_raw_sample. Leo Izen (2): avcodec/pngdec: support sBIT chunks avcodec/pngenc: write sBIT chunks libavcodec/pngdec.c | 45 ++++++++++++++++++++++++++++++++++++++++++++ libavcodec/pngenc.c | 6 ++++++ libavcodec/version.h | 2 +- 3 files changed, 52 insertions(+), 1 deletion(-)