5 years agobase_filter: flush when switching to pause
Luciana Fujii Pontello [Thu, 7 Jul 2011 05:10:20 +0000 (02:10 -0300)]
base_filter: flush when switching to pause

5 years agogstomx_port: Avoid double freeing a buffer on codecs
Luciana Fujii Pontello [Fri, 8 Jul 2011 01:51:05 +0000 (22:51 -0300)]
gstomx_port: Avoid double freeing a buffer on codecs

When freeing a shared buffer, set pAppPrivate to NULL to avoid freeing
it again later.

5 years agoomx_base_src: make output-buffers a construct param
Vincent Penquerc'h [Mon, 29 Oct 2012 12:07:22 +0000 (12:07 +0000)]
omx_base_src: make output-buffers a construct param

This will actually set the default of 4, which happens to allow
omx_camera to work well with the default ducati encoder setup
which uses B frames, so keeps some buffer references, which will
exhaust a 3 buffer pool.

5 years agoomx_core: rejig to placate gcc
Vincent Penquerc'h [Mon, 29 Oct 2012 10:25:56 +0000 (10:25 +0000)]
omx_core: rejig to placate gcc

Fixes a warning.

5 years agoOops, remove test code
Vincent Penquerc'h [Mon, 22 Oct 2012 17:38:35 +0000 (17:38 +0000)]
Oops, remove test code

5 years agoCache port definition and 2D allocation size
Vincent Penquerc'h [Mon, 22 Oct 2012 17:35:10 +0000 (17:35 +0000)]
Cache port definition and 2D allocation size

This saves about 1.5 ms.

5 years agoomx_camera: add a drop-late-buffers property
Vincent Penquerc'h [Mon, 22 Oct 2012 16:59:56 +0000 (16:59 +0000)]
omx_camera: add a drop-late-buffers property

to control the recently added behavior, in case we're not
interested in latency.

5 years agoomx_camera: drop late buffers
Vincent Penquerc'h [Mon, 22 Oct 2012 15:42:36 +0000 (15:42 +0000)]
omx_camera: drop late buffers

As buffers come in asynchronously from OMX, and are queued, there
may be more than one ready between two calls to create. For those
ports that are set to drop late buffers, only the latest buffer
will be used if there's more than one available, and the oldest
one(s) will be discarded. This is what we want for things like
camera video, where we want to minimize latency.

5 years agoasync_queue: add an API to check whether the queue is empty
Vincent Penquerc'h [Mon, 22 Oct 2012 15:42:11 +0000 (15:42 +0000)]
async_queue: add an API to check whether the queue is empty

5 years agoomx_camera: initialize number of images for video-image mode too
Vincent Penquerc'h [Thu, 11 Oct 2012 11:28:01 +0000 (11:28 +0000)]
omx_camera: initialize number of images for video-image mode too

5 years agoomx_camera: only configure high speed mode when in high speed mode
Vincent Penquerc'h [Thu, 11 Oct 2012 09:21:37 +0000 (09:21 +0000)]
omx_camera: only configure high speed mode when in high speed mode

5 years agoFix buffer leak on exit
Vincent Penquerc'h [Mon, 8 Oct 2012 08:33:47 +0000 (08:33 +0000)]
Fix buffer leak on exit

5 years agoRevert "omx_camera: do not use OMX_CaptureImageHighSpeedTemporalBracketing"
Vincent Penquerc'h [Mon, 1 Oct 2012 16:47:20 +0000 (16:47 +0000)]
Revert "omx_camera: do not use OMX_CaptureImageHighSpeedTemporalBracketing"

Firmware update now has it back working without crash needing reboot.

This reverts commit 2b2afc52b5d4504f07a196ca5cf532ddd6923451.

5 years agoomx_camera: fix autofocus
Vincent Penquerc'h [Mon, 1 Oct 2012 14:50:59 +0000 (14:50 +0000)]
omx_camera: fix autofocus

Setting focus mode to auto will only work if a separate config
is enabled.

5 years agoomx_camera: Fix pad setup for Bayer format
Vincent Penquerc'h [Mon, 1 Oct 2012 11:17:20 +0000 (11:17 +0000)]
omx_camera: Fix pad setup for Bayer format

gst_video_format_parse_caps_strided will recognize anything
that starts with video/, so move it after the specific matches
(which include video/x-raw-bayer).

