Re: [FFmpeg-devel] [PATCH 27/42] avcodec/pthread_frame: Add new progress API

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:19) > Frame-threaded decoders with inter-frame dependencies > use the ThreadFrame API for syncing. It works as follows: > > During init each thread allocates an AVFrame for every > ThreadFrame. > > Thread A reads the header of its packet and allocates

[FFmpeg-devel] [PATCH 27/42] avcodec/pthread_frame: Add new progress API

2023-09-19 Thread Andreas Rheinhardt
Frame-threaded decoders with inter-frame dependencies use the ThreadFrame API for syncing. It works as follows: During init each thread allocates an AVFrame for every ThreadFrame. Thread A reads the header of its packet and allocates a buffer for an AVFrame with ff_thread_get_ext_buffer() (which