mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
[248/906] fix msvc warnings and update CMake build, win32 CodeBlocks build and vs8 build
This commit is contained in:
parent
0ac54fdc55
commit
25af2c116e
2 changed files with 32 additions and 31 deletions
|
@ -18,38 +18,39 @@ include_directories(AFTER
|
||||||
|
|
||||||
add_library (gstopengl SHARED
|
add_library (gstopengl SHARED
|
||||||
gstopengl.c
|
gstopengl.c
|
||||||
gstglimagesink.c
|
gstglimagesink.c
|
||||||
gstglimagesink.h
|
gstglimagesink.h
|
||||||
gstglupload.c
|
gstglupload.c
|
||||||
gstgldownload.c
|
gstgldownload.c
|
||||||
gstglfilterblur.c
|
gstglfilterblur.c
|
||||||
gstglfiltercube.c
|
gstglfiltercube.c
|
||||||
gstglfilterlaplacian.c
|
gstglfilterlaplacian.c
|
||||||
gstglfiltersobel.c
|
gstglfiltersobel.c
|
||||||
gstglfilterglass.c
|
gstglfilterglass.c
|
||||||
gstglfilterapp.c
|
gstglfilterapp.c
|
||||||
gstglcolorscale.c
|
gstglcolorscale.c
|
||||||
gltestsrc.c
|
gltestsrc.c
|
||||||
gstgltestsrc.c
|
gstgltestsrc.c
|
||||||
gstgleffects.c
|
gstgleffects.c
|
||||||
gstglpixbufoverlay.c
|
gstglpixbufoverlay.c
|
||||||
gstgldifferencematte.c
|
gstgldifferencematte.c
|
||||||
gstglbumper.c
|
gstglbumper.c
|
||||||
effects/gstgleffectssources.c
|
effects/gstgleffectssources.c
|
||||||
effects/gstgleffectidentity.c
|
effects/gstgleffectidentity.c
|
||||||
effects/gstgleffectmirror.c
|
effects/gstgleffectmirror.c
|
||||||
effects/gstgleffectsqueeze.c
|
effects/gstgleffectsqueeze.c
|
||||||
effects/gstgleffectstretch.c
|
effects/gstgleffectstretch.c
|
||||||
effects/gstgleffecttunnel.c
|
effects/gstgleffecttunnel.c
|
||||||
effects/gstgleffectfisheye.c
|
effects/gstgleffectfisheye.c
|
||||||
effects/gstgleffecttwirl.c
|
effects/gstgleffecttwirl.c
|
||||||
effects/gstgleffectbulge.c
|
effects/gstgleffectbulge.c
|
||||||
effects/gstgleffectsquare.c
|
effects/gstgleffectsquare.c
|
||||||
effects/gstgleffectlumatocurve.c
|
effects/gstgleffectlumatocurve.c
|
||||||
effects/gstgleffectrgbtocurve.c
|
effects/gstgleffectrgbtocurve.c
|
||||||
effects/gstgleffectsin.c
|
effects/gstgleffectsin.c
|
||||||
effects/gstgleffectglow.c)
|
effects/gstgleffectglow.c
|
||||||
|
effects/gstgleffectxray.c)
|
||||||
|
|
||||||
target_link_libraries(gstopengl
|
target_link_libraries(gstopengl
|
||||||
general gstgl
|
general gstgl
|
||||||
general ${GTK2_LIBRARIES})
|
general ${GTK2_LIBRARIES})
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
#include <gstgleffectlumatocurve.h>
|
#include <gstgleffectlumatocurve.h>
|
||||||
|
|
||||||
/* Gaussian Kernel: std = 1.200000, size = 9x1 */
|
/* Gaussian Kernel: std = 1.200000, size = 9x1 */
|
||||||
static gfloat gauss_kernel[9] = { 0.001285, 0.014607, 0.082898,
|
static gfloat gauss_kernel[9] = { 0.001285f, 0.014607f, 0.082898f,
|
||||||
0.234927, 0.332452, 0.234927,
|
0.234927f, 0.332452f, 0.234927f,
|
||||||
0.082898, 0.014607, 0.001285 };
|
0.082898f, 0.014607f, 0.001285f };
|
||||||
/* Normalization Constant = 0.999885 */
|
/* Normalization Constant = 0.999885 */
|
||||||
|
|
||||||
static void gst_gl_effects_xray_step_one (gint width, gint height, guint texture, gpointer data)
|
static void gst_gl_effects_xray_step_one (gint width, gint height, guint texture, gpointer data)
|
||||||
|
@ -66,7 +66,7 @@ gst_gl_effects_xray_step_two (gint width, gint height, guint texture, gpointer d
|
||||||
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
||||||
|
|
||||||
gst_gl_shader_set_uniform_1fv (shader, "kernel", 9, gauss_kernel);
|
gst_gl_shader_set_uniform_1fv (shader, "kernel", 9, gauss_kernel);
|
||||||
gst_gl_shader_set_uniform_1f (shader, "norm_const", 0.999885);
|
gst_gl_shader_set_uniform_1f (shader, "norm_const", 0.999885f);
|
||||||
gst_gl_shader_set_uniform_1f (shader, "norm_offset", 0.0f);
|
gst_gl_shader_set_uniform_1f (shader, "norm_offset", 0.0f);
|
||||||
|
|
||||||
gst_gl_effects_draw_texture (effects, texture);
|
gst_gl_effects_draw_texture (effects, texture);
|
||||||
|
@ -102,7 +102,7 @@ gst_gl_effects_xray_step_three (gint width, gint height, guint texture, gpointer
|
||||||
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
||||||
|
|
||||||
gst_gl_shader_set_uniform_1fv (shader, "kernel", 9, gauss_kernel);
|
gst_gl_shader_set_uniform_1fv (shader, "kernel", 9, gauss_kernel);
|
||||||
gst_gl_shader_set_uniform_1f (shader, "norm_const", 0.999885);
|
gst_gl_shader_set_uniform_1f (shader, "norm_const", 0.999885f);
|
||||||
gst_gl_shader_set_uniform_1f (shader, "norm_offset", 0.0f);
|
gst_gl_shader_set_uniform_1f (shader, "norm_offset", 0.0f);
|
||||||
|
|
||||||
gst_gl_effects_draw_texture (effects, texture);
|
gst_gl_effects_draw_texture (effects, texture);
|
||||||
|
|
Loading…
Reference in a new issue