Sebastian Dröge
cf6f14d03c
omxvideodec: Move locking at the correct place
2011-10-20 14:30:38 +02:00
Sebastian Dröge
bb1dd8aaba
omxvideodec: Add API for subclasses to prepare/convert frames
2011-09-29 10:44:20 +02:00
Sebastian Dröge
ab9ce7db7d
omxvideodec: Switch to Idle first and wait before switching to Loaded and deallocating buffers
...
Allocating buffers before the Idle state is reached can lead to crashes.
2011-09-28 10:35:37 +02:00
Sebastian Dröge
792cdb7d1f
omxvideodec: New hack for QCOM to recreate the component instead of reconfiguring it on caps changes
2011-09-28 10:35:31 +02:00
Sebastian Dröge
5659bd3b4f
omxvideodec: Add some more checks for OMX buffer sizes
2011-09-23 16:40:30 +02:00
Sebastian Dröge
f0fe1148b7
omx: Wait until the Executing state is reached before calling OMX_FillThisBuffer()
...
This correctly works around the QCOM race condition that happens when calling
FTB after setting the new state and before reaching it.
2011-09-14 10:16:41 +02:00
Sebastian Dröge
3ba45aa0af
omxvideodec: Negotiate video format with downstream and what the component claims to support
2011-09-02 14:43:43 +02:00
Sebastian Dröge
e583c48222
omxvideodec: Release basevideocodec stream lock while waiting for a buffer
...
This prevents deadlocks if no empty input buffers are available and
releasing input buffers requires the loop function to handle some
output buffers first.
2011-08-19 09:23:54 +02:00
Sebastian Dröge
7a09447406
omxvideodec: Use "video/x-raw-yuv" as src template caps instead of strict I420 caps
2011-08-10 10:21:15 +02:00
Sebastian Dröge
2ea5bdf553
omxvideodec: Set the state back to StateLoaded even if an error happened
2011-08-10 08:52:25 +02:00
Sebastian Dröge
febc2d99cb
omxvideodec: Don't abort if the color format is not supported but give a useful error message
2011-08-03 13:10:33 +02:00
Sebastian Dröge
8ac445abd8
omxvideo{enc,dec}: Only set/unset flushing state on ports if they were created already
2011-07-25 13:19:06 +02:00
Sebastian Dröge
87587dd6d2
omxvideodec: Try harder to deallocate the buffers after errors happened
2011-07-25 10:48:58 +02:00
Sebastian Dröge
71d176f71a
omx: Improve debug output a bit
2011-07-19 12:29:51 +02:00
Sebastian Dröge
b6558570bf
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.
2011-07-19 10:33:54 +02:00
Sebastian Dröge
4616d804ac
omx: Add infrastructure to enable special hacks for broken OpenMAX implementations
2011-07-19 10:33:15 +02:00
Sebastian Dröge
9377aefb87
omxvideodec: Add support for converting between omx and gst rowstrides
2011-07-18 08:41:20 +02:00
Sebastian Dröge
41feed55b7
omxvideodec: Add support for NV12 / OMX_COLOR_FormatYUV420SemiPlanar
2011-07-14 08:29:03 +02:00
Sebastian Dröge
961445aa1b
omxvideodec: Only flush the component ports after we passed input to them
2011-07-14 07:58:41 +02:00
Sebastian Dröge
252624c7cc
omxvideodec: Only change states downwards if an upper state was reached
2011-07-13 21:19:34 +02:00
Sebastian Dröge
f0cbbad0f1
omx: Add support for setting the component-role
2011-07-13 20:37:02 +02:00
Sebastian Dröge
0a9fe2f146
omx: Improve error reporting by formatting the error codes better and also providing their string representation
2011-07-13 20:22:51 +02:00
Sebastian Dröge
8a78da68a6
omxvideodec: Fix typo
2011-07-13 14:02:50 +02:00
Sebastian Dröge
fb0ca24654
omxvideodec: Set SYNCFRAME flag on the OMX buffers for non-delta units
2011-07-13 12:46:50 +02:00
Sebastian Dröge
f5690ff412
omxvideodec: Free all pending frames when resetting the decoder
...
Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=654529
2011-07-13 12:37:44 +02:00
Sebastian Dröge
af159705c9
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.
2011-07-13 10:02:20 +02:00
Sebastian Dröge
1b08dfa2a6
omxvideodec: Fix deadlock when finishing old frames that are left over by the decoder
2011-07-13 09:31:22 +02:00
Sebastian Dröge
a24cdd41bc
omxvideodec: Make sink/src pad template caps configurable
2011-07-12 11:36:42 +02:00
Sebastian Dröge
113d18caea
omxvideodec: Make core/component-name and in/outport index configurable
2011-07-12 11:04:16 +02:00
Sebastian Dröge
2042e08b33
omxvideodec: Use the destroy notify to free the coder_hook
2011-07-09 11:06:06 +02:00
Sebastian Dröge
9c9315059e
omxvideodec: Fix some minor memory leaks
2011-07-09 11:06:06 +02:00
Sebastian Dröge
db08890edd
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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge
0fbff1000f
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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge
c8c1c7f10f
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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge
934fac7946
omxvideodec: Also flush/unflush the input port when changing the state PAUSED<->READY
2011-07-09 11:06:06 +02:00
Sebastian Dröge
3ac2bfc976
omxvideodec: Don't leak the codec_data after sending it
2011-07-09 11:06:06 +02:00
Sebastian Dröge
939d30ed17
omxvideodec: Remove reconfiguration test hack
2011-07-09 11:06:05 +02:00
Sebastian Dröge
9a3753bd61
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.
2011-07-09 11:06:05 +02:00
Sebastian Dröge
11d2e806c2
omxvideodec: Remove obsolete FIXME comment
2011-07-09 11:06:05 +02:00
Sebastian Dröge
08181d86dc
omxvideodec: Make the inport and outport index configurable by the subclass
2011-07-09 11:06:05 +02:00
Sebastian Dröge
bc1e73e8c8
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.
2011-07-09 11:06:05 +02:00