platform/upstream/gstreamer.git
5 years agovaapipluginutil: Fix #endif for USE_X11
Danilo Spinella [Sat, 30 Mar 2019 17:29:31 +0000 (18:29 +0100)]
vaapipluginutil: Fix #endif for USE_X11

5 years agolibs: encoder: h264: simplify the view-ids setting
Víctor Manuel Jáquez Leal [Fri, 29 Mar 2019 17:29:51 +0000 (18:29 +0100)]
libs: encoder: h264: simplify the view-ids setting

5 years agolibs: encoder: h264: Use gst_param_spec_array for view-ids
He Junyan [Tue, 26 Mar 2019 06:54:47 +0000 (14:54 +0800)]
libs: encoder: h264: Use gst_param_spec_array for view-ids

GValueArray is deprecated. Use GstValueArray instead.

gst_param_spec_array can be deserialized from command line using:

vaapih264enc view-ids="<(uint)40,(uint)100>" num-views=2

While the g_param_spec_value_array() can not, and always get
error: "gst_value_deserialize_g_value_array: unimplemented"

Also fixed an out-of-range bug.

5 years agolibs: Change the parameter setting order when encode picture.
He Junyan [Fri, 29 Mar 2019 05:33:41 +0000 (13:33 +0800)]
libs: Change the parameter setting order when encode picture.

The order in gst_vaapi_enc_picture_encode when encoding one
picture is not very correct. The misc parameters are set before
the picture parameters. Some of the misc parameters such as
ROI may change the current picture parameters. But the later
setting of picture parameter will re-init all picture related
parameters and clear the previous setting. The right order
should be picture parameter first and then misc parameters.

Signed-off-by: He Junyan <junyan.he@hotmail.com>
5 years agolibs: decoder: jpeg: support dynamic resolution change decode.
Wangfei [Tue, 26 Mar 2019 06:20:34 +0000 (14:20 +0800)]
libs: decoder: jpeg: support dynamic resolution change decode.

Add size_changed flag to watch out resolution. if change, reset
jpeg decoder's context.

5 years agolibs: encoder: h265: add low power mode encode.
Wangfei [Sat, 23 Mar 2019 07:34:03 +0000 (15:34 +0800)]
libs: encoder: h265: add low power mode encode.

By now, this feature only support by media-driver on Ice Lake
platform, more information you can reference:
https://github.com/intel/media-driver

5 years agovaapiencode: gobject's prop_id differ from vaapi encoder
He Junyan [Fri, 15 Mar 2019 10:40:21 +0000 (18:40 +0800)]
vaapiencode: gobject's prop_id differ from vaapi encoder

The vaapi internal encoder's property id are negative, thus they are
different from GObject's property ids.

gst_vaapi_encoder_set_property() should map to the internal encoder
property id, assigned in gst_vaapiencode_default_set_property().

5 years agomeson: disable compiler warnings for unused vars and args if gst debug system is...
Tim-Philipp Müller [Thu, 21 Mar 2019 16:56:34 +0000 (16:56 +0000)]
meson: disable compiler warnings for unused vars and args if gst debug system is disabled

5 years agomeson: use new 'python' module instead of deprecated 'python3' one
Tim-Philipp Müller [Thu, 21 Mar 2019 13:31:57 +0000 (13:31 +0000)]
meson: use new 'python' module instead of deprecated 'python3' one

5 years agoUpdate common submodule back to 59cb678164719ff59dcf6c8b93df4617a1075d11
Thibault Saunier [Mon, 11 Mar 2019 21:38:36 +0000 (18:38 -0300)]
Update common submodule back to 59cb678164719ff59dcf6c8b93df4617a1075d11

It was wrongly changed in 3d9555a86d45565870c684fe00ec8bbb0fed7205

5 years agoBack to development
Tim-Philipp Müller [Mon, 4 Mar 2019 09:16:17 +0000 (09:16 +0000)]
Back to development

5 years agolibs: Fix a typo in comments.
He Junyan [Fri, 1 Mar 2019 04:33:26 +0000 (12:33 +0800)]
libs: Fix a typo in comments.

Fix a typo in function description of
gst_vaapi_surface_pool_new_with_chroma_type.

