commit | fbf5c0ca45b3c4dd1d9621eb5198c3d43f1afbf6 | [log] [tgz] |
---|---|---|
author | Roman Stratiienko <r.stratiienko@gmail.com> | Mon Aug 24 11:27:48 2020 +0300 |
committer | Roman Stratiienko <r.stratiienko@gmail.com> | Tue Sep 01 23:12:47 2020 +0300 |
tree | 9f49d413835cc26dac0a63edd6018e5d7f551ffa | |
parent | cfc2b2e60267fb4140e99c0049598752c7d8749a [diff] |
drm_hwcomposer: libdrm gralloc_handle: modifiers and YUV support 1. Import DRM modifier field from libdrm's gralloc_habdle. 2. Recently lock_ycrcb() was added to gbm_gralloc() [1], mesa3d uses this function to obtain CrCb plane data (offsets, strides). Use the same alhorythm in drm_hwcomposer. This allows GPU offloading during video playback. (Tested using Gallery app and SkyTube). [1] - https://github.com/robherring/gbm_gralloc/pull/15 [2] - https://gitlab.freedesktop.org/mesa/mesa/-/blob/68957a82562d13b3f0d21a04ce633ffd236e6036/src/egl/drivers/dri2/platform_android.c#L202 Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Change-Id: I8ec177ac782f27174443cebcb6e773070c1505cc
Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms So please bring on porting patches, bugfixes, improvements for documentation and new features.
A short list of contribution guidelines:
Submit changes via gitlab merge requests on gitlab.freedesktop.org
drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/
When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:
`git diff | clang-format-diff-5.0 -p 1 -style=file`
Hardware specific changes should be tested on relevant platforms before committing.
If you need inspiration, please checkout our TODO issues
Happy hacking!