Re: how to get surface screen-shot in spice-server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi, spice gurus:
> I am a spice developer in my company which devle with desktop cloud
> computing.
> In spice-0.12.4 we can get surface screen-shot in red_worker.c by adding this
> line in red_process_commands():
> surface_flush(worker, surface_id, &rect);
> Function surface_flush flush undraw image to surface, then we get the
> screen-shot by reading surface address.

> But in spice-0.14.3 we can not get proper screen-shot, by adding this line in
> red_process_display():
> display_channel_current_flush(worker->display_channel, surface_id);
> We get screen-shot that flicker with white bars, I do not know why.

> Much appreciation for any reply!

> regards
> Frank

Hi, 
  you should use display_channel_draw.

Frediano

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel



[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]