mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
nvenc: Use consistent snake case convention
This commit is contained in:
parent
1010b9f567
commit
afebb15d99
3 changed files with 15 additions and 15 deletions
|
@ -328,7 +328,7 @@ gst_nv_base_enc_open (GstVideoEncoder * enc)
|
|||
}
|
||||
|
||||
/* query supported input formats */
|
||||
if (!gst_nv_enc_get_supported_input_formats (nvenc->encoder, klass->codec_id,
|
||||
if (!gst_nvenc_get_supported_input_formats (nvenc->encoder, klass->codec_id,
|
||||
&formats)) {
|
||||
GST_WARNING_OBJECT (nvenc, "No supported input formats");
|
||||
gst_nv_base_enc_close (enc);
|
||||
|
@ -619,7 +619,7 @@ gst_nv_base_enc_getcaps (GstVideoEncoder * enc, GstCaps * filter)
|
|||
gst_caps_set_value (supported_incaps, "format", nvenc->input_formats);
|
||||
}
|
||||
|
||||
val = gst_nv_enc_get_interlace_modes (nvenc->encoder, klass->codec_id);
|
||||
val = gst_nvenc_get_interlace_modes (nvenc->encoder, klass->codec_id);
|
||||
gst_caps_set_value (supported_incaps, "interlace-mode", val);
|
||||
g_value_unset (val);
|
||||
g_free (val);
|
||||
|
|
|
@ -319,7 +319,7 @@ typedef struct
|
|||
} GstNvEncFormat;
|
||||
|
||||
gboolean
|
||||
gst_nv_enc_get_supported_input_formats (gpointer encoder, GUID codec_id,
|
||||
gst_nvenc_get_supported_input_formats (gpointer encoder, GUID codec_id,
|
||||
GValue ** formats)
|
||||
{
|
||||
guint32 i, count = 0;
|
||||
|
@ -446,7 +446,7 @@ gst_nv_enc_get_supported_input_formats (gpointer encoder, GUID codec_id,
|
|||
}
|
||||
|
||||
GValue *
|
||||
gst_nv_enc_get_interlace_modes (gpointer enc, GUID codec_id)
|
||||
gst_nvenc_get_interlace_modes (gpointer enc, GUID codec_id)
|
||||
{
|
||||
NV_ENC_CAPS_PARAM caps_param = { 0, };
|
||||
GValue *list;
|
||||
|
@ -495,7 +495,7 @@ typedef struct
|
|||
} GstNvEncCodecProfile;
|
||||
|
||||
GValue *
|
||||
gst_nv_enc_get_supported_codec_profiles (gpointer enc, GUID codec_id)
|
||||
gst_nvenc_get_supported_codec_profiles (gpointer enc, GUID codec_id)
|
||||
{
|
||||
NVENCSTATUS nv_ret;
|
||||
GUID profile_guids[64];
|
||||
|
@ -648,10 +648,10 @@ gst_nv_enc_register (GstPlugin * plugin, GType type, GUID codec_id,
|
|||
if (j == count)
|
||||
goto enc_free;
|
||||
|
||||
if (!gst_nv_enc_get_supported_input_formats (enc, codec_id, &formats))
|
||||
if (!gst_nvenc_get_supported_input_formats (enc, codec_id, &formats))
|
||||
goto enc_free;
|
||||
|
||||
profiles = gst_nv_enc_get_supported_codec_profiles (enc, codec_id);
|
||||
profiles = gst_nvenc_get_supported_codec_profiles (enc, codec_id);
|
||||
if (!profiles)
|
||||
goto free_format;
|
||||
|
||||
|
@ -676,7 +676,7 @@ gst_nv_enc_register (GstPlugin * plugin, GType type, GUID codec_id,
|
|||
max_height = 4096;
|
||||
}
|
||||
|
||||
interlace_modes = gst_nv_enc_get_interlace_modes (enc, codec_id);
|
||||
interlace_modes = gst_nvenc_get_interlace_modes (enc, codec_id);
|
||||
|
||||
sink_templ = gst_caps_new_empty_simple ("video/x-raw");
|
||||
gst_caps_set_value (sink_templ, "format", formats);
|
||||
|
|
|
@ -32,15 +32,15 @@ gboolean gst_nvenc_cmp_guid (GUID g1, GUID g2);
|
|||
|
||||
NV_ENC_BUFFER_FORMAT gst_nvenc_get_nv_buffer_format (GstVideoFormat fmt);
|
||||
|
||||
gboolean gst_nv_enc_get_supported_input_formats (gpointer encoder,
|
||||
gboolean gst_nvenc_get_supported_input_formats (gpointer encoder,
|
||||
GUID codec_id,
|
||||
GValue ** formats);
|
||||
|
||||
|
||||
GValue * gst_nv_enc_get_interlace_modes (gpointer enc,
|
||||
GValue * gst_nvenc_get_interlace_modes (gpointer enc,
|
||||
GUID codec_id);
|
||||
|
||||
GValue * gst_nv_enc_get_supported_codec_profiles (gpointer enc,
|
||||
GValue * gst_nvenc_get_supported_codec_profiles (gpointer enc,
|
||||
GUID codec_id);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue