nvenc: Use consistent snake case convention

This commit is contained in:
Seungha Yang 2019-08-08 14:00:08 +09:00
parent 1010b9f567
commit afebb15d99
3 changed files with 15 additions and 15 deletions

View file

@ -328,7 +328,7 @@ gst_nv_base_enc_open (GstVideoEncoder * enc)
} }
/* query supported input formats */ /* 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)) { &formats)) {
GST_WARNING_OBJECT (nvenc, "No supported input formats"); GST_WARNING_OBJECT (nvenc, "No supported input formats");
gst_nv_base_enc_close (enc); 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); 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); gst_caps_set_value (supported_incaps, "interlace-mode", val);
g_value_unset (val); g_value_unset (val);
g_free (val); g_free (val);

View file

@ -319,7 +319,7 @@ typedef struct
} GstNvEncFormat; } GstNvEncFormat;
gboolean 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) GValue ** formats)
{ {
guint32 i, count = 0; guint32 i, count = 0;
@ -446,7 +446,7 @@ gst_nv_enc_get_supported_input_formats (gpointer encoder, GUID codec_id,
} }
GValue * 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, }; NV_ENC_CAPS_PARAM caps_param = { 0, };
GValue *list; GValue *list;
@ -495,7 +495,7 @@ typedef struct
} GstNvEncCodecProfile; } GstNvEncCodecProfile;
GValue * 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; NVENCSTATUS nv_ret;
GUID profile_guids[64]; GUID profile_guids[64];
@ -648,10 +648,10 @@ gst_nv_enc_register (GstPlugin * plugin, GType type, GUID codec_id,
if (j == count) if (j == count)
goto enc_free; 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; 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) if (!profiles)
goto free_format; goto free_format;
@ -676,7 +676,7 @@ gst_nv_enc_register (GstPlugin * plugin, GType type, GUID codec_id,
max_height = 4096; 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"); sink_templ = gst_caps_new_empty_simple ("video/x-raw");
gst_caps_set_value (sink_templ, "format", formats); gst_caps_set_value (sink_templ, "format", formats);

View file

@ -32,16 +32,16 @@ gboolean gst_nvenc_cmp_guid (GUID g1, GUID g2);
NV_ENC_BUFFER_FORMAT gst_nvenc_get_nv_buffer_format (GstVideoFormat fmt); 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, GUID codec_id,
GValue ** formats); GValue ** formats);
GValue * gst_nv_enc_get_interlace_modes (gpointer enc, GValue * gst_nvenc_get_interlace_modes (gpointer enc,
GUID codec_id); 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); GUID codec_id);
void gst_nvenc_plugin_init (GstPlugin * plugin); void gst_nvenc_plugin_init (GstPlugin * plugin);