static void gst_gl_filter_reflected_screen_callback (gint width, gint height,
guint texture, gpointer stuff);
-static GLfloat LightPos[] = { 4.0f, -4.0f, 6.0f, 1.0f }; // Light Position
-static GLfloat LightAmb[] = { 4.0f, 4.0f, 4.0f, 1.0f }; // Ambient Light
-static GLfloat LightDif[] = { 1.0f, 1.0f, 1.0f, 1.0f }; // Diffuse Light
+static const GLfloat LightPos[] = { 4.0f, -4.0f, 6.0f, 1.0f }; // Light Position
+static const GLfloat LightAmb[] = { 4.0f, 4.0f, 4.0f, 1.0f }; // Ambient Light
+static const GLfloat LightDif[] = { 1.0f, 1.0f, 1.0f, 1.0f }; // Diffuse Light
static void
gst_gl_filter_reflected_screen_class_init (GstGLFilterReflectedScreenClass *
GstBuffer *outbuf;
- UploadMethod *method;
+ const UploadMethod *method;
gpointer method_impl;
int method_i;
};
g_free (impl);
}
-static UploadMethod _gl_memory_upload = {
+static const UploadMethod _gl_memory_upload = {
"GLMemory",
METHOD_FLAG_CAN_SHARE_CONTEXT,
&_gl_memory_upload_new,
g_free (impl);
}
-static UploadMethod _egl_image_upload = {
+static const UploadMethod _egl_image_upload = {
"EGLImage",
0,
&_egl_image_upload_new,
g_free (upload);
}
-static UploadMethod _upload_meta_upload = {
+static const UploadMethod _upload_meta_upload = {
"UploadMeta",
METHOD_FLAG_CAN_SHARE_CONTEXT,
&_upload_meta_upload_new,
g_free (raw);
}
-static UploadMethod _raw_data_upload = {
+static const UploadMethod _raw_data_upload = {
"Raw Data",
0,
&_raw_data_upload_new,
&_raw_data_upload_free
};
-static UploadMethod *upload_methods[] = { &_gl_memory_upload,
+static const UploadMethod *upload_methods[] = { &_gl_memory_upload,
#if GST_GL_HAVE_PLATFORM_EGL
&_egl_image_upload,
#endif