[FFmpeg-devel] [PATCH 1/4] libavcodec/jpeg2000: Make tag tree functions non static
gautamramk at gmail.com
gautamramk at gmail.com
Tue Aug 18 22:40:34 EEST 2020
From: Gautam Ramakrishnan <gautamramk at gmail.com>
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 */
--
2.17.1
More information about the ffmpeg-devel
mailing list