Commit f89b72c05f0f1810528f7fe24c41f8b552324c5e
- Diff rendering mode:
- inline
- side by side
Makefile.am
(1 / 1)
|   | |||
| 1 | SUBDIRS = effects src | ||
| 1 | SUBDIRS = effects src tests | ||
| 2 | 2 | ||
| 3 | 3 | DIST_SUBDIRS = $(SUBDIRS) po | |
| 4 | 4 |
configure.ac
(1 / 0)
|   | |||
| 37 | 37 | effects/Makefile | |
| 38 | 38 | po/Makefile.in | |
| 39 | 39 | src/Makefile | |
| 40 | tests/Makefile | ||
| 40 | 41 | ]) |
tests/Makefile.am
(10 / 0)
|   | |||
| 1 | AM_CFLAGS = \ | ||
| 2 | -I@top_srcdir@/src \ | ||
| 3 | $(GSTREAMER_CFLAGS) | ||
| 4 | |||
| 5 | noinst_PROGRAMS = test-double | ||
| 6 | test_double_SOURCES = test-double.c | ||
| 7 | |||
| 8 | test_double_LDADD = \ | ||
| 9 | $(top_builddir)/src/libgve.la \ | ||
| 10 | $(GSTREAMER_LIBS) |
tests/test-double.c
(20 / 0)
|   | |||
| 1 | #include "gve-video-effects.h" | ||
| 2 | #include <glib.h> | ||
| 3 | |||
| 4 | /*Use: ./test-double <effect-file>*/ | ||
| 5 | int main (int argc, char *argv[]) | ||
| 6 | { | ||
| 7 | GValue value = {0}; | ||
| 8 | g_type_init (); | ||
| 9 | gst_init (&argc, &argv); | ||
| 10 | |||
| 11 | GVEVideoEffect *effect = gve_video_effect_new_from_file (argv[1]); | ||
| 12 | |||
| 13 | gve_video_effect_get_effect (effect); | ||
| 14 | g_value_init (&value, G_TYPE_DOUBLE); | ||
| 15 | g_value_set_double (&value, 0.5); | ||
| 16 | g_assert (effect); | ||
| 17 | gve_video_effect_set_property (effect, "angriness", &value); | ||
| 18 | |||
| 19 | return 0; | ||
| 20 | } |

