Introduce autoprobing for decoder driver#19
Draft
rzerres wants to merge 5 commits into
Draft
Conversation
- const struct codec (.name, .type) - refer 'codec_type' enum values to their lexical names - define a V4L2 buffer type structure (.name, .type) - refer 'v4l2_buf_type' enum values to their lexical names Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
1471f37 to
f921a1f
Compare
- include libudev checks - include ACLOCAL_AMFLAGS (-I m4) - include AC_CONFIG_MACRO_DIRS([m4]) Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- include library checks: libva, libdrm, libudev - set default_library -> shared - introduce shared library version - update configure_file to use mesonconfig.h.in this will create an autoconfig.h that only defines preprocessor definitions we need when using meson Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
Without the patch, the user needs to provide working environment variables that define the video_path and media_path (via: LIBVA-V4L2_REQUEST_MEDIA_PATH and LIBVA_V4L2_REQUEST_VIDEO_PATH). This patch will introduce needed infrastructure to autoscan suitable devices. - introduce libudev support: scan the class 'media' for available v4l2 devices - introduce media topology scan: parse entities and interfaces that do provide video-decoding functionality (MEDIA_IOC_G_TOPOLOGY) - introduce decoder 'vector': store v4l2 entities that offer needed decoder capabilities - probe streaming capability for given decoder entity - if multiple capable drivers are present (offering decoding and streaming), use the first one - respect precedence of given environment variables (with validity check) Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
f921a1f to
f3a0ea3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[v1] autoprobing capable decoder drivers
Without the patch, user needs to provide a working environment
variables that define the video_path and media_path
(via: LIBVA-V4L2_REQUEST_MEDIA_PATH and LIBVA_V4L2_REQUEST_VIDEO_PATH)
This patch will introduce needed infrastructure to autoscan suitable devices.
video-decoding functionality (MEDIA_IOC_G_TOPOLOGY)
decoder capabilities