d3d11overlay

Provides Direct3D11 render target view handles to an application so that the application can overlay/blend an image on the render target

Example launch line

gst-launch-1.0 d3d11testsrc ! queue ! d3d11overlay ! queue ! d3d11videosink

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstD3D11BaseFilter
                        ╰──d3d11overlay

Factory details

Authors: – Seungha Yang

Classification: – Filter/Video

Rank – none

Plugin – d3d11

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-raw(memory:D3D11Memory):
         format: { BGRA, RGBA }
          width: [ 1, 16384 ]
         height: [ 1, 16384 ]
      framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad


src

video/x-raw(memory:D3D11Memory):
         format: { BGRA, RGBA }
          width: [ 1, 16384 ]
         height: [ 1, 16384 ]
      framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad


Signals

caps-changed

caps_changed_callback (GstElement * overlay,
                       GstCaps * caps,
                       gpointer udata)
def caps_changed_callback (overlay, caps, udata):
    #python callback for the 'caps-changed' signal
function caps_changed_callback(overlay: GstElement * overlay, caps: GstCaps * caps, udata: gpointer udata): {
    // javascript callback for the 'caps-changed' signal
}

This signal is emitted when the caps or associated GstD3D11Device of the element has changed

Parameters:

overlay –

Overlay element emitting the signal

caps –

GstCaps of the element

udata –
No description available

Flags: Run Last

Since : 1.24


draw

gboolean
draw_callback (GstElement * overlay,
               GstObject * device,
               gpointer render_target,
               guint64 timestamp,
               guint64 duration,
               gpointer udata)
def draw_callback (overlay, device, render_target, timestamp, duration, udata):
    #python callback for the 'draw' signal
function draw_callback(overlay: GstElement * overlay, device: GstObject * device, render_target: gpointer render_target, timestamp: guint64 timestamp, duration: guint64 duration, udata: gpointer udata): {
    // javascript callback for the 'draw' signal
}

This signal is emitted when an overlay can be drawn. This signal is emitted with gst_d3d11_device_lock taken.

Client should return TRUE if an overlay has been rendered. Otherwise the element might discard the updated scene.

Parameters:

overlay –

Overlay element emitting the signal

device –

GstD3D11Device object

render_target –

ID3D11RenderTargetView handle

timestamp –

Timestamp (see GstClockTime) of the current buffer

duration –

Duration (see GstClockTime) of the current buffer

udata –
No description available
Returns (gboolean) –

TRUE if rendering operation happend

Flags: Run Last

Since : 1.24


The results of the search are