Signed-off-by: He Junyan <junyan.he@hotmail.com>
5 years agoplugin: if any caps in downstream, negotiate raw video
Víctor Manuel Jáquez Leal [Wed, 27 Feb 2019 12:02:10 +0000 (13:02 +0100)]
plugin: if any caps in downstream, negotiate raw video

When downstream has any caps, vaapi should not shovel vaapi featured
buffers, but rather plain raw video, assuming always the worst case
scenario (downstream cannot handle featured video memory but raw
system memory buffers).

This patch query the peer caps without any filter, to know if
donwstream just ask for any caps, if so jump to the color space
checking, otherwise do the caps intersection and continue with the
feature selection algorithm.

Fixes: #139

5 years agoRelease 1.15.2
Tim-Philipp Müller [Tue, 26 Feb 2019 12:01:53 +0000 (12:01 +0000)]
Release 1.15.2

5 years agoUpdate docs
Tim-Philipp Müller [Tue, 26 Feb 2019 12:01:53 +0000 (12:01 +0000)]
Update docs

5 years agovaapivideomemory: Prefer same format for surface and image
He Junyan [Tue, 5 Feb 2019 08:59:40 +0000 (16:59 +0800)]
vaapivideomemory: Prefer same format for surface and image

We prefer to use the same format between image and surface for gst
vaapi allocator. The old way may choose different formats between
image and surface. For example, the RGBA image may have a NV12 surface.

So we need to do format conversion when we put/get image to surface.

Some drivers such as iHD can not support such conversion and always
cause a data flow error. There may also have some performance cost
for format conversion when put/get images.

So we prefer to use the same format for image and surface in the
allocator. If the surface can not support that format, we then
fallback to find a best one as the surface format.

Co-authored-by: Víctor Jáquez <vjaquez@igalia.com>
5 years agolibs: Delete the duplicated ARGB video format.
He Junyan [Fri, 15 Feb 2019 07:19:51 +0000 (15:19 +0800)]
libs: Delete the duplicated ARGB video format.

Two ARGB formats with the same format information.
Should be verbose and delete one.

Signed-off-by: He Junyan <junyan.he@hotmail.com>
5 years agoglx: Stop specifying GLX_DEPTH_SIZE
Adam Jackson [Wed, 13 Feb 2019 15:39:59 +0000 (10:39 -0500)]
glx: Stop specifying GLX_DEPTH_SIZE

This code is just confused. It's asking for at least as many bits of
(z-axis) depth as the root window has bits of (color) depth. For rgb565
or rgb888 this is harmless, but at 10 bits per channel this demands a
30-bit or deeper Z buffer. While some hardware could in principle do a
32-bit Z buffer, Mesa does not expose such fbconfigs (at least on Intel
and AMD).

We're not actually using the Z buffer, so just stop asking for one.

5 years agolibs: wayland: add support for XDG-shell protocol
Niels De Graef [Mon, 14 Jan 2019 10:30:48 +0000 (11:30 +0100)]
libs: wayland: add support for XDG-shell protocol