This fixes gst pipelines using Bayer, though we receive dummy
data from OMX, so all is not yet fixed.

5 years agoomx_camera: allow setting parameters afer loaded state
Vincent Penquerc'h [Thu, 27 Sep 2012 10:56:24 +0000 (10:56 +0000)]
omx_camera: allow setting parameters afer loaded state

5 years agoFix cast macros not to be annoying to use
Vincent Penquerc'h [Wed, 26 Sep 2012 16:24:15 +0000 (16:24 +0000)]
Fix cast macros not to be annoying to use

5 years agotests: fix to not use v4l2 not strided caps
Vincent Penquerc'h [Wed, 26 Sep 2012 15:37:32 +0000 (15:37 +0000)]
tests: fix to not use v4l2 not strided caps

These are now obsolete.

5 years agoomx_camera: fix property setting
Vincent Penquerc'h [Tue, 25 Sep 2012 16:49:42 +0000 (16:49 +0000)]
omx_camera: fix property setting

As usual, stuff happens in the cleanup phase before commit, when
I'm not testing anymore. Gah.

5 years agoomx_camera: remove now unused n_offset
Vincent Penquerc'h [Tue, 25 Sep 2012 15:50:13 +0000 (15:50 +0000)]
omx_camera: remove now unused n_offset

This fixes a warning. If the crop event is needed in the future,
this can be added back.

5 years agoomx_camera: fix deadlock on PLAYING->PAUSED state change
Vincent Penquerc'h [Tue, 25 Sep 2012 15:48:29 +0000 (15:48 +0000)]
omx_camera: fix deadlock on PLAYING->PAUSED state change

We have a fairly high chance that, when used in camerabin2,
we're stopped while one of our ports is currently blocking
in request_buffer, waiting for the async queue to be filled.
Since this is done in create, and thus with the LIVE_LOCK
taken, we need to break it here before we call the base
class' change_state, which will acquire the LIVE_LOCK too.

5 years agoomx_camera: do not use OMX_CaptureImageHighSpeedTemporalBracketing
Vincent Penquerc'h [Tue, 25 Sep 2012 15:46:32 +0000 (15:46 +0000)]
omx_camera: do not use OMX_CaptureImageHighSpeedTemporalBracketing

Doing so (instead of OMX_CaptureImageProfileBase) leads to a crash
of the DSP side, and OMX returning a "hardware failed to respond"
on exit, which will require a reboot. As OMX_CaptureImageProfileBase
seems to do what we want, and is what the omx_cam_test code uses,
use this instead.

This fixes use of omx_camera with camerabin2.

5 years agoomx_camera: remove crop event generation
Vincent Penquerc'h [Tue, 25 Sep 2012 09:20:18 +0000 (09:20 +0000)]
omx_camera: remove crop event generation

When using vstab, it looks like we don't need this, the image
seems correct without having to crop borders.

5 years agoProperty refactoring
Vincent Penquerc'h [Wed, 19 Sep 2012 17:23:53 +0000 (17:23 +0000)]
Property refactoring

Since the majority of properties have very (but not quite!) similar
get and set methods, add some macros to generate them. This trims a
lot of copy/pasted code, removes unneeded differences between some
properties, and fixes a few bugs (such as forgetting to set a GValue
from the data received from the hardware, or having two properties
write different values to the same hardware parameter).

6 years agoomx_camera: add more missing ifdef guards for disabling pads
Vincent Penquerc'h [Wed, 19 Sep 2012 12:26:28 +0000 (12:26 +0000)]
omx_camera: add more missing ifdef guards for disabling pads

Also disable vidsrc by default, nothing uses it at the moment.

6 years agoDo not access freed memory
Vincent Penquerc'h [Wed, 19 Sep 2012 11:31:53 +0000 (11:31 +0000)]
Do not access freed memory

6 years agoFix race condition in freeing buffers
Vincent Penquerc'h [Wed, 19 Sep 2012 11:28:01 +0000 (11:28 +0000)]
Fix race condition in freeing buffers

Disabling a port can happen while one or more buffers are in
OMX waiting to be filled. We cannot free buffers then, as this
will cause OMX to assert when the buffer gets filled.
Marking those buffers to be freed as they are returned from OMX
does not work either, as OMX deadlocks if I try to free the
buffers from the FillBufferDone callback.
So we end up keeping track of the number of buffers currently
in OMX, and wait for all to be released before freeing them.

