Commit graph

11994 commits

Author SHA1 Message Date
David Schleef
aca69cbf63 decklinksink: Add device property
Also add property probe for device property, similar to decklinksrc.
2012-03-17 15:07:49 -07:00
blake tregre
18475dd0c2 decklinksrc: make sure we can accept caps before returning true
caps are determined by the plugin's properties, so we should check the
incoming caps to see if they agree.  Fixes: #667722.
2012-03-17 14:24:51 -07:00
blake tregre
409e8dcc90 decklinksrc: disable pull mode
decklink device doesn't support any pull mode related functionality.
it's more like a live source, you see. Fixes: #667720.
2012-03-17 14:24:51 -07:00
blake tregre
86eeca91de decklinksrc: push new new segment event to all pads
Take care to push the event to all pads, but favor the video src pad.
Fixes: #667716.
2012-03-17 14:24:51 -07:00
David Schleef
c13e4eacc2 decklinksrc: Implement latency query
Implement latency query.  Fix memleak releasing resources.
2012-03-17 14:24:51 -07:00
David Schleef
83e2ca791c decklink: reindent 2012-03-17 14:24:51 -07:00
blake tregre
e37ce96b2c decklinksrc: handle flow return properly and provide better message
* sys/decklink/gstdecklinksrc.cpp:
2012-03-17 14:24:51 -07:00
David Schleef
7cd0ac046a decklink: Add property probing
Renames the subdevice property to just device, and has it
return the number of devices in the system in response to
a probe. This is useful both for using multiple capture
cards, and for detecting whether it's worth adding the
element to a pipeline.

Also cleans up the property descriptions.
2012-03-17 14:24:42 -07:00
David Schleef
b45c206647 element-templates: chain query/event functions
Chain up to parent class.  This fix should be done to all of the
templates.
2012-03-17 12:18:47 -07:00
David Schleef
67f546968c inter: Add channel property
The channel property allows multiple intersrc/sink pairs to find
each other.  It's a free-form text string that must match among
various inter elements.  Also fixed up documentation and latency
handling.
2012-03-17 12:18:47 -07:00
Tim-Philipp Müller
9aa9903430 gst-element-maker: fix -template-video caps string
Don't forget separator.
2012-03-17 16:09:31 +00:00
Tim-Philipp Müller
3991742d77 gst-element-maker: add video pad template and use it in videofilter class
Would be nicer if one could just supplement the generic template
from the element template though.

Also, I would really have liked to just add those sections from the
pads template into the element templet directly (so I can cater for
src template caps == sink template caps), but that didn't seem to
work.
2012-03-17 16:05:20 +00:00
Tim-Philipp Müller
48398114e6 gst-element-maker: add {src,sink}pad-template, since many base classes create pads for us
And use them in the videofilter template.
2012-03-17 15:49:45 +00:00
Tim-Philipp Müller
e504dc3f6b tools: add videofilter template for gst-element-maker 2012-03-17 15:16:29 +00:00
Tim-Philipp Müller
692bf9ba63 opencv: fix configure check and build with opencv 2.1
AC_CHECK_HEADERS() calls action-if-not-found also if just one of
the headers checked for is missing, which is not what we wanted.
Also, check for highgui_c.h instead of highgui.hpp.

