[FFmpeg-devel] fbdetile - detile framebuffer layout using cpu

C Hanish Menon hanishkvc at gmail.com
Sat Jun 27 11:19:18 EEST 2020


Hi,

Recently I was trying to capture screen in wayland using kmsgrab and
noticed that the output is mangled/tiled. When one does kmsgrab and
hwdownload, as the data could be tiled many a times, I have implemented a
simple cpu based detiling logic to convert them into linear layout, so that
it is proper for use.

I have implemented logic to detile Intel legacy tile-X and tile-Y formats.

Attached is the set of patches using git format-patch wrt the code which I
did.

Parallely I am also attaching a git diff master version which has all the
changes as a single patch file.

Hope this can help some people who may want to capture screen on a
machine with Intel gpu.

-- 
Keep ;-)
HanishKVC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Updated-filters.texi-with-fbdetile-perf-impact-info.patch
Type: application/octet-stream
Size: 952 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-The-command-used-for-testing-mentioned-now.patch
Type: application/octet-stream
Size: 869 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Added-a-changelog-entry-comment-for-intely-logic.patch
Type: application/octet-stream
Size: 1696 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Added-details-of-fbdetile-usage-into-filters.texi.patch
Type: application/octet-stream
Size: 2106 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Added-Intel-Legacy-Tile-Y-layout-conversion-support.patch
Type: application/octet-stream
Size: 3269 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Positioned-fbdetile-next-to-hwdownload-group.patch
Type: application/octet-stream
Size: 2259 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Reality-hits-with-actual-test-stream.patch
Type: application/octet-stream
Size: 2048 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Remove-unused-variables.patch
Type: application/octet-stream
Size: 1547 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Updated-prints-comments-ARGB-s-also.patch
Type: application/octet-stream
Size: 5691 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Found-oversight-of-a-oversight-causing-the-gallooopi.patch
Type: application/octet-stream
Size: 1390 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Verbose-where-required.patch
Type: application/octet-stream
Size: 2530 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-the-initial-skeleton-for-fbdetile-video-filter.patch
Type: application/octet-stream
Size: 7563 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0011.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-oversights-i32-back-to-i64-bcas-its-a-union.patch
Type: application/octet-stream
Size: 2509 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0012.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Fix-the-oversight-wrt-dest-offset.patch
Type: application/octet-stream
Size: 1021 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0013.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Fix-oversight-wrt-compare-some-dbug-prints.patch
Type: application/octet-stream
Size: 1474 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0014.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fbdetile-all-in-one-diff-master.v20200627IST1316.patch
Type: application/octet-stream
Size: 12321 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200627/078fdb91/attachment-0015.obj>


More information about the ffmpeg-devel mailing list