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