nvcodec: Rename nvcuda{h264,h265}enc to nv{h264,h265}enc

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6754>
This commit is contained in:
Seungha Yang 2024-04-28 18:35:56 +09:00 committed by GStreamer Marge Bot
parent b74422dcbc
commit da019bf137
3 changed files with 12 additions and 28 deletions

View file

@ -17,14 +17,6 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
/**
* element-nvcudah264enc:
*
* NVIDIA CUDA mode H.264 encoder
*
* Since: 1.22
*/
/** /**
* element-nvd3d11h264enc: * element-nvd3d11h264enc:
* *
@ -2298,16 +2290,16 @@ gst_nv_h264_encoder_register_cuda (GstPlugin * plugin, GstCudaContext * context,
(GInstanceInitFunc) gst_nv_h264_encoder_init, (GInstanceInitFunc) gst_nv_h264_encoder_init,
}; };
type_name = g_strdup ("GstNvCudaH264Enc"); type_name = g_strdup ("GstNvH264Enc");
feature_name = g_strdup ("nvcudah264enc"); feature_name = g_strdup ("nvh264enc");
gint index = 0; gint index = 0;
while (g_type_from_name (type_name)) { while (g_type_from_name (type_name)) {
index++; index++;
g_free (type_name); g_free (type_name);
g_free (feature_name); g_free (feature_name);
type_name = g_strdup_printf ("GstNvCudaH264Device%dEnc", index); type_name = g_strdup_printf ("GstNvH264Device%dEnc", index);
feature_name = g_strdup_printf ("nvcudah264device%denc", index); feature_name = g_strdup_printf ("nvh264device%denc", index);
} }
type = g_type_register_static (GST_TYPE_NV_ENCODER, type_name, type = g_type_register_static (GST_TYPE_NV_ENCODER, type_name,

View file

@ -17,14 +17,6 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
/**
* element-nvcudah265enc:
*
* NVIDIA CUDA mode H.265 encoder
*
* Since: 1.22
*/
/** /**
* element-nvd3d11h265enc: * element-nvd3d11h265enc:
* *
@ -2356,16 +2348,16 @@ gst_nv_h265_encoder_register_cuda (GstPlugin * plugin, GstCudaContext * context,
(GInstanceInitFunc) gst_nv_h265_encoder_init, (GInstanceInitFunc) gst_nv_h265_encoder_init,
}; };
type_name = g_strdup ("GstNvCudaH265Enc"); type_name = g_strdup ("GstNvH265Enc");
feature_name = g_strdup ("nvcudah265enc"); feature_name = g_strdup ("nvh265enc");
gint index = 0; gint index = 0;
while (g_type_from_name (type_name)) { while (g_type_from_name (type_name)) {
index++; index++;
g_free (type_name); g_free (type_name);
g_free (feature_name); g_free (feature_name);
type_name = g_strdup_printf ("GstNvCudaH265Device%dEnc", index); type_name = g_strdup_printf ("GstNvH265Device%dEnc", index);
feature_name = g_strdup_printf ("nvcudah265device%denc", index); feature_name = g_strdup_printf ("nvh265device%denc", index);
} }
type = g_type_register_static (GST_TYPE_NV_ENCODER, type_name, type = g_type_register_static (GST_TYPE_NV_ENCODER, type_name,

View file

@ -295,13 +295,13 @@ plugin_init (GstPlugin * plugin)
} }
} }
#endif #endif
cdata = cdata = gst_nv_h264_encoder_register_cuda (plugin,
gst_nv_h264_encoder_register_cuda (plugin, context, GST_RANK_NONE); context, GST_RANK_PRIMARY + 1);
if (cdata) if (cdata)
h264_enc_cdata = g_list_append (h264_enc_cdata, cdata); h264_enc_cdata = g_list_append (h264_enc_cdata, cdata);
cdata = cdata = gst_nv_h265_encoder_register_cuda (plugin,
gst_nv_h265_encoder_register_cuda (plugin, context, GST_RANK_NONE); context, GST_RANK_PRIMARY + 1);
if (cdata) if (cdata)
h265_enc_cdata = g_list_append (h265_enc_cdata, cdata); h265_enc_cdata = g_list_append (h265_enc_cdata, cdata);
} }