platform/upstream/gst-omx.git
13 years agoomxaudioenc: Always flush the ports and make sure no processing is happening in ...
Sebastian Dröge [Thu, 10 Nov 2011 14:03:05 +0000 (15:03 +0100)]
omxaudioenc: Always flush the ports and make sure no processing is happening in ::flush

This fixes a race condition that happened when seeking
very often in a short period of time.

13 years agoomxvideoenc: Always flush the ports and make sure no processing is happening in ...
Sebastian Dröge [Thu, 10 Nov 2011 14:02:22 +0000 (15:02 +0100)]
omxvideoenc: Always flush the ports and make sure no processing is happening in ::reset

This fixes a race condition that happened when seeking
very often in a short period of time.

13 years agoomxvideoenc: Fix minor race condition when draining after upstream signalled EOS
Sebastian Dröge [Thu, 10 Nov 2011 14:01:36 +0000 (15:01 +0100)]
omxvideoenc: Fix minor race condition when draining after upstream signalled EOS

13 years agoomxaudioenc: Improve EOS handling
Sebastian Dröge [Thu, 10 Nov 2011 13:56:19 +0000 (14:56 +0100)]
omxaudioenc: Improve EOS handling

If downstream return UNEXPECTED we should still signal the
drain cond because nothing will trigger this again later.

13 years agoomxvideoenc: Improve EOS handling
Sebastian Dröge [Thu, 10 Nov 2011 13:56:11 +0000 (14:56 +0100)]
omxvideoenc: Improve EOS handling

If downstream return UNEXPECTED we should still signal the
drain cond because nothing will trigger this again later.

13 years agoomxaudioenc: Improve debugging of EOS and draining
Sebastian Dröge [Thu, 10 Nov 2011 13:54:33 +0000 (14:54 +0100)]
omxaudioenc: Improve debugging of EOS and draining

13 years agoomxvideoenc: Improve debugging of EOS and draining
Sebastian Dröge [Thu, 10 Nov 2011 13:54:17 +0000 (14:54 +0100)]
omxvideoenc: Improve debugging of EOS and draining

13 years agoomxvideodec: Log if acquiring buffer for EOS failed
Sebastian Dröge [Thu, 10 Nov 2011 13:51:06 +0000 (14:51 +0100)]
omxvideodec: Log if acquiring buffer for EOS failed

13 years agoomxvideodec: The component is not started in READY
Sebastian Dröge [Thu, 10 Nov 2011 13:42:13 +0000 (14:42 +0100)]
omxvideodec: The component is not started in READY

13 years agoomxaudioenc: No need to signal the drain cond when going from READY to PAUSED
Sebastian Dröge [Thu, 10 Nov 2011 13:39:40 +0000 (14:39 +0100)]
omxaudioenc: No need to signal the drain cond when going from READY to PAUSED

Also the component is not started in READY

13 years agoomxvideoenc: No need to signal the drain cond when going from READY to PAUSED
Sebastian Dröge [Thu, 10 Nov 2011 13:40:56 +0000 (14:40 +0100)]
omxvideoenc: No need to signal the drain cond when going from READY to PAUSED

Also the component is not started in READY.

13 years agoomxvideodec: Always flush the ports and make sure no processing is happening in ...
Sebastian Dröge [Wed, 9 Nov 2011 14:46:02 +0000 (15:46 +0100)]
omxvideodec: Always flush the ports and make sure no processing is happening in ::reset

This fixes a race condition that happened when seeking
very often in a short period of time.

13 years agoomxvideodec: Fix minor race condition when draining after upstream signalled EOS
Sebastian Dröge [Wed, 9 Nov 2011 14:45:20 +0000 (15:45 +0100)]
omxvideodec: Fix minor race condition when draining after upstream signalled EOS

13 years agoomxvideodec: Improve EOS handling
Sebastian Dröge [Wed, 9 Nov 2011 14:44:11 +0000 (15:44 +0100)]
omxvideodec: Improve EOS handling

If downstream return UNEXPECTED we should still signal the
drain cond because nothing will trigger this again later.

