platform/upstream/gst-omx.git
13 years agoomx: Rework port reconfiguration again and only use the Bellagio specific hacks with...
Sebastian Dröge [Tue, 19 Jul 2011 08:33:54 +0000 (10:33 +0200)]
omx: Rework port reconfiguration again and only use the Bellagio specific hacks with Bellagio

We only reconfigure ports that need to be reconfigured now instead of
always all ports.

13 years agoomx: Add infrastructure to enable special hacks for broken OpenMAX implementations
Sebastian Dröge [Tue, 19 Jul 2011 08:33:15 +0000 (10:33 +0200)]
omx: Add infrastructure to enable special hacks for broken OpenMAX implementations

13 years agoomx: When acquiring a buffer from an input port always wait until all output ports...
Sebastian Dröge [Mon, 18 Jul 2011 11:10:49 +0000 (13:10 +0200)]
omx: When acquiring a buffer from an input port always wait until all output ports are reconfigured

13 years agoomxvideodec: Add support for converting between omx and gst rowstrides
Sebastian Dröge [Mon, 18 Jul 2011 06:41:20 +0000 (08:41 +0200)]
omxvideodec: Add support for converting between omx and gst rowstrides

13 years agoomx: Provide all buffers to output ports after enabling them
Sebastian Dröge [Thu, 14 Jul 2011 08:34:09 +0000 (10:34 +0200)]
omx: Provide all buffers to output ports after enabling them

13 years agoomxvideodec: Add support for NV12 / OMX_COLOR_FormatYUV420SemiPlanar
Sebastian Dröge [Thu, 14 Jul 2011 06:29:03 +0000 (08:29 +0200)]
omxvideodec: Add support for NV12 / OMX_COLOR_FormatYUV420SemiPlanar

13 years agoomxvideodec: Only flush the component ports after we passed input to them
Sebastian Dröge [Thu, 14 Jul 2011 05:58:41 +0000 (07:58 +0200)]
omxvideodec: Only flush the component ports after we passed input to them

13 years agoomxvideodec: Only change states downwards if an upper state was reached
Sebastian Dröge [Wed, 13 Jul 2011 19:19:34 +0000 (21:19 +0200)]
omxvideodec: Only change states downwards if an upper state was reached

13 years agoomx: Add support for setting the component-role
Sebastian Dröge [Wed, 13 Jul 2011 18:37:02 +0000 (20:37 +0200)]
omx: Add support for setting the component-role

13 years agoomx: Improve error reporting by formatting the error codes better and also providing...
Sebastian Dröge [Wed, 13 Jul 2011 18:22:51 +0000 (20:22 +0200)]
omx: Improve error reporting by formatting the error codes better and also providing their string representation

13 years agobuild: Dist autogen.sh
Sebastian Dröge [Wed, 13 Jul 2011 12:36:14 +0000 (14:36 +0200)]
build: Dist autogen.sh

13 years agobuild: Only require GStreamer >= 0.10.29 and GLib >= 2.16
Sebastian Dröge [Wed, 13 Jul 2011 12:35:51 +0000 (14:35 +0200)]
build: Only require GStreamer >= 0.10.29 and GLib >= 2.16

13 years agobuild: Dist gstomx.conf
Sebastian Dröge [Wed, 13 Jul 2011 12:04:47 +0000 (14:04 +0200)]
build: Dist gstomx.conf

13 years agobuild: Clean _stdint.h on "make distclean"
Sebastian Dröge [Wed, 13 Jul 2011 12:04:20 +0000 (14:04 +0200)]
build: Clean _stdint.h on "make distclean"

13 years agoomxvideodec: Fix typo
Sebastian Dröge [Wed, 13 Jul 2011 12:02:50 +0000 (14:02 +0200)]
omxvideodec: Fix typo

13 years agoomx: Dist gstomx.h
Sebastian Dröge [Wed, 13 Jul 2011 11:59:50 +0000 (13:59 +0200)]
omx: Dist gstomx.h

13 years agoomxvideodec: Set SYNCFRAME flag on the OMX buffers for non-delta units
Sebastian Dröge [Wed, 13 Jul 2011 10:46:50 +0000 (12:46 +0200)]
omxvideodec: Set SYNCFRAME flag on the OMX buffers for non-delta units

13 years agoomxvideodec: Free all pending frames when resetting the decoder
Sebastian Dröge [Wed, 13 Jul 2011 10:37:44 +0000 (12:37 +0200)]
omxvideodec: Free all pending frames when resetting the decoder

Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=654529