This fixes an occasional, but fairly frequent, crash on exit.

6 years agoomx_camera: disable thumbsrc pad
Vincent Penquerc'h [Tue, 18 Sep 2012 17:11:44 +0000 (17:11 +0000)]
omx_camera: disable thumbsrc pad

Nothing uses it, and it causes occasional errors from negotiation
as width/height get set to 1x1 as it's an ALWAYS pad which doesn't
actually get linked to anything.

6 years agoLog states on enter/leave of core functions that change state
Vincent Penquerc'h [Tue, 18 Sep 2012 15:41:00 +0000 (15:41 +0000)]
Log states on enter/leave of core functions that change state

Since we're supposed to wait for the state change to be performed,
it helps spot issues if states are logged at these times.

6 years agoRejig OMX config and parameter setter macros to ease debugging
Vincent Penquerc'h [Tue, 18 Sep 2012 15:39:32 +0000 (15:39 +0000)]
Rejig OMX config and parameter setter macros to ease debugging

Calls to these setters are now automatically logged, along with
any error. Also remove all the assertions after most such calls,
now folded into the macros.

6 years agoomx_camera: do not crash when OMX fails to initialize
Vincent Penquerc'h [Tue, 18 Sep 2012 11:31:28 +0000 (11:31 +0000)]
omx_camera: do not crash when OMX fails to initialize

This can happen more often that we'd like, and there's no need
to crash when this happens. Sadly, getting and setting properties
needs OMX to be initialized as ports are configured and queries
there, so OMX initialization can't be left till the NULL->READY
state change, so we early out in the instance init code when we
get an error from OMX init.

Also, do not assert when OMX fails to initialize, log errors and
trigger an element error where appropriate. This gets rid of
the spurious criticals and causes the camera element to fail to
link and avoid going much further (and crashing).

6 years agoomx_camera: fix prototype
Vincent Penquerc'h [Tue, 18 Sep 2012 11:30:50 +0000 (11:30 +0000)]
omx_camera: fix prototype

This is C, not C++, give a proper prototype with argument list.

6 years agoDo not push buffers on the async list when we're winding it down
Vincent Penquerc'h [Tue, 18 Sep 2012 10:52:32 +0000 (10:52 +0000)]
Do not push buffers on the async list when we're winding it down

This avoids a crash later on, as those buffers will have been freed.

6 years agoomx_camera: fix CAC property get/set
Vincent Penquerc'h [Mon, 17 Sep 2012 12:02:03 +0000 (12:02 +0000)]
omx_camera: fix CAC property get/set

This property is categorized as a 'config', and not a 'param',
by OMX, so use the correct set of getters/setters.

6 years agoMake stereo video capture work
Vincent Penquerc'h [Mon, 17 Sep 2012 10:40:08 +0000 (10:40 +0000)]
Make stereo video capture work

Chroma planes have a peculiar layout in stereo mode, so we need
to move chroma data around to match the expected layout.

Both stereo and, well, mono, work now, but since this fix is borne
out of experimentation, it may not be fully correct.

See comments in the code for more details.

6 years agoDo not confuse allocated and filled length
Vincent Penquerc'h [Fri, 14 Sep 2012 09:58:47 +0000 (09:58 +0000)]
Do not confuse allocated and filled length

While this will be the same for exactly sizes raw image buffers,
it may not be the same for overallocated buffers, and this can
apparently happen for stereo video capture, where we get less
data than was required for allocation, and where OMX checks we
pass the full allocated length.

6 years agoFix a "may be used uninitialized" warning
Vincent Penquerc'h [Thu, 13 Sep 2012 13:06:22 +0000 (13:06 +0000)]
Fix a "may be used uninitialized" warning

6 years agoomx_camera: add stereo mode setup
Vincent Penquerc'h [Thu, 13 Sep 2012 13:05:43 +0000 (13:05 +0000)]
omx_camera: add stereo mode setup

6 years agoomx_camera: fixate to double width when using stereo mode
Vincent Penquerc'h [Thu, 13 Sep 2012 13:04:51 +0000 (13:04 +0000)]
omx_camera: fixate to double width when using stereo mode