13 years agoomxvideodec: Improve debugging of EOS and draining
Sebastian Dröge [Wed, 9 Nov 2011 14:43:32 +0000 (15:43 +0100)]
omxvideodec: Improve debugging of EOS and draining

13 years agoomxvideodec: The component is not started already when going from READY to PAUSED
Sebastian Dröge [Wed, 9 Nov 2011 14:42:46 +0000 (15:42 +0100)]
omxvideodec: The component is not started already when going from READY to PAUSED

13 years agoomxvideodec: No need to signal the drain cond when going from READY to PAUSED
Sebastian Dröge [Wed, 9 Nov 2011 14:42:13 +0000 (15:42 +0100)]
omxvideodec: No need to signal the drain cond when going from READY to PAUSED

13 years agoomx: Always reset buffer flags for output ports, even in flushing/error state
Sebastian Dröge [Wed, 9 Nov 2011 14:41:02 +0000 (15:41 +0100)]
omx: Always reset buffer flags for output ports, even in flushing/error state

13 years agoomxvideodec: Improve debugging in case of QoS-related frame drops
Sebastian Dröge [Wed, 9 Nov 2011 08:00:57 +0000 (09:00 +0100)]
omxvideodec: Improve debugging in case of QoS-related frame drops

13 years agoomxvideoenc: Release the video codec stream lock before acquiring an input buffer
Sebastian Dröge [Tue, 8 Nov 2011 11:46:31 +0000 (12:46 +0100)]
omxvideoenc: Release the video codec stream lock before acquiring an input buffer

Otherwise the srcpad task might block on this lock and
no buffers ever become available again.

13 years agoomxaudioenc: Release the audio encoder stream lock before acquiring an input buffer
Sebastian Dröge [Tue, 8 Nov 2011 11:45:16 +0000 (12:45 +0100)]
omxaudioenc: Release the audio encoder stream lock before acquiring an input buffer

Otherwise the srcpad task might block on this lock and
no buffers ever become available again.

13 years agoomxvideodec: Release the video codec stream lock before acquiring an input buffer
Sebastian Dröge [Tue, 8 Nov 2011 11:42:58 +0000 (12:42 +0100)]
omxvideodec: Release the video codec stream lock before acquiring an input buffer

Otherwise the srcpad task might block on this lock and
no buffers ever become available again.

13 years agoomxaudioenc: Don't try to drain the component after EOS
Sebastian Dröge [Tue, 8 Nov 2011 10:07:01 +0000 (11:07 +0100)]
omxaudioenc: Don't try to drain the component after EOS

And don't send EOS twice in any case. This most likely
will cause the component to not output it again and
is not necessary anyway.

13 years agoomxvideoenc: Don't try to drain the component after EOS
Sebastian Dröge [Tue, 8 Nov 2011 10:03:29 +0000 (11:03 +0100)]
omxvideoenc: Don't try to drain the component after EOS

And don't send EOS twice in any case. This most likely
will cause the component to not output it again and
is not necessary anyway.

13 years agoomxvideodec: Don't try to drain the component after EOS
Sebastian Dröge [Tue, 8 Nov 2011 09:46:36 +0000 (10:46 +0100)]
omxvideodec: Don't try to drain the component after EOS

And don't send EOS twice in any case. This most likely
will cause the component to not output it again and
is not necessary anyway.

13 years agoomxvideodec: Implement dropping of too late frames via QoS
Sebastian Dröge [Tue, 8 Nov 2011 08:09:28 +0000 (09:09 +0100)]
omxvideodec: Implement dropping of too late frames via QoS

13 years agoomxaudioenc: Minor code refactoring
Sebastian Dröge [Tue, 8 Nov 2011 07:31:58 +0000 (08:31 +0100)]
omxaudioenc: Minor code refactoring

13 years agoomxvideoenc: Minor code refactoring
Sebastian Dröge [Tue, 8 Nov 2011 07:31:43 +0000 (08:31 +0100)]
omxvideoenc: Minor code refactoring

