27#ifndef AVCODEC_THREAD_H
28#define AVCODEC_THREAD_H
Libavcodec external API header.
refcounted data buffer API
#define flags(name, subs,...)
int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f, int flags)
Wrapper around get_buffer() for frame-multithreaded codecs.
enum ThreadingStatus ff_thread_sync_ref(AVCodecContext *avctx, size_t offset)
Allows to synchronize objects whose lifetime is the whole decoding process among all frame threads.
@ FF_THREAD_IS_FIRST_THREAD
@ FF_THREAD_NO_FRAME_THREADING
void ff_thread_finish_setup(AVCodecContext *avctx)
If the codec defines update_thread_context(), call this when they are ready for the next thread to st...
int ff_thread_can_start_frame(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 main_func(AVCodecContext *c)
int action_func2(AVCodecContext *c, void *arg, int jobnr, int threadnr)
main external API structure.
This structure describes decoded (raw) audio or video data.