Joshua Ashton 🐸 on Nostr: v4l2 decode is absolutely horrible to work with. Every part of it is so badly ...
v4l2 decode is absolutely horrible to work with.
Every part of it is so badly designed.
CAPTURE being the destination and OUTPUT being the source makes no sense.
The fact that that a buffer in a queue is completely immutable until the buffer is ready to dequeue is insane.
There is just no real way to get feedback about how you fucked up. It's not like there's validation layers or any decent logging aside from kernel dynamic debugging logs. x_x
It's just a terribly designed mess of crap. As usual, drivers doing anything remotely complex should mainly be in userspace. This is another prime example.
v4l2 should have been left to die all those years ago.
Published at
2023-08-01 04:53:06Event JSON
{
"id": "9fa1fae95bdc01db9cf134391c816bb2be23ee9ee37e3f35c6f8fabcad47d00b",
"pubkey": "22b5569003c88077211334b4adb48e9a25f00602da9cff88d0375a07b46fef41",
"created_at": 1690865586,
"kind": 1,
"tags": [
[
"mostr",
"https://landofkittens.social/objects/d762d843-df50-46c7-985c-471da0e62c0e"
]
],
"content": "v4l2 decode is absolutely horrible to work with.\n\nEvery part of it is so badly designed.\n\nCAPTURE being the destination and OUTPUT being the source makes no sense. \n\nThe fact that that a buffer in a queue is completely immutable until the buffer is ready to dequeue is insane.\n\nThere is just no real way to get feedback about how you fucked up. It's not like there's validation layers or any decent logging aside from kernel dynamic debugging logs. x_x\n\nIt's just a terribly designed mess of crap. As usual, drivers doing anything remotely complex should mainly be in userspace. This is another prime example.\n\nv4l2 should have been left to die all those years ago.",
"sig": "1cfbfe040ec20ad14b8cda209e86a6c67881f1cd9c3b524927f88f5dc96c4dcff6887bda8ed297d372dde571c70375cef4c59d2ffcd7a6f46f508cb1980412c0"
}