6 years agoomx_camera: simplify pool setup code
Vincent Penquerc'h [Thu, 13 Sep 2012 12:36:26 +0000 (12:36 +0000)]
omx_camera: simplify pool setup code

Since there is now one pool per pad, we don't need to
determine max size (and indeed max size would be very
large as the image port configured as JPEG output gets
configured with 8 MB buffers as the size of any actual
buffer is unknown at the time).

6 years agoomx_camera: fix leaks (and static const data static const while there)
Vincent Penquerc'h [Wed, 12 Sep 2012 14:43:52 +0000 (14:43 +0000)]
omx_camera: fix leaks (and static const data static const while there)

6 years agoomx_camera: send EOS event to all source pads where appropriate
Vincent Penquerc'h [Wed, 12 Sep 2012 14:27:20 +0000 (14:27 +0000)]
omx_camera: send EOS event to all source pads where appropriate

When the base class pauses task on EOS, it only sends an EOS event
to the source pad it knows about, and does not notify the derived
class. We still need to send an EOS event to the other source pads
as well, so use an event probe to detect when an EOS event is sent
to the main source pad, and send EOS events to the ohter pads when
this happens.

This fixes hangs on EOS.

6 years agoomx_camera: log negotiation messages with the pad being negotiated
Vincent Penquerc'h [Wed, 12 Sep 2012 09:57:02 +0000 (09:57 +0000)]
omx_camera: log negotiation messages with the pad being negotiated

6 years agoMinor cleanup
Vincent Penquerc'h [Wed, 12 Sep 2012 09:32:10 +0000 (09:32 +0000)]
Minor cleanup

6 years agoomx_camera: fix calculation of stride
Vincent Penquerc'h [Wed, 12 Sep 2012 08:12:53 +0000 (08:12 +0000)]
omx_camera: fix calculation of stride

6 years agoomx_camera: authenticate against DRI2 where possible
Vincent Penquerc'h [Tue, 11 Sep 2012 16:45:10 +0000 (16:45 +0000)]
omx_camera: authenticate against DRI2 where possible

This allows coexistence with gst-ducati.

6 years agoHandle failure to allocate a buffer without crashing
Vincent Penquerc'h [Tue, 11 Sep 2012 11:28:58 +0000 (11:28 +0000)]
Handle failure to allocate a buffer without crashing

6 years agoomx_camera: limit color formats to supported ones
Vincent Penquerc'h [Tue, 11 Sep 2012 10:46:00 +0000 (10:46 +0000)]
omx_camera: limit color formats to supported ones

Experimentation shows that OMX accepts NV12 and UYVY, but not
I420 nor YUY2, so reflect this in caps.

6 years agoomx_camera: fix zoom property
Vincent Penquerc'h [Tue, 11 Sep 2012 08:56:32 +0000 (08:56 +0000)]
omx_camera: fix zoom property

Change type (and range) from guint to float to match the attached
Photography interface, and add a couple missing lines (setting the
given GValue in set_property, and returning zoom level from OMX).

6 years agoFix buffer refcounting issues
Vincent Penquerc'h [Mon, 10 Sep 2012 15:47:58 +0000 (15:47 +0000)]
Fix buffer refcounting issues

The ordering of operations at the end is a bit tricky,
so comment abundantly, and should now unref every buffer
the correct amount - not too much, and not too little.

Also, allocate the img_src buffers using the pool (of
which we now have one per port, since the caps and size
may be different), as the port code now expects DRM
buffers only.

This fixes all the refcounting and crashes I know of
when using the img_src port, though not yet the hang
on EOS.

6 years agoomx_camera: negotiate caps for all non basesrc pads
Vincent Penquerc'h [Fri, 7 Sep 2012 10:10:10 +0000 (10:10 +0000)]
omx_camera: negotiate caps for all non basesrc pads

The basesrc class will only negotiate for its own pad, and we want
the other pads (eg, imgsrc) to also be negotiated.

This fixes an issue with wrong buffer sizes being used.

6 years agoFix image capture
Vincent Penquerc'h [Thu, 6 Sep 2012 13:58:13 +0000 (13:58 +0000)]
Fix image capture

For unclear reasons, setting the camera to start capturing has to
be delayed for it to work.

6 years agoSwitch to using drm buffers
Vincent Penquerc'h [Wed, 5 Sep 2012 12:22:40 +0000 (12:22 +0000)]
Switch to using drm buffers

