CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe.In a real case, especially in those EDR/DVR, NVR, re-encoding could happen occasionally. The important is feedback the encoded statistic to the controller(userspace) then userspace decided the future operation(whether re-encoding this or not).
Hi,
Le mercredi 26 juillet 2023 à 10:49 +0800, Hsia-Jun Li a écrit :
I am strongly against this approach, instead I think we need to keep allWe are driving away vendor participation. Besides, the current design is
vendor-specific parts in the kernel driver and provide a clean unified userspace
API.
a performance bottleneck.
I know you have been hammering this argument for many many years. But in
concrete situation, we have conducted tests, and we out perform vendors stacks
that directly hit into hardware register with stateless CODEC. Also, Paul's
proposal, is that fine grain / highly close to metal tuning of the encoding
process should endup in the Linux kernel, so that it can benefit from the
natural hard real-time advantage of a hard IRQ. Just like anything else, we will
find a lot of common methods and shareable code which will benefit in securityThe security for a vendor would only mean the protection of its intelligence properties. Also userspace and HAL is isolated in Android. Security or quality are not a problem here, you can't even run the unverified code.
and quality, which is very unlike what we normally get from per vendor BSP. TheAny vendor would like to implement a DRM(digital right, security) video pipeline would not even think of this. They are not many vendors that just sell plain video codecs hardware.
strategy is the same as everything else in Linux, vendor will adpot it if there
is a clear benefit. And better quality, ease of use, good collection of mature
userspace software is what makes the difference. It does takes time of course.
regards,
Nicolas