13 years agoomxvideodec: Handle output buffers without a corresponding GstVideoFrame more gracefully
Sebastian Dröge [Wed, 13 Jul 2011 07:59:49 +0000 (09:59 +0200)]
omxvideodec: Handle output buffers without a corresponding GstVideoFrame more gracefully

This can happen on EOS in some cases and when the input is not
properly framed.

13 years agoomxvideodec: Fix deadlock when finishing old frames that are left over by the decoder
Sebastian Dröge [Wed, 13 Jul 2011 07:31:22 +0000 (09:31 +0200)]
omxvideodec: Fix deadlock when finishing old frames that are left over by the decoder

13 years agoomxh264dec: It's called H.264, not H264
Sebastian Dröge [Tue, 12 Jul 2011 09:37:28 +0000 (11:37 +0200)]
omxh264dec: It's called H.264, not H264

13 years agoomxvideodec: Make sink/src pad template caps configurable
Sebastian Dröge [Tue, 12 Jul 2011 09:36:42 +0000 (11:36 +0200)]
omxvideodec: Make sink/src pad template caps configurable

13 years agoomx: Allow to set a preferred configuration directory with the GST_OMX_CONFIG_DIR...
Sebastian Dröge [Tue, 12 Jul 2011 09:13:50 +0000 (11:13 +0200)]
omx: Allow to set a preferred configuration directory with the GST_OMX_CONFIG_DIR environment variable

13 years agoomxvideodec: Make core/component-name and in/outport index configurable
Sebastian Dröge [Tue, 12 Jul 2011 08:55:57 +0000 (10:55 +0200)]
omxvideodec: Make core/component-name and in/outport index configurable

13 years agoomx: Add initial version of configuration system
Sebastian Dröge [Tue, 12 Jul 2011 08:05:31 +0000 (10:05 +0200)]
omx: Add initial version of configuration system

This now only registers elements that are specified in the
configuration file.

The configuration file is a keyfile in the first XDG configuration
directory with the name gstomx.conf.

13 years agoomxh264dec: Rename from omxh264videodec to omxh264dec
Sebastian Dröge [Tue, 12 Jul 2011 06:53:15 +0000 (08:53 +0200)]
omxh264dec: Rename from omxh264videodec to omxh264dec

13 years agoomxh264videodec: Require alignment=au and stream-format={avc,bytestream}
Sebastian Dröge [Tue, 12 Jul 2011 06:40:48 +0000 (08:40 +0200)]
omxh264videodec: Require alignment=au and stream-format={avc,bytestream}

13 years agobasevideodecoder: First inform subclass about resetting before resetting/freeing...
Sebastian Dröge [Mon, 11 Jul 2011 10:59:07 +0000 (12:59 +0200)]
basevideodecoder: First inform subclass about resetting before resetting/freeing all internal state

The subclass might want to access the old state.

13 years agobasevideodecoder: Track present position on discont before resetting it
Sebastian Dröge [Mon, 11 Jul 2011 10:36:42 +0000 (12:36 +0200)]
basevideodecoder: Track present position on discont before resetting it

13 years agobasevideodecoder: Also protect the list of pending frames from concurrent access...
Sebastian Dröge [Mon, 11 Jul 2011 09:52:33 +0000 (11:52 +0200)]
basevideodecoder: Also protect the list of pending frames from concurrent access when pushing all pendings events

13 years agobasevideocodec: Protect access to the list of pending frames with the object lock
Sebastian Dröge [Mon, 11 Jul 2011 09:28:40 +0000 (11:28 +0200)]
basevideocodec: Protect access to the list of pending frames with the object lock

This is required if ::finish_frame() and all buffer output happens
on a different thread than the sinkpad streaming thread.

13 years agobasevideodecoder: Set the correct lists to NULL after freeing
Sebastian Dröge [Mon, 11 Jul 2011 07:35:25 +0000 (09:35 +0200)]
basevideodecoder: Set the correct lists to NULL after freeing

13 years agobasevideodecoder: Work with a copy of the GstVideoState in setcaps until the caps...
Sebastian Dröge [Mon, 11 Jul 2011 06:54:53 +0000 (08:54 +0200)]
basevideodecoder: Work with a copy of the GstVideoState in setcaps until the caps are accepted

Also fix a refcount problem with the codec_data.

13 years agoomxh264videodec: Add h.264 video decoder
Sebastian Dröge [Tue, 12 Jul 2011 06:34:44 +0000 (08:34 +0200)]
omxh264videodec: Add h.264 video decoder

