27 #ifndef AVCODEC_THREAD_H 28 #define AVCODEC_THREAD_H 61 int *got_picture_ptr,
AVPacket *avpkt);
136 int (*action_func2)(
AVCodecContext *c,
void *arg,
int jobnr,
int threadnr),
137 int (*main_func)(
AVCodecContext *c),
void *arg,
int *ret,
int job_count);
141 void ff_thread_report_progress2(
AVCodecContext *avctx,
int field,
int thread,
int n);
142 void ff_thread_await_progress2(
AVCodecContext *avctx,
int field,
int thread,
int shift);
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
void ff_thread_flush(AVCodecContext *avctx)
Wait for decoding threads to finish and reset internal state.
Definition: pthread_frame.c:842
void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f)
Wrapper around release_buffer() frame-for multithreaded codecs.
Definition: pthread_frame.c:973
void ff_thread_report_progress(ThreadFrame *f, int progress, int field)
Notify later decoding threads when part of their reference picture is ready.
Definition: pthread_frame.c:557
enum AVPixelFormat ff_thread_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
Wrapper around get_format() for frame-multithreaded codecs.
Definition: pthread_frame.c:939
int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
Wrapper around get_buffer() for frame-multithreaded codecs.
Definition: pthread_frame.c:965
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...
Definition: pthread_frame.c:601
void ff_thread_await_progress(ThreadFrame *f, int progress, int field)
Wait for earlier decoding threads to finish reference pictures.
Definition: pthread_frame.c:580
Libavcodec external API header.
main external API structure.
Definition: avcodec.h:1518
refcounted data buffer API
A reference to a data buffer.
Definition: buffer.h:81
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt)
Submit a new frame to a decoding thread.
Definition: pthread_frame.c:472
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60
This structure stores compressed data.
Definition: avcodec.h:1407