This probably breaks others elements, but since they were removed
we don't care too much now. This also makes the code OMAP specific.
The omap_bo APIs could be moved to a separate layer if needed.
There are still issues in freeing a buffer at EOS, but it seems to
work with a simple capture pipeline at last. Probably a lot of
cases needing fixing.

6 years agoAdd missing USE_GSTOMXCAM_{IMG,THUMB}SRCPAD guards
Vincent Penquerc'h [Fri, 31 Aug 2012 11:47:28 +0000 (11:47 +0000)]

6 years agoRemove use of -strided pixel formats
Vincent Penquerc'h [Fri, 31 Aug 2012 11:46:48 +0000 (11:46 +0000)]
Remove use of -strided pixel formats

6 years agoDo not compare caps with NULL caps
Vincent Penquerc'h [Wed, 29 Aug 2012 11:11:44 +0000 (11:11 +0000)]
Do not compare caps with NULL caps

6 years agoPrint framerate in a friendly manner
Vincent Penquerc'h [Wed, 29 Aug 2012 11:11:20 +0000 (11:11 +0000)]
Print framerate in a friendly manner

6 years agoWarn when a symbol is not found in the dlopened library
Vincent Penquerc'h [Wed, 29 Aug 2012 10:24:52 +0000 (10:24 +0000)]
Warn when a symbol is not found in the dlopened library

6 years agoDo not cast GstBuffer** to GstBuffer*, it won't end well
Vincent Penquerc'h [Wed, 29 Aug 2012 10:10:17 +0000 (10:10 +0000)]
Do not cast GstBuffer** to GstBuffer*, it won't end well

6 years agoRemove libcheck use, use the gst version instead
Vincent Penquerc'h [Wed, 29 Aug 2012 09:47:29 +0000 (09:47 +0000)]
Remove libcheck use, use the gst version instead

Since we already depend on gst anyway, since libcheck was
optional, and since the tests did not test whether libcheck
had been found before using it, and thus failing to build.

6 years agoDisable all plugins bar the camera one
Vincent Penquerc'h [Wed, 29 Aug 2012 09:08:18 +0000 (09:08 +0000)]
Disable all plugins bar the camera one

6 years agoFixup build on blaze
Vincent Penquerc'h [Wed, 29 Aug 2012 09:06:06 +0000 (09:06 +0000)]
Fixup build on blaze

I have a library that seems different from what's expected,
in particular no pc file, a differently capitalized library,
and slightly different header names.

6 years agoomx_camera: report 4-frames latency
Alessandro Decina [Thu, 22 Mar 2012 14:53:41 +0000 (15:53 +0100)]
omx_camera: report 4-frames latency

6 years agoomx_camera: remove some QUERY_BUFFERS related dead code
Alessandro Decina [Thu, 22 Mar 2012 14:52:15 +0000 (15:52 +0100)]
omx_camera: remove some QUERY_BUFFERS related dead code

6 years agoomx_camera: store negotiated framerate
Alessandro Decina [Thu, 22 Mar 2012 14:48:36 +0000 (15:48 +0100)]
omx_camera: store negotiated framerate

6 years agoomx_camera: make non strided video/x-raw-yuv work
Alessandro Decina [Tue, 20 Dec 2011 15:43:09 +0000 (16:43 +0100)]
omx_camera: make non strided video/x-raw-yuv work

Only works with allocate-buffers=false

6 years agoomx_camera: Add missing GstPhotography properties
Luciana Fujii Pontello [Mon, 22 Aug 2011 23:06:35 +0000 (20:06 -0300)]
omx_camera: Add missing GstPhotography properties

Installed GstPhotography properties that were missing. These properties
don't change anything in omx_camera. They are implemented just to
conform with the interface.

6 years agoomx_camera: Always install GstPhotography properties
Luciana Fujii Pontello [Mon, 22 Aug 2011 21:14:32 +0000 (18:14 -0300)]
omx_camera: Always install GstPhotography properties

We need to install all GstPhotography properties always to avoid
warnings in gst-inspect.

6 years agoomx_camera: Keep device setting in NULL state
Luciana Fujii Pontello [Fri, 19 Aug 2011 12:48:10 +0000 (09:48 -0300)]
omx_camera: Keep device setting in NULL state

Device setting was lost in NULL state. The element now stores it's value
to keep the configuration despite state changes.

