From patchwork Tue Aug 18 19:40:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gautam Ramakrishnan X-Patchwork-Id: 21712 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 8FC6844AE61 for ; Tue, 18 Aug 2020 22:40:55 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6C32D6880BB; Tue, 18 Aug 2020 22:40:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 29F0C6800E4 for ; Tue, 18 Aug 2020 22:40:49 +0300 (EEST) Received: by mail-pf1-f177.google.com with SMTP id m71so10482179pfd.1 for ; Tue, 18 Aug 2020 12:40:49 -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; bh=7ZEN6M3fWe1v/I4OPrhDDQHBRN20V7FlDe/um2xOvqY=; b=W12F1xerkpiFWXdJdAUuFhrlUc7VK7/8aeu1MjfGqqIy3VZSXv7Il1/1H2hBhjsQ/f 4vuQaKtb+PasF8MWFWUN3R0RaK7g/2Ir8lZTgmpjBWEcCWDOto8fl0UmIg0NcKfL9WX+ TmixCMANBDKq0m9T9nu0o0GVQ3Ue6rzGIY3hNDY37bAd41rR7Sq3djF/8i5vadZaVL0O 34rZBw61SG4445zRJR6pkQd06pfuPt9B0nI58x5iJn8Q8ith/LosVtukieiHonHpqQRf 9xm2sSe2QPaGAW8b7nJz8qT5rSmxIlOZf1mP3E1OtmCw1/vzaqm82CXLaF5o102zsjsl xj0A== 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; bh=7ZEN6M3fWe1v/I4OPrhDDQHBRN20V7FlDe/um2xOvqY=; b=eqKRw3hT3d3H3oGaCKIoEJnWRb2L4oPTJVlvt6oWhy5ckstQe/OxgkY1QODVzANKsR aft8ujduZudbNeovasLvhcwRWE17S5astxFkT7mlrQShCHNYoCUpPiNoBjHcu7pxgY/o y+kP+uFWlVowITD6ic6rbo4kE2Uj1Wu+FKJZhqeaNoyv076CtlHVmCmIQi81frorJMho R9j4i5ZvBsw+kdoFFfM5lK07Usv7vvPasURC5pBkGB9NiquspVf5oUbJQnZJYubLA1p+ ZEU/QpDw4HfM8awaDnnf8yTRDs5bqjaamAq2nXCCiAbexn6u20Rlf7LprAKtJawvX7Wf RYTw== X-Gm-Message-State: AOAM530xQG7N1KlJrSu1bAEYU6EFm7h+t6XG3G9aYp9XPL3ebC684yRz jRmPWpgt5dB+6pyjZwW2Xp/8aNVLOvY= X-Google-Smtp-Source: ABdhPJxVTle4HY3C4BQ9PoKDB89QWqTX4tLQf7DC8khCKmcBifE6EVtV2UzJeQQAuL6TjIDpBEDqqg== X-Received: by 2002:a62:6887:: with SMTP id d129mr16718231pfc.279.1597779647008; Tue, 18 Aug 2020 12:40:47 -0700 (PDT) Received: from localhost.localdomain ([122.166.129.193]) by smtp.gmail.com with ESMTPSA id z77sm27140885pfc.199.2020.08.18.12.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 12:40:46 -0700 (PDT) From: gautamramk@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Aug 2020 01:10:34 +0530 Message-Id: <20200818194037.25422-1-gautamramk@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH 1/4] libavcodec/jpeg2000: Make tag tree functions non static 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 makes the tag_tree_zero() and tag_tree_size() functions non static and callable from other files. --- libavcodec/jpeg2000.c | 4 ++-- libavcodec/jpeg2000.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 1aca31ffa4..35e21f54a4 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -39,7 +39,7 @@ /* tag tree routines */ /* allocate the memory for tag tree */ -static int32_t tag_tree_size(int w, int h) +int32_t tag_tree_size(int w, int h) { int64_t res = 0; while (w > 1 || h > 1) { @@ -82,7 +82,7 @@ static Jpeg2000TgtNode *ff_jpeg2000_tag_tree_init(int w, int h) return res; } -static void tag_tree_zero(Jpeg2000TgtNode *t, int w, int h) +void tag_tree_zero(Jpeg2000TgtNode *t, int w, int h) { int i, siz = tag_tree_size(w, h); diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index 5b0627c3dc..4ea7daa5da 100644 --- a/libavcodec/jpeg2000.h +++ b/libavcodec/jpeg2000.h @@ -290,4 +290,7 @@ static inline int needs_termination(int style, int passno) { return 0; } +int32_t tag_tree_size(int w, int h); +void tag_tree_zero(Jpeg2000TgtNode *t, int w, int h); + #endif /* AVCODEC_JPEG2000_H */