platform/upstream/gstreamer-vaapi.git
12 years agompeg2: replace GstVaapiTSB API with GstAdapter (gst-plugins-base >= 0.10.24).
Sreerenj Balachandran [Fri, 18 Nov 2011 13:06:07 +0000 (15:06 +0200)]
mpeg2: replace GstVaapiTSB API with GstAdapter (gst-plugins-base >= 0.10.24).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agompeg2: fix packets spanning over two buffers.
Gwenole Beauchesne [Wed, 14 Sep 2011 16:11:57 +0000 (18:11 +0200)]
mpeg2: fix packets spanning over two buffers.

12 years agompeg2: ignore system start codes (PES headers).
Gwenole Beauchesne [Mon, 12 Sep 2011 16:20:00 +0000 (18:20 +0200)]
mpeg2: ignore system start codes (PES headers).

12 years agompeg2: handle closed_gop.
Gwenole Beauchesne [Mon, 12 Sep 2011 16:02:53 +0000 (18:02 +0200)]
mpeg2: handle closed_gop.

12 years agoAdd initial MPEG-2 decoder.
Gwenole Beauchesne [Fri, 5 Aug 2011 09:55:11 +0000 (11:55 +0200)]
Add initial MPEG-2 decoder.

12 years agoAllow conditional build of GStreamer/FFmpeg bitstream parsers.
Gwenole Beauchesne [Fri, 12 Aug 2011 08:21:19 +0000 (10:21 +0200)]
Allow conditional build of GStreamer/FFmpeg bitstream parsers.

12 years agoAdd VA decoder helpers.
Gwenole Beauchesne [Fri, 5 Aug 2011 09:53:50 +0000 (11:53 +0200)]
Add VA decoder helpers.

12 years agodecoder: add new error codes.
Gwenole Beauchesne [Fri, 5 Aug 2011 09:52:43 +0000 (11:52 +0200)]
decoder: add new error codes.

GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE: for unsupported profile
GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_CHROMA_FORMAT: for unsupported chroma format

12 years agoAdd timestamp buffer store helper utils.
Gwenole Beauchesne [Mon, 12 Sep 2011 11:00:59 +0000 (13:00 +0200)]
Add timestamp buffer store helper utils.

12 years agoAdd VA buffer helpers.
Gwenole Beauchesne [Thu, 4 Aug 2011 15:29:41 +0000 (17:29 +0200)]
Add VA buffer helpers.

12 years agoutils: slight improvements to gl_bind_texture().
Gwenole Beauchesne [Fri, 13 Jan 2012 14:03:38 +0000 (15:03 +0100)]
utils: slight improvements to gl_bind_texture().

12 years agoutils: pretty-print output of gl_get_error_string().
Gwenole Beauchesne [Fri, 13 Jan 2012 13:13:55 +0000 (14:13 +0100)]
utils: pretty-print output of gl_get_error_string().

12 years agoutils: rewrite gl_perspective() as per OpenGL FAQ 9.085.
Gwenole Beauchesne [Fri, 13 Jan 2012 13:03:29 +0000 (14:03 +0100)]
utils: rewrite gl_perspective() as per OpenGL FAQ 9.085.

12 years agoutils: simplify string of VAProfile/VAEntrypoint.
Gwenole Beauchesne [Fri, 13 Jan 2012 11:09:07 +0000 (12:09 +0100)]
utils: simplify string of VAProfile/VAEntrypoint.

12 years agoutils: drop string_of_FOURCC() in favor of standard GST_FOURCC_* helpers.
Gwenole Beauchesne [Fri, 13 Jan 2012 10:46:55 +0000 (11:46 +0100)]
utils: drop string_of_FOURCC() in favor of standard GST_FOURCC_* helpers.

12 years agoNEWS: updates.
Gwenole Beauchesne [Thu, 12 Jan 2012 16:18:47 +0000 (17:18 +0100)]
NEWS: updates.

12 years agotests: check for shared VA displays (display cache).
Gwenole Beauchesne [Thu, 12 Jan 2012 14:34:59 +0000 (15:34 +0100)]
tests: check for shared VA displays (display cache).

12 years agodisplay: always free VA display cache if it is empty.
Gwenole Beauchesne [Thu, 12 Jan 2012 14:30:04 +0000 (15:30 +0100)]
display: always free VA display cache if it is empty.

12 years agodisplay: use VA display cache for X11 and GLX winsys.
Gwenole Beauchesne [Thu, 12 Jan 2012 14:03:04 +0000 (15:03 +0100)]
display: use VA display cache for X11 and GLX winsys.

12 years agodisplay: implement a VA display cache.
Gwenole Beauchesne [Thu, 12 Jan 2012 11:46:34 +0000 (12:46 +0100)]
display: implement a VA display cache.

12 years agovaapiplugin: fix gst_vaapi_ensure_display() to use system defaults.
Gwenole Beauchesne [Wed, 11 Jan 2012 13:13:06 +0000 (14:13 +0100)]
vaapiplugin: fix gst_vaapi_ensure_display() to use system defaults.

This ensures the display name provided to gst_vaapi_display_*_new()
maps to the system defaults, instead of forcing "" that could be different
from the current DISPLAY name.

12 years agovaapiupload: only set caps on newly created buffers.
Nicolas Dufresne [Fri, 26 Aug 2011 19:44:25 +0000 (15:44 -0400)]
vaapiupload: only set caps on newly created buffers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapisink: ensure VA display in GstBaseSink::start() hook.
Gwenole Beauchesne [Wed, 11 Jan 2012 13:11:30 +0000 (14:11 +0100)]
vaapisink: ensure VA display in GstBaseSink::start() hook.

This ensures a VA display is ready by the time upstream elements request
for it.

12 years agovaapisink: don't leak GL texture.
Nicolas Dufresne [Fri, 26 Aug 2011 19:44:46 +0000 (15:44 -0400)]
vaapisink: don't leak GL texture.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapisink: fix calculation of render region.
Gwenole Beauchesne [Mon, 9 Jan 2012 15:51:35 +0000 (16:51 +0100)]
vaapisink: fix calculation of render region.

12 years agovaapisink: automatically fit video to window.
Gwenole Beauchesne [Mon, 9 Jan 2012 10:23:39 +0000 (11:23 +0100)]
vaapisink: automatically fit video to window.

12 years agovaapisink: implement GstXOverlay::set_render_rectangle().
Gwenole Beauchesne [Mon, 9 Jan 2012 09:37:30 +0000 (10:37 +0100)]
vaapisink: implement GstXOverlay::set_render_rectangle().

12 years agowindow: always check geometry when the window is mapped.
Gwenole Beauchesne [Mon, 9 Jan 2012 10:04:21 +0000 (11:04 +0100)]
window: always check geometry when the window is mapped.

12 years agoAdd missing profiles from VA-API 0.32.0.
Zhao Halley [Fri, 6 Jan 2012 16:51:59 +0000 (17:51 +0100)]
Add missing profiles from VA-API 0.32.0.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years ago.gitignore: add test-subpicture.
Gwenole Beauchesne [Fri, 6 Jan 2012 15:48:15 +0000 (16:48 +0100)]
.gitignore: add test-subpicture.

12 years agoBump version for development.
Gwenole Beauchesne [Fri, 6 Jan 2012 10:23:21 +0000 (11:23 +0100)]
Bump version for development.

12 years ago0.3.2. 0.3.2
Gwenole Beauchesne [Fri, 6 Jan 2012 10:20:48 +0000 (11:20 +0100)]
0.3.2.

12 years agotests: fix make dist (ship with test-subpicture-data.h).
Gwenole Beauchesne [Fri, 6 Jan 2012 10:18:55 +0000 (11:18 +0100)]
tests: fix make dist (ship with test-subpicture-data.h).

12 years agoNEWS: updates.
Gwenole Beauchesne [Thu, 5 Jan 2012 16:35:12 +0000 (17:35 +0100)]
NEWS: updates.

12 years agodecoder: fix possible leak of VA surfaces.
Gwenole Beauchesne [Thu, 5 Jan 2012 16:09:35 +0000 (17:09 +0100)]
decoder: fix possible leak of VA surfaces.

Under some circumstances, we could have leaked a surface, thus not
releasing it to the pool of available surfaces in the VA context.
The strategy is now to use a proxy earlier and automatically ref/unref
whenever necessary. In particular, during the lifetime needed for FFmpeg.

12 years agosurfaceproxy: add helper to retrieve the VA surface ID.
Gwenole Beauchesne [Thu, 5 Jan 2012 15:59:57 +0000 (16:59 +0100)]
surfaceproxy: add helper to retrieve the VA surface ID.

12 years agosurfaceproxy: simplify destruction.
Gwenole Beauchesne [Thu, 5 Jan 2012 15:44:44 +0000 (16:44 +0100)]
surfaceproxy: simplify destruction.

Also make sure to always make sure to release the surface back to the
pool of surfaces in the associated VA context, if any.

12 years agovaapidecode: fix deinitialization order.
Gwenole Beauchesne [Thu, 5 Jan 2012 15:26:49 +0000 (16:26 +0100)]
vaapidecode: fix deinitialization order.

12 years agocontext: avoid self reference loops with surfaces.
Gwenole Beauchesne [Thu, 5 Jan 2012 13:50:26 +0000 (14:50 +0100)]
context: avoid self reference loops with surfaces.

12 years agodebian: update control.in description for new plugins.
Gwenole Beauchesne [Thu, 5 Jan 2012 10:23:01 +0000 (11:23 +0100)]
debian: update control.in description for new plugins.

12 years agovaapiupload: use new gst_vaapi_append_surface_caps() helper.
Gwenole Beauchesne [Thu, 5 Jan 2012 10:01:56 +0000 (11:01 +0100)]
vaapiupload: use new gst_vaapi_append_surface_caps() helper.

This also fixes extra structures, beyond the one at index 0, to hold
the right additional values.

12 years agovaapiupload: fix sink (YUV) caps to not report type and opengl fields.
Gwenole Beauchesne [Thu, 5 Jan 2012 09:55:34 +0000 (10:55 +0100)]
vaapiupload: fix sink (YUV) caps to not report type and opengl fields.

12 years agovaapidownload: add new plugin to download pixels from VA surfaces.
Gwenole Beauchesne [Thu, 5 Jan 2012 09:50:59 +0000 (10:50 +0100)]
vaapidownload: add new plugin to download pixels from VA surfaces.

12 years agovaapipluingutils: add helper to append surface caps to YUV caps.
Gwenole Beauchesne [Thu, 5 Jan 2012 10:00:39 +0000 (11:00 +0100)]
vaapipluingutils: add helper to append surface caps to YUV caps.

12 years agoimage: add helpers to extract pixels to user buffers.
Gwenole Beauchesne [Thu, 5 Jan 2012 09:29:48 +0000 (10:29 +0100)]
image: add helpers to extract pixels to user buffers.

12 years agoimage: simplify initialization of raw images from video buffers.
Gwenole Beauchesne [Wed, 4 Jan 2012 10:34:34 +0000 (11:34 +0100)]
image: simplify initialization of raw images from video buffers.

12 years agoimage: fix update from NV12 buffers.
Gwenole Beauchesne [Wed, 4 Jan 2012 10:29:11 +0000 (11:29 +0100)]
image: fix update from NV12 buffers.

12 years agovaapiupload: fix memory leak in _init() function.
Gwenole Beauchesne [Tue, 3 Jan 2012 17:16:35 +0000 (18:16 +0100)]
vaapiupload: fix memory leak in _init() function.

12 years agoRename vaapiconvert element to vaapiupload.
Gwenole Beauchesne [Tue, 3 Jan 2012 13:34:09 +0000 (14:34 +0100)]
Rename vaapiconvert element to vaapiupload.

12 years agoBump version for development.
Gwenole Beauchesne [Tue, 3 Jan 2012 12:54:03 +0000 (13:54 +0100)]
Bump version for development.

12 years ago0.3.1. 0.3.1
Gwenole Beauchesne [Tue, 3 Jan 2012 12:42:12 +0000 (13:42 +0100)]
0.3.1.

12 years agoNEWS: updates.
Gwenole Beauchesne [Wed, 14 Dec 2011 14:22:24 +0000 (15:22 +0100)]
NEWS: updates.

12 years agosurface: apply composition to the parent context, if requested.
Gwenole Beauchesne [Wed, 14 Dec 2011 13:40:37 +0000 (14:40 +0100)]
surface: apply composition to the parent context, if requested.

12 years agocontext: make it possible to apply composition globally.
Gwenole Beauchesne [Wed, 14 Dec 2011 13:35:13 +0000 (14:35 +0100)]
context: make it possible to apply composition globally.

12 years agosurface: fix associate subpicture to not report deassociation errors.
Gwenole Beauchesne [Wed, 14 Dec 2011 13:13:58 +0000 (14:13 +0100)]
surface: fix associate subpicture to not report deassociation errors.

12 years agosurface: fix typo in debug message.
Gwenole Beauchesne [Wed, 14 Dec 2011 12:46:26 +0000 (13:46 +0100)]
surface: fix typo in debug message.

12 years agosubpicture: add helper to create subpicture from GstVideoOverlayRectangle.
Gwenole Beauchesne [Wed, 14 Dec 2011 12:16:21 +0000 (13:16 +0100)]
subpicture: add helper to create subpicture from GstVideoOverlayRectangle.

12 years agosurface: record parent context.
Gwenole Beauchesne [Tue, 13 Dec 2011 15:53:15 +0000 (16:53 +0100)]
surface: record parent context.

12 years agoFix warnings.
Gwenole Beauchesne [Tue, 13 Dec 2011 14:59:02 +0000 (15:59 +0100)]
Fix warnings.

12 years agoRename gst_vaapi_surface_update_composition() to
Gwenole Beauchesne [Tue, 13 Dec 2011 14:51:58 +0000 (15:51 +0100)]
Rename gst_vaapi_surface_update_composition() to
gst_vaapi_surface_set_subpictures_from_composition().

12 years agoconfigure: check for GstVideoOverlayComposition.
Gwenole Beauchesne [Tue, 13 Dec 2011 12:40:55 +0000 (13:40 +0100)]
configure: check for GstVideoOverlayComposition.

12 years agoNEWS: updates.
Gwenole Beauchesne [Mon, 12 Dec 2011 17:42:44 +0000 (18:42 +0100)]
NEWS: updates.

12 years agoconverter: add support for GstVideoOverlayComposition planes.
Nicolas Dufresne [Fri, 25 Nov 2011 20:00:25 +0000 (15:00 -0500)]
converter: add support for GstVideoOverlayComposition planes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapisink: handle GstVideoOverlayComposition planes.
Thibault Saunier [Wed, 23 Nov 2011 19:45:46 +0000 (16:45 -0300)]
vaapisink: handle GstVideoOverlayComposition planes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agosurface: use unscaled overlay rectangle for blending.
Gwenole Beauchesne [Mon, 12 Dec 2011 17:27:14 +0000 (18:27 +0100)]
surface: use unscaled overlay rectangle for blending.

12 years agosurface: fix VA image leak when an error occurred.
Gwenole Beauchesne [Mon, 12 Dec 2011 17:37:13 +0000 (18:37 +0100)]
surface: fix VA image leak when an error occurred.

12 years agosurface: add helper to handle GstVideoOverlayComposition.
Nicolas Dufresne [Fri, 25 Nov 2011 19:59:56 +0000 (14:59 -0500)]
surface: add helper to handle GstVideoOverlayComposition.

This helper resets the subpictures to reflect the current composition
layers provided with the buffers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoimage: add gst_vaapi_image_format_from_video() helper.
Gwenole Beauchesne [Mon, 12 Dec 2011 17:13:19 +0000 (18:13 +0100)]
image: add gst_vaapi_image_format_from_video() helper.

12 years agoimage: allow updates from GstVaapiImageRaw.
Gwenole Beauchesne [Mon, 12 Dec 2011 15:34:07 +0000 (16:34 +0100)]
image: allow updates from GstVaapiImageRaw.

12 years agoimage: allow partial updates.
Gwenole Beauchesne [Mon, 12 Dec 2011 13:34:03 +0000 (14:34 +0100)]
image: allow partial updates.

12 years agosubpicture: fix doc for gst_vaapi_subpicture_set_image().
Gwenole Beauchesne [Mon, 12 Dec 2011 14:31:52 +0000 (15:31 +0100)]
subpicture: fix doc for gst_vaapi_subpicture_set_image().

12 years agodisplay: fix has_image_format() to check against subpicture formats.
Gwenole Beauchesne [Mon, 12 Dec 2011 12:39:20 +0000 (13:39 +0100)]
display: fix has_image_format() to check against subpicture formats.

12 years agotests: fix subpicture test.
Gwenole Beauchesne [Mon, 17 Oct 2011 16:43:15 +0000 (18:43 +0200)]
tests: fix subpicture test.

12 years agotests: add test for subpictures.
Thibault Saunier [Fri, 14 Oct 2011 16:00:12 +0000 (13:00 -0300)]
tests: add test for subpictures.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAdd missing video context queries.
Nicolas Dufresne [Fri, 25 Nov 2011 17:28:04 +0000 (12:28 -0500)]
Add missing video context queries.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoBump version for development.
Gwenole Beauchesne [Mon, 12 Dec 2011 12:22:07 +0000 (13:22 +0100)]
Bump version for development.

12 years agoDrop unused copy of GstBaseVideoDecoder.
Gwenole Beauchesne [Mon, 12 Dec 2011 09:04:32 +0000 (10:04 +0100)]
Drop unused copy of GstBaseVideoDecoder.

12 years ago0.3.0. 0.3.0
Gwenole Beauchesne [Fri, 9 Dec 2011 10:46:45 +0000 (11:46 +0100)]
0.3.0.

12 years agoREADME: update dependencies.
Gwenole Beauchesne [Fri, 9 Dec 2011 10:38:43 +0000 (11:38 +0100)]
README: update dependencies.

12 years agoNEWS: updates.
Gwenole Beauchesne [Fri, 9 Dec 2011 10:38:34 +0000 (11:38 +0100)]
NEWS: updates.

12 years agoconfigure: check for GstBaseSink 'query' vfunc.
Gwenole Beauchesne [Fri, 9 Dec 2011 10:20:04 +0000 (11:20 +0100)]
configure: check for GstBaseSink 'query' vfunc.

12 years agovaapiplugin: include local build dir to CFLAGS for generated files.
Gwenole Beauchesne [Fri, 9 Dec 2011 09:45:20 +0000 (10:45 +0100)]
vaapiplugin: include local build dir to CFLAGS for generated files.

12 years agoautogen: don't configure if NO_CONFIGURE variable is set.
Gwenole Beauchesne [Fri, 9 Dec 2011 09:44:52 +0000 (10:44 +0100)]
autogen: don't configure if NO_CONFIGURE variable is set.

12 years agovaapidecode: return sink caps template if decoder is in NULL state.
Sreerenj Balachandran [Thu, 8 Dec 2011 10:54:59 +0000 (11:54 +0100)]
vaapidecode: return sink caps template if decoder is in NULL state.

Otherwise, the decoder would always create its own X display instead
of probing it from the downstream element, which is not reliable.
e.g. DISPLAY is not :0 or when running on Wayland.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapiplugin: properly set surface type to "vaapi" in caps.
Gwenole Beauchesne [Thu, 8 Dec 2011 14:44:09 +0000 (15:44 +0100)]
vaapiplugin: properly set surface type to "vaapi" in caps.

12 years agodecoder: drop unused headers.
Gwenole Beauchesne [Thu, 8 Dec 2011 14:16:14 +0000 (15:16 +0100)]
decoder: drop unused headers.

12 years agovaapiplugin: properly set opengl support in caps.
Nicolas Dufresne [Fri, 4 Nov 2011 23:47:25 +0000 (19:47 -0400)]
vaapiplugin: properly set opengl support in caps.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapiplugin: allocate GLX buffers when supported.
Nicolas Dufresne [Sat, 5 Nov 2011 00:07:52 +0000 (20:07 -0400)]
vaapiplugin: allocate GLX buffers when supported.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovideobuffer: add GLX buffer support.
Nicolas Dufresne [Fri, 4 Nov 2011 23:47:09 +0000 (19:47 -0400)]
videobuffer: add GLX buffer support.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoPort to GstSurfaceBuffer interface.
Nicolas Dufresne [Thu, 6 Oct 2011 20:06:15 +0000 (16:06 -0400)]
Port to GstSurfaceBuffer interface.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoDon't use downstream buffer allocation.
Nicolas Dufresne [Thu, 6 Oct 2011 20:04:37 +0000 (16:04 -0400)]
Don't use downstream buffer allocation.

With the new video/x-surface abstraction, we can't rely on having a VA
specific sink downstream. Also, there was no particular reason to do that.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoChange caps to use new video/x-surface generic type.
Nicolas Dufresne [Fri, 4 Nov 2011 21:16:23 +0000 (17:16 -0400)]
Change caps to use new video/x-surface generic type.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoPort to GstVideoContext interface.
Nicolas Dufresne [Fri, 4 Nov 2011 20:50:15 +0000 (16:50 -0400)]
Port to GstVideoContext interface.

This new interface allows for upstream and downstream display sharing
that works in both static and dynamic pipelines.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovaapisink: use GST_ERROR to print error messages.
Gwenole Beauchesne [Thu, 8 Dec 2011 13:57:36 +0000 (14:57 +0100)]
vaapisink: use GST_ERROR to print error messages.

12 years agovaapiplugin: link against VA/GLX when enabled.
Gwenole Beauchesne [Thu, 8 Dec 2011 12:30:51 +0000 (13:30 +0100)]
vaapiplugin: link against VA/GLX when enabled.

12 years agoAdd Intel copyright information.
Gwenole Beauchesne [Wed, 7 Dec 2011 18:09:55 +0000 (19:09 +0100)]
Add Intel copyright information.

12 years agovaapisink: allow compatibility with gst-plugins-base < 0.10.31.
Gwenole Beauchesne [Wed, 7 Dec 2011 18:04:09 +0000 (19:04 +0100)]
vaapisink: allow compatibility with gst-plugins-base < 0.10.31.

12 years agoAdd new GStreamer version check utilities.
Gwenole Beauchesne [Wed, 7 Dec 2011 17:40:35 +0000 (18:40 +0100)]
Add new GStreamer version check utilities.

12 years agovaapisink: replace the deprecated xoverlay API with the new one.
Sreerenj Balachandran [Thu, 28 Jul 2011 08:14:49 +0000 (11:14 +0300)]
vaapisink: replace the deprecated xoverlay API with the new one.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoconfigure: allow for pre-releases.
Gwenole Beauchesne [Wed, 7 Dec 2011 16:31:09 +0000 (17:31 +0100)]
configure: allow for pre-releases.