diff mbox series

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

Message ID 20240308082749.20028-3-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,1/3] lavc/thread: move generic-layer API to avcodec_internal.h | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov March 8, 2024, 8:27 a.m. UTC
---
 libavcodec/thread.h | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)
diff mbox series

Patch

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