various: add missing G_PARAM_STATIC_STRINGS flags

This commit is contained in:
Stefan Kost 2010-10-19 17:26:08 +03:00
parent 51fe1a04e6
commit 07ce1d1906
3 changed files with 30 additions and 18 deletions

View file

@ -197,25 +197,28 @@ gst_ffmpegenc_class_init (GstFFMpegEncClass * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE,
g_param_spec_ulong ("bitrate", "Bit Rate",
"Target Video Bitrate", 0, G_MAXULONG, DEFAULT_VIDEO_BITRATE,
G_PARAM_READWRITE));
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GOP_SIZE,
g_param_spec_int ("gop-size", "GOP Size",
"Number of frames within one GOP", 0, G_MAXINT,
DEFAULT_VIDEO_GOP_SIZE, G_PARAM_READWRITE));
DEFAULT_VIDEO_GOP_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ME_METHOD,
g_param_spec_enum ("me-method", "ME Method", "Motion Estimation Method",
GST_TYPE_ME_METHOD, ME_EPZS, G_PARAM_READWRITE));
GST_TYPE_ME_METHOD, ME_EPZS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* FIXME 0.11: Make this property read-only */
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BUFSIZE,
g_param_spec_ulong ("buffer-size", "Buffer Size",
"Size of the video buffers. "
"Note: Setting this property has no effect "
"and is deprecated!", 0, G_MAXULONG, 0, G_PARAM_READWRITE));
"and is deprecated!", 0, G_MAXULONG, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass),
ARG_RTP_PAYLOAD_SIZE, g_param_spec_ulong ("rtp-payload-size",
"RTP Payload Size", "Target GOB length", 0, G_MAXULONG, 0,
G_PARAM_READWRITE));
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* register additional properties, possibly dependent on the exact CODEC */
gst_ffmpeg_cfg_install_property (klass, ARG_CFG_BASE);
@ -223,7 +226,7 @@ gst_ffmpegenc_class_init (GstFFMpegEncClass * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BIT_RATE,
g_param_spec_ulong ("bitrate", "Bit Rate",
"Target Audio Bitrate", 0, G_MAXULONG, DEFAULT_AUDIO_BITRATE,
G_PARAM_READWRITE));
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
gstelement_class->change_state = gst_ffmpegenc_change_state;

View file

@ -306,12 +306,12 @@ gst_ffmpegmux_class_init (GstFFMpegMuxClass * klass)
g_object_class_install_property (gobject_class, PROP_PRELOAD,
g_param_spec_int ("preload", "preload",
"Set the initial demux-decode delay (in microseconds)", 0, G_MAXINT,
0, G_PARAM_READWRITE));
0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_MAXDELAY,
g_param_spec_int ("maxdelay", "maxdelay",
"Set the maximum demux-decode delay (in microseconds)", 0, G_MAXINT,
0, G_PARAM_READWRITE));
0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gstelement_class->request_new_pad = gst_ffmpegmux_request_new_pad;
gstelement_class->change_state = gst_ffmpegmux_change_state;

View file

@ -407,17 +407,19 @@ gst_post_proc_class_init (GstPostProcClass * klass)
g_object_class_install_property (gobject_class, PROP_QUALITY,
g_param_spec_uint ("quality", "Quality",
"Quality level of filter (higher is better)",
0, PP_QUALITY_MAX, DEFAULT_QUALITY, G_PARAM_READWRITE));
0, PP_QUALITY_MAX, DEFAULT_QUALITY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_AUTOQ,
g_param_spec_boolean ("autoq", "AutoQ",
"Automatically switch filter off if CPU too slow",
DEFAULT_AUTOQ, G_PARAM_READWRITE));
DEFAULT_AUTOQ, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_SCOPE,
g_param_spec_enum ("scope", "Scope",
"Operate on chrominance and/or luminance",
GST_TYPE_PP_SCOPE, DEFAULT_SCOPE, G_PARAM_READWRITE));
GST_TYPE_PP_SCOPE, DEFAULT_SCOPE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
ppidx = klass->filterid;
/* per filter props */
@ -427,12 +429,14 @@ gst_post_proc_class_init (GstPostProcClass * klass)
g_object_class_install_property (gobject_class, PROP_DIFF,
g_param_spec_int ("difference", "Difference Factor",
"Higher values mean more deblocking (-1 = pp default)",
-1, G_MAXINT, DEFAULT_DIFF, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_DIFF,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_FLAT,
g_param_spec_int ("flatness", "Flatness Threshold",
"Lower values mean more deblocking (-1 = pp default)",
-1, G_MAXINT, DEFAULT_FLAT, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_FLAT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gobject_class->set_property =
GST_DEBUG_FUNCPTR (gst_post_proc_deblock_set_property);
@ -443,17 +447,20 @@ gst_post_proc_class_init (GstPostProcClass * klass)
g_object_class_install_property (gobject_class, PROP_T1,
g_param_spec_int ("threshold-1", "Threshold One",
"Higher values mean stronger filtering (-1 = pp default)",
-1, G_MAXINT, DEFAULT_T1, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_T1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_T2,
g_param_spec_int ("threshold-2", "Threshold Two",
"Higher values mean stronger filtering (-1 = pp default)",
-1, G_MAXINT, DEFAULT_T2, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_T2,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_T3,
g_param_spec_int ("threshold-3", "Threshold Three",
"Higher values mean stronger filtering (-1 = pp default)",
-1, G_MAXINT, DEFAULT_T3, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_T3,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gobject_class->set_property =
GST_DEBUG_FUNCPTR (gst_post_proc_tmpnoise_set_property);
@ -463,7 +470,8 @@ gst_post_proc_class_init (GstPostProcClass * klass)
/* autolevels */
g_object_class_install_property (gobject_class, PROP_RANGE,
g_param_spec_boolean ("fully-range", "Fully Range",
"Stretch luminance to (0-255)", DEFAULT_RANGE, G_PARAM_READWRITE));
"Stretch luminance to (0-255)", DEFAULT_RANGE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gobject_class->set_property =
GST_DEBUG_FUNCPTR (gst_post_proc_autolevels_set_property);
@ -475,7 +483,8 @@ gst_post_proc_class_init (GstPostProcClass * klass)
g_object_class_install_property (gobject_class, PROP_QUANT,
g_param_spec_int ("quantizer", "Force Quantizer",
"Quantizer to use (-1 = pp default)",
-1, G_MAXINT, DEFAULT_QUANT, G_PARAM_READWRITE));
-1, G_MAXINT, DEFAULT_QUANT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gobject_class->set_property =
GST_DEBUG_FUNCPTR (gst_post_proc_forcequant_set_property);