[462/906] various: add missing G_PARAM_STATIC_STRINGS flags

Canonicalize property names as needed. Includes some gst-indent changes as well :/
This commit is contained in:
Stefan Kost 2010-10-19 18:00:33 +03:00 committed by Matthew Waters
parent ac138f74a1
commit edefb7826c
13 changed files with 83 additions and 66 deletions

View file

@ -115,10 +115,10 @@ gst_gl_filter_class_init (GstGLFilterClass * klass)
gst_gl_filter_prepare_output_buffer; gst_gl_filter_prepare_output_buffer;
g_object_class_install_property (gobject_class, PROP_EXTERNAL_OPENGL_CONTEXT, g_object_class_install_property (gobject_class, PROP_EXTERNAL_OPENGL_CONTEXT,
g_param_spec_ulong ("external_opengl_context", g_param_spec_ulong ("external-opengl-context",
"External OpenGL context", "External OpenGL context",
"Give an external OpenGL context with which to share textures", "Give an external OpenGL context with which to share textures",
0, G_MAXULONG, 0, G_PARAM_WRITABLE)); 0, G_MAXULONG, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
klass->set_caps = NULL; klass->set_caps = NULL;
klass->filter = NULL; klass->filter = NULL;

View file

@ -162,21 +162,25 @@ gst_gl_shader_class_init (GstGLShaderClass * klass)
PROP_VERTEX_SRC, PROP_VERTEX_SRC,
g_param_spec_string ("vertex-src", g_param_spec_string ("vertex-src",
"Vertex Source", "Vertex Source",
"GLSL Vertex Shader source code", NULL, G_PARAM_READWRITE)); "GLSL Vertex Shader source code", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (obj_class, g_object_class_install_property (obj_class,
PROP_FRAGMENT_SRC, PROP_FRAGMENT_SRC,
g_param_spec_string ("fragment-src", g_param_spec_string ("fragment-src",
"Fragment Source", "Fragment Source",
"GLSL Fragment Shader source code", NULL, G_PARAM_READWRITE)); "GLSL Fragment Shader source code", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (obj_class, g_object_class_install_property (obj_class,
PROP_ACTIVE, PROP_ACTIVE,
g_param_spec_string ("active", g_param_spec_string ("active",
"Active", "Enable/Disable the shader", NULL, G_PARAM_READWRITE)); "Active", "Enable/Disable the shader", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (obj_class, g_object_class_install_property (obj_class,
PROP_COMPILED, PROP_COMPILED,
g_param_spec_boolean ("compiled", g_param_spec_boolean ("compiled",
"Compiled", "Compiled",
"Shader compile and link status", FALSE, G_PARAM_READABLE)); "Shader compile and link status", FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
} }
void void
@ -516,7 +520,7 @@ gst_gl_shader_set_uniform_1i (GstGLShader * shader, const gchar * name,
void void
gst_gl_shader_set_uniform_matrix_4fv (GstGLShader * shader, const gchar * name, gst_gl_shader_set_uniform_matrix_4fv (GstGLShader * shader, const gchar * name,
GLsizei count, GLboolean transpose, const GLfloat* value) GLsizei count, GLboolean transpose, const GLfloat * value)
{ {
GstGLShaderPrivate *priv; GstGLShaderPrivate *priv;
GLint location = -1; GLint location = -1;
@ -543,7 +547,8 @@ gst_gl_shader_get_attribute_location (GstGLShader * shader, const gchar * name)
} }
void void
gst_gl_shader_bind_attribute_location (GstGLShader * shader, GLuint index, const gchar * name) gst_gl_shader_bind_attribute_location (GstGLShader * shader, GLuint index,
const gchar * name)
{ {
GstGLShaderPrivate *priv; GstGLShaderPrivate *priv;

View file

@ -288,7 +288,8 @@ gst_gl_bumper_class_init (GstGLBumperClass * klass)
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_LOCATION, g_param_spec_string ("location", PROP_LOCATION, g_param_spec_string ("location",
"Normal map location", "Normal map location",
"Normal map location", NULL, G_PARAM_READWRITE)); "Normal map location", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -163,7 +163,8 @@ gst_gl_differencematte_class_init (GstGLDifferenceMatteClass * klass)
PROP_LOCATION, PROP_LOCATION,
g_param_spec_string ("location", g_param_spec_string ("location",
"Background image location", "Background image location",
"Background image location", NULL, G_PARAM_READWRITE)); "Background image location", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
void void

View file

@ -264,7 +264,7 @@ gst_gl_effects_class_init (GstGLEffectsClass * klass)
g_param_spec_boolean ("hswap", g_param_spec_boolean ("hswap",
"Horizontal Swap", "Horizontal Swap",
"Switch video texture left to right, useful with webcams", "Switch video texture left to right, useful with webcams",
FALSE, G_PARAM_READWRITE)); FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
void void

View file

@ -96,18 +96,20 @@ gst_gl_filter_app_class_init (GstGLFilterAppClass * klass)
GST_GL_FILTER_CLASS (klass)->filter = gst_gl_filter_app_filter; GST_GL_FILTER_CLASS (klass)->filter = gst_gl_filter_app_filter;
g_object_class_install_property (gobject_class, PROP_CLIENT_RESHAPE_CALLBACK, g_object_class_install_property (gobject_class, PROP_CLIENT_RESHAPE_CALLBACK,
g_param_spec_pointer ("client_reshape_callback", g_param_spec_pointer ("client-reshape-callback",
"Client reshape callback", "Client reshape callback",
"Define a custom reshape callback in a client code", "Define a custom reshape callback in a client code",
G_PARAM_WRITABLE)); G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLIENT_DRAW_CALLBACK, g_object_class_install_property (gobject_class, PROP_CLIENT_DRAW_CALLBACK,
g_param_spec_pointer ("client_draw_callback", "Client draw callback", g_param_spec_pointer ("client-draw-callback", "Client draw callback",
"Define a custom draw callback in a client code", G_PARAM_WRITABLE)); "Define a custom draw callback in a client code",
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLIENT_DATA, g_object_class_install_property (gobject_class, PROP_CLIENT_DATA,
g_param_spec_pointer ("client_data", "Client data", g_param_spec_pointer ("client-data", "Client data",
"Pass data to the draw and reshape callbacks", G_PARAM_WRITABLE)); "Pass data to the draw and reshape callbacks",
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void
@ -180,7 +182,8 @@ gst_gl_filter_app_filter (GstGLFilter * filter, GstGLBuffer * inbuf,
filter->fbo, filter->depthbuffer, outbuf->texture, filter->fbo, filter->depthbuffer, outbuf->texture,
app_filter->clientDrawCallback, inbuf->width, inbuf->height, app_filter->clientDrawCallback, inbuf->width, inbuf->height,
inbuf->texture, 45, (gfloat) filter->width / (gfloat) filter->height, inbuf->texture, 45, (gfloat) filter->width / (gfloat) filter->height,
0.1, 100, GST_GL_DISPLAY_PROJECTION_PERSPECTIVE, app_filter->client_data); 0.1, 100, GST_GL_DISPLAY_PROJECTION_PERSPECTIVE,
app_filter->client_data);
} }
//default //default
else { else {

View file

@ -155,33 +155,34 @@ gst_gl_filter_cube_class_init (GstGLFilterCubeClass * klass)
g_object_class_install_property (gobject_class, PROP_RED, g_object_class_install_property (gobject_class, PROP_RED,
g_param_spec_float ("red", "Red", "Background red color", g_param_spec_float ("red", "Red", "Background red color",
0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE)); 0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_GREEN, g_object_class_install_property (gobject_class, PROP_GREEN,
g_param_spec_float ("green", "Green", "Background reen color", g_param_spec_float ("green", "Green", "Background reen color",
0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE)); 0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_BLUE, g_object_class_install_property (gobject_class, PROP_BLUE,
g_param_spec_float ("blue", "Blue", "Background blue color", g_param_spec_float ("blue", "Blue", "Background blue color",
0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE)); 0.0f, 1.0f, 0.0f, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_FOVY, g_object_class_install_property (gobject_class, PROP_FOVY,
g_param_spec_double ("fovy", "Fovy", "Field of view angle in degrees", g_param_spec_double ("fovy", "Fovy", "Field of view angle in degrees",
0.0, 180.0, 45.0, G_PARAM_WRITABLE)); 0.0, 180.0, 45.0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ASPECT, g_object_class_install_property (gobject_class, PROP_ASPECT,
g_param_spec_double ("aspect", "Aspect", g_param_spec_double ("aspect", "Aspect",
"Field of view in the x direction", 0.0, 100, 0.0, G_PARAM_WRITABLE)); "Field of view in the x direction", 0.0, 100, 0.0,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ZNEAR, g_object_class_install_property (gobject_class, PROP_ZNEAR,
g_param_spec_double ("znear", "Znear", g_param_spec_double ("znear", "Znear",
"Specifies the distance from the viewer to the near clipping plane", "Specifies the distance from the viewer to the near clipping plane",
0.0, 100.0, 0.1, G_PARAM_WRITABLE)); 0.0, 100.0, 0.1, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ZFAR, g_object_class_install_property (gobject_class, PROP_ZFAR,
g_param_spec_double ("zfar", "Zfar", g_param_spec_double ("zfar", "Zfar",
"Specifies the distance from the viewer to the far clipping plane", "Specifies the distance from the viewer to the far clipping plane",
0.0, 1000.0, 100.0, G_PARAM_WRITABLE)); 0.0, 1000.0, 100.0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -105,40 +105,41 @@ gst_gl_filter_reflected_screen_class_init (GstGLFilterReflectedScreenClass *
GST_GL_FILTER_CLASS (klass)->filter = gst_gl_filter_reflected_screen_filter; GST_GL_FILTER_CLASS (klass)->filter = gst_gl_filter_reflected_screen_filter;
g_object_class_install_property (gobject_class, PROP_ACTIVE_GRAPHIC_MODE, g_object_class_install_property (gobject_class, PROP_ACTIVE_GRAPHIC_MODE,
g_param_spec_boolean ("active_graphic_mode", g_param_spec_boolean ("active-graphic-mode",
"Activate graphic mode", "Activate graphic mode",
"Allow user to activate stencil buffer and blending.", "Allow user to activate stencil buffer and blending.",
TRUE, G_PARAM_READWRITE)); TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_SEPARATED_SCREEN, g_object_class_install_property (gobject_class, PROP_SEPARATED_SCREEN,
g_param_spec_boolean ("separated_screen", g_param_spec_boolean ("separated-screen",
"Create a separation space", "Create a separation space",
"Allow to insert a space between the two screen. Will cancel 'show floor' if active. Value are TRUE or FALSE(default)", "Allow to insert a space between the two screen. Will cancel 'show floor' if active. Value are TRUE or FALSE(default)",
FALSE, G_PARAM_READWRITE)); FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_SHOW_FLOOR, g_object_class_install_property (gobject_class, PROP_SHOW_FLOOR,
g_param_spec_boolean ("show_floor", g_param_spec_boolean ("show-floor",
"Show the support", "Show the support",
"Allow the user to show the supportive floor. Will cancel 'separated screen' if active. Value are TRUE(default) or FALSE", "Allow the user to show the supportive floor. Will cancel 'separated screen' if active. Value are TRUE(default) or FALSE",
TRUE, G_PARAM_READWRITE)); TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_FOVY, g_object_class_install_property (gobject_class, PROP_FOVY,
g_param_spec_double ("fovy", "Fovy", "Field of view angle in degrees", g_param_spec_double ("fovy", "Fovy", "Field of view angle in degrees",
0.0, 180.0, 60, G_PARAM_WRITABLE)); 0.0, 180.0, 60, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ASPECT, g_object_class_install_property (gobject_class, PROP_ASPECT,
g_param_spec_double ("aspect", "Aspect", g_param_spec_double ("aspect", "Aspect",
"Field of view in the x direction", 0.0, 100, 0.0, G_PARAM_WRITABLE)); "Field of view in the x direction", 0.0, 100, 0.0,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ZNEAR, g_object_class_install_property (gobject_class, PROP_ZNEAR,
g_param_spec_double ("znear", "Znear", g_param_spec_double ("znear", "Znear",
"Specifies the distance from the viewer to the near clipping plane", "Specifies the distance from the viewer to the near clipping plane",
0.0, 100.0, 0.1, G_PARAM_WRITABLE)); 0.0, 100.0, 0.1, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_ZFAR, g_object_class_install_property (gobject_class, PROP_ZFAR,
g_param_spec_double ("zfar", "Zfar", g_param_spec_double ("zfar", "Zfar",
"Specifies the distance from the viewer to the far clipping plane", "Specifies the distance from the viewer to the far clipping plane",
0.0, 1000.0, 100.0, G_PARAM_WRITABLE)); 0.0, 1000.0, 100.0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -132,7 +132,7 @@ gst_gl_filtersobel_class_init (GstGLFilterSobelClass * klass)
g_param_spec_boolean ("invert", g_param_spec_boolean ("invert",
"Invert the colors", "Invert the colors",
"Invert colors to get dark edges on bright background", "Invert colors to get dark edges on bright background",
FALSE, G_PARAM_READWRITE)); FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
} }
static void static void

View file

@ -212,27 +212,29 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
g_object_class_install_property (gobject_class, ARG_DISPLAY, g_object_class_install_property (gobject_class, ARG_DISPLAY,
g_param_spec_string ("display", "Display", "Display name", g_param_spec_string ("display", "Display", "Display name",
NULL, G_PARAM_READWRITE)); NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLIENT_RESHAPE_CALLBACK, g_object_class_install_property (gobject_class, PROP_CLIENT_RESHAPE_CALLBACK,
g_param_spec_pointer ("client_reshape_callback", g_param_spec_pointer ("client-reshape-callback",
"Client reshape callback", "Client reshape callback",
"Define a custom reshape callback in a client code", "Define a custom reshape callback in a client code",
G_PARAM_WRITABLE)); G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLIENT_DRAW_CALLBACK, g_object_class_install_property (gobject_class, PROP_CLIENT_DRAW_CALLBACK,
g_param_spec_pointer ("client_draw_callback", "Client draw callback", g_param_spec_pointer ("client-draw-callback", "Client draw callback",
"Define a custom draw callback in a client code", G_PARAM_WRITABLE)); "Define a custom draw callback in a client code",
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_CLIENT_DATA, g_object_class_install_property (gobject_class, PROP_CLIENT_DATA,
g_param_spec_pointer ("client_data", "Client data", g_param_spec_pointer ("client-data", "Client data",
"Pass data to the draw and reshape callbacks", G_PARAM_WRITABLE)); "Pass data to the draw and reshape callbacks",
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO, g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO,
g_param_spec_boolean ("force-aspect-ratio", g_param_spec_boolean ("force-aspect-ratio",
"Force aspect ratio", "Force aspect ratio",
"When enabled, scaling will respect original aspect ratio", FALSE, "When enabled, scaling will respect original aspect ratio", FALSE,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_PIXEL_ASPECT_RATIO, g_object_class_install_property (gobject_class, PROP_PIXEL_ASPECT_RATIO,
g_param_spec_string ("pixel-aspect-ratio", "Pixel Aspect Ratio", g_param_spec_string ("pixel-aspect-ratio", "Pixel Aspect Ratio",

View file

@ -134,89 +134,91 @@ gst_gl_overlay_class_init (GstGLOverlayClass * klass)
PROP_LOCATION, PROP_LOCATION,
g_param_spec_string ("location", g_param_spec_string ("location",
"Location of the image", "Location of the image",
"Location of the image", NULL, G_PARAM_READWRITE)); "Location of the image", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_XPOS_PNG, PROP_XPOS_PNG,
g_param_spec_int ("xpos-png", g_param_spec_int ("xpos-png",
"X position of overlay image in percents", "X position of overlay image in percents",
"X position of overlay image in percents", "X position of overlay image in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_YPOS_PNG, PROP_YPOS_PNG,
g_param_spec_int ("ypos-png", g_param_spec_int ("ypos-png",
"Y position of overlay image in percents", "Y position of overlay image in percents",
"Y position of overlay image in percents", "Y position of overlay image in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_SIZE_PNG, PROP_SIZE_PNG,
g_param_spec_int ("proportion-png", g_param_spec_int ("proportion-png",
"Relative size of overlay image, in percents", "Relative size of overlay image, in percents",
"Relative size of iverlay image, in percents", "Relative size of iverlay image, in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_XPOS_VIDEO, PROP_XPOS_VIDEO,
g_param_spec_int ("xpos-video", g_param_spec_int ("xpos-video",
"X position of overlay video in percents", "X position of overlay video in percents",
"X position of overlay video in percents", "X position of overlay video in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_YPOS_VIDEO, PROP_YPOS_VIDEO,
g_param_spec_int ("ypos-video", g_param_spec_int ("ypos-video",
"Y position of overlay video in percents", "Y position of overlay video in percents",
"Y position of overlay video in percents", "Y position of overlay video in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_SIZE_VIDEO, PROP_SIZE_VIDEO,
g_param_spec_int ("proportion-video", g_param_spec_int ("proportion-video",
"Relative size of overlay video, in percents", "Relative size of overlay video, in percents",
"Relative size of iverlay video, in percents", "Relative size of iverlay video, in percents",
0, 100, 0, G_PARAM_READWRITE)); 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_VIDEOTOP, PROP_VIDEOTOP,
g_param_spec_boolean ("video-top", g_param_spec_boolean ("video-top",
"Video-top", "Video is over png image", FALSE, G_PARAM_READWRITE)); "Video-top", "Video is over png image", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_ROTATE_PNG, PROP_ROTATE_PNG,
g_param_spec_int ("rotate_png", g_param_spec_int ("rotate-png",
"choose rotation axis for the moment only Y axis is implemented", "choose rotation axis for the moment only Y axis is implemented",
"choose rotation axis for the moment only Y axis is implemented", "choose rotation axis for the moment only Y axis is implemented",
0, 3, 0, G_PARAM_READWRITE)); 0, 3, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_ROTATE_VIDEO, PROP_ROTATE_VIDEO,
g_param_spec_int ("rotate_video", g_param_spec_int ("rotate-video",
"choose rotation axis for the moment only Y axis is implemented", "choose rotation axis for the moment only Y axis is implemented",
"choose rotation axis for the moment only Y axis is implemented", "choose rotation axis for the moment only Y axis is implemented",
0, 3, 0, G_PARAM_READWRITE)); 0, 3, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_ANGLE_PNG, PROP_ANGLE_PNG,
g_param_spec_int ("angle_png", g_param_spec_int ("angle-png",
"choose angle in axis to choosen between -90 and 90", "choose angle in axis to choosen between -90 and 90",
"choose angle in axis to choosen between -90 and 90", "choose angle in axis to choosen between -90 and 90",
-90, 90, 0, G_PARAM_READWRITE)); -90, 90, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_ANGLE_VIDEO, PROP_ANGLE_VIDEO,
g_param_spec_int ("angle_video", g_param_spec_int ("angle-video",
"choose angle in axis to choosen between -90 and 90", "choose angle in axis to choosen between -90 and 90",
"choose angle in axis to choosen between -90 and 90", "choose angle in axis to choosen between -90 and 90",
-90, 90, 0, G_PARAM_READWRITE)); -90, 90, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* /*
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_STRETCH, PROP_STRETCH,
g_param_spec_boolean ("stretch", g_param_spec_boolean ("stretch",
"Stretch the image to texture size", "Stretch the image to texture size",
"Stretch the image to fit video texture size", "Stretch the image to fit video texture size",
TRUE, G_PARAM_READWRITE)); TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
*/ */
} }

View file

@ -153,15 +153,16 @@ gst_gl_test_src_class_init (GstGLTestSrcClass * klass)
g_object_class_install_property (gobject_class, PROP_PATTERN, g_object_class_install_property (gobject_class, PROP_PATTERN,
g_param_spec_enum ("pattern", "Pattern", g_param_spec_enum ("pattern", "Pattern",
"Type of test pattern to generate", GST_TYPE_GL_TEST_SRC_PATTERN, "Type of test pattern to generate", GST_TYPE_GL_TEST_SRC_PATTERN,
GST_GL_TEST_SRC_SMPTE, G_PARAM_READWRITE)); GST_GL_TEST_SRC_SMPTE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_TIMESTAMP_OFFSET, g_param_spec_int64 ("timestamp-offset", PROP_TIMESTAMP_OFFSET, g_param_spec_int64 ("timestamp-offset",
"Timestamp offset", "Timestamp offset",
"An offset added to timestamps set on buffers (in ns)", G_MININT64, "An offset added to timestamps set on buffers (in ns)", G_MININT64,
G_MAXINT64, 0, G_PARAM_READWRITE)); G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_IS_LIVE, g_object_class_install_property (gobject_class, PROP_IS_LIVE,
g_param_spec_boolean ("is-live", "Is Live", g_param_spec_boolean ("is-live", "Is Live",
"Whether to act as a live source", FALSE, G_PARAM_READWRITE)); "Whether to act as a live source", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gstbasesrc_class->set_caps = gst_gl_test_src_setcaps; gstbasesrc_class->set_caps = gst_gl_test_src_setcaps;
gstbasesrc_class->is_seekable = gst_gl_test_src_is_seekable; gstbasesrc_class->is_seekable = gst_gl_test_src_is_seekable;

View file

@ -185,10 +185,10 @@ gst_gl_upload_class_init (GstGLUploadClass * klass)
gst_gl_upload_prepare_output_buffer; gst_gl_upload_prepare_output_buffer;
g_object_class_install_property (gobject_class, PROP_EXTERNAL_OPENGL_CONTEXT, g_object_class_install_property (gobject_class, PROP_EXTERNAL_OPENGL_CONTEXT,
g_param_spec_ulong ("external_opengl_context", g_param_spec_ulong ("external-opengl-context",
"External OpenGL context", "External OpenGL context",
"Give an external OpenGL context with which to share textures", "Give an external OpenGL context with which to share textures",
0, G_MAXULONG, 0, G_PARAM_WRITABLE)); 0, G_MAXULONG, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
} }
static void static void