13 years agoomxvideodec: Make sure to always release buffers back to OMX
Sebastian Dröge [Tue, 8 Nov 2011 07:31:32 +0000 (08:31 +0100)]
omxvideodec: Make sure to always release buffers back to OMX

13 years agoomx: Also properly release buffers when in error state
Sebastian Dröge [Tue, 8 Nov 2011 07:24:19 +0000 (08:24 +0100)]
omx: Also properly release buffers when in error state

13 years agoomx: Properly release buffers during flushing
Jonas Larsson [Tue, 8 Nov 2011 07:22:08 +0000 (08:22 +0100)]
omx: Properly release buffers during flushing

We can't pass them back to OMX_FillThisBuffer() or OMX_EmptyThisBuffer()
but instead of doing nothing we have to put them back into our queue.
Otherwise the buffer is leaked and we will have too few buffers in
the future.

13 years agoomxvideodec: Free pending frames after draining component
Sebastian Dröge [Mon, 7 Nov 2011 13:00:47 +0000 (14:00 +0100)]
omxvideodec: Free pending frames after draining component

13 years agoomxvideoenc: Free pending frames after draining the component
Sebastian Dröge [Mon, 7 Nov 2011 13:00:35 +0000 (14:00 +0100)]
omxvideoenc: Free pending frames after draining the component

13 years agoomxvideoenc: Make handling and usage of the base video codec frames threadsafe
Sebastian Dröge [Mon, 7 Nov 2011 10:07:01 +0000 (11:07 +0100)]
omxvideoenc: Make handling and usage of the base video codec frames threadsafe

13 years agoomxvideoenc: Fix deadlock between srcpad stream lock and ::reset()
Sebastian Dröge [Mon, 7 Nov 2011 10:05:29 +0000 (11:05 +0100)]
omxvideoenc: Fix deadlock between srcpad stream lock and ::reset()

13 years agoomxvideoenc: Make handling and usage of the base video codec frames threadsafe
Sebastian Dröge [Mon, 7 Nov 2011 10:04:27 +0000 (11:04 +0100)]
omxvideoenc: Make handling and usage of the base video codec frames threadsafe

13 years agoomxvideoenc: Free all pending frames after draining the component
Sebastian Dröge [Mon, 7 Nov 2011 09:58:44 +0000 (10:58 +0100)]
omxvideoenc: Free all pending frames after draining the component

13 years agoomxvideodec: Always free all pending frames when caps changes require reconfiguration
Sebastian Dröge [Mon, 7 Nov 2011 09:58:24 +0000 (10:58 +0100)]
omxvideodec: Always free all pending frames when caps changes require reconfiguration

13 years agoomxaudioenc: Only drain the component a single time and only after processing started
Sebastian Dröge [Fri, 4 Nov 2011 08:43:48 +0000 (09:43 +0100)]
omxaudioenc: Only drain the component a single time and only after processing started

13 years agoomxvideodec: Only drain the component a single time and only after processing started
Sebastian Dröge [Fri, 4 Nov 2011 08:43:32 +0000 (09:43 +0100)]
omxvideodec: Only drain the component a single time and only after processing started

13 years agoomxvideoenc: Only drain the component a single time and only after processing started
Sebastian Dröge [Fri, 4 Nov 2011 08:43:12 +0000 (09:43 +0100)]
omxvideoenc: Only drain the component a single time and only after processing started

13 years agoomx: Reset buffer flags to 0 after it was consumed by the component or the element
Sebastian Dröge [Fri, 4 Nov 2011 08:04:16 +0000 (09:04 +0100)]
omx: Reset buffer flags to 0 after it was consumed by the component or the element

Some implementations don't reset the flags and the standard is not
really clear on the expected behaviour. Let's just always reset the
flags as they're not valid at this point anymore.

13 years agoomxvideoenc: Better handling of encoder parameters
Sebastian Dröge [Wed, 2 Nov 2011 12:50:14 +0000 (13:50 +0100)]
omxvideoenc: Better handling of encoder parameters

Only set them if necessary and allow to use the component
defaults.

