[FFmpeg-devel] [PATCH v08.01 0/3] kmsgrab, fbtile+hwcontext_drm, VFs

2020-07-12 Thread hanishkvc
filters fbtiler and hwdownload Have been updated to use the new fbtile. This is provided for reference, in case someone is interested. hanishkvc (3): KMSGrab: getfb2 format_modifier if user doesnt specify fbtile tile/detile, hwcontext_drm detile NonLinear VF fbtiler (tile/detile) and

[FFmpeg-devel] [PATCH v08.01 2/3] fbtile tile/detile, hwcontext_drm detile NonLinear

2020-07-12 Thread hanishkvc
** fbtile cpu based framebuffer tile/detile helpers Add helper routines which can be used to tile/detile framebuffer layouts between linear and specified tile layout, using the cpu. Currently it supports Legacy Intel Tile-X, Legacy Intel Tile-Y and Newer Intel Tile-Yf tiled layouts. Currently su

[FFmpeg-devel] [PATCH v08.01 1/3] KMSGrab: getfb2 format_modifier if user doesnt specify

2020-07-12 Thread hanishkvc
If user doesnt specify a format_modifier explicitly, then use GetFB2 to identify the format_modifier of the framebuffer being grabbed. This is supported on newer linux builds, where xf86drmMode.h has added support for GetFB2. --- Changelog | 1 + configure | 5 + lib

[FFmpeg-devel] [PATCH v08.01 3/3] VF fbtiler (tile/detile) and hwdownload (detile)

