hyperion-webos icon indicating copy to clipboard operation
hyperion-webos copied to clipboard

quirks: Add QUIRK_VTCAPTURE_FORCE_CAPTURE

Open TBSniller opened this issue 3 years ago • 2 comments

Needs to be merged after https://github.com/webosbrew/hyperion-webos/pull/79

vtCapture quirk enhancement.

Designed to be used with a custom kernel module. Puts a call over ioctl to this module, when we get an error while dequeuing a frame buffer, or having errors to start capture.

This also fixes a bug in vtCapture, where captured image is still black when switching from secure video content, back to "normal".

TBSniller avatar Jul 10 '22 21:07 TBSniller

Which part exactly is responsible for

fixes a bug in vtCapture, where captured image is still black when switching from secure video content, back to "normal".

?

tuxuser avatar Jul 12 '22 13:07 tuxuser

We have never done something when capture was hanging, just giving info and returning without further processing. Now we are returning -99 which indicates a termination of the running video capture. Return: https://github.com/webosbrew/hyperion-webos/blob/3c5cce85bff4a4a0bd6da1d4a1564b47abb769ce/src/backends/libvtcapture.cpp#L277 Stopping: https://github.com/webosbrew/hyperion-webos/blob/3c5cce85bff4a4a0bd6da1d4a1564b47abb769ce/src/unicapture.c#L89 As video capture is still enabled, but now not running anymore it just gets started again in normal routine: https://github.com/webosbrew/hyperion-webos/blob/3c5cce85bff4a4a0bd6da1d4a1564b47abb769ce/src/unicapture.c#L146

TBSniller avatar Jul 12 '22 21:07 TBSniller