6 years agoport: change the value for the OMX_BUFFERFLAG_INVALIDTIME flag
Alessandro Decina [Tue, 18 Oct 2011 14:08:08 +0000 (16:08 +0200)]
port: change the value for the OMX_BUFFERFLAG_INVALIDTIME flag

From 0x00000100 to 0x00000800 as 0x00000100 is already assigned to

6 years agovc1dec: add vc1 decoder
Alessandro Decina [Thu, 29 Sep 2011 13:06:55 +0000 (15:06 +0200)]
vc1dec: add vc1 decoder

6 years agobasefilter: make inject_codec_data a vfunc
Alessandro Decina [Thu, 29 Sep 2011 13:03:19 +0000 (15:03 +0200)]
basefilter: make inject_codec_data a vfunc

For codecs that need to modify the codec data buffer

7 years agovideodec: don't abort if configuring nBufferCountActual fails
Alessandro Decina [Tue, 13 Sep 2011 15:37:09 +0000 (17:37 +0200)]
videodec: don't abort if configuring nBufferCountActual fails

7 years agoBundle timer-32k.h in util/
Alessandro Decina [Wed, 7 Sep 2011 16:14:52 +0000 (18:14 +0200)]
Bundle timer-32k.h in util/

7 years agoAdd hack to pass buffers with invalid timestamps through the decoder.
George Kiagiadakis [Wed, 7 Sep 2011 14:39:19 +0000 (17:39 +0300)]
Add hack to pass buffers with invalid timestamps through the decoder.

This is necessary when there is no timing information in the source.
If GST_CLOCK_TIME_NONE gets converted to an OMX timestamp and then back
to GstClockTime, the result is a timestamp a few hundred years in the
future, which confuses the sink.

7 years agoh264dec: workaround domx bug for baseline level11 files
Alessandro Decina [Fri, 2 Sep 2011 10:24:50 +0000 (12:24 +0200)]
h264dec: workaround domx bug for baseline level11 files

Setting OMX_IndexParamVideoAvc for baseline level11 files, results in domx
setting nBufferCountMin to 1 instead of 3. This commit workarounds the problem,
fixing hangs with some files.

7 years agobasevideodec: fix one last leak in capsnego
Alessandro Decina [Thu, 18 Aug 2011 10:24:52 +0000 (12:24 +0200)]
basevideodec: fix one last leak in capsnego

7 years agobasevideodec: remove code that should have been removed in the last commit. oops.
Alessandro Decina [Thu, 18 Aug 2011 10:22:15 +0000 (12:22 +0200)]
basevideodec: remove code that should have been removed in the last commit. oops.

7 years agobasevideodec: add rowstride field to yuv-strided caps and not to yuv
Alessandro Decina [Thu, 18 Aug 2011 09:48:39 +0000 (11:48 +0200)]
basevideodec: add rowstride field to yuv-strided caps and not to yuv

7 years agobasevideodec: maintain downstream caps order during negotiation
Alessandro Decina [Thu, 18 Aug 2011 09:47:05 +0000 (11:47 +0200)]
basevideodec: maintain downstream caps order during negotiation

...and fix a few caps leak in the process

7 years agocamera: fix autofocus setting through GstPhotography
Alessandro Decina [Wed, 10 Aug 2011 07:01:56 +0000 (09:01 +0200)]
camera: fix autofocus setting through GstPhotography

7 years agocamera: implement camerabin2's renegotiate event GLP1.4
Alessandro Decina [Thu, 4 Aug 2011 21:36:31 +0000 (23:36 +0200)]
camera: implement camerabin2's renegotiate event

7 years agompeg2dec: the component doesn't need codec_data in-stream
Alessandro Decina [Thu, 21 Jul 2011 11:26:59 +0000 (13:26 +0200)]
mpeg2dec: the component doesn't need codec_data in-stream

7 years agobasefilter: add inject_codec_data variable
Alessandro Decina [Thu, 21 Jul 2011 11:26:11 +0000 (13:26 +0200)]
basefilter: add inject_codec_data variable

inject_codec_data signals whether the component needs to have the codec_data
buffer from caps injected in the stream or not.

7 years agoomx: add GST_PLUGINS_BASE_CFLAGS since we link to -lgstvideo
Alessandro Decina [Thu, 21 Jul 2011 11:25:18 +0000 (13:25 +0200)]
omx: add GST_PLUGINS_BASE_CFLAGS since we link to -lgstvideo

