5 ALL_CFLAGS
= $(CFLAGS
) -O3
-Wall
-pipe
-DHAVE_CONFIG_H
$(INCLUDES
)
6 ALL_LDFLAGS
= $(LDFLAGS
)
9 GST_LIBS
= -lgstbase-0.10
-lgstcontroller-0.10
-lgstreamer-0.10
-lgobject-2.0
-lgmodule-2.0
-lgthread-2.0
-lrt
-lxml2
-lglib-2.0
10 GST_PLUGIN_LDFLAGS
= -module
-avoid-version
-export-symbols-regex _
*\
(gst_\|Gst\|GST_\
).
*
19 GST_SHARED
= /usr
/lib
/libgstbase-0.10.so
/usr
/lib
/libgstcontroller-0.10.so \
20 /usr
/lib
/libgstreamer-0.10.so
/usr
/lib
/libgobject-2.0.so
/usr
/lib
/libgmodule-2.0.so\
21 /usr
/lib
/libgthread-2.0.so
-lrt
/usr
/lib
/libxml2.so
/usr
/lib
/libglib-2.0.so
22 GST_INCLUDES
= -I
/usr
/include/gstreamer-0.10
-I
/usr
/include/glib-2.0
-I
/usr
/lib
/glib-2.0
/include -I
/usr
/include/libxml2
23 INCLUDES
= -I.
-I..
$(GST_INCLUDES
) -I
/usr
/include/libxml2
-I
/usr
/include/liboil-0.3
25 LINKS
= -lgstbase-0.10
-lgstcontroller-0.10
-lgstreamer-0.10
-lgobject-2.0 \
26 -lgmodule-2.0
-lgthread-2.0
-lrt
-lxml2
-lglib-2.0
-lgstvideo-0.10
29 all:: libgstsparrow.so
31 libgstsparrow.so
: gstsparrow.o
32 $(CC
) -shared
-Wl
,-O1
$< $(GST_SHARED
) $(INCLUDES
) $(LINKS
) -Wl
,-soname
-Wl
,$@ \
36 rm -f
*.so
*.o
*.a
*.la
39 $(CC
) $(INCLUDES
) -c
-MD
$(ALL_CFLAGS
) $(CPPFLAGS
) -o
$@
$<
40 # $(CC) $(INCLUDES) -c $(ALL_CFLAGS) $(CPPFLAGS) -MD $<
42 sparrow_gamma_lut.h
: gamma.py
45 gstsparrow.c
: sparrow_gamma_lut.h
50 TEST_GST_ARGS
= --gst-plugin-path
=.
--gst-debug
=myelement
:5
53 gst-launch
$(TEST_GST_ARGS
) v4l2src
! ffmpegcolorspace
! sparrow
! xvimagesink
56 gst-launch
$(TEST_GST_ARGS
) videotestsrc
! ffmpegcolorspace
! sparrow
! ximagesink
58 #TEST_VIDEO_FILE=/home/douglas/media/video/rochester-pal.avi
59 TEST_VIDEO_FILE
=/home
/douglas
/tv
/newartland_2008_ep2_ps6313_part3.flv
62 gst-launch
$(TEST_GST_ARGS
) \
63 filesrc location
=$(TEST_VIDEO_FILE
) ! decodebin2 \
64 ! ffmpegcolorspace
! sparrow
! xvimagesink
66 #show filtered and unfiltered video side by side
68 gst-launch
$(TEST_GST_ARGS
) v4l2src
! tee name
=vid2 \
69 ! queue
! ffmpegcolorspace
! sparrow
! ximagesink \
70 vid2.
! queue
! ffmpegcolorspace
! ximagesink
73 gst-launch
$(TEST_GST_ARGS
) -v v4l2src
! ffmpegcolorspace
! tee name
=vid2 \
74 ! queue
! sparrow
! xvimagesink \
75 vid2.
! queue
! fdsink | \
76 gst-launch fdsrc
! queue
! fakesink
#xvimagesink