[FFmpeg-devel] [PATCH 3/3] lavc/thread.h: drop unnecessary includes

Anton Khirnov anton at khirnov.net
Fri Mar 8 10:27:49 EET 2024


---
 libavcodec/thread.h | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/libavcodec/thread.h b/libavcodec/thread.h
index 5a00b32619..111010b27f 100644
--- a/libavcodec/thread.h
+++ b/libavcodec/thread.h
@@ -27,11 +27,9 @@
 #ifndef AVCODEC_THREAD_H
 #define AVCODEC_THREAD_H
 
-#include "libavutil/buffer.h"
+struct AVCodecContext;
 
-#include "avcodec.h"
-
-int ff_thread_can_start_frame(AVCodecContext *avctx);
+int ff_thread_can_start_frame(struct AVCodecContext *avctx);
 
 /**
  * If the codec defines update_thread_context(), call this
@@ -41,14 +39,14 @@ int ff_thread_can_start_frame(AVCodecContext *avctx);
  *
  * @param avctx The context.
  */
-void ff_thread_finish_setup(AVCodecContext *avctx);
+void ff_thread_finish_setup(struct AVCodecContext *avctx);
 
-int ff_slice_thread_execute_with_mainfunc(AVCodecContext *avctx,
-        int (*action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr),
-        int (*main_func)(AVCodecContext *c), void *arg, int *ret, int job_count);
-int ff_slice_thread_allocz_entries(AVCodecContext *avctx, int count);
-int ff_slice_thread_init_progress(AVCodecContext *avctx);
-void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, int n);
-void ff_thread_await_progress2(AVCodecContext *avctx,  int field, int thread, int shift);
+int ff_slice_thread_execute_with_mainfunc(struct AVCodecContext *avctx,
+        int (*action_func2)(struct AVCodecContext *c, void *arg, int jobnr, int threadnr),
+        int (*main_func)(struct AVCodecContext *c), void *arg, int *ret, int job_count);
+int ff_slice_thread_allocz_entries(struct AVCodecContext *avctx, int count);
+int ff_slice_thread_init_progress(struct AVCodecContext *avctx);
+void ff_thread_report_progress2(struct AVCodecContext *avctx, int field, int thread, int n);
+void ff_thread_await_progress2(struct AVCodecContext *avctx,  int field, int thread, int shift);
 
 #endif /* AVCODEC_THREAD_H */
-- 
2.43.0



More information about the ffmpeg-devel mailing list