From patchwork Wed Jul 18 20:23:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 9753 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp945783jad; Wed, 18 Jul 2018 13:24:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesUR/dqcMlFriZ9wejNVrSyybdbJo7UdEmmMupowlVBNc3REqADdB0owW5mPLW4dT5gjkj X-Received: by 2002:adf:a541:: with SMTP id j1-v6mr5897509wrb.155.1531945454108; Wed, 18 Jul 2018 13:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531945454; cv=none; d=google.com; s=arc-20160816; b=TS/y4xRMP8AfgOBd2ClfmIUxioc6vbkmbA9ut88kD1B4AWcRFmv1qsiCosUfgZZYh6 h+ZBLNTWGlMQxG6AKjURfMmIGdvr4LQpjUBxfYNu4N8EA8D35Puj3j5/xX5s/lddjAeJ tR8hIq4GMO+6eOPs07MuNC4GPtyiGJqe7R2TDAL28ROZX9OAry4bJYhzGJH5WKfXuQeL LzvIMdoLEkMQHdavC/ozL9j5SK2EDS+Fz1VZd67ycaiKa5GJxmqDR8I79dcjEXwsCmR3 M6b6Ikf1C0/6lFb9Svel9caoBEqV/OlhE5p1QbTKtWZJuthbXd/2qooWuT2IgC6hqj0S FzIA== 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:delivered-to :arc-authentication-results; bh=NG772GYpBsRKGZdJRzx69FacigQ0rpKDm1SBxYdRXOw=; b=S+eoJi5i/At3qFO1MNlsD/CSXJSOeH9bsDM8yF3of6kFy838uTytr3VnbBmF3VAIqt etHrte8mkMgkjhicC5mR4Ot5xHBXE8XCRi05i5oKpYKkGW0Z9mLDWHN0oRW+XDKFutj2 wQLeUGVHRuylmfTiK/hBTa4YcOyGOp/ArgfDuLK7rtrnyXm7yfYsF26EArVQRNNyfIgX UiUuV9vkZYei53pKut8SA/MCk+aZpblLFYerXauc1V5H43ytFTLrA79k7vmdGtVFdNni zeIk/0IG7QeCxVhFPK6xf+qLeOzF031DRG0DEdg6rmiNsFmebmX07rUNZg+S4DJ/xMvo apLw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k133-v6si2070754wmb.188.2018.07.18.13.24.13; Wed, 18 Jul 2018 13:24:14 -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; 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 69284689A98; Wed, 18 Jul 2018 23:24:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe01-2.mx.upcmail.net (vie01a-qmta-pe01-2.mx.upcmail.net [62.179.121.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4FA91680626 for ; Wed, 18 Jul 2018 23:23:54 +0300 (EEST) Received: from [172.31.218.47] (helo=vie01a-dmta-pe06-2.mx.upcmail.net) by vie01a-pqmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1ffszV-0005Sg-6d for ffmpeg-devel@ffmpeg.org; Wed, 18 Jul 2018 22:24:05 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1ffszP-00076R-Hd for ffmpeg-devel@ffmpeg.org; Wed, 18 Jul 2018 22:23:59 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id CLPr1y00Z0S5wYM01LPsLP; Wed, 18 Jul 2018 22:23:52 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 18 Jul 2018 22:23:39 +0200 Message-Id: <20180718202339.23239-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.18.0 Subject: [FFmpeg-devel] [PATCH] avutil/pixfmt: Document chroma plane size for odd resolutions 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: Michael Niedermayer --- libavutil/pixfmt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index aea008bbdc..2b3307845e 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -42,6 +42,10 @@ * This is stored as BGRA on little-endian CPU architectures and ARGB on * big-endian CPUs. * + * @note + * If the resolution is not a multiple of the chroma subsampling factor + * then the chroma plane resolution must be rounded up. + * * @par * When the pixel format is palettized RGB32 (AV_PIX_FMT_PAL8), the palettized * image data is stored in AVFrame.data[0]. The palette is transported in