summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi
AgeCommit message (Collapse)AuthorFilesLines
2012-09-27utils: drop unused GLX helpers.Gwenole Beauchesne2-65/+0
Remove helpers for GL_ARB_fragment_program and GL_ARB_multitexture extensions since they are not used throughout gstreamer-vaapi.
2012-09-27utils: fix build with <GL/glext.h> version >= 85.Gwenole Beauchesne1-0/+7
Mesa recently updated the <GL/glext.h> header version to Khronos version 85. This caused the PFNGLMULTITEXCOORD2FPROC definition to be moved out of the GL_VERSION_1_3_DEPRECATED block. However, since <GL/gl.h> also defines GL_VERSION_1_3 to 1, the definitions in <GL/glext.h> are then not enabled, thus leaving PFNGLMULTITEXCOORD2FPROC undefined as well. Provide a PFNGLMULTITEXCOORD2FPROC replacement as an interim solution for newer versions of the <GL/glext.h> header.
2012-09-21h264: review and report errors accordingly.Gwenole Beauchesne1-8/+8
Use GST_ERROR() to report real errors instead of hiding them into GST_DEBUG().
2012-09-20h264: exclusively use GstAdapter, drop sub-buffer hack.Gwenole Beauchesne1-39/+63
Maintaining the sub-buffer is rather suboptimal especially since we were also maintaining a GstAdapter. Now, we only use the GstAdapter thus requiring minor extra parsing when receiving avcC buffers.
2012-09-17wayland: set opaque region for YUV surface.Kristian Høgsberg1-0/+18
This allows the compositor to optimize redraws and cull away changes obscured by the video surface. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-09-12glibcompat: add replacement for g_cond_wait_until().Gwenole Beauchesne1-0/+14
2012-09-11vaapidecode: don't reset decoder if codec type is the same.Gwenole Beauchesne2-0/+19
Reset, i.e. destroy then create, the decoder in _setcaps() handler only if the underlying codec type actually changed. This makes it possible to be more tolerant with certain MPEG-2 streams that get parsed to form caps that are compatible with the previous state but minor changes to "codec-data".
2012-09-11decoder: propagate buffer duration downstream.Gwenole Beauchesne1-0/+6
2012-09-11surfaceproxy: add "duration" property.Gwenole Beauchesne2-0/+73
2012-09-10decoder: cope with new GstVaapiContextInfo based API.Gwenole Beauchesne7-102/+121
Update decoders to report the maximum number of reference frames to use.
2012-09-10context: JPEG codec does not need any reference frame.Gwenole Beauchesne1-0/+1
2012-09-10context: allow number of reference frames to be set.Gwenole Beauchesne2-25/+124
Make it possible to specify the maximum number of references to use within a single VA context. This helps reducing GPU memory allocations to the useful number of references to be used.
2012-09-07mpeg4: fix debug info for unsupported profile.Gwenole Beauchesne1-1/+1
2012-09-07libs: fix build in strict ISO C mode.Gwenole Beauchesne31-34/+32
2012-09-07decoder: drop extraneous return for void function.Gwenole Beauchesne1-1/+1
2012-09-07image: don't use (void *) pointer arithmetic.Gwenole Beauchesne1-1/+1
2012-09-07Do not forward declare enums.Philip Lorenz8-42/+26
Forward declaring enums is not allowed by the C standard and aborts compilation if the header file is included in a C++ project. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-09-06display: fix display aspect ratio when display is rotated.Gwenole Beauchesne1-10/+14
2012-09-06display: fix physical display size when display is rotated.Gwenole Beauchesne3-2/+55
2012-08-30display: fix GstVaapiRotation enumeration of values.Gwenole Beauchesne1-0/+1
2012-08-29vaapisink: drop obsolete GstVaapiVideoSink interface.Gwenole Beauchesne3-194/+0
This interface was deprecated since 0.3.x series when the GstVideoContext interface was added to the main GStreamer APIs.
2012-08-29display: partially revert 8ebe4d6.Gwenole Beauchesne1-10/+3
Don't try to fix up the initial values, this could make things worse. Simply assume the driver does not support the capability in this case.
2012-08-28display: fix validation process of properties during discovery.Gwenole Beauchesne1-2/+18
Some VA drivers (e.g. EMGD) can have completely random values for initial display attributes. So, try to improve the discovery process to check the initial display attribute values actually fall within valid bounds. If not, try to reset those to some sensible values like the default value reported through vaQueryDisplayAttributes().
2012-08-28display: add color balance properties.Gwenole Beauchesne2-0/+173
Add support for hue, saturation, brightness and contrast attributes.
2012-08-28display: initialize default attribute values.Gwenole Beauchesne1-1/+12
Ensure the display attribute is actually supported by trying to retrieve its current value during GstVaapiDisplay creation.
2012-08-28display: raise "notify" for property changes.Gwenole Beauchesne1-0/+4
2012-08-28display: expose display attributes as GObject properties.Gwenole Beauchesne2-5/+57
Expose VA display "render-mode" and "rotation" attributes as standard GObject properties.
2012-08-28display: install properties in batch.Gwenole Beauchesne1-36/+34
Use g_object_class_install_properties() to install GstVaapiDisplay properties. It is useful to maintain properties as GParamSpec so that to be able to raise "notify" signals by id instead of by name in the future.
2012-08-27display: fix gst_vaapi_display_has_property().Gwenole Beauchesne1-2/+18
Append the "render-mode" and "rotation" properties, should they be supported by the underlying VA driver.
2012-08-27display: add support for rotation modes.Wind Yuan7-0/+146
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-27display: add support for rendering modes.Gwenole Beauchesne5-0/+245
A rendering mode can be "overlay" or "texture"'ed blit. The former mode implies that a VA surface used for rendering can't be re-used right away for decoding, so the sink shall make provisions to retain the associated surface proxy until the next surface is to be displayed. The latter mode implies that the VA surface is implicitly copied to an intermediate backing store, or back buffer of a frame buffer, so the associated surface proxy can be disposed right away.
2012-08-27display: add initial support for display attributes.Gwenole Beauchesne3-2/+90
The VA display attributes are mapped to properties so that to maintain the GStreamer terminology. Properties are to be identified by name, but internal functions are available to lookup the property by the actual VA display attribute type.
2012-08-27jpeg: fix end-of-image (EOI) handler.Sreerenj Balachandran1-1/+7
decode_current_picture() was converted to return a gboolean instead of a GstVaapiDecoderStatus, so we were not getting out of the decode loop as expected, or could cause an error instead. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-27mpeg2: include start code into VA slice data buffer.Gwenole Beauchesne1-9/+9
Integrate the start code prefix in the slice data buffer that is submitted to the hardware. VA-API specifies that slice_data_offset is the offset to the first byte of slice data. And, for MPEG-2, slice() data begins with the slice_start_code. Some VA driver implementations (EMGD) expect this.
2012-08-27decoder: use g_object_notify_by_pspec().Javier Jardón1-12/+14
Use g_object_notify_by_pspec() instead of g_object_notify() so that to avoid a property name lookup. i.e. this makes notifications faster to the `vaapidecode' element. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-06wayland: handle de-interlacing flags.Gwenole Beauchesne1-1/+13
VA/Wayland API was updated to allow flags for bob deinterlacing. More elaborated filters will require a complete VA/VPP pipeline.
2012-08-01display: drop VAProfileNone entries from debug messages.Gwenole Beauchesne1-1/+7
2012-08-01display: query for supported display attributes.Yan Yin1-0/+17
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-01utils: add string_of_VADisplayAttributeType() helper.Yan Yin2-0/+41
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-01Add initial support for VA/DRM.Gwenole Beauchesne8-0/+991
2012-07-31Fix build without X11 (again).Gwenole Beauchesne1-55/+56
Don't try to build libgstvaapi-x11.so.* if X11 was disabled. Also shuffle files list wrt. x11, glx and wayland backends.
2012-07-31jpeg: update to the latest VA-API changes (0.32.1+).Gwenole Beauchesne3-16/+15
2012-07-27wayland: implement display ::get_size*() hooks.Gwenole Beauchesne2-1/+86
2012-07-26wayland: use scale fullscreen method.Kristian Høgsberg1-1/+1
This makes the compositor scale the surface to fit and preserves aspect ratio. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-26wayland: respond to ping/pong protocol so we're not deemed unresponsive.Kristian Høgsberg1-0/+26
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-25wayland: fix double disconnect of display.Gwenole Beauchesne1-1/+2
2012-07-25wayland: mangle display name for cache lookups.Gwenole Beauchesne1-28/+71
2012-07-25Fix build without X11.Gwenole Beauchesne1-0/+2
2012-07-25plugins: add support for Wayland.Gwenole Beauchesne2-0/+6
2012-07-25Add initial support for VA/Wayland.Sreerenj Balachandran7-0/+1034
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>