From patchwork Tue Aug 25 04:20:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gautam Ramakrishnan X-Patchwork-Id: 21899 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 7F48644BDBB for ; Tue, 25 Aug 2020 07:47:26 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 56C26689C95; Tue, 25 Aug 2020 07:47:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7D777688058 for ; Tue, 25 Aug 2020 07:47:19 +0300 (EEST) Received: by mail-oi1-f193.google.com with SMTP id z195so7465183oia.6 for ; Mon, 24 Aug 2020 21:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3BttoGN+EBq4EHjjjcLReAGsqjWT3v4UEtigsFXf5/w=; b=iPs2u9S0Ig909lwP62MyrC7GZ9rhjl8YyPAX+faXHcbWVzbY1aE8gJppUZfVDy4zcs 2avFNK1qDWtcMINon1Cd0IEhKxbclgln1ibT6ARWVblHy5QXeORyprB4m3zZqjDs9wIe yppHy2l2aocoZg3M4HkYad/SYi5X+LKNlJXyEVsy9vbcFK31fQT/XdqVKkN3BIKxgFP4 Eez5JyLsh9qc06wSDIOYWzNSXM8HGQg8lRO3uaw9yhE/uB3Pv0hYz2Ur9Xp8zNjK/Sjd LlHP/QPS0zDoTruBOlw2U4yNFKEconnlIaK4JIi9KO0vydKuidjiWr1R4/peRhOwU873 UOBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3BttoGN+EBq4EHjjjcLReAGsqjWT3v4UEtigsFXf5/w=; b=m3tbXDzotx3Uxh5Fl/CRlWEOdH6jHoZRIjkC27I6NRka/0bRiiaAEDDxAAQmCfnH05 /idtmG6O557ozCkTWkQPG8I36p6NjRFHmimTGDVjb16RIeO/zADt0zIOV+3l+k00ZGDW S+JCDozPlOr7ZQyDmyKErxqA7AYaxCL/rK969DSilixIN6owHkEQE79MKBmbf7goCEF0 WE8ycPLJCBNLIxWWk+nDZsJ5KUznv6eB1J3kEISojUqfNlPId12pTWW7IBui4KAsQMnr VR7ALWuL38p/nhy8Ufoe3zBZHK87s7fEhyqZ0vR2kWOqm6b5qCgXKXxg6VE/zP3z5DQh GQCg== X-Gm-Message-State: AOAM530iGTV/04F06O0/lD9umFlheqEeN+kbCvWfcz1fRDhuKFoSQ3vv TqlBkTxvH4/xkHZLpIHWIYTDo/yZ8rkGQQ== X-Google-Smtp-Source: ABdhPJzMHEyAq3zLDAdUTbg/RYbcTAiJR0ubJfCaMjDT6jqsxXgi2GsLvgQGjwdbqm0x681Zf3UHrw== X-Received: by 2002:a17:90a:dc13:: with SMTP id i19mr28147pjv.161.1598329228385; Mon, 24 Aug 2020 21:20:28 -0700 (PDT) Received: from localhost.localdomain ([122.167.211.143]) by smtp.gmail.com with ESMTPSA id 205sm13976667pfy.9.2020.08.24.21.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 21:20:27 -0700 (PDT) From: gautamramk@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 25 Aug 2020 09:50:07 +0530 Message-Id: <20200825042007.18535-5-gautamramk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200825042007.18535-1-gautamramk@gmail.com> References: <20200825042007.18535-1-gautamramk@gmail.com> Subject: [FFmpeg-devel] [RFC PATCH v4 5/5] doc/encoders.texi: Add documentation for JPEG2000 layers 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 Cc: Gautam Ramakrishnan MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Gautam Ramakrishnan This patch adds documentation for the utility and usage of "layer_rates" option used in the JPEG2000 encoder. --- doc/encoders.texi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index fd9235a05a..481ad2fb3d 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1401,6 +1401,22 @@ Possible values are: @end table Set to @code{lrcp} by default. +@item layer_rates @var{string} +By default, compression is done using the quality metric. This option allows for +compression using compression ratio. The compression ratio for each level could +be specified. The compression ratio of a layer @code{l} species the what ratio of +total file size is contained in the first @code{l} layers. + +Example usage: + +@example +ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates "100,10,1" output.j2k +@end example + +This would compress the image to contain 3 layers, where the data contained in the +first layer would be compressed by 1000 times, compressed by 100 in the first two layers, +and shall contain all data while using all 3 layers. + @end table @section librav1e