Skip to content
Snippets Groups Projects
Commit a5ff1b14 authored by Vivek Kasireddy's avatar Vivek Kasireddy Committed by Frediano Ziglio
Browse files

channel-display-gst: Use h/w based decoders with Intel GPUs if possible


We first try to detect if an Intel GPU is available (by looking into
udev's database) and then probe Gstreamer's registry cache to see
if there is h/w based decoder (element) available for the incoming
video codec format. If both these conditions are satisfied (i.e,
Intel Media SDK Gstreamer plugin (libgstmsdk.so) and associated
libraries are properly installed), we then create a simple decode
pipeline using appropriate h/w based decoder and post-processor
elements instead of relying on playbin -- which may not be able to
auto-select these elements.

For example, if the incoming codec format is h264, we then create
a pipeline using msdkh264dec and vaapipostproc elements instead of
avdec_h264 and videoconvert.

Cc: Frediano Ziglio <freddy77@gmail.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: default avatarHazwan Arif Mazlan <hazwan.arif.mazlan@intel.com>
Signed-off-by: default avatarJin Chung Teng <jin.chung.teng@intel.com>
Acked-by: default avatarFrediano Ziglio <freddy77@gmail.com>
parent e2bcf572
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment