Commit graph

8474 commits

Author SHA1 Message Date
Stefan Kost
67c21b18f4 ladspa,lv2: don't fail in plugin_init when having 0 elements
If we fail, the plugin scanner will blacklist us.
2010-04-26 15:07:16 +03:00
Tim-Philipp Müller
ade37fc48e Automatic update of common submodule
From fc85867 to 4d67bd6
2010-04-23 14:41:17 +01:00
Lasse Laukkanen
30ff3bc098 camerabin: add meaningful names for queue elements inside camerabin 2010-04-21 12:25:39 +03:00
Mark Nauwelaerts
00148e3736 mpeg4videoparse: also set short configuration data in codec_data
That is, header configuration may start at Video Object (startcode),
rather than at Visual Object Sequence, which is catered for and parsed,
so let's also take it as codec_data if no more available.

Fixes (remainder of) #572551.
2010-04-20 15:39:07 +02:00
Thiago Santos
c4aaab2d59 camerabin: Avoid crashing when setting zoom in NULL
Avoid setting zoom in NULL state because the source is not
set yet and this leads to a crash. It is set on READY > PAUSED
anyway.
2010-04-19 19:06:39 -03:00
Arun Raghavan
bf586d7966 mpegvideoparse: Export profile and level in caps
This exports profile and level in caps for MPEG 2 streams.

https://bugzilla.gnome.org/show_bug.cgi?id=616078
2010-04-18 12:50:26 +02:00
Sebastian Dröge
49a85930c5 resindvdbin: Use GST_FLOW_CUSTOM_SUCCESS instead of some integer
Fixes compiler warnings with gcc 4.5.

This is the same as commit 5a51dbd.
2010-04-16 19:45:16 +02:00
Sebastian Dröge
5a51dbd093 mpegdemux: Use GST_FLOW_CUSTOM_SUCCESS instead of some integer
Fixes compiler warning with gcc 4.5.
2010-04-16 19:43:59 +02:00
Sebastian Dröge
2908515bd4 Revert "mpegpsdemux: Workaround new gcc 4.5 compiler warning"
This reverts commit a331228ecc.
2010-04-16 19:42:00 +02:00
Sebastian Dröge
cd890c6846 Revert "resindvdbin: Apply gcc 4.5 compiler warning workaround to the mpegpsdemux copy"
This reverts commit 65b0f75d1b.
2010-04-16 19:41:46 +02:00
Sebastian Dröge
4196f9290f metadata: Another workaround for enum values that are not actually member of the enum 2010-04-15 21:44:23 +02:00
Sebastian Dröge
65b0f75d1b resindvdbin: Apply gcc 4.5 compiler warning workaround to the mpegpsdemux copy
Same as a331228ecc.
2010-04-15 21:40:19 +02:00
Sebastian Dröge
aabe73387a vdpau: Initialize possibly uninitialized variable 2010-04-15 21:38:54 +02:00
Sebastian Dröge
0d79ca29f7 dvbsrc: Actually compare the state and not the state change return from _get_state() 2010-04-15 21:35:15 +02:00
Sebastian Dröge
a331228ecc mpegpsdemux: Workaround new gcc 4.5 compiler warning
gcc 4.5 warns when comparing some integer with an enum value, in
the case of GstFlowReturn this is valid though. We should later
add GST_FLOW_CUSTOM_OK1, GST_FLOW_CUSTOM_OK2, etc. after new core
is released.
2010-04-15 21:26:45 +02:00
Sebastian Dröge
1f102af33d cdxaparse: Compare the correct variable to GST_SEEK_TYPE_SET 2010-04-15 20:50:58 +02:00
Thiago Santos
27d7c799a6 configure: Drop -Wcast-align
Commit message copied from core's commit from Benjamin Otte:
246f5dba96
Apparently gcc warns that GstMiniObject is not castable to
GstEvent/Message/Buffer due to them containing 64bit variables, even
though ARM hackers claim that those only need 4byte alignment. And as
long as gcc behaves that way, this warning is not very useful.

So we'll remove the warning until this problem is fixed.

Fixes #615698
2010-04-15 10:26:45 -03:00
Adam Endrodi
822fd6a9ff camerabin: reset software zooming if not set by the photo interface
Otherwise both software (videoscal+videocrop) and hardware zooming would be used.
2010-04-15 13:22:16 +03:00
David Schleef
a27500b712 invtelecine: Fix up element details 2010-04-14 16:43:23 -07:00
David Schleef
f6f9563dc8 tools: Add element-maker
Add a script that creates elements based on any of the GStreamer
base classes.  It isn't very user friendly at the moment, one
needs to edit the script to make it work properly.  Each base class
has a template file describing what to put into the constructed
element.  Eventually, these templates should be moved to reside
with the base class source and installed to a well-known directory,
where an installed script could find them.

The template files use the .c ending so editors know they are C
source, but gst-indent doesn't handle them correctly.  So they
need to be committed with -n.  Ugh.  I'll try to figure out a fix
for that soon.
2010-04-14 16:43:23 -07:00
Thiago Santos
c48de5c594 camerabin: Add video-capture-width/height/framerate properties
Adds video-capture-width, video-capture-height and
video-capture-framerate properties to allow applications to
get/set those values. Getting was not possible before this patch,
and setting was done through the set-video-resolution-fps
action, which sets the properties and promptly resets the
video source to use them.

Fixes #614958
2010-04-13 20:37:03 -03:00
Thiago Santos
fa6adc85b4 camerabin: Adds image-capture-width/height properties
Adds image-capture-width and image-capture-height properties
to camerabin, allowing the user to get/set them. Getting was
not possible before and setting was done through the
set-image-resolution action, which shouldn't now just set
the properties.

Fixes #614958
2010-04-13 20:36:44 -03:00
Thiago Santos
a72774c5f8 camerabin: photography: Spring G_PARAM_STATIC_STRINGS
Sprinkle some G_PARAM_STATIC_STRINGS over the properties
in GstPhotography interface and in camerabin
2010-04-13 15:59:04 -03:00
Lasse Laukkanen
55d98ef488 camerabin: add block-after-capture property for viewfinder blocking
Adds block-after-capture property to block running viewfinder after capturing.
This property is useful if application wants to display capture preview and avoid
running viewfinder on background.

Based on a patch by Tommi Myöhänen <ext-tommi.1.myohanen@nokia.com>
2010-04-13 12:00:36 -03:00
Lasse Laukkanen
17617758c3 examples: camerabin: add viewfinder-filter and filter caps properties
Adds support for setting filter-caps and viewfinder-filter
properties in the gst-camerabin-test application
2010-04-13 12:00:36 -03:00
Tommi Myöhänen
6206f58c3a GstPhotography: Add flicker and focus mode settings to photography API
Adds flicker and focus mode settings to photography API and also
implement it in camerabin.
2010-04-13 12:00:35 -03:00
Teemu Katajisto
0176533c02 camerabin: add gst-camerabin-test command line test tool
gst-camerabin-test tool can be used to capture still images and
video clips using camerabin element.
2010-04-13 12:00:35 -03:00
Teemu Katajisto
ae57a90fe2 camerabin: do not set imagebin sinkpad twice
If we already have a sinkpad, do not get a new one
2010-04-13 12:00:34 -03:00
Teemu Katajisto
779330a6e5 camerabin: update unit tests
Add testing of setting and getting of camerabin property elements and
add post-processing elements to pipeline.
2010-04-13 12:00:34 -03:00
Teemu Katajisto
3ff50bf133 camerabin: add unit tests for setting different flags when capturing
Adds some tests that use flags for capturing to asure it works
with flags set or not.
2010-04-13 12:00:34 -03:00
Teemu Katajisto
78e41a24d3 camerabin: add paused video capture file validity check in unit test
Also check that the file captured in the paused capture unit test is
playable.
2010-04-13 12:00:33 -03:00
Lasse Laukkanen
16cff06a70 camerabin: add viewfinder-filter property
Adds a new property called viewfinder-filter to camerabin.
This property is used to add a filter to process the video
flow right before the viewfinder sink.