13 years agoomxmpeg4videodec: Fix debug category name
Sebastian Dröge [Tue, 12 Jul 2011 06:29:15 +0000 (08:29 +0200)]
omxmpeg4videodec: Fix debug category name

13 years agobasevideo: Move the utils from the codec header to its own header
Sebastian Dröge [Sat, 9 Jul 2011 09:41:42 +0000 (11:41 +0200)]
basevideo: Move the utils from the codec header to its own header

13 years agobasevideo: Use GSlice for allocating GstVideoFrame and don't duplicate code in the...
Sebastian Dröge [Sat, 9 Jul 2011 09:32:06 +0000 (11:32 +0200)]
basevideo: Use GSlice for allocating GstVideoFrame and don't duplicate code in the decoder base class

13 years agoomxvideodec: Use the destroy notify to free the coder_hook
Sebastian Dröge [Sat, 9 Jul 2011 09:05:37 +0000 (11:05 +0200)]
omxvideodec: Use the destroy notify to free the coder_hook

13 years agobasevideo: Add destroy notify for the coder_hook to prevent memory leaks
Sebastian Dröge [Sat, 9 Jul 2011 08:57:52 +0000 (10:57 +0200)]
basevideo: Add destroy notify for the coder_hook to prevent memory leaks

Fixes bug #654293.

13 years agobasevideo: Fix GType names to not conflict with the public video base classes
Sebastian Dröge [Sat, 9 Jul 2011 08:44:16 +0000 (10:44 +0200)]
basevideo: Fix GType names to not conflict with the public video base classes

It's still not possible to include headers of both in the same file
or compile/link both into the same plugin but that shouldn't be
necessary anyway.

13 years agoomxvideodec: Fix some minor memory leaks
Sebastian Dröge [Fri, 8 Jul 2011 13:42:56 +0000 (15:42 +0200)]
omxvideodec: Fix some minor memory leaks

13 years agoomx: Rework port reconfiguration
Sebastian Dröge [Fri, 8 Jul 2011 13:25:07 +0000 (15:25 +0200)]
omx: Rework port reconfiguration

We always reconfigure all ports now if the settings of one
port changes to prevent lots of race conditions, dropped
frames and similar issues.

13 years agoomxvideodec: Use the frames storage of the base class instead of implementing our own
Sebastian Dröge [Fri, 8 Jul 2011 11:16:45 +0000 (13:16 +0200)]
omxvideodec: Use the frames storage of the base class instead of implementing our own

They could get out of sync and we could store already destroyed frames.

13 years agoomx: Clarify GQueue/GPtrArray element types
Sebastian Dröge [Thu, 7 Jul 2011 10:51:03 +0000 (12:51 +0200)]
omx: Clarify GQueue/GPtrArray element types

13 years agoomx: Add more checks to acquire_buffer() and return the current state additional...
Sebastian Dröge [Thu, 7 Jul 2011 10:23:24 +0000 (12:23 +0200)]
omx: Add more checks to acquire_buffer() and return the current state additional to the buffer

Also refactor the code flow in the video decoder for this. This makes
the usage of acquire_buffer() easier and more atomic.

13 years agoomxvideodec: Also flush/unflush the input port when changing the state PAUSED<->READY
Sebastian Dröge [Thu, 7 Jul 2011 10:22:57 +0000 (12:22 +0200)]
omxvideodec: Also flush/unflush the input port when changing the state PAUSED<->READY

13 years agoomx: Don't broadcast port->port_cond after allocating buffers successfully
Sebastian Dröge [Thu, 7 Jul 2011 10:21:31 +0000 (12:21 +0200)]
omx: Don't broadcast port->port_cond after allocating buffers successfully

Allocating buffers must happen while no thread is waiting for the
cond and especially must happen from the thread that would acquire
buffers from the port.

13 years agoomxvideodec: Don't leak the codec_data after sending it
Sebastian Dröge [Thu, 7 Jul 2011 09:27:15 +0000 (11:27 +0200)]
omxvideodec: Don't leak the codec_data after sending it

13 years agoomx: Always check if the component is in an error state before waiting for a conditio...
Sebastian Dröge [Thu, 7 Jul 2011 08:27:31 +0000 (10:27 +0200)]
omx: Always check if the component is in an error state before waiting for a condition variable to be signalled

Otherwise we might wait forever because nothing is going to signal
the condition variable anymore.