[wl_shell] is officially [deprecated], so provide support for the
XDG-shell protocol should be provided by all desktop-like compositors.
(In case they don't, we can of course fall back to wl_shell).

Note that the XML file is directly provided by the `wayland-protocols`
dependency and generates the protocol marshalling code.

[wl_shell]: https://people.freedesktop.org/~whot/wayland-doxygen/wayland/Client/group__iface__wl__shell.html
[deprecated]: https://github.com/wayland-project/wayland/commit/698dde195837f3d0844b2725ba4ea8ce9ee7518c

5 years agolibs: window: wayland: Prefix wl_shell_surface field with `wl_`
Niels De Graef [Sat, 16 Feb 2019 18:09:50 +0000 (19:09 +0100)]
libs: window: wayland: Prefix wl_shell_surface field with `wl_`

It will help us to distinguish from other Wayland shell surface
(such as XDG-shell) later on.

5 years agolibs: wayland: Prefix wl_shell field with `wl_`
Niels De Graef [Mon, 14 Jan 2019 08:58:19 +0000 (09:58 +0100)]
libs: wayland: Prefix wl_shell field with `wl_`

It will help us to distinguish from other Wayland shells (such as
XDG-shell) later on.

5 years agolibs: display: lock ensure_profile()
Denis Nagorny [Fri, 8 Feb 2019 06:21:28 +0000 (09:21 +0300)]
libs: display: lock ensure_profile()

Thread safety patch for ensure_profile() function

Fixes #133

5 years agomeson: bump the minimum wayland version requirement to 1.11.0
Víctor Manuel Jáquez Leal [Fri, 8 Feb 2019 15:35:39 +0000 (16:35 +0100)]
meson: bump the minimum wayland version requirement to 1.11.0

This was missed on commit 77bb3424

5 years agovaapisink: x11: trap WM_DELETE_WINDOW message
Víctor Manuel Jáquez Leal [Thu, 24 Jan 2019 20:08:07 +0000 (21:08 +0100)]
vaapisink: x11: trap WM_DELETE_WINDOW message

Register the WM_DELETE_WINDOW message from window manager and
trap it to stop the pipeline cleanly.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/130

5 years agolibs: window: remove native-id property
Víctor Manuel Jáquez Leal [Mon, 21 Jan 2019 18:22:58 +0000 (19:22 +0100)]
libs: window: remove native-id property

native-id property is problematic since the variable that stores it is
gsize, which is platform specific, and in some is bigger than unsigned
long, and there are not way to handle gsize properties.

Also, GST_VAAPI_ID_INVALID is defined in gsize terms, and we would
like to keep using it for this scope.

This patch removes the native-id property and set it manually in
gst_vaapi_window_new_internal().

5 years agolibs: window: use G_GSIZE_MODIFIER for window id
Víctor Manuel Jáquez Leal [Fri, 18 Jan 2019 09:33:37 +0000 (10:33 +0100)]
libs: window: use G_GSIZE_MODIFIER for window id

gsize type is not equal in all platforms, then the 'l' print modifier
shall not be used always.

This issue was found in Debian builds.

5 years agoencoder: h264/h265: set SPS cbr_flag with correct value.
Wangfei [Thu, 17 Jan 2019 02:27:13 +0000 (10:27 +0800)]
encoder: h264/h265: set SPS cbr_flag with correct value.

The flag only set as 1 when the rate-control mode is CBR.

5 years agoRelease 1.15.1
Tim-Philipp Müller [Thu, 17 Jan 2019 02:36:52 +0000 (02:36 +0000)]
Release 1.15.1

5 years agoUpdate docs
Tim-Philipp Müller [Thu, 17 Jan 2019 02:36:52 +0000 (02:36 +0000)]
Update docs

5 years agolibs: encoder: refactor to avoid code duplication
Víctor Manuel Jáquez Leal [Mon, 14 Jan 2019 18:35:34 +0000 (19:35 +0100)]
libs: encoder: refactor to avoid code duplication

gst_vaapi_encoder_put_frame() and gst_vaapi_encoder_flush() duplicates
the same code segment where the coded buffer is created, the picture
encoded on it and pushed to the async queue.

The function gst_vaapi_encoder_encode_and_queue() refactor this.

5 years agolibs: encoder: h264/h265: flush pending ordered pictures
Víctor Manuel Jáquez Leal [Mon, 14 Jan 2019 17:21:30 +0000 (18:21 +0100)]
libs: encoder: h264/h265: flush pending ordered pictures

In order to flush the pending pictures, a new internal encoder vmethod
is used: get_pending_reordered()

This method follows an iterator pattern which will return the next
picture to encode and push.

The base encoder will call this function in a loop when flush() is called.

For now, only H.264 and H.265 encoders implement this flushing mechanism.

5 years agolibs: encoder: h264/h265: fix encode lose frame issue.
Wangfei [Thu, 6 Dec 2018 02:18:53 +0000 (10:18 +0800)]
libs: encoder: h264/h265: fix encode lose frame issue.

Instead of dropping all remain frames in reorder_frame_list during
flush, keep encoding.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/97

5 years agovaapipostproc: before set surface proxy, check if it already been created and exist.
Wangfei [Tue, 15 Jan 2019 06:33:11 +0000 (14:33 +0800)]
vaapipostproc: before set surface proxy, check if it already been created and exist.

Fix the deinterlace black frame when playing with glimagesink:
gst-launch-1.0 filesrc location=test.264 ! h264parse ! vaapih264dec \
! vaapipostproc deinterlace-mode=1 deinterlace-method=1 ! glimagesink

5 years agovaapipostproc: clean up USE_VA_VPP macro since it already removed from
Wangfei [Fri, 11 Jan 2019 05:48:29 +0000 (13:48 +0800)]
vaapipostproc: clean up USE_VA_VPP macro since it already removed from
configure file.

5 years agomeson: build h264 fei encoder if possible
Haihao Xiang [Wed, 26 Dec 2018 06:36:23 +0000 (14:36 +0800)]
meson: build h264 fei encoder if possible

5 years agoconfigure: bump the minimum wayland version requirement to 1.11.0
Haihao Xiang [Wed, 26 Dec 2018 06:04:08 +0000 (14:04 +0800)]
configure: bump the minimum wayland version requirement to 1.11.0

5 years agovaapi: bump the minimum vaapi version requirement to 0.39.0
Haihao Xiang [Mon, 24 Dec 2018 04:58:53 +0000 (12:58 +0800)]
vaapi: bump the minimum vaapi version requirement to 0.39.0

And reduce unnecessary API version and structures check as well.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/108

5 years agolibs: window: remove custom ref() and unref()
Víctor Manuel Jáquez Leal [Sat, 22 Dec 2018 17:07:35 +0000 (18:07 +0100)]
libs: window: remove custom ref() and unref()

Use gst_object_ref() and gst_object_unref() instead.

5 years agolibs: window: use its own debug category
Víctor Manuel Jáquez Leal [Sat, 22 Dec 2018 12:25:09 +0000 (13:25 +0100)]
libs: window: use its own debug category

5 years agolibs: window: refactor as gobject
Víctor Manuel Jáquez Leal [Sat, 22 Dec 2018 17:02:38 +0000 (18:02 +0100)]
libs: window: refactor as gobject

This is another step in the gobjectification of the internal library
of gstreamer-vaapi. Now it is the turn of GstVaapiWindow and its
derivates.

The idea is to minimize the changeset keeping the same design as
much as possible.

GstVaapiWindow is defined as an abstract class with two properties:
the GstVaapiDisplay and the native ID. Thus, many of the
GstVaapiObject macros were copied as GstVaapiWindow macros.

The function gst_vaapi_window_new_internal() is kept as a decorator
of for calling gst_vaapi_window_create() and the possibility of
failure.

The descendant classes, such as glx, still use the private
structures, but through the gobject mechanism.

5 years agolibs: filter: use its own debug category
Víctor Manuel Jáquez Leal [Mon, 3 Dec 2018 21:05:29 +0000 (22:05 +0100)]
libs: filter: use its own debug category

5 years agoplugins: Add more check for allowed raw caps.
He Junyan [Mon, 24 Dec 2018 06:08:42 +0000 (14:08 +0800)]
plugins: Add more check for allowed raw caps.

The gst_vaapi_plugin_base_get_allowed_raw_caps is used for both sink
pad and src pad, which cause some bugs. For sink pad, we need to verify
vaPutImage() while for the src pad we need to verify vaGetImage().
For vaapidecoderXXX kind of plugins, the case is more complex. We need
to verify whether the decoded result(in some surface, NV12 format most
of the time) can be vaGetImage to some raw image format. Add more check
to fix all these problems.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/123

Signed-off-by: He Junyan <junyan.he@hotmail.com>
5 years agovaapipostproc: fix csc fail when only change width or height.
Wangfei [Tue, 18 Dec 2018 02:44:21 +0000 (10:44 +0800)]
vaapipostproc: fix csc fail when only change width or height.

5 years agomeson: Add gtk guard
Wonchul Lee [Sat, 15 Dec 2018 00:47:15 +0000 (09:47 +0900)]
meson: Add gtk guard

5 years agolibs: enc: h264: set max profile idc with correct profile.
Wangfei [Sat, 15 Dec 2018 06:48:03 +0000 (14:48 +0800)]
libs: enc: h264: set max profile idc with correct profile.

Use the highest rank of available profile as the max profile to
set max idc value.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/124

5 years agoUse G_DEFINE_TYPE_WITH_PRIVATE if applicable
Niels De Graef [Mon, 3 Dec 2018 12:56:52 +0000 (13:56 +0100)]
Use G_DEFINE_TYPE_WITH_PRIVATE if applicable

This gets rid of the strange `do_init` macro and makes the intent a bit
more clear.

5 years agoAutomatic update of common submodule
Thibault Saunier [Wed, 5 Dec 2018 20:24:53 +0000 (17:24 -0300)]
Automatic update of common submodule

From ed78bee to 59cb678

5 years agolibs: dec: h265: support decode for main-444 10bit streams.
Wangfei [Tue, 27 Nov 2018 14:47:44 +0000 (09:47 -0500)]
libs: dec: h265: support decode for main-444 10bit streams.

Add 444 10bit yuv format Y410, which can be used to decode
main-444 10bit streams. Currently, this feature is only
supported by media-driver in Icelake.

5 years agoRun gst-indent through the files
Jordan Petridis [Wed, 28 Nov 2018 03:56:44 +0000 (05:56 +0200)]
Run gst-indent through the files

This is required before we enabled an indent test in the CI.

https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/33

5 years agoplugins: modify image check of extract_allowed_surface_formats.
He Junyan [Wed, 14 Nov 2018 05:11:56 +0000 (13:11 +0800)]
plugins: modify image check of extract_allowed_surface_formats.

The extract_allowed_surface_formats function just check whether
we can support some kind of surface/image format pair. We just
need to create a surface, create an image with the same video-format
and putImage from image to surface. All these operations success,
that kind of video-format is supported.
The old manner do not work for some kind of video-format. For example,
the RGBA kind of format will create a NV12 surface and RGBA image,
and the putImage will fail because the format is not same. And so
the RGBA format is not supported but actually it is supported.

5 years agovaapipostproc: add some missing locking
Michael Olbrich [Wed, 14 Nov 2018 10:34:20 +0000 (11:34 +0100)]
vaapipostproc: add some missing locking

gst_vaapi_plugin_base_close() removed the raw caps that are used indirectly
in gst_vaapipostproc_transform_caps(). The usage is already protected by
the mutex.
This is needed when the pipeline is stopped during startup.

5 years agoClose dmabuf_fd
Xiang, Haihao [Tue, 20 Nov 2018 08:07:44 +0000 (16:07 +0800)]
Close dmabuf_fd

Otherwise it will result in resource leak when failed to create
dmabuf memory

5 years agovaapiencode: don't start src pad task in set_format
Michael Olbrich [Mon, 12 Nov 2018 12:39:51 +0000 (13:39 +0100)]
vaapiencode: don't start src pad task in set_format

Otherwise the task may be restarted during shutdown. Start the task in
gst_vaapiencode_handle_frame() instead.

5 years agolibs: dec: h265: support decode for main-444 8bit streams.
Wangfei [Wed, 14 Nov 2018 05:52:48 +0000 (13:52 +0800)]
libs: dec: h265: support decode for main-444 8bit streams.

Add 444 8bit yuv format AYUV, which can be used to decode
main-444 8bit streams. Currently, this feature is only
supported by media-driver in Icelake.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/119

5 years agoAdd Gitlab CI configuration
Víctor Manuel Jáquez Leal [Mon, 12 Nov 2018 16:43:54 +0000 (17:43 +0100)]
Add Gitlab CI configuration

This commit adds a .gitlab-ci.yml file, which uses a feature
to fetch the config from a centralized repository. The intent is
to have all the gstreamer modules use the same configuration.

The configuration is currently hosted at the gst-ci repository
under the gitlab/ci_template.yml path.

Part of https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/29

5 years agolibs: Sync the GstVaapiChromaType to VA header file.
He Junyan [Fri, 9 Nov 2018 14:03:43 +0000 (22:03 +0800)]
libs: Sync the GstVaapiChromaType to VA header file.

Add more kinds of chrometype which will be used to describe
new video formats. Sync it with 1.4.0 version header file.
Alse delete useless GST_VAAPI_CHROMA_TYPE_YUV410 chrome type.

Signed-off-by: He Junyan <junyan.he@hotmail.com>
5 years agomeson: link with -lm
Tim-Philipp Müller [Fri, 9 Nov 2018 23:55:05 +0000 (23:55 +0000)]
meson: link with -lm

Fixes #117 hopefully.

5 years agomeson: bump meson required to 0.47 for feature options
Tim-Philipp Müller [Fri, 9 Nov 2018 23:46:53 +0000 (23:46 +0000)]
meson: bump meson required to 0.47 for feature options

5 years agolibs: Modify the video format of endianness.
Junyan He [Tue, 6 Nov 2018 06:38:08 +0000 (14:38 +0800)]
libs: Modify the video format of endianness.

We lack some video format because endianness declare.
The video format should not directly relate to endianness. For example,
ARGB on big endian should not be simplely seen as BGRA on little endian
machine. We should provide endianess convert or format convert help
functions if endianness does not match.

https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/112

Signed-off-by: Junyan He <junyan.he@intel.com>
5 years agoplugins: Fix build error when GL is enabled while EGL is disabled.
Junyan He [Wed, 17 Oct 2018 10:36:52 +0000 (18:36 +0800)]
plugins: Fix build error when GL is enabled while EGL is disabled.

gl_platform_type in gst_vaapi_get_display_type_from_gl_env generate
unused-variable warning and may block build when Werror enabled.
Several functions like gst_vaapi_display_egl_new_with_native_display
have no prototype warning and link error when GL is enabled but EGL
is disabled. Fix all these warning and link error.

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

Signed-off-by: Junyan He <junyan.he@intel.com>
5 years agolibs: encoder: h264/h264fei: remove unuseless code.
Wangfei [Sat, 3 Nov 2018 07:06:09 +0000 (15:06 +0800)]
libs: encoder: h264/h264fei: remove unuseless code.

The variable are set twice, remove previous one.

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

5 years agotests: check return value when using gst_buffer_map.
Wangfei [Sat, 3 Nov 2018 07:28:35 +0000 (15:28 +0800)]
tests: check return value when using gst_buffer_map.

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

5 years agobuild: meson: build examples
Víctor Manuel Jáquez Leal [Fri, 2 Nov 2018 15:50:47 +0000 (16:50 +0100)]
build: meson: build examples

5 years agobuild: meson: declare headers for libgstvaapi
Víctor Manuel Jáquez Leal [Fri, 2 Nov 2018 15:50:00 +0000 (16:50 +0100)]
build: meson: declare headers for libgstvaapi

Thus handling its recompilation if needed.

5 years agoUpdate common submodule location
Matthew Waters [Mon, 5 Nov 2018 05:41:13 +0000 (05:41 +0000)]
Update common submodule location

Remove the git directory

5 years agoClone the code from gitlab
Haihao Xiang [Mon, 5 Nov 2018 05:00:28 +0000 (13:00 +0800)]
Clone the code from gitlab

This fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/116

5 years agolibs: dec: h265: support decode for main-10-422 10bit streams.
Wangfei [Wed, 24 Oct 2018 18:18:37 +0000 (14:18 -0400)]
libs: dec: h265: support decode for main-10-422 10bit streams.

Add 422 10bit yuv format Y210, which can be used to decode
main-10-422 10bit streams. Currently, this feature is only
supported by media-driver in Icelake.

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

5 years agolibs: context: roi_rc_qp_delta_support should not be checked when CQP.
Wangfei [Sat, 13 Oct 2018 07:00:32 +0000 (15:00 +0800)]
libs: context: roi_rc_qp_delta_support should not be checked when CQP.

VA_ROI_RC_QP_DELTA_SUPPORT return value will be ignored when the
rate control mode is set as CQP. In CQP mode, it shouldn't check
roi_rc_qp_delta_support return value from driver backend.

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

5 years agovaapipostproc: fix classification string
Víctor Manuel Jáquez Leal [Mon, 15 Oct 2018 15:55:24 +0000 (17:55 +0200)]
vaapipostproc: fix classification string

The classification string is splitted by '/' and then looks for the
components.

This patch removes the ';' by unifying all the components.

5 years agovaapipostproc: Add Hardware classifier to metadata
Philippe Normand [Mon, 15 Oct 2018 15:05:02 +0000 (16:05 +0100)]
vaapipostproc: Add Hardware classifier to metadata

5 years agolibs: context: create context first before using it to create surface.
Wangfei [Fri, 12 Oct 2018 08:37:34 +0000 (16:37 +0800)]
libs: context: create context first before using it to create surface.

In gst_vaapi_context_reset(), if the context has to be destroyed, make
sure to create it first before allocating its associated surfaces.

This patch fixes a regression introduced in commit 82872f4 because
the formats available in the current context now are ensured before
creating the context's surfaces.

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

5 years agogst: Advertise elements interacting with hardware devices
Philippe Normand [Fri, 12 Oct 2018 14:39:53 +0000 (15:39 +0100)]
gst: Advertise elements interacting with hardware devices

5 years agolibs: context: query surface format before context to create surface.
Wangfei [Mon, 1 Oct 2018 01:26:05 +0000 (09:26 +0800)]
libs: context: query surface format before context to create surface.

Before using context to create surface, the supported surface format
should be checked first.

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

5 years agolibs: replace g_error with GST_ERROR
Víctor Manuel Jáquez Leal [Tue, 9 Oct 2018 15:23:55 +0000 (17:23 +0200)]
libs: replace g_error with GST_ERROR

And handle those errors rather than halting.

5 years agolibs: replace g_warning with GST_WARNING
Víctor Manuel Jáquez Leal [Tue, 9 Oct 2018 15:23:30 +0000 (17:23 +0200)]
libs: replace g_warning with GST_WARNING

5 years agolibs: Move from g_debug to GST_DEBUG.
Matteo Valdina [Wed, 26 Sep 2018 19:55:32 +0000 (14:55 -0500)]
libs: Move from g_debug to GST_DEBUG.

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

5 years agovaapipostproc: change the way of handling deinterlace
Soon, Thean Siew [Wed, 3 Oct 2018 18:20:10 +0000 (02:20 +0800)]
vaapipostproc: change the way of handling deinterlace

The current vaapipostproc calls driver's video processing
pipeline for deinterlacing only if it is Advance deinterlacing.
Modify in the way that it always tries with driver's video
processing pipeline for deinterlacing, and falls back to software
method of appending picture structure meta data only if it fails
with driver's method.

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

5 years agolibs: h264: Update level table to "Recommendation H.264 (04/17)".
Matteo Valdina [Mon, 24 Sep 2018 21:54:29 +0000 (16:54 -0500)]
libs: h264: Update level table to "Recommendation H.264 (04/17)".

Added level 6, 6.1 and 6.2. Reference Table A-1 – Level limits
from T-REC-H.264-201704.

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

5 years agolibs: dec: h265: add 422 chroma format support.
Wangfei [Thu, 20 Sep 2018 01:57:33 +0000 (09:57 +0800)]
libs: dec: h265: add 422 chroma format support.

Add main-422-10 profile which support 422 chroma format stream.
Currently, this feature is only supported by media-driver in Icelake.

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

5 years agotests: include sysdeps.h in compilation unit
U. Artie Eoff [Wed, 26 Sep 2018 17:34:06 +0000 (19:34 +0200)]
tests: include sysdeps.h in compilation unit

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

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
5 years agotests: fix compilation
Víctor Manuel Jáquez Leal [Wed, 26 Sep 2018 16:04:53 +0000 (18:04 +0200)]
tests: fix compilation

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

5 years agotests: don's use sysdeps.h in header
Víctor Manuel Jáquez Leal [Tue, 25 Sep 2018 18:28:02 +0000 (20:28 +0200)]
tests: don's use sysdeps.h in header

5 years agolibs: utils: no need of include config.h
Víctor Manuel Jáquez Leal [Fri, 14 Sep 2018 17:30:56 +0000 (19:30 +0200)]
libs: utils: no need of include config.h

5 years agotests: remove already include string.h
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 16:12:02 +0000 (18:12 +0200)]
tests: remove already include string.h

