All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC]: m2m dec reports the graphics memory requirement
@ 2023-06-30 10:47 Hsia-Jun Li
  2023-07-27  8:17 ` Tomasz Figa
  0 siblings, 1 reply; 8+ messages in thread
From: Hsia-Jun Li @ 2023-06-30 10:47 UTC (permalink / raw)
  To: Linux Media Mailing List
  Cc: ayaka, Nicolas Dufresne, Brian.Starkey, boris.brezillon, frkoenig,
	hans.verkuil, hiroh, Hans Verkuil, Laurent Pinchart,
	Mauro Carvalho Chehab, Tomasz Figa, Helen Koike

Hello All

This RFC tries to address the following problems:

1. Application may request too many buffers, increasing pressure to 
system's memory allocator(Thinking about running Android with 8K UHD 
playback in a system with only 2 GiB memory available);

2. Application may allocate too few buffers while the codec stream 
didn't follow the statement in its sequence info;

3. Application would allocate all the graphics buffers in a large size 
meeting the decoding requirement, while only few alternative ref(never 
display) frame requests that;

4. ioctl() G_FMT may need to reflex a format which far from the current 
sequence, or we can't know the resolution change result at an early stage;


A few solutions here:

1. Extend the struct v4l2_event_src_change in struct v4l2_event with the 
graphics pixel format(break uAPI)

2. Getting controls after the SRC_CHG event, struct v4l2_event need to 
tell how many controls it needs to fetch.

3. struct v4l2_ext_buffer for such out-of-band data.


Sorry for making it html before

-- 
Hsia-Jun(Randy) Li


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-28 18:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 10:47 [RFC]: m2m dec reports the graphics memory requirement Hsia-Jun Li
2023-07-27  8:17 ` Tomasz Figa
2023-07-27  9:30   ` Hsia-Jun Li
2023-07-28  4:33   ` Sergey Senozhatsky
2023-07-28  8:18     ` Laurent Pinchart
2023-07-28  8:28       ` Tomasz Figa
2023-07-28  8:42         ` Laurent Pinchart
2023-07-28 18:34           ` Randy Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.