Also updates test to check property exists.
2010-04-13 12:00:33 -03:00
Lasse Laukkanen
3b788bac25 camerabin: set videotestsrc pattern to white in unit test
Lower complexity of encoding and videotestsrc redrawing in order
to prevent unit test timeouts.
2010-04-13 12:00:32 -03:00
Lasse Laukkanen
2c4417dabc camerabin: proxy video source photography interface property notify signals
If photography interface properties change in video source, notify the
application by emitting notify for respective camerabin properties.
2010-04-13 12:00:32 -03:00
Teemu Katajisto
eb3fb87710 camerabin: New unit tests
Add unit tests for camerabin properties setting and getting,
adds one for video capturing with pause.

Also does some c99 variable declaration fixes.
2010-04-13 12:00:32 -03:00
Shenghua Liu
3b6faa6404 camerabin: update unit test to have test on recording snapshot preview
Adds a small check to verify that the preview image message is
being sent on video recording.
2010-04-13 12:00:31 -03:00
Lasse Laukkanen
2c05df08b2 camerabin: add api to query supported image capture resolution
Adds new property 'image-capture-supported-caps' to GstPhotography
to query the supported image capture caps.
Also implement it in camerabin.
2010-04-13 12:00:31 -03:00
René Stadler
e2438e6cf1 camerabin: rename function and variable names, update documentation
Get rid of user_* prefix internally, use app_* instead.
2010-04-13 12:00:31 -03:00
Lasse Laukkanen
d25a9ca8aa camerabin: add video-source-filter property
Add video-source-filter property that can be used to inject application
specific gstreamer element to camerabin pipeline. The video-source-filter
element will process all frames coming from video source.

One could add image analyzers to collect information about the stream,
or add image enhancers to improve capture quality, for example.
2010-04-13 12:00:30 -03:00
Edward Hervey
14482a6580 check: Don't re-declare 'GList *buffers' in the tests
It's an external which lives in gstcheck.c. Redeclaring it makes some
compilers/architectures think the 'buffers' in the individual tests are
a different symbol... and therefore we end up comparing holodecks with
oranges.
2010-04-12 18:08:01 +02:00
Lasse Laukkanen
1c74f22264 camerabin: don't try adapting image capture resolution if no source-resize flag
If source-resize flag is disabled then set resolution to image capture caps
according to capture resolution video source element produces. Otherwise we
write wrong resolution to image metadata.
2010-04-12 16:10:49 +03:00
Lasse Laukkanen
d7a0f1f997 camerabin: Fix capturing flag handling after image has been captured
Make sure capturing flag is unset and image-captured message is sent
before sending eos event to image bin and saving the image to a file.
2010-04-12 16:07:36 +03:00
Lasse Laukkanen
c6f6f1b595 camerabin: fix setting filter-caps property in NULL state
Split _set_capsfilter_caps() into two parts so that we can call one part
regardless of the element state.
2010-04-12 16:06:07 +03:00
Lasse Laukkanen
1b10553f90 camerabin: improve image done signal emission
Use g_idle_add_full() with G_PRIORITY_HIGH to emit image done signal,
g_idle_add() is more likely to starve with higher priority events.
2010-04-12 15:15:22 +03:00
Edward Hervey
9704c00b0d configure: Remove -Wundef flag
Same fix as for #615161
2010-04-12 12:42:06 +02:00
Sebastian Dröge
bad2aae7ae vdpau: Correctly link to the local libgstvdp-0.10 by using the libtool archive 2010-04-12 09:16:19 +02:00
Thiago Santos
181c032e2f tests: camerabin: enable camerabin tests
Re-enabling camerabin tests, they are passing.
2010-04-09 09:14:02 -03:00
Sebastian Dröge
8061256ae0 Automatic update of common submodule
From fdf023d to fc85867
2010-04-09 11:22:55 +02:00
Edward Hervey
a8f9562da6 tests: Fix compilation error on macosx 2010-04-08 12:00:10 +02:00
Tim-Philipp Müller
e8d0c50901 oss4: 8-bit PCM audio caps don't need an endianness field 2010-04-08 10:45:33 +01:00