vulkansink

vulkansink

Properties

gboolean force-aspect-ratio Read / Write
GstFraction pixel-aspect-ratio Read / Write

Types and Values

struct GstVulkanSink

Description

vulkansink renders video frames to a drawable on a local or remote display using Vulkan.

Synopsis

Element Information

plugin

vulkan

author

Matthew Waters <matthew@centricular.com>

class

Sink/Video

Element Pads

name

sink

direction

sink

presence

always

details

video/x-raw(memory:VulkanBuffer), format=(string){ RGBA, BGRA, RGB, BGR }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Functions

Types and Values

struct GstVulkanSink

struct GstVulkanSink {
  GstVideoSink video_sink;

  GstVulkanInstance *instance;
  GstVulkanDevice *device;

  GstVulkanDisplay *display;
  GstVulkanWindow *window;

  GstVulkanSwapper *swapper;

  /* properties */
  gboolean force_aspect_ratio;
  gint par_n;
  gint par_d;

  /* stream configuration */
  GstVideoInfo v_info;
};

Property Details

The “force-aspect-ratio” property

  “force-aspect-ratio”       gboolean

When enabled, scaling will respect original aspect ratio.

Flags: Read / Write

Default value: TRUE


The “pixel-aspect-ratio” property

  “pixel-aspect-ratio”       GstFraction

The pixel aspect ratio of the device.

Flags: Read / Write