DisplayChannel
Object Hierarchy:
Description:
The DisplayChannel struct is opaque and should not be accessed directly.
Namespace: Spice
Package: spice-client-glib-2.0
Content:
Properties:
- public GlScanout gl_scanout { get; }
The last GlScanout received.
- public uint height { get; }
- public Array<void*> monitors { owned get; }
Current monitors configuration.
- public uint monitors_max { get; }
The maximum number of monitors the server or guest supports.
- public uint width { get; }
Static methods:
- public static void change_preferred_compression (Channel channel, int compression)
Tells the spice server to change the preferred image compression for the
channel
. - public static void change_preferred_video_codec_type (Channel channel, int codec_type)
Tells the spice server to change the preferred video codec type for streaming in
channel
. - public static bool get_primary (Channel channel, uint32 surface_id, DisplayPrimary primary)
Retrieve primary display surface
surface_id
.
Creation methods:
- protected DisplayChannel ()
Methods:
- public unowned GlScanout get_gl_scanout ()
Retrieves the GL scanout if available
- public void gl_draw_done ()
After a SpiceDisplayChannel:
SpiceDisplayChannel:gl-draw
is emitted, the client should draw the current display with the current GL scanout, and must release the GL resource with a call to display_gl_draw_done (failing to do so for each gl-draw may result in a frozen display).
Signals:
- public virtual signal void display_invalidate (int x, int y, int w, int h)
The display_invalidate signal is emitted when the rectangular region x/y/w/h of the primary buffer is updated.
- public virtual signal void display_mark (int mark)
The display_mark signal is emitted when the red_display_mark command is received, and the display should be exposed.
- public virtual signal void display_primary_create (int format, int width, int height, int stride, int shmid, void* data)
The display_primary_create signal provides main display buffer data.
- public virtual signal void display_primary_destroy ()
The display_primary_destroy signal is emitted when the primary surface is freed and should not be accessed anymore.
- public signal void gl_draw (uint x, uint y, uint width, uint height)
The gl_draw signal is emitted when the rectangular region x/y/w/h of the GL scanout is updated and must be drawn.
- public signal bool gst_video_overlay (Pipeline pipeline)
The gst_video_overlay signal is emitted when pipeline is ready and can be passed to widget to register GStreamer overlay interface and other GStreamer callbacks.
- public signal void* streaming_mode (bool streaming_mode)
Inherited Members:
All known members inherited from class Spice.Channel
All known members inherited from class GLib.Object