Re: [FFmpeg-devel] [PATCH 17/57] avcodec/mpegvideo, mpegpicture: Add buffer pool

2024-04-30 Thread Andreas Rheinhardt
James Almer: > On 4/30/2024 5:40 PM, Michael Niedermayer wrote: >> On Mon, Apr 29, 2024 at 11:13:58PM +0200, Andreas Rheinhardt wrote: >>> This avoids constant allocations+frees and will also allow >>> to simply switch to the RefStruct API, thereby avoiding >>> the overhead of the AVBuffer API. >>>

Re: [FFmpeg-devel] [PATCH 17/57] avcodec/mpegvideo, mpegpicture: Add buffer pool

2024-04-30 Thread Andreas Rheinhardt
Michael Niedermayer: > On Mon, Apr 29, 2024 at 11:13:58PM +0200, Andreas Rheinhardt wrote: >> This avoids constant allocations+frees and will also allow >> to simply switch to the RefStruct API, thereby avoiding >> the overhead of the AVBuffer API. >> It also simplifies the code, because it removes

Re: [FFmpeg-devel] [PATCH 17/57] avcodec/mpegvideo, mpegpicture: Add buffer pool

2024-04-30 Thread James Almer
On 4/30/2024 5:40 PM, Michael Niedermayer wrote: On Mon, Apr 29, 2024 at 11:13:58PM +0200, Andreas Rheinhardt wrote: This avoids constant allocations+frees and will also allow to simply switch to the RefStruct API, thereby avoiding the overhead of the AVBuffer API. It also simplifies the code, b

Re: [FFmpeg-devel] [PATCH 17/57] avcodec/mpegvideo, mpegpicture: Add buffer pool

2024-04-30 Thread Michael Niedermayer
On Mon, Apr 29, 2024 at 11:13:58PM +0200, Andreas Rheinhardt wrote: > This avoids constant allocations+frees and will also allow > to simply switch to the RefStruct API, thereby avoiding > the overhead of the AVBuffer API. > It also simplifies the code, because it removes the "needs_realloc" > fiel