13 years agoomxvideoenc: Make unsupported bitrate/quantizer settings less fatal
Sebastian Dröge [Wed, 2 Nov 2011 12:22:50 +0000 (13:22 +0100)]
omxvideoenc: Make unsupported bitrate/quantizer settings less fatal

13 years agoomxvideodec: If no stride was set for the OMX output port assume GStreamer stride
Sebastian Dröge [Wed, 2 Nov 2011 09:39:50 +0000 (10:39 +0100)]
omxvideodec: If no stride was set for the OMX output port assume GStreamer stride

This is not really correct but there's nothing else we could do.

13 years agoomxvideoenc: If no stride was set for the OMX input port assume GStreamer stride
Sebastian Dröge [Wed, 2 Nov 2011 09:39:10 +0000 (10:39 +0100)]
omxvideoenc: If no stride was set for the OMX input port assume GStreamer stride

This is not really correct but there's nothing else we could do.

13 years agoomxaudioenc: Implement draining of the component and use it
Sebastian Dröge [Tue, 1 Nov 2011 15:46:09 +0000 (16:46 +0100)]
omxaudioenc: Implement draining of the component and use it

This makes sure that all buffers are encoded and pushed downstream
before flushing the ports and losing some buffers.

13 years agoomxvideoenc: Implement draining of the component and use it
Sebastian Dröge [Tue, 1 Nov 2011 15:41:46 +0000 (16:41 +0100)]
omxvideoenc: Implement draining of the component and use it

This makes sure that all buffers are encoded and pushed downstream
before flushing the ports and losing some buffers.

13 years agoomxvideodec: Implement draining of the component and use it
Sebastian Dröge [Tue, 1 Nov 2011 15:08:59 +0000 (16:08 +0100)]
omxvideodec: Implement draining of the component and use it

This makes sure that all buffers are decoded and pushed downstream
before flushing the ports and losing some buffers.

13 years agoomxvideodec: Fix deadlock if ::reset is called before finding the corresponding frame...
Sebastian Dröge [Thu, 20 Oct 2011 12:32:40 +0000 (14:32 +0200)]
omxvideodec: Fix deadlock if ::reset is called before finding the corresponding frame of a decoded buffer

13 years agoomxaudioenc: Forward downstream flow returns to upstream
Sebastian Dröge [Tue, 1 Nov 2011 14:10:12 +0000 (15:10 +0100)]
omxaudioenc: Forward downstream flow returns to upstream

13 years agoomxvideoenc: Forward downstream flow returns to upstream
Sebastian Dröge [Tue, 1 Nov 2011 14:10:01 +0000 (15:10 +0100)]
omxvideoenc: Forward downstream flow returns to upstream

13 years agoomxvideodec: Forward downstream flow returns to upstream
Sebastian Dröge [Tue, 1 Nov 2011 12:58:38 +0000 (13:58 +0100)]
omxvideodec: Forward downstream flow returns to upstream

13 years agoomx: Add minimal README file
Sebastian Dröge [Tue, 25 Oct 2011 12:23:38 +0000 (14:23 +0200)]
omx: Add minimal README file

13 years agoomxvideodec: Fix deadlock caused by calling reset while the loop function does someth...
Sebastian Dröge [Thu, 20 Oct 2011 13:21:07 +0000 (15:21 +0200)]
omxvideodec: Fix deadlock caused by calling reset while the loop function does something with the base video codec stream lock

13 years agoomxvideoenc: Fix deadlock caused by calling reset while the loop function does someth...
Sebastian Dröge [Thu, 20 Oct 2011 13:20:47 +0000 (15:20 +0200)]
omxvideoenc: Fix deadlock caused by calling reset while the loop function does something with the base video codec stream lock

13 years agoomxvideodec: Move locking at the correct place
Sebastian Dröge [Thu, 20 Oct 2011 12:30:38 +0000 (14:30 +0200)]
omxvideodec: Move locking at the correct place

13 years agoomx: Remove QCOM hack to reset nOffset in EmptyBufferDone
Sebastian Dröge [Fri, 14 Oct 2011 08:27:47 +0000 (10:27 +0200)]
omx: Remove QCOM hack to reset nOffset in EmptyBufferDone

