Guillaume Desmottes [Tue, 6 Mar 2018 09:45:14 +0000 (10:45 +0100)]
omxh264: factor out gst_omx_h264_utils_get_profile_from_enum()
Move the profile <-> enum mapping to one place. Make changes easier as
I'm about to add extra profiles.
No semantic change.
https://bugzilla.gnome.org/show_bug.cgi?id=794177
Guillaume Desmottes [Tue, 6 Mar 2018 10:02:44 +0000 (11:02 +0100)]
omxh265: add format range extension profiles on zynqultrascaleplus
The zynqultrascaleplus OMX gained support for more format range
extensions profiles (A.3.5).
https://bugzilla.gnome.org/show_bug.cgi?id=794177
Guillaume Desmottes [Tue, 6 Mar 2018 09:45:14 +0000 (10:45 +0100)]
omxh265: factor out gst_omx_h265_utils_get_profile_from_enum()
Move the profile <-> enum mapping to one place. Make changes easier as
I'm about to add some profiles.
No semantic change.
https://bugzilla.gnome.org/show_bug.cgi?id=794177
Guillaume Desmottes [Thu, 8 Mar 2018 11:22:26 +0000 (12:22 +0100)]
omxvideoenc: add NV16 support
NV16 format wasn't supported on encoder input while it was on decoder
output.
https://bugzilla.gnome.org/show_bug.cgi?id=794175
Guillaume Desmottes [Thu, 8 Mar 2018 11:09:38 +0000 (12:09 +0100)]
omxvideo: display port number when listing supported formats
More convenient when debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=794175
Guillaume Desmottes [Thu, 29 Mar 2018 14:42:40 +0000 (16:42 +0200)]
omxvideoenc: restore OMX default target-bitrate if requested by user
0xffffffff is the magic number in gst-omx meaning 'the default value
defined in OMX'. This works fine with OMX parameters which are only set
once when starting the component but not with configs which can be
changed while PLAYING.
Save the actual OMX default bitrate so we can restore it later if user
sets back 0xffffffff on the property.
Added GST_OMX_PROP_OMX_DEFAULT so we stop hardcoding magic numbers
everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=794998
Guillaume Desmottes [Thu, 29 Mar 2018 09:36:00 +0000 (11:36 +0200)]
omxvideoenc: use gst_omx_video_enc_set_bitrate() when setting bitrate in set_format
We weren't using the usual pattern when re-setting the bitrate:
- get parameters from OMX
- update only the fields different from 0xffffffff (OMX defaults)
- set parameters
Also added a comment explaining why we re-set this param.
https://bugzilla.gnome.org/show_bug.cgi?id=794998
Guillaume Desmottes [Thu, 29 Mar 2018 09:26:04 +0000 (11:26 +0200)]
omxvideoenc: factor out gst_omx_video_enc_set_bitrate()
No semantic change, I'm about to re-use this function in set_format().
https://bugzilla.gnome.org/show_bug.cgi?id=794998
Tim-Philipp Müller [Fri, 20 Apr 2018 10:54:14 +0000 (11:54 +0100)]
meson: fix miscellaneous meson warnings
cc.has_header*() doesn't have a 'required:' kwarg.
Guillaume Desmottes [Wed, 18 Apr 2018 10:42:55 +0000 (12:42 +0200)]
omxvideoenc/dec: fix handling of component enabling failing
- Report the error from OMX if any (OMX_EventError)
- If not report the failing to the application (GST_ELEMENT_ERROR)
- return GST_FLOW_ERROR rather than FALSE
- don't leak @frame
https://bugzilla.gnome.org/show_bug.cgi?id=795352
Tim-Philipp Müller [Mon, 16 Apr 2018 09:53:41 +0000 (10:53 +0100)]
Automatic update of common submodule
From 3fa2c9e to ed78bee
Guillaume Desmottes [Wed, 14 Mar 2018 13:53:50 +0000 (14:53 +0100)]
log_omx_performance: convert pointers to strings
G_TYPE_POINTER are not serialized in logs.
https://bugzilla.gnome.org/show_bug.cgi?id=794331
Guillaume Desmottes [Mon, 2 Apr 2018 13:14:51 +0000 (15:14 +0200)]
omxvideoenc: remove duplicated debug message
We already have the exact same message at the beginning of
gst_omx_video_enc_handle_frame(). Having it twice is confusing when
reading/grepping logs.
I kept the earlier one to keep the symetry with
gst_omx_video_dec_handle_frame().
https://bugzilla.gnome.org/show_bug.cgi?id=794897
Guillaume Desmottes [Thu, 22 Feb 2018 10:27:03 +0000 (11:27 +0100)]
omxvideoenc: add 'roi' qp-mode on zynqultrascaleplus
New QP mode used to handle ROI metadata.
https://bugzilla.gnome.org/show_bug.cgi?id=793696
Tim-Philipp Müller [Tue, 20 Mar 2018 10:31:10 +0000 (10:31 +0000)]
Back to development
Tim-Philipp Müller [Mon, 19 Mar 2018 20:31:02 +0000 (20:31 +0000)]
Release 1.14.0
Tim-Philipp Müller [Tue, 13 Mar 2018 19:32:39 +0000 (19:32 +0000)]
Release 1.13.91
Tim-Philipp Müller [Fri, 9 Mar 2018 12:02:29 +0000 (12:02 +0000)]
meson: fix typo in package name define
Guillaume Desmottes [Tue, 27 Feb 2018 14:42:53 +0000 (15:42 +0100)]
omxh265: update 422 profile names
h265parse is gaining support for the format range extension profile
(bgo#793876).
Use the profile names defined in h265parse.
https://bugzilla.gnome.org/show_bug.cgi?id=793928
Nicolas Dufresne [Mon, 5 Mar 2018 18:49:18 +0000 (13:49 -0500)]
omxvideoenc: Don't drop the frame on empty payload
This otherwise may lead to "No reference frame found" warning.
Nicolas Dufresne [Thu, 1 Mar 2018 20:16:55 +0000 (15:16 -0500)]
omxvideodec: Don't drop the frame on empty payload
This otherwise may lead to "No reference frame found" warning.
Nicolas Dufresne [Fri, 2 Mar 2018 20:36:06 +0000 (15:36 -0500)]
omx: Free empty buffers list in use_dynamic_buffers
To indicate we are doing dynamic buffers importation, we pass
a list of NULL pointers, but we forgot to free that list.
Nicolas Dufresne [Thu, 1 Mar 2018 20:16:32 +0000 (15:16 -0500)]
omxvideodec: Fix CodecState leak
Tim-Philipp Müller [Sat, 3 Mar 2018 23:00:59 +0000 (23:00 +0000)]
Release 1.13.90
Tim-Philipp Müller [Sat, 3 Mar 2018 20:21:06 +0000 (20:21 +0000)]
config: dist tizonia config files
Nicolas Dufresne [Fri, 2 Mar 2018 16:06:08 +0000 (11:06 -0500)]
Revert "omx: wait for flush complete and buffers being released when flushing"
This reverts commit
4211e4c29a262f110cb92ddf9c06b403ced233ef.
Guillaume Desmottes [Wed, 21 Feb 2018 11:50:42 +0000 (12:50 +0100)]
videoenc: don't set stride padding to 0 when copying frames
Padding can be left undefined there is no point filling it with 0.
https://bugzilla.gnome.org/show_bug.cgi?id=793694
Guillaume Desmottes [Fri, 16 Feb 2018 10:50:35 +0000 (11:50 +0100)]
add support for NV12_10LE32 and NV16_10LE32 on zynqultrascaleplus
The encoder and decoder on zynqultrascaleplus support these new 10 bits
format.
https://bugzilla.gnome.org/show_bug.cgi?id=793694
Guillaume Desmottes [Fri, 16 Feb 2018 10:46:47 +0000 (11:46 +0100)]
omxvideoenc: factor out gst_omx_video_enc_nv12_manual_copy()
No semantic change, I'm going to re-use it to copy the NV12_10LE32
format.
https://bugzilla.gnome.org/show_bug.cgi?id=793694
Guillaume Desmottes [Wed, 17 Jan 2018 09:40:49 +0000 (10:40 +0100)]
omxvideoenc: display the computed buffer size when configuring input
https://bugzilla.gnome.org/show_bug.cgi?id=793694
Guillaume Desmottes [Tue, 6 Feb 2018 13:25:57 +0000 (14:25 +0100)]
videoenc: implement ROI on zynqultrascaleplus
Check input buffers for ROI meta and pass them to the encoder by using
zynqultrascaleplus's custom OMX extension. Also add a new
"default-roi-quality" in order to tell the encoder what quality level
should be applied to ROI by default.
https://bugzilla.gnome.org/show_bug.cgi?id=793696
Guillaume Desmottes [Wed, 14 Feb 2018 16:23:39 +0000 (17:23 +0100)]
omxvideoenc: remove GST_PARAM_MUTABLE_PLAYING from 'max-bitrate' property
This property isn't actually mutable in the PLAYING state.
https://bugzilla.gnome.org/show_bug.cgi?id=793458
Guillaume Desmottes [Wed, 14 Feb 2018 16:20:02 +0000 (17:20 +0100)]
omxvideoenc: protect target_bitrate with the object lock
The 'target-bitrate' property can be changed while PLAYING
(GST_PARAM_MUTABLE_PLAYING). Make it thread-safe to prevent concurrent
accesses between the application and streaming thread.
https://bugzilla.gnome.org/show_bug.cgi?id=793458
Guillaume Desmottes [Tue, 20 Feb 2018 10:46:49 +0000 (11:46 +0100)]
omxbufferpool: add PERFORMANCE DEBUG message when copying output frames
I spent quiet some time figuring out why performance of my pipeline were
terrible. Turned out it was because of output frames being copied
because of stride/offset mismatch.
Add a PERFORMANCE DEBUG message to make it easier to spot and debug from logs.
https://bugzilla.gnome.org/show_bug.cgi?id=793637
Tim-Philipp Müller [Thu, 15 Feb 2018 19:44:37 +0000 (19:44 +0000)]
Back to development
Tim-Philipp Müller [Thu, 15 Feb 2018 17:50:14 +0000 (17:50 +0000)]
Release 1.13.1
Guillaume Desmottes [Fri, 30 Jun 2017 13:15:06 +0000 (15:15 +0200)]
omxh265enc: fix typo in "periodicty-idr" property name
Also fix the 'nick' of the property.
omxh265enc is based on the code from omxh264enc and suffers the same
typo as we fixed in https://bugzilla.gnome.org/show_bug.cgi?id=784370
This element isn't part of a stable release yet so it's not an API
break.
https://bugzilla.gnome.org/show_bug.cgi?id=793390
Tim-Philipp Müller [Thu, 8 Feb 2018 19:18:59 +0000 (19:18 +0000)]
meson: make version numbers ints and fix int/string comparison
WARNING: Trying to compare values of different types (str, int).
The result of this is undefined and will become a hard error
in a future Meson release.
Also remove unused libversion/soversion.
Guillaume Desmottes [Tue, 12 Dec 2017 15:50:00 +0000 (16:50 +0100)]
include all OMX extension headers if present
The OMX specs defines 8 headers that implementations can use to define
their custom extensions. We were checking and including 3 and ignoring
the other ones.
https://bugzilla.gnome.org/show_bug.cgi?id=792043
Guillaume Desmottes [Tue, 30 Jan 2018 09:31:03 +0000 (10:31 +0100)]
meson: simplify OMX extensions detection
We are now always checking which files are present or not, even when using our
internal copy of OMX, rather than hardcoding the ones present in it.
https://bugzilla.gnome.org/show_bug.cgi?id=792043
Nicolas Dufresne [Tue, 30 Jan 2018 11:54:24 +0000 (11:54 +0000)]
Revert "meson: use include_directories() with external OMX headers path"
This reverts commit
9d37a92a615e54e8ee12f8c65bcfe386ec9de2d0.
Guillaume Desmottes [Mon, 27 Nov 2017 13:52:10 +0000 (14:52 +0100)]
omxh265enc: add some encoding properties
constrained-intra-prediction and loop-filter-mode.
Those map standard OMX settings.
https://bugzilla.gnome.org/show_bug.cgi?id=792528
Guillaume Desmottes [Thu, 23 Nov 2017 14:54:15 +0000 (15:54 +0100)]
omxh264enc: add some encoding properties
entropy-mode, constrained-intra-prediction and loop-filter-mode.
Those map standard OMX settings.
https://bugzilla.gnome.org/show_bug.cgi?id=792528
Guillaume Desmottes [Thu, 8 Jun 2017 10:31:21 +0000 (12:31 +0200)]
omxvideoenc: add zynqultrascaleplus specific properties
https://bugzilla.gnome.org/show_bug.cgi?id=792528
Guillaume Desmottes [Tue, 31 Oct 2017 11:24:39 +0000 (12:24 +0100)]
omxvideoenc: document unit of target-bitrate property
nTargetBitrate and nEncodeBitrate are defined in bits per second in the
OMX spec.
https://bugzilla.gnome.org/show_bug.cgi?id=792528
Guillaume Desmottes [Thu, 6 Jul 2017 08:18:48 +0000 (10:18 +0200)]
omxvideodec: add internal-entropy-buffers property on zynqultrascaleplus
Custom property to control the number of internal buffers used in the
decoder to smooth out entropy decoding performance.
https://bugzilla.gnome.org/show_bug.cgi?id=792528
Guillaume Desmottes [Tue, 30 Jan 2018 09:31:03 +0000 (10:31 +0100)]
meson: use include_directories() with external OMX headers path
It seems cleaner to use the proper meson tools to include this path
rather than manually tweak the build flags.
This also allows us to simplify the OMX extensions detection code. We
are now always checking which files are present, even when using our
internal copy of OMX, rather than hardcoding the ones present in it.
https://bugzilla.gnome.org/show_bug.cgi?id=792043
Guillaume Desmottes [Tue, 7 Nov 2017 14:09:35 +0000 (15:09 +0100)]
omxvideoenc: expose chroma format and bit depth in output caps
As we added in the parser (bgo#792039) expose the chroma and bit
depth information in output caps.
https://bugzilla.gnome.org/show_bug.cgi?id=792040
Guillaume Desmottes [Tue, 7 Nov 2017 13:30:45 +0000 (14:30 +0100)]
omxvideoenc: factor out get_output_caps()
No semantic change so far.
https://bugzilla.gnome.org/show_bug.cgi?id=792040
Guillaume Desmottes [Fri, 29 Dec 2017 10:59:36 +0000 (11:59 +0100)]
omxvideodec: add hack to pass color format from caps to OMX decoder
This hack tries to pass as much information as possible from caps to the
decoder before it receives any buffer. These information can be used by
the OMX decoder to, for example, pre-allocate its internal buffers
before starting to decode and so reduce its initial latency.
This mechanism is currently supported by the zynqultrascaleplus decoder.
https://bugzilla.gnome.org/show_bug.cgi?id=792040
Guillaume Desmottes [Fri, 1 Dec 2017 11:43:19 +0000 (12:43 +0100)]
log failing OMX calls as errors
I find it confusing when debugging that OMX calls returning an error
where not logged as GST_LEVEL_ERROR making them harder to spot.
Fix this by introducing simple log macros checking the return value of
the OMX call and logging failures as errors.
https://bugzilla.gnome.org/show_bug.cgi?id=791069
Guillaume Desmottes [Mon, 30 Oct 2017 10:59:19 +0000 (11:59 +0100)]
add OMX_PERFORMANCE debug category
Can be used to log buffers exchange between OMX and gst-omx to profile
performances of the OMX component.
Ideally this should be done using tracer hooks but it's currently not
possible to define custom hooks outside of core.
Use GST_DEBUG="OMX_PERFORMANCE:8" to enable it.
See also
https://github.com/gdesmott/gst-log-parser/blob/master/src/bin/omx-perf.rs
as a simple program consuming those logs to generate gnuplot files and
stats.
https://bugzilla.gnome.org/show_bug.cgi?id=791093
Guillaume Desmottes [Thu, 27 Jul 2017 09:21:59 +0000 (11:21 +0200)]
omxvideoenc: implement dmabuf import on zynqultrascaleplus
The Zynq UltraScale+ encoder implements a custom OMX extension to
directly import dmabuf saving the need of mapping input buffers.
This can be use with either 'v4l2src io-mode=dmabuf' or an OMX video
decoder upstream.
https://bugzilla.gnome.org/show_bug.cgi?id=792361
Guillaume Desmottes [Fri, 22 Sep 2017 14:02:40 +0000 (16:02 +0200)]
omxvideoenc: drop late input frames if QoS is enabled
Make use of the new GstVideoEncoder QoS API to drop late input frames. This may
help a live pipeline to catch up if it's being late and all frames end up
being dropped at the sink.
https://bugzilla.gnome.org/show_bug.cgi?id=792783
Ashish Kumar [Fri, 19 Jan 2018 09:48:23 +0000 (15:18 +0530)]
TestEgl: Removed redundant/unused code
https://bugzilla.gnome.org/show_bug.cgi?id=788550
Guillaume Desmottes [Wed, 3 Jan 2018 15:07:18 +0000 (16:07 +0100)]
omxvideoenc: early return in fill_buffer() if something goes wrong
If something goes wrong while trying to manually copy the input buffer,
the 'break' was moving us out of the 'for' loop but not out of the switch block.
So we ended up calling gst_video_frame_unmap() a second time (raising
assertions) and returning TRUE rather than FALSE.
Reproduced with a WIP zynqultrascaleplus OMX branch reporting wrong
buffer sizes and so triggering this bug.
https://bugzilla.gnome.org/show_bug.cgi?id=792167
Tim-Philipp Müller [Tue, 19 Dec 2017 16:09:41 +0000 (16:09 +0000)]
meson: gl: the winsys and platform list in the .pc file is space-separated
Tim-Philipp Müller [Tue, 19 Dec 2017 16:08:58 +0000 (16:08 +0000)]
meson: fix subproject fallback for gstreamer-gl-1.0
It's now in -base.
Julien Isorce [Tue, 12 Dec 2017 17:30:27 +0000 (17:30 +0000)]
omxvideodec: ignore very little variations of the framerate
If less than 1%.
The dynamic format change should not happen when the
resolution does not change and when only the framerate
changes but very slightly, i.e. from 50000/1677=29.81
to 89/3=29.66 so a "percentage change" of less than 1%
(i.e. 100*(29.81-29.66)/29.66 = 0.50 < 1 ). In that case
just ignore it to avoid unnecessary renegotiation.
https://bugzilla.gnome.org/show_bug.cgi?id=759043
Guillaume Desmottes [Wed, 9 Aug 2017 16:07:33 +0000 (12:07 -0400)]
omxvideodec: use dynamic buffer mode on input if possible
Prevent from copying the input buffers between GStreamer and OMX.
Tested on zynqultrascaleplus and rpi (without dynamic buffers).
https://bugzilla.gnome.org/show_bug.cgi?id=787093
Guillaume Desmottes [Thu, 20 Jul 2017 14:35:31 +0000 (16:35 +0200)]
omxvideoenc: use dynamic buffer mode on input if possible
If the OMX component supports dynamic buffer mode and the input buffers
are properly aligned avoid copying each input frame between OMX and
GStreamer.
Tested on zynqultrascaleplus and rpi (without dynamic buffers).
https://bugzilla.gnome.org/show_bug.cgi?id=787093
Guillaume Desmottes [Thu, 20 Jul 2017 10:56:37 +0000 (12:56 +0200)]
omxvideoenc/dec: factor out input buffer allocation
No semantic change so far. I'm going to add an alternate way to allocate
input buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=787093
Guillaume Desmottes [Thu, 20 Jul 2017 14:31:54 +0000 (16:31 +0200)]
omx: add API to implement dynamic buffers support
OMX 1.2.0 introduced a third way to manage buffers by allowing
components to only allocate buffers header during their initialization
and change their pBuffer pointer at runtime.
This new feature can save us a copy between GStreamer and OMX for each
input buffer.
This patch adds API to allocate and use such buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=787093
Matthew Waters [Thu, 14 Dec 2017 03:53:17 +0000 (14:53 +1100)]
Automatic update of common submodule
From e8c7a71 to 3fa2c9e
Julien Isorce [Wed, 13 Dec 2017 12:06:40 +0000 (12:06 +0000)]
omxvideodec: consolidate the decision to try UseBuffer
The tee element can call gst_query_add_allocation_pool with pool as NULL.
Checking nth > 0 is not enough so we need to verify if there is a pool.
https://bugzilla.gnome.org/show_bug.cgi?id=730758
https://bugzilla.gnome.org/show_bug.cgi?id=784069
Julien Isorce [Tue, 12 Dec 2017 14:45:30 +0000 (14:45 +0000)]
gstomxvideodec: fix framerate overflow
Some live streams can set the framerate to 50000/1677 (=29.81).
GstVideoInfo.fps_n << 16 is wrong if the fps_n is 50000
(i.e. greater than 32767).
https://bugzilla.gnome.org/show_bug.cgi?id=759043
Julien Isorce [Tue, 22 Aug 2017 12:48:26 +0000 (13:48 +0100)]
example: port testegl.c to desktop
Will be easier to maintain.
Also uniformize autotool build with meson build which is
already retrieving the gl libs.
https://bugzilla.gnome.org/show_bug.cgi?id=781606
Julien Isorce [Mon, 11 Dec 2017 15:55:44 +0000 (15:55 +0000)]
meson: move omx features check after target selection
And uses gst_omx_args instead of add_global_arguments.
Similar to
c69232852120d064c689caef07b3c68ad8fe6288
which was only for configure.ac
Useful to get omxvp8dec with meson too:
meson . buildtmp -D with_omx_target=tizonia
https://bugzilla.gnome.org/show_bug.cgi?id=782800
Julien Isorce [Mon, 4 Dec 2017 17:11:04 +0000 (17:11 +0000)]
config: add OMX.Aratelia.audio_decoder.aac to Tizonia config
Useful mostly for testing/debugging purpose as this is a software
based decoder (libfaad) for which GStreamer provides a direct
wrapper.
https://bugzilla.gnome.org/show_bug.cgi?id=791482
Guillaume Desmottes [Wed, 29 Nov 2017 13:18:41 +0000 (14:18 +0100)]
omxvideodec: retrieve OMX_IndexParamVideoPortFormat before setting it
The usual pattern when setting OMX params is to first get the struct
param, override the values we want to set and then set the updated
param.
We were not doing this with OMX_IndexParamVideoPortFormat and so were
resetting some fields such as OMX_VIDEO_PARAM_PORTFORMATTYPE.xFramerate
https://bugzilla.gnome.org/show_bug.cgi?id=790979
Julien Isorce [Sun, 21 May 2017 16:34:51 +0000 (17:34 +0100)]
omxaacenc: also set 'profile' if mpegversion is 4
Like done by gst_codec_utils_aac_caps_set_level_and_profile
which is called by avenc_aac, ffaac and voaacenc.
https://bugzilla.gnome.org/show_bug.cgi?id=735208
Guillaume Desmottes [Tue, 24 Oct 2017 10:19:50 +0000 (12:19 +0200)]
omx: wait for flush complete and buffers being released when flushing
As stated in the existing comment, when flusing we should wait for OMX
to send the flush command complete event AND all ports being released.
We were stopping as soon as one of those condition was met.
Fix a race between FillThisBufferDone/EmptyBufferDone and the flush
EventCmdComplete messages. The OMX implementation is supposed to release
its buffers before posting the EventCmdComplete event but the ordering
isn't guaranteed as the FillThisBufferDone/EmptyBufferDone and
EventHandler callbacks can be called from different threads (cf 2.7
'Thread Safety' in the spec).
https://bugzilla.gnome.org/show_bug.cgi?id=789475
Guillaume Desmottes [Tue, 24 Oct 2017 09:45:20 +0000 (11:45 +0200)]
gst_omx_port_set_flushing: simplify waiting loop
No semantic change so far, I just made the 'while' end condition easier
to understand as a first step before changing it.
- move error/time out checks inside the loop to make it clearer on what
we are actually waiting for.
- group port->buffers checks together with parenthesis as they are part
of the same conceptual check: waiting for all buffers to be released.
https://bugzilla.gnome.org/show_bug.cgi?id=789475
Matthew Waters [Mon, 27 Nov 2017 09:17:17 +0000 (20:17 +1100)]
Automatic update of common submodule
From 3f4aa96 to e8c7a71
Guillaume Desmottes [Thu, 23 Nov 2017 14:03:48 +0000 (15:03 +0100)]
zynqultrascaleplus: add support for extra AVC levels
The Zynqultrascaleplus has support for extra AVC levels not defined in
the OMX spec as a customer extension.
https://bugzilla.gnome.org/show_bug.cgi?id=790758
Guillaume Desmottes [Mon, 16 Oct 2017 12:47:07 +0000 (14:47 +0200)]
add test support
Most of the boilerplate and the states test has been copied from
gst-plugins-good.
https://bugzilla.gnome.org/show_bug.cgi?id=789094
Guillaume Desmottes [Tue, 17 Oct 2017 11:07:05 +0000 (13:07 +0200)]
meson: add tools support
Looks like the tools directory was left out during the initial port to
meson.
https://bugzilla.gnome.org/show_bug.cgi?id=789090
Guillaume Desmottes [Mon, 16 Oct 2017 12:24:50 +0000 (14:24 +0200)]
omx: fix build on rpi
The nTimeStamp field is a OMX_TICKS struct on the rpi so use the proper
macro to set it.
Fix build on the build which has been broken by
b3173144b7c1b12c9e1b7571f78659be45d813f6
https://bugzilla.gnome.org/show_bug.cgi?id=789052
Guillaume Desmottes [Tue, 17 Oct 2017 10:11:04 +0000 (12:11 +0200)]
check if Allegro headers are present when building zynqultrascaleplus
The Zynq UltraScale+ uses a custom version of OMX implementing several
3rd party extensions. Make sure those are present when building this
target.
https://bugzilla.gnome.org/show_bug.cgi?id=788064
Guillaume Desmottes [Mon, 16 Oct 2017 10:42:44 +0000 (12:42 +0200)]
omxvideodec: remove redundant debug message
We have already a debug message right after.
https://bugzilla.gnome.org/show_bug.cgi?id=789058
Guillaume Desmottes [Mon, 16 Oct 2017 11:26:38 +0000 (13:26 +0200)]
omxh265: fix enum casting when using Allegro HEVC extensions
Allegro's HEVC implementation defines a superset of the profiles and
enums from the Android implementation.
Properly cast to fix -Wenum-conversion warnings from clang.
https://bugzilla.gnome.org/show_bug.cgi?id=789057
Guillaume Desmottes [Mon, 16 Oct 2017 11:08:12 +0000 (13:08 +0200)]
properly cast extension enums
OMX's allow 3rds party to define extensions using their own enums
(like OMX_VIDEO_CODINGEXTTYPE) and to be used as the general
ones (like OMX_VIDEO_CODINGTYPE).
Properly cast those to fix -Wenum-conversion warnings from some
compilers such as clang.
https://bugzilla.gnome.org/show_bug.cgi?id=789057
Guillaume Desmottes [Mon, 9 Oct 2017 11:12:35 +0000 (13:12 +0200)]
omx: also reset nTimeStamp when re-using buffers
Some OMX implementations may check if the timestamp of the output buffers
they receive is actually not set.
https://bugzilla.gnome.org/show_bug.cgi?id=788711
Guillaume Desmottes [Wed, 4 Oct 2017 15:11:55 +0000 (17:11 +0200)]
omx: factor out gst_omx_buffer_reset()
https://bugzilla.gnome.org/show_bug.cgi?id=788711
Guillaume Desmottes [Mon, 9 Oct 2017 15:27:22 +0000 (17:27 +0200)]
add gst_omx_buffer_flags_to_string()
Make debug logs more readable so users don't have to manually figure out
the meaning of flags.
https://bugzilla.gnome.org/show_bug.cgi?id=788767
Ponnam Srinivas [Wed, 27 Sep 2017 14:17:29 +0000 (19:47 +0530)]
h263enc: fix caps leak in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=788245
Ponnam Srinivas [Thu, 21 Sep 2017 09:51:36 +0000 (15:21 +0530)]
omxh264enc: fix caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=787711
Ponnam Srinivas [Thu, 21 Sep 2017 06:06:46 +0000 (11:36 +0530)]
omxh265enc: fix caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=787714
Guillaume Desmottes [Wed, 13 Sep 2017 13:32:51 +0000 (15:32 +0200)]
omxvideodec: log info about frame before releasing it
gst_video_decoder_release_frame() takes ownership of the frame and will
destroy it. So we should no longer use it after calling it.
https://bugzilla.gnome.org/show_bug.cgi?id=787628
Gurkirpal Singh [Sun, 20 Aug 2017 14:49:33 +0000 (20:19 +0530)]
configure: Show tizonia target in help
https://bugzilla.gnome.org/show_bug.cgi?id=786544
Guillaume Desmottes [Wed, 12 Jul 2017 12:35:10 +0000 (14:35 +0200)]
omxh265dec: add H265 decoder
Add HEVC decoder for the zynqultrascaleplus platform.
I used the H264 decoder code as a template.
https://bugzilla.gnome.org/show_bug.cgi?id=785434
Guillaume Desmottes [Wed, 12 Jul 2017 09:01:15 +0000 (11:01 +0200)]
omxh265enc: add H265 encoder
The OMX spec doesn't support HEVC but the OMX stack of the
zynqultrascaleplus adds it as a custom extension.
It uses the same API as the one of Android's OMX stack.
I used the H264 encoder code as a template.
https://bugzilla.gnome.org/show_bug.cgi?id=785434
Guillaume Desmottes [Mon, 28 Aug 2017 11:56:22 +0000 (13:56 +0200)]
omxvideoenc: use caps from query in propose_allocation
Prevent crash by not deferencing a NULL pointer if self->input_state
isn't defined when propose_allocation() is called.
https://bugzilla.gnome.org/show_bug.cgi?id=786442
Guillaume Desmottes [Mon, 4 Sep 2017 07:34:03 +0000 (09:34 +0200)]
omx: display states as string if changing failed
Improve the error message by displaying the states in their string
representation rather than their numerical value.
https://bugzilla.gnome.org/show_bug.cgi?id=787235
Julien Isorce [Tue, 22 Aug 2017 09:22:45 +0000 (10:22 +0100)]
omxvideodec: EGLDisplay is not indirectly defined by gstgl headers inclusion
Just use gpointer as done in GstGL to not include
EGL/egl.h just for EGLDisplay.
https://bugzilla.gnome.org/show_bug.cgi?id=784779
Gurkirpal Singh [Fri, 14 Jul 2017 11:04:04 +0000 (16:34 +0530)]
config: expose OMX.mesa h264 decoder and encoder in Tizonia config
https://bugzilla.gnome.org/show_bug.cgi?id=783976
Julien Isorce [Fri, 11 Aug 2017 14:48:37 +0000 (07:48 -0700)]
omxvideodec: remove wrong SettingsChanged ack
Partially revert 1b7d0b8:
omxvideodec: handle IL 1.2 behavior for OMX_SetParameter
It turned out it was a problem in the decoder which was
not updating some local variables upon SetParameter.
https://bugzilla.gnome.org/show_bug.cgi?id=783976
Julien Isorce [Thu, 20 Jul 2017 08:43:19 +0000 (09:43 +0100)]
omx{audio,video}{dec,enc}: sequentially disable ports because buffers are not shared
For the history, the parallel disable port has been introduced by:
"00be69f omxvideodec: Disable output port when setting a new format"
and then replicated to videoenc, audiodec and audioenc.
This is only required to do 'parallel' if buffers are shared between ports.
But for decoders and encoders the input and output buffer are of different
nature by definition (bitstream vs images). So they cannot be shared.
Also starting from IL 1.2.0 it is written in the spec that the parallel
disable is not allowed and will return an error. Except when buffers are
shared.
Again here we know in advance that they are not shared so let's always
do a sequential disable.
Tested on Desktop, rpi and zynqultrascaleplus.
https://bugzilla.gnome.org/show_bug.cgi?id=786348
Tim-Philipp Müller [Thu, 17 Aug 2017 11:26:05 +0000 (12:26 +0100)]
Automatic update of common submodule
From 48a5d85 to 3f4aa96
Guillaume Desmottes [Thu, 10 Aug 2017 16:16:53 +0000 (12:16 -0400)]
omxvideodec: use the decoder API to set latency
https://bugzilla.gnome.org/show_bug.cgi?id=785125