2020-07-12 Thread hanishkvc
t a/libavfilter/vf_fbtiler.c b/libavfilter/vf_fbtiler.c new file mode 100644 index 00..1cf39ef81f --- /dev/null +++ b/libavfilter/vf_fbtiler.c @@ -0,0 +1,245 @@ +/* + * Copyright (c) 2020 HanishKVC + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it

[FFmpeg-devel] [PATCH v08 0/3] *** kmsgrab, fbtile hwdownload_drm, VFs ***

2020-07-11 Thread hanishkvc
either as a public api or internal api. This is a optional patch set. hanishkvc (3): KMSGrab: getfb2 format_modifier if user doesnt specify fbtile tile/detile, hwcontext_drm detile NonLinear VF fbtiler (tile/detile) and hwdownload (detile) Changelog | 5 + configure

[FFmpeg-devel] [PATCH v08 1/3] KMSGrab: getfb2 format_modifier if user doesnt specify

2020-07-11 Thread hanishkvc
If user doesnt specify a format_modifier explicitly, then use GetFB2 to identify the format_modifier of the framebuffer being grabbed. This is supported on newer linux builds, where xf86drmMode.h has added support for GetFB2. --- Changelog | 1 + configure | 5 + lib

[FFmpeg-devel] [PATCH v08 1/3] KMSGrab: getfb2 format_modifier if user doesnt specify

2020-07-11 Thread hanishkvc
If user doesnt specify a format_modifier explicitly, then use GetFB2 to identify the format_modifier of the framebuffer being grabbed. This is supported on newer linux builds, where xf86drmMode.h has added support for GetFB2. --- Changelog | 1 + configure | 5 + lib

[FFmpeg-devel] [PATCH v08 2/3] fbtile tile/detile, hwcontext_drm detile NonLinear

2020-07-11 Thread hanishkvc
** fbtile cpu based framebuffer tile/detile helpers Add helper routines which can be used to tile/detile framebuffer layouts between linear and specified tile layout, using the cpu. Currently it supports Legacy Intel Tile-X, Legacy Intel Tile-Y and Newer Intel Tile-Yf tiled layouts. Currently su

[FFmpeg-devel] [PATCH v08 3/3] VF fbtiler (tile/detile) and hwdownload (detile)

2020-07-11 Thread hanishkvc
t a/libavfilter/vf_fbtiler.c b/libavfilter/vf_fbtiler.c new file mode 100644 index 00..ece920c673 --- /dev/null +++ b/libavfilter/vf_fbtiler.c @@ -0,0 +1,247 @@ +/* + * Copyright (c) 2020 HanishKVC + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it

[FFmpeg-devel] [PATCH v06.01] hwcontext_drm: check pixformats before detile

2020-07-04 Thread hanishkvc
Verify that the source and destination pixformats are supported by fbtile before detiling the source into destination. NOTE: This patch is relative to my v06 patch set. --- libavutil/hwcontext_drm.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/libavu

[FFmpeg-devel] [PATCH v06 5/5] fbdetile videofilter cpu based framebuffer detiling

2020-07-04 Thread hanishkvc
@@ +/* + * Copyright (c) 2020 HanishKVC + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License,

[FFmpeg-devel] [PATCH v06 3/5] hwcontext_drm detile non linear layout, if possible

2020-07-04 Thread hanishkvc
If the framebuffer is a tiled layout, use the fbtile helper routines to try and detile it into linear layout, if supported by fbtile. It uses the format_modifier associated with the framebuffer to decide whether to apply detiling or not and inturn which specific detiling to apply. If user is usin

[FFmpeg-devel] [PATCH v06 4/5] hwdownload detile framebuffer, if requested by user

2020-07-04 Thread hanishkvc
Added logic to support detiling of framebuffer. By default this is disabled. Only if requested by the user, the logic will be triggered. It uses the fbtile helper routines to do the detiling. Currently 32bit RGB pixel format based framebuffers are supported. If the underlying hardware context pr

[FFmpeg-devel] [PATCH v06 2/5] fbtile helperRoutines cpu based framebuffer detiling

2020-07-04 Thread hanishkvc
Add helper routines which can be used to detile tiled framebuffer layouts into a linear layout, using the cpu. Currently it supports Legacy Intel Tile-X, Legacy Intel Tile-Y and Newer Intel Tile-Yf tiled layouts. Currently supported pixel format is 32bit RGB. It also contains detile_generic logi

[FFmpeg-devel] [PATCH v06 1/5] KMSGrab: getfb2 format_modifier if user doesnt specify

2020-07-04 Thread hanishkvc
If user doesnt specify a format_modifier explicitly, then use GetFB2 to identify the format_modifier of the framebuffer being grabbed. --- Changelog | 1 + libavdevice/kmsgrab.c | 22 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Changelog b/Cha

[FFmpeg-devel] [PATCH v06 0/5] KMSGrab, fbtile helpers, hwcontext_drm, hwdownload, fbdetilevf

2020-07-04 Thread hanishkvc
the best possible future flexibility. hanishkvc (5): KMSGrab: getfb2 format_modifier if user doesnt specify fbtile helperRoutines cpu based framebuffer detiling hwcontext_drm detile non linear layout, if possible hwdownload detile framebuffer, if requested by user fbdetile videofilter cpu

[FFmpeg-devel] [PATCH v05] fbdetile cpu based detiling of framebuffer v05

2020-07-02 Thread hanishkvc
b/libavfilter/vf_fbdetile.c new file mode 100644 index 00..54b13fa023 --- /dev/null +++ b/libavfilter/vf_fbdetile.c @@ -0,0 +1,236 @@ +/* + * Copyright (c) 2020 HanishKVC + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms

[FFmpeg-devel] [PATCH v04] fbdetile cpu based detiling of framebuffers v04

2020-07-01 Thread hanishkvc
4 index 00..f9e13ced18 --- /dev/null +++ b/libavfilter/vf_fbdetile.c @@ -0,0 +1,568 @@ +/* + * Copyright (c) 2020 HanishKVC + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * Li

[FFmpeg-devel] [PATCH v3] fbdetile cpu based detiling of framebuffers v03

2020-06-29 Thread hanishkvc
_vf_fbdetile; extern AVFilter ff_vf_hysteresis; extern AVFilter ff_vf_idet; extern AVFilter ff_vf_il; diff --git a/libavfilter/vf_fbdetile.c b/libavfilter/vf_fbdetile.c new file mode 100644 index 00..80672bffa6 --- /dev/null +++ b/libavfilter/vf_fbdetile.c @@ -0,0 +1,465 @@ +/* +

[FFmpeg-devel] [PATCH v2] fbdetile cpu based framebuffer layout detiling v02

2020-06-27 Thread hanishkvc
n AVFilter ff_vf_hysteresis; extern AVFilter ff_vf_idet; extern AVFilter ff_vf_il; diff --git a/libavfilter/vf_fbdetile.c b/libavfilter/vf_fbdetile.c new file mode 100644 index 00..8b20c96d2c --- /dev/null +++ b/libavfilter/vf_fbdetile.c @@ -0,0 +1,309 @@ +/* + * Copyright (c) 2020 Ha