Since sysdeps.h includes string.h there's no need to include it again.

5 years agolibs: remove already include string.h
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 16:11:25 +0000 (18:11 +0200)]
libs: remove already include string.h

Since sysdeps.h includes string.h there's no need to include it again.

5 years agolibs: object: separation of internal API and plugins
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 16:26:27 +0000 (18:26 +0200)]
libs: object: separation of internal API and plugins

Removed exposed macros GST_VAAPI_OBJECT_DISPLAY() and
GST_VAAPI_OBJECT_ID() to plugins, keeping them only for internal
library usage.

The purpose is readability.

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

5 years agolibs: parser_frame: change macros for inlined functions
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 14:34:54 +0000 (16:34 +0200)]
libs: parser_frame: change macros for inlined functions

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

5 years agolibs: videopool: remove unneeded code
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 14:10:13 +0000 (16:10 +0200)]
libs: videopool: remove unneeded code

The removed code comes frome the bad practice of copy&paste. Better
move it as internal function.

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

5 years agolibs: remove dependency on IN_LIBGSTVAAPI_CORE
Víctor Manuel Jáquez Leal [Thu, 13 Sep 2018 10:22:42 +0000 (12:22 +0200)]
libs: remove dependency on IN_LIBGSTVAAPI_CORE

This conditional code was when libgstvaapi was intended to be library
used outside GStreamer. This not the case anymore, thus removing it.

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

5 years agolibs: dec: h265: fix the macros used for IDC profile
Wangfei [Wed, 19 Sep 2018 02:16:36 +0000 (10:16 +0800)]
libs: dec: h265: fix the macros used for IDC profile

profile_idc flag in SPS only indicate the IDC profile, which may
need some other flags together to get the real profile.

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

5 years agolibs: use g_clear_pointer() when possible
Jimmy Ohn [Wed, 12 Sep 2018 10:06:22 +0000 (19:06 +0900)]
libs: use g_clear_pointer() when possible

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

5 years agolibs: filter: add gobject's cleanup function
Víctor Manuel Jáquez Leal [Mon, 3 Sep 2018 11:56:52 +0000 (13:56 +0200)]
libs: filter: add gobject's cleanup function

5 years agolibs: filter: remove custom ref() and unref()
Víctor Manuel Jáquez Leal [Tue, 22 May 2018 12:28:40 +0000 (14:28 +0200)]
libs: filter: remove custom ref() and unref()

Replacing them by gst_object_ref() and gst_object_unref()

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

5 years agolibs: filter: refactor filter as gobject
Víctor Manuel Jáquez Leal [Tue, 22 May 2018 12:26:48 +0000 (14:26 +0200)]
libs: filter: refactor filter as gobject

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

