mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
vkencoder-private: add again GST_TYPE_VULKAN_ENCODER_RATE_CONTROL_MODE
It was already part of the old rate control mechanism but it had wrong the namespace. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8007>
This commit is contained in:
parent
e03b124c10
commit
549404ccaa
2 changed files with 29 additions and 0 deletions
|
@ -1424,3 +1424,28 @@ gst_vulkan_encoder_set_rc_mode (GstVulkanEncoder * self,
|
||||||
priv->session_reset = TRUE;
|
priv->session_reset = TRUE;
|
||||||
priv->rc_mode = rc_mode;
|
priv->rc_mode = rc_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GType
|
||||||
|
gst_vulkan_encoder_rate_control_mode_get_type (void)
|
||||||
|
{
|
||||||
|
static GType type = 0;
|
||||||
|
|
||||||
|
if (type == 0) {
|
||||||
|
/* *INDENT-OFF* */
|
||||||
|
static const GEnumValue values[] = {
|
||||||
|
{ VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR,
|
||||||
|
"Driver's default", "default" },
|
||||||
|
{ VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR,
|
||||||
|
"Constant quantizer", "cqp" },
|
||||||
|
{ VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR,
|
||||||
|
"Constant bitrate", "cbr" },
|
||||||
|
{ VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR,
|
||||||
|
"Variable bitrate", "vbr" },
|
||||||
|
{ 0, }
|
||||||
|
};
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
|
type = g_enum_register_static ("GstVulkanEncoderRateControlMode", values);
|
||||||
|
}
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GType gst_vulkan_encoder_get_type (void);
|
GType gst_vulkan_encoder_get_type (void);
|
||||||
|
|
||||||
|
#define GST_TYPE_VULKAN_ENCODER_RATE_CONTROL_MODE (gst_vulkan_encoder_rate_control_mode_get_type())
|
||||||
|
GST_VULKAN_API
|
||||||
|
GType gst_vulkan_encoder_rate_control_mode_get_type (void);
|
||||||
|
|
||||||
typedef struct _GstVulkanEncoder GstVulkanEncoder;
|
typedef struct _GstVulkanEncoder GstVulkanEncoder;
|
||||||
typedef struct _GstVulkanEncoderClass GstVulkanEncoderClass;
|
typedef struct _GstVulkanEncoderClass GstVulkanEncoderClass;
|
||||||
typedef struct _GstVulkanEncoderQualityPoperties GstVulkanEncoderQualityProperties;
|
typedef struct _GstVulkanEncoderQualityPoperties GstVulkanEncoderQualityProperties;
|
||||||
|
|
Loading…
Reference in a new issue