Re: [FFmpeg-devel] [PATCH v2 01/27] avcodec/threadprogress: Add new API for frame-threaded progress

2024-04-18 Thread epirat07
On 18 Apr 2024, at 22:40, Andreas Rheinhardt wrote: > Andreas Rheinhardt: >> The API is similar to the ThreadFrame API, with the exception >> that it no longer has an included AVFrame and that it has its >> own mutexes and condition variables which makes it more independent >> of

Re: [FFmpeg-devel] [PATCH v2 01/27] avcodec/threadprogress: Add new API for frame-threaded progress

2024-04-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The API is similar to the ThreadFrame API, with the exception > that it no longer has an included AVFrame and that it has its > own mutexes and condition variables which makes it more independent > of pthread_frame.c. One can wait on anything via a ThreadProgress. > One just

Re: [FFmpeg-devel] [PATCH v2 01/27] avcodec/threadprogress: Add new API for frame-threaded progress

2024-04-10 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2024-04-08 21:51:59) > +/** > + * ThreadProgress is an API to easily notify other threads about progress > + * of any kind as long as it can be packaged into an int and is consistent > + * with the natural ordering of integers. > + * > + * Each initialized

[FFmpeg-devel] [PATCH v2 01/27] avcodec/threadprogress: Add new API for frame-threaded progress

2024-04-08 Thread Andreas Rheinhardt
The API is similar to the ThreadFrame API, with the exception that it no longer has an included AVFrame and that it has its own mutexes and condition variables which makes it more independent of pthread_frame.c. One can wait on anything via a ThreadProgress. One just has to ensure that the