[FFmpeg-devel] [PATCH] Skip parsing of hwaccel mjpeg after decoding

2024-08-18 Thread Lluís Batlle i Rossell
Attached. Together with previous patch "Less CPU use in hwaccel MJPEG decoding" the hwaccel mjpeg decoding uses about 90% less cpu than before. >From 5960e16ae7561c6c6ad982c90f4e6ea1d30df91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 18 Aug 2024 14:14:

Re: [FFmpeg-devel] [PATCH] Less CPU use in hwaccel MJPEG decoding (v2)

2024-08-17 Thread Lluís Batlle i Rossell
v2 attached. I had crippled the indentation. On Sat, Aug 17, 2024 at 06:05:24PM +0200, Lluís Batlle i Rossell wrote: > attached >From ea2d702daa88bf3b1bde1f03c26c69bb8ab9e2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 17 Aug 2024 18:03:37

[FFmpeg-devel] [PATCH] Less CPU use in hwaccel MJPEG decoding

2024-08-17 Thread Lluís Batlle i Rossell
attached >From 9e312c20d10839cb2c731acd23bc1b00177cd7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 17 Aug 2024 18:03:37 +0200 Subject: [PATCH] Less CPU use in hwaccel MJPEG decoding It skips the unnecessary unescaping the entropy-encoded data in case o

Re: [FFmpeg-devel] PATCH: Fallback to NV12 format in VAAPI drivers

2024-08-11 Thread Lluís Batlle i Rossell
On Sun, Aug 11, 2024 at 06:57:49PM +0100, Mark Thompson wrote: > On 10/08/2024 09:51, Lluís Batlle i Rossell wrote: > > On Fri, Aug 09, 2024 at 09:43:53AM +0200, Lluís Batlle i Rossell wrote: > >> On Fri, Aug 09, 2024 at 11:49:54AM +0800, Zhao Zhili wrote: > >>>>

[FFmpeg-devel] PATCH: Fallback to NV12 format in VAAPI drivers

2024-08-10 Thread Lluís Batlle i Rossell
On Fri, Aug 09, 2024 at 09:43:53AM +0200, Lluís Batlle i Rossell wrote: > On Fri, Aug 09, 2024 at 11:49:54AM +0800, Zhao Zhili wrote: > > > vaapi drivers often lack proper image converesions and not all > > > situations allow vagetimage or vaputimage with the image formats

Re: [FFmpeg-devel] PATCH: Force vaapi image formats to NV12-only

2024-08-09 Thread Lluís Batlle i Rossell
On Fri, Aug 09, 2024 at 11:49:54AM +0800, Zhao Zhili wrote: > > vaapi drivers often lack proper image converesions and not all > > situations allow vagetimage or vaputimage with the image formats > > reported by the api. nv12 seems allowed in all circumstances. > > > > with this change now one can

[FFmpeg-devel] PATCH: Force vaapi image formats to NV12-only

2024-08-08 Thread Lluís Batlle i Rossell
attached >From c6439f3a74529db25777029596791a62eb3c77d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 8 Aug 2024 20:32:03 +0200 Subject: [PATCH] Force vaapi image formats to NV12-only Vaapi drivers often lack proper image converesions and not all situatio

Re: [FFmpeg-devel] [PATCH 3/3] mmaldec with plain yuv420p without copy

2021-02-11 Thread Lluís Batlle i Rossell
On Thu, Feb 11, 2021 at 10:34:11PM +, Mark Thompson wrote: > On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: > > From: Lluís Batlle i Rossell > > > > + > > Random whitespace change? likely. I can fix that. > > > if (!ref) > >

Re: [FFmpeg-devel] [PATCH 1/3] libavcodec/mmaldec: enable MJPEG decoding

2021-02-11 Thread Lluís Batlle i Rossell
On Thu, Feb 11, 2021 at 10:19:01PM +, Mark Thompson wrote: > On 11/02/2021 21:48, Lluís Batlle i Rossel wrote: > > From: Lluís Batlle i Rossell > > > > From: Cosmin Gorgovan > > > > --- > > configure | 1 + > > libavcodec/allco

[FFmpeg-devel] Avoid a decoded frame copy in mmaldec for raspberrypi

2021-02-11 Thread Lluís Batlle i Rossell
Hello, I needed to acquire mjpeg from a v4l2 uvc webcam in a Raspberry pi, and I saw mmaldec lacked mjpeg and also was doing an unnecessary copy. I used two patches I found in the mailing list archives to enable mjpeg mmaldec and then wrote one that avoids the copy. It works fine for me but I hav