13 years agoomx: Always hold port->port_lock before signalling port->port_cond when notifying...
Sebastian Dröge [Thu, 7 Jul 2011 08:22:12 +0000 (10:22 +0200)]
omx: Always hold port->port_lock before signalling port->port_cond when notifying about errors

Otherwise a port might be in the critical section, has checked the error state
already but waits after port->port_cond is signalled, which will lead
to a deadlock.

13 years agoomxvideodec: Remove reconfiguration test hack
Sebastian Dröge [Thu, 7 Jul 2011 08:07:43 +0000 (10:07 +0200)]
omxvideodec: Remove reconfiguration test hack

13 years agoomx: Improve debug output a bit
Sebastian Dröge [Wed, 6 Jul 2011 11:27:12 +0000 (13:27 +0200)]
omx: Improve debug output a bit

13 years agoomx: Always try to deallocate buffers, even if there's a component error
Sebastian Dröge [Wed, 6 Jul 2011 11:26:51 +0000 (13:26 +0200)]
omx: Always try to deallocate buffers, even if there's a component error

13 years agoomx: Use G_USEC_PER_SEC for clarity instead of 1000000
Sebastian Dröge [Wed, 6 Jul 2011 11:26:01 +0000 (13:26 +0200)]
omx: Use G_USEC_PER_SEC for clarity instead of 1000000

13 years agoomxvideodec: Error out if the GStreamer allocated buffer is smaller than the OpenMAX...
Sebastian Dröge [Wed, 6 Jul 2011 11:19:15 +0000 (13:19 +0200)]
omxvideodec: Error out if the GStreamer allocated buffer is smaller than the OpenMAX output buffer

Usually this must never happen but currently it happens during reconfigurations
because of a race condition. Still it's better than crashing.

13 years agoomx: Don't use port_def.bEnabled to check if the Enable/Disable command is finished
Sebastian Dröge [Wed, 6 Jul 2011 08:40:13 +0000 (10:40 +0200)]
omx: Don't use port_def.bEnabled to check if the Enable/Disable command is finished

bEnabled should be set immediately after sending the command, it's only
Bellagio that waits until the command is finished before setting it.

13 years agoomxvideodec: Remove obsolete FIXME comment
Sebastian Dröge [Wed, 6 Jul 2011 08:30:11 +0000 (10:30 +0200)]
omxvideodec: Remove obsolete FIXME comment

13 years agoomx: Improve error handling and reporting
Sebastian Dröge [Wed, 6 Jul 2011 08:29:54 +0000 (10:29 +0200)]
omx: Improve error handling and reporting

13 years agoomxvideodec: Make the inport and outport index configurable by the subclass
Sebastian Dröge [Wed, 6 Jul 2011 06:48:37 +0000 (08:48 +0200)]
omxvideodec: Make the inport and outport index configurable by the subclass

13 years agoomx: Add initial version of OpenMAX framework, video decoder base class and MPEG4...
Sebastian Dröge [Tue, 28 Jun 2011 06:51:23 +0000 (08:51 +0200)]
omx: Add initial version of OpenMAX framework, video decoder base class and MPEG4 video decoder

This currently hardcodes a lot of stuff but works at least.

Also adds a generic framework for handling OpenMAX cores, components
and ports.

13 years agobasevideodecoder: Don't reorder serialized src events
Sebastian Dröge [Tue, 28 Jun 2011 09:47:25 +0000 (11:47 +0200)]
basevideodecoder: Don't reorder serialized src events

And allow to drop EOS by the subclass if ::finish returns
DROPPED.

Fixes bug #653544.

13 years agobasevideo: Add the caps to the GstVideoState and clean up caps/codec_data properly
Sebastian Dröge [Mon, 27 Jun 2011 07:41:40 +0000 (09:41 +0200)]
basevideo: Add the caps to the GstVideoState and clean up caps/codec_data properly

13 years agobasevideo: Add video encoder/decoder base classes from gst-plugins-bad
Sebastian Dröge [Mon, 27 Jun 2011 07:37:03 +0000 (09:37 +0200)]
basevideo: Add video encoder/decoder base classes from gst-plugins-bad

13 years agoopenmax: Add OpenMAX IL 1.1.2 headers
Sebastian Dröge [Tue, 21 Jun 2011 09:17:35 +0000 (11:17 +0200)]
openmax: Add OpenMAX IL 1.1.2 headers

13 years agoInitial commit with build system CHANGELOG_START
Sebastian Dröge [Tue, 21 Jun 2011 08:52:13 +0000 (10:52 +0200)]
Initial commit with build system