[Spice-devel] What algorithm does SPICE server use in video stream detection?
陈炤
qishiyexu2 at 126.com
Wed Jan 16 02:51:44 UTC 2019
Hi Christophe,
Thank you for your answer!
BR,
Don
At 2019-01-15 21:54:36, "Christophe Fergeau" <cfergeau at redhat.com> wrote:
>Hey,
>
>On Thu, Jan 10, 2019 at 03:03:05PM +0800, 陈炤 wrote:
>> Hi,
>>
>>
>>
>> I read the spice server code, and find that the video stream detection
>> code is in server/spice-bitmap-utils.c. func
>> bitmap_get_graduality_level will calculate a score, and the GRADUALITY
>> is set based on the score.
>>
>> So what's the meaning of this score, and what algorithm does it use to
>> calculate this score?
>
>Long time since I looked at that code, but iirc it tries to detect if
>the region looks like text or an image, and if it's changing a lot. If
>it's an image which is changing a lot, then it's recognized as a video
>stream.
>
>Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190116/1ff87c8f/attachment.html>
More information about the Spice-devel
mailing list