This is now done in a generic way that does not require any
hacks because it will work without any side effects on any
OMX implementation.

13 years agoomx: Reset nOffset to 0 in EmptyBufferDone if nFilledLen is 0
Sebastian Dröge [Fri, 14 Oct 2011 08:26:00 +0000 (10:26 +0200)]
omx: Reset nOffset to 0 in EmptyBufferDone if nFilledLen is 0

Some OMX implementations don't reset nOffset when the complete
buffer is emptied but instead only reset nFilledLen. We reset
nOffset to 0 if nFilledLen == 0, which is safe to do because
the offset *must* be 0 if the buffer is not filled at all.

Seen in QCOM's OMX implementation.

13 years agoomxvideoenc: If one parameter/configuration is not supported don't skip the next
Sebastian Dröge [Tue, 4 Oct 2011 08:56:33 +0000 (10:56 +0200)]
omxvideoenc: If one parameter/configuration is not supported don't skip the next

13 years agoomxh264dec: Require stream-format=byte-stream
Sebastian Dröge [Mon, 3 Oct 2011 07:12:44 +0000 (09:12 +0200)]
omxh264dec: Require stream-format=byte-stream

Other stream-formats are unlikely to be supported by OMX components.

13 years agoomxvideodec: Add API for subclasses to prepare/convert frames
Sebastian Dröge [Thu, 29 Sep 2011 08:37:32 +0000 (10:37 +0200)]
omxvideodec: Add API for subclasses to prepare/convert frames

13 years agoomxaudioenc: Switch to Idle first and wait before switching to Loaded and deallocatin...
Sebastian Dröge [Tue, 27 Sep 2011 13:08:54 +0000 (15:08 +0200)]
omxaudioenc: 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.

13 years agoomxvideoenc: Switch to Idle first and wait before switching to Loaded and deallocatin...
Sebastian Dröge [Tue, 27 Sep 2011 13:08:44 +0000 (15:08 +0200)]
omxvideoenc: 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.

13 years agoomxvideodec: Switch to Idle first and wait before switching to Loaded and deallocatin...
Sebastian Dröge [Tue, 27 Sep 2011 13:05:19 +0000 (15:05 +0200)]
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.

13 years agoomxvideodec: New hack for QCOM to recreate the component instead of reconfiguring...
Sebastian Dröge [Tue, 27 Sep 2011 12:15:06 +0000 (14:15 +0200)]
omxvideodec: New hack for QCOM to recreate the component instead of reconfiguring it on caps changes

13 years agoomx: Change a g_assert() into a GST_WARNING_OBJECT()
Sebastian Dröge [Tue, 27 Sep 2011 10:13:56 +0000 (12:13 +0200)]
omx: Change a g_assert() into a GST_WARNING_OBJECT()

13 years agoomx: Add hack for Qualcomm's OMX implementation to manually reset nOffset in EmptyBuf...
Sebastian Dröge [Mon, 26 Sep 2011 11:04:18 +0000 (13:04 +0200)]
omx: Add hack for Qualcomm's OMX implementation to manually reset nOffset in EmptyBufferDone

13 years agoomxaudioenc: Add a check to prevent a zero-sized OMX buffer
Sebastian Dröge [Fri, 23 Sep 2011 15:02:49 +0000 (17:02 +0200)]
omxaudioenc: Add a check to prevent a zero-sized OMX buffer

13 years agoomxvideoenc: Add some more checks for correct OMX buffer sizes
Sebastian Dröge [Fri, 23 Sep 2011 15:02:19 +0000 (17:02 +0200)]
omxvideoenc: Add some more checks for correct OMX buffer sizes

13 years agoomxvideodec: Add some more checks for OMX buffer sizes
Sebastian Dröge [Fri, 23 Sep 2011 13:53:49 +0000 (15:53 +0200)]
omxvideodec: Add some more checks for OMX buffer sizes

