diff mbox series

[FFmpeg-devel,1/4] libavcodec/jpeg2000: Make tag tree functions non static

Message ID 20200818194037.25422-1-gautamramk@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel,1/4] libavcodec/jpeg2000: Make tag tree functions non static | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Gautam Ramakrishnan Aug. 18, 2020, 7:40 p.m. UTC
From: Gautam Ramakrishnan <gautamramk@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(-)

Comments

Carl Eugen Hoyos Aug. 18, 2020, 8:30 p.m. UTC | #1
> Am 18.08.2020 um 21:40 schrieb gautamramk@gmail.com:
> 
> From: Gautam Ramakrishnan <gautamramk@gmail.com>
> 
> This patch makes the tag_tree_zero() and tag_tree_size()
> functions non static and callable from other files.

Missing ff_ prefix.

Carl Eugen
diff mbox series

Patch

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 */