5 years agolibs: decoder: remove destoy() and create() callbacks
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:38:00 +0000 (13:38 +0200)]
libs: decoder: remove destoy() and create() callbacks

They were all replaced by reset()

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

5 years agolibs: decoder: vp9: implement reset() callback
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:26:01 +0000 (13:26 +0200)]
libs: decoder: vp9: implement reset() callback

remove destroy() and create() callback

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

5 years agolibs: decoder: vp8: implement reset() callback
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:25:37 +0000 (13:25 +0200)]
libs: decoder: vp8: implement reset() callback

remove create() and destroy() callbacks

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

5 years agolibs: decoder: vc1: implement reset() callback
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:24:39 +0000 (13:24 +0200)]
libs: decoder: vc1: implement reset() callback

remove destroy() and create() callbacks

use g_clear_pointer for rbdu_buffer

no cast for enum

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

5 years agolibs: decoder: mpeg4: implement reset() callback
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:24:13 +0000 (13:24 +0200)]
libs: decoder: mpeg4: implement reset() callback

remove destroy() and create() callback

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

5 years agolibs: decoder: mpeg2: implement reset() callback
Víctor Manuel Jáquez Leal [Mon, 21 May 2018 11:22:45 +0000 (13:22 +0200)]
libs: decoder: mpeg2: implement reset() callback

remove create() and destroy() callbacks

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