13 years agoomx: Wait until the Executing state is reached before calling OMX_FillThisBuffer()
Sebastian Dröge [Wed, 14 Sep 2011 08:15:38 +0000 (10:15 +0200)]
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.

13 years agoomxvideodec: Negotiate video format with downstream and what the component claims...
Sebastian Dröge [Fri, 2 Sep 2011 12:43:43 +0000 (14:43 +0200)]
omxvideodec: Negotiate video format with downstream and what the component claims to support

13 years agobasevideoencoder: fix element leak
Vincent Penquerc'h [Thu, 25 Aug 2011 18:56:58 +0000 (19:56 +0100)]
basevideoencoder: fix element leak

and this concludes an hour of yelling at the bloody test failing,
only to track down the problem not being in the test.

https://bugzilla.gnome.org/show_bug.cgi?id=657368

13 years agoomxvideoenc: Release basevideocodec stream lock while waiting for a buffer
Sebastian Dröge [Fri, 19 Aug 2011 07:20:39 +0000 (09:20 +0200)]
omxvideoenc: 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.

13 years agoomxvideodec: Release basevideocodec stream lock while waiting for a buffer
Sebastian Dröge [Fri, 19 Aug 2011 07:19:22 +0000 (09:19 +0200)]
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.

13 years agobasevideodecoder: Fix deadlock
Sebastian Dröge [Thu, 18 Aug 2011 08:24:26 +0000 (10:24 +0200)]
basevideodecoder: Fix deadlock

13 years agobaseaudiodecoder: Don't take the stream lock in the seek handler
Sebastian Dröge [Thu, 18 Aug 2011 08:03:20 +0000 (10:03 +0200)]
baseaudiodecoder: Don't take the stream lock in the seek handler

This will lead to deadlocks

13 years agobasevideo: Fix locking, especially if both pads have different streaming threads
Sebastian Dröge [Thu, 18 Aug 2011 08:02:50 +0000 (10:02 +0200)]
basevideo: Fix locking, especially if both pads have different streaming threads

13 years agobasevideo: Don't call g_type_class_peek_parent() in class_init
Sebastian Dröge [Thu, 18 Aug 2011 07:42:02 +0000 (09:42 +0200)]
basevideo: Don't call g_type_class_peek_parent() in class_init

This is already done by the GObject boilerplate macro

13 years agobaseaudiodecoder: Don't call g_type_class_peek_parent() in class_init
Sebastian Dröge [Thu, 18 Aug 2011 07:40:46 +0000 (09:40 +0200)]
baseaudiodecoder: Don't call g_type_class_peek_parent() in class_init

This is already done by the boilerplate macro

13 years agobaseaudiodecoder: Fix thread safety issues if both pads have different streaming...
Sebastian Dröge [Thu, 18 Aug 2011 07:34:38 +0000 (09:34 +0200)]
baseaudiodecoder: Fix thread safety issues if both pads have different streaming threads

13 years agobaseaudiodecoder: Delay sending of serialized events to finish_frame()
Sebastian Dröge [Thu, 18 Aug 2011 07:17:04 +0000 (09:17 +0200)]
baseaudiodecoder: Delay sending of serialized events to finish_frame()

13 years agoomxaudioenc: Always require at least OMX_MIN_PCMPAYLOAD_MSEC per input buffer
Sebastian Dröge [Wed, 17 Aug 2011 12:33:31 +0000 (14:33 +0200)]
omxaudioenc: Always require at least OMX_MIN_PCMPAYLOAD_MSEC per input buffer

13 years agobaseaudioencoder: Add support for requesting a minimum and maximum number of samples...
Sebastian Dröge [Wed, 17 Aug 2011 12:28:44 +0000 (14:28 +0200)]
baseaudioencoder: Add support for requesting a minimum and maximum number of samples per frame

This extends the special case of a fixed number of samples per frame
that was supported before already.

13 years agoomxaudioenc: Handle inbuf==NULL properly in ::handle_frame()
Sebastian Dröge [Wed, 17 Aug 2011 12:17:18 +0000 (14:17 +0200)]
omxaudioenc: Handle inbuf==NULL properly in ::handle_frame()