https://bugzilla.gnome.org/show_bug.cgi?id=672226
2012-03-17 14:53:50 +00:00
Wim Taymans
bc38bc27b7 don't pass random pointers to pull_range 2012-03-16 21:47:39 +01:00
Stefan Sauer
486ddd38cf facedetect: initialize some arbitrary variable that gcc-4.6 can track properly
The access to them is clearly guarded by the booleans though.
2012-03-16 17:07:46 +01:00
Stefan Sauer
99fb8e941a opencv: cosmetic code changes
Check for the availability of the detectors in the processing function to avoid
setting up the ROIs. Use the booleans for have_xxx more.
2012-03-16 13:14:48 +01:00
Stefan Sauer
d4509a2fda opencv: use opencv prefix from pkgconfig to lookup datafiles
Don't hardconde /usr to lookup datafiles (such as haar cascades).
2012-03-16 12:58:56 +01:00
Vincent Penquerc'h
9ebacafc6a rsndvdsrc: post a message with title number and durations
https://bugzilla.gnome.org/show_bug.cgi?id=672165
2012-03-16 11:27:17 +00:00
Stefan Sauer
f8cf7bf973 faceoverlay: remove blank line in gtk-doc comment 2012-03-16 12:10:10 +01:00
Stefan Sauer
2311a0ac0e facedetect: skip detection for unavailable detectors 2012-03-16 12:04:11 +01:00
Stefan Sauer
6fde848ada facedetect: move the detector to an own method to hide the ugly ifdefs
This improves the readability in the actual processing function.
2012-03-15 23:17:55 +01:00
Stefan Sauer
fbcee587f4 facedetect: always send facedetect message
The application might like to know, when we don't see the face anymore.
2012-03-15 23:08:40 +01:00
Stefan Sauer
288c6fa26c faceoverlay: code cleanups
Use glib types and simply expressions in the message handler.
2012-03-15 22:58:11 +01:00
Stefan Sauer
a31a698943 faceoverlay: don't access message fields directly 2012-03-15 22:49:51 +01:00
Stefan Sauer
3d7c8aad70 facedetect: don't skip faces
Skipping faces at this point makes us lie about the num-ber of faces and also
causes leaks.
2012-03-15 22:34:45 +01:00
Wim Taymans
ed82d408b1 update for bufferpool changes 2012-03-15 22:11:32 +01:00
Wim Taymans
583f5d1dc7 update for allocation query changes 2012-03-15 20:38:27 +01:00
Tim-Philipp Müller
e6c9b60851 rsvgoverlay: cosmetic change
Rename PROP_FILENAME to PROP_LOCATION to match the name of
the property. Add some debug logging.
2012-03-15 18:28:01 +00:00
Tim-Philipp Müller
3f07ebcc37 faceoverlay: clear overlay if the face disappears 2012-03-15 18:26:24 +00:00
Tim-Philipp Müller
36a6a13f1c faceoverlay: add some locking for properties, free previous location when it changes 2012-03-15 18:21:37 +00:00
Tim-Philipp Müller
3bbb0387c4 faceoverlay: don't make rsvgoverlay reload the SVG for every single frame
Only set location on rsvgoverlay if it has changed.
2012-03-15 18:08:09 +00:00
Tim-Philipp Müller
549447d288 faceoverlay: move face handling into own function and handle 0 face count
When a face disappears, we seem to get a message from facedetect with
a face count of 0, which we want to just ignore instead of trying to
access face #-1, which causes nasty warnings.
2012-03-15 17:47:58 +00:00
Tim-Philipp Müller
55b0f1e601 faceoverlay: fix pad templates
Use generic and unspecififed rgb/caps for now. The exact caps
supported depend on the facedetect element and rsvgoverlay. It's
not clear how this worked before, since facedetect only accepts
24-bit RGB, but the caps advertised 32-bit ARGB/BGRA. In any case,
we don't want to force anything really, so that if any of those
elements acquires support for additional formats we pick those up
automatically.
2012-03-15 17:42:56 +00:00
Tim-Philipp Müller
e1e827d364 rsvgoverlay: fix crash due to double adapter unref 2012-03-15 17:26:14 +00:00
Tim-Philipp Müller
d405ea2e63 faceoverlay: fix weird pad creation code
The element would create normal pads in its instance_init function,
and then later in NULL->READY create the elements it needs, remove
the pads created in the instance_init function, and add new ghost
pads instead. Not without saving the external peer pads of the old
pads of course, which it would promptly re-link to the new ghost
pads. Do all of that a bit differently.

Fixes the generic/states.check unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=670588
2012-03-15 16:52:44 +00:00
Tim-Philipp Müller
fead44ad12 faceoverlay: minor cosmetic changes
Remove template maker comments, use our defines for
package name and origin.
2012-03-15 15:48:53 +00:00
Wim Taymans
76460a0d7a update for bufferpool api change 2012-03-15 14:08:29 +01:00
Wim Taymans
6cbb840385 update for memory api changes 2012-03-15 13:37:36 +01:00
Tim-Philipp Müller
25cc93139d .gitignore: ignore more test binaries and stamp files 2012-03-15 00:13:40 +00:00
Tim-Philipp Müller
61ca28696f opencv: make build with opencv 2.3.1 as in debian sid
Where highgui.h doesn't exist any more, but only opencv2/highgui/highgui.hpp.
Also, not quite sure why we're checking for cvaux.h, it's not used anywhere.
2012-03-15 00:05:41 +00:00
Wim Taymans
9f700cc3c4 take padding into account 2012-03-14 19:56:59 +01:00
Mark Nauwelaerts
0a8a8aac52 mpeg2enc: also clear initialized mutex and cond 2012-03-14 17:48:40 +01:00
Mark Nauwelaerts
cb6b590b0c flite: adjust to some modified caps related API changes 2012-03-14 11:20:18 +01:00
Dmitry Ketov
25d92711bc winscreencap: Integrate into autotools build system
Fixes bug #672031.
2012-03-14 10:25:05 +01:00
Tim-Philipp Müller
7f70d42837 inter: fix warnings when gst-inspecting interaudio{src,sink}
The channel property isn't implemented, so don't register it.
2012-03-13 20:59:00 +00:00
Sreerenj Balachandran
689bf4d392 waylandsink: Fix warnings, proper structuring, dead code removal, adding doc section. 2012-03-13 14:44:00 +01:00
Sreerenj Balachandran
5bbdeb321c configure.ac: move spc plugin to NON_PORTED list(Fix build error) 2012-03-13 12:31:16 +01:00
Wim Taymans
3fae1ff05d use gst_caps_merge instead of gst_caps_union 2012-03-13 09:54:14 +01:00