7 years agoAdd support for mpeg2 decoder
Juan Yanez [Thu, 23 Jun 2011 20:38:33 +0000 (15:38 -0500)]
Add support for mpeg2 decoder

7 years agoport: fix flushing
Alessandro Decina [Tue, 19 Jul 2011 17:44:23 +0000 (19:44 +0200)]
port: fix flushing

Send OMX_CommandFlush and wait for it to be complete _before_ popping buffers
off port->queue.

7 years agoport: don't leak the EOS buffer
Alessandro Decina [Tue, 19 Jul 2011 17:43:46 +0000 (19:43 +0200)]
port: don't leak the EOS buffer

7 years agoRevert "hack for seek bug in OMX"
Alessandro Decina [Tue, 19 Jul 2011 17:36:08 +0000 (19:36 +0200)]
Revert "hack for seek bug in OMX"

This reverts commit 997ea08580840a3f0a3a753cd950d8deb38b3303.



7 years agoport: fix camera regression after last commit
Alessandro Decina [Tue, 19 Jul 2011 11:12:57 +0000 (13:12 +0200)]
port: fix camera regression after last commit

Looks like PortDisable isn't always synchronous so before calling OMX_FreeBuffer
on buffers, we need to wait for FBD callbacks.

7 years agoport: make sure to call OMX_FreeBuffer only once for each buffer.
Alessandro Decina [Wed, 13 Jul 2011 09:46:46 +0000 (11:46 +0200)]
port: make sure to call OMX_FreeBuffer only once for each buffer.

Fixes hangs calling OMX_FreeBuffer on already freed buffers.

7 years agoh264dec: Add support for reference frames configuration.
Joaquin Castellanos [Mon, 20 Jun 2011 14:47:02 +0000 (09:47 -0500)]
h264dec: Add support for reference frames configuration.

Signed-off-by: Daniel Diaz <>
7 years agoh264dec: Add support for AVC config from stream.
Joaquin Castellanos [Fri, 17 Jun 2011 20:17:11 +0000 (15:17 -0500)]
h264dec: Add support for AVC config from stream.

When an H.264 BaseProfile stream is detected, a reduced number of
2D TILER buffers are allocated by the mem-manager.

Signed-off-by: Daniel Diaz <>
7 years agoh264enc: Add Rate Control support property.
Joaquin Castellanos [Mon, 20 Jun 2011 15:09:09 +0000 (10:09 -0500)]
h264enc: Add Rate Control support property.

Signed-off-by: Daniel Diaz <>
7 years agotests: Add Image Capture scripts.
Daniel Diaz [Wed, 29 Jun 2011 21:06:58 +0000 (16:06 -0500)]
tests: Add Image Capture scripts.

Signed-off-by: Daniel Diaz <>
7 years agotests: Drop deprecated
Daniel Diaz [Wed, 29 Jun 2011 21:05:59 +0000 (16:05 -0500)]
tests: Drop deprecated

Signed-off-by: Daniel Diaz <>
7 years agoh264enc: set stream-format=byte-stream,alignment=au on caps
Alessandro Decina [Wed, 6 Jul 2011 21:32:19 +0000 (23:32 +0200)]
h264enc: set stream-format=byte-stream,alignment=au on caps

7 years agobase_video_dec: Forward GstQuery upstream
Edward Hervey [Wed, 6 Jul 2011 13:24:00 +0000 (15:24 +0200)]
base_video_dec: Forward GstQuery upstream

Avoids having duration queries failing...

7 years agoh264dec: set stream-format and alignment on the sink template
Alessandro Decina [Wed, 6 Jul 2011 06:16:36 +0000 (08:16 +0200)]
h264dec: set stream-format and alignment on the sink template

7 years agoh264enc: fix profile and level settings
Alessandro Decina [Mon, 13 Jun 2011 00:26:29 +0000 (02:26 +0200)]
h264enc: fix profile and level settings

Make it so that profile and level settings are 1) set by default
(G_PARAM_CONSTRUCT) 2) preserved across state changes and 3) don't cause
segfaults if they are changed too early.

Makes omx_camera ! omx_h264enc **notice you don't need to set random properties
here anymore** ! fakesink work. Goto beach.