13 years agoomxaacenc: Implement ::get_num_samples() vfunc
Sebastian Dröge [Wed, 17 Aug 2011 11:04:19 +0000 (13:04 +0200)]
omxaacenc: Implement ::get_num_samples() vfunc

13 years agoomxaudioenc: Add vfunc to get the number of samples inside a buffer
Sebastian Dröge [Wed, 17 Aug 2011 11:03:50 +0000 (13:03 +0200)]
omxaudioenc: Add vfunc to get the number of samples inside a buffer

13 years agoomxaudioenc: Release baseaudioencoder stream lock while waiting for a buffer in ...
Sebastian Dröge [Wed, 17 Aug 2011 09:34:31 +0000 (11:34 +0200)]
omxaudioenc: Release baseaudioencoder stream lock while waiting for a buffer in ::handle_frame()

This prevents deadlocks if no empty input buffers are available and
releasing input buffers requires the loop function to handle some
output buffers first.

13 years agobaseaudioencoder: Fix thread safety issues if both pads have different streaming...
Sebastian Dröge [Wed, 17 Aug 2011 09:34:04 +0000 (11:34 +0200)]
baseaudioencoder: Fix thread safety issues if both pads have different streaming threads

13 years agobaseaudioencoder: Taking the OBJECT lock in reset() is not needed
Sebastian Dröge [Wed, 17 Aug 2011 07:58:01 +0000 (09:58 +0200)]
baseaudioencoder: Taking the OBJECT lock in reset() is not needed

13 years agoomxaudioenc: Remove hack that only applies to the video encoder class
Sebastian Dröge [Tue, 16 Aug 2011 09:03:24 +0000 (11:03 +0200)]
omxaudioenc: Remove hack that only applies to the video encoder class

13 years agoomxaacenc: Add initial version of OpenMAX AAC encoder element
Sebastian Dröge [Tue, 16 Aug 2011 08:49:21 +0000 (10:49 +0200)]
omxaacenc: Add initial version of OpenMAX AAC encoder element

13 years agoomxaudioenc: Add initial version of audio encoder base class
Sebastian Dröge [Mon, 15 Aug 2011 13:10:04 +0000 (15:10 +0200)]
omxaudioenc: Add initial version of audio encoder base class

13 years agobaseaudioencoder: Delay sending of serialized events to finish_frame()
Sebastian Dröge [Mon, 15 Aug 2011 12:14:11 +0000 (14:14 +0200)]
baseaudioencoder: Delay sending of serialized events to finish_frame()

13 years agoaudio: Integrate audio base classes into the build system and fixup
Sebastian Dröge [Mon, 15 Aug 2011 11:06:51 +0000 (13:06 +0200)]
audio: Integrate audio base classes into the build system and fixup

13 years agoaudio: Add audio decoder/encoder base classes
Sebastian Dröge [Mon, 15 Aug 2011 10:56:00 +0000 (12:56 +0200)]
audio: Add audio decoder/encoder base classes

Taken from http://cgit.collabora.com/git/user/manauw/gst-plugins-bad.git/log/?h=baseaudio

13 years agobasevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream...
Sebastian Dröge [Fri, 12 Aug 2011 10:25:03 +0000 (12:25 +0200)]
basevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream caps to upstream

This allows to specify constraints on the compressed downstream caps
by muxers or capsfilters, which will then be forwarded to upstream
and allows video converters to fulfill the constraints.

Code based on Mark Nauwelaerts audio encoder base class.

13 years agobasevideoencoder: Remove old ::getcaps() comment
Sebastian Dröge [Fri, 12 Aug 2011 10:13:45 +0000 (12:13 +0200)]
basevideoencoder: Remove old ::getcaps() comment

13 years agobasevideoencoder: Remove ::get_caps() vfunc
Sebastian Dröge [Fri, 12 Aug 2011 10:06:23 +0000 (12:06 +0200)]
basevideoencoder: Remove ::get_caps() vfunc

Subclasses can set the caps more efficiently and this only
caused additional indirections.