platform/upstream/gstreamer.git
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
Sebastian Dröge [Tue, 21 Jun 2011 08:52:13 +0000 (10:52 +0200)]
Initial commit with build system