[PATCH 3/4] qv4l2: fix CaptureWin mimimum size to match video fram size

2013-07-16 Thread Bård Eirik Winther
CaptureWin's setMinimumSize() sets the minimum size for the video frame viewport and not for the window itself. If the minimum size is larger than the monitor resolution, it will reduce the minimum size to match this. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture

[PATCH 2/4] qv4l2: add hotkeys for common operations

2013-07-16 Thread Bård Eirik Winther
with high resolutions video on small screen, especially when the window close button may be outside the monitor when repositioning the window. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 8 utils/qv4l2/capture-win.h | 4

[PATCH 4/4] qv4l2: add OpenGL video render

2013-07-16 Thread Bård Eirik Winther
The qv4l2 test utility now supports OpenGL-accelerated display of video. This allows for using the graphics card to render the video content to screen and to performing color space conversion. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac| 8 +- utils

[PATCH 0/4] OpenGL render for qv4l2

2013-07-16 Thread Bård Eirik Winther
qv4l2: The qv4l2 test utility now supports OpenGL-accelerated display of video. This allows for using the graphics card to render the video content to screen and to performing color space conversion. The OpenGL implementation requires the QtOpenGL library as well as an OpenGL driver. If OpenGL

[PATCH 1/4] qv4l2: move function ctrlEvent

2013-07-16 Thread Bård Eirik Winther
Moved the ctrlEvent() function in qv4l2.cpp to be grouped with GUI function and to group capFrame() and capVbiFrame() together. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 94 +-- 1 file changed, 47 insertions

Re: [PATCH 4/4] qv4l2: add OpenGL video render

2013-07-17 Thread Bård Eirik Winther
On Wednesday, July 17, 2013 01:03:44 PM you wrote: Hi Bård, On Tuesday 16 July 2013 14:59:04 Bard Eirik Winther wrote: On Tuesday, July 16, 2013 02:01:45 PM you wrote: Hi Bård, Thank you for the patches. On Tuesday 16 July 2013 13:24:08 Bård Eirik Winther wrote

[PATCHv2 0/5] qv4l2: add OpenGL render and window fixes

2013-07-25 Thread Bård Eirik Winther
The qv4l2 test utility now supports OpenGL-accelerated display of video. This allows for using the graphics card to render the video content to screen and to perform color space conversion. The OpenGL implementation requires OpenGL and QtOpenGL libraries as well as an OpenGL driver (typically

[PATCHv2 4/5] qv4l2: new modular capture window design

2013-07-25 Thread Bård Eirik Winther
The display of video has been divided into classes to easier implement other ways to render frames on screen. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/Makefile.am| 4 +- utils/qv4l2/capture-win-qt.cpp | 89 utils/qv4l2

[PATCHv2 5/5] qv4l2: add OpenGL video display and render

2013-07-25 Thread Bård Eirik Winther
Adds OpenGL-accelerated display of video for the qv4l2 test utility. This allows for using the graphics card to render the video content to screen and to perform color space conversion. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 8 +- utils/qv4l2

[PATCHv2 3/5] qv4l2: fix minimum size in capture win to frame size

2013-07-25 Thread Bård Eirik Winther
CaptureWin's setMinimumSize() sets the minimum size for the video frame viewport and not for the window itself. If the minimum size is larger than the monitor resolution, it will reduce the minimum size to match this. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture

[PATCHv2 1/5] qv4l2: move function ctrlEvent

2013-07-25 Thread Bård Eirik Winther
Moved the ctrlEvent() function in qv4l2.cpp to be grouped with GUI function and to group capFrame() and capVbiFrame() together. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 94 +-- 1 file changed, 47 insertions

[PATCHv2 2/5] qv4l2: add hotkeys for common operations

2013-07-25 Thread Bård Eirik Winther
with high resolutions video on small screen, especially when the window close button may be outside the monitor when repositioning the window. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 8 utils/qv4l2/capture-win.h | 4

[PATCH 0/1] qv4l2: Fixed a bug in the v4l2-api

2013-07-29 Thread Bård Eirik Winther
Fixed a bug where the get_interval in v4l2-api where it would test for a compatibility flag irrelevant to the feature support and resulting return false. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH] qv4l2: Fixed a bug in the v4l2-api

2013-07-29 Thread Bård Eirik Winther
The get_interval would return false even if devices had support for this Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/v4l2-api.cpp | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/utils/qv4l2/v4l2-api.cpp b/utils/qv4l2/v4l2-api.cpp index

[PATCHv2 FINAL 4/6] qv4l2: add Capture menu

2013-07-30 Thread Bård Eirik Winther
Created a new Capture menu that contains both capture controls and audio/video settings for capture. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2

[PATCHv2 FINAL 1/6] qv4l2: move function ctrlEvent

2013-07-30 Thread Bård Eirik Winther
Moved the ctrlEvent() function in qv4l2.cpp to be grouped with GUI function and to group capFrame() and capVbiFrame() together. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 94 +-- 1 file changed, 47 insertions

[PATCHv2 FINAL 3/6] qv4l2: fix minimum size in capture win to frame size

2013-07-30 Thread Bård Eirik Winther
CaptureWin's setMinimumSize() sets the minimum size for the video frame viewport and not for the window itself. If the minimum size is larger than the monitor resolution, it will reduce the minimum size to match this. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture

[PATCHv2 FINAL 0/6] qv4l2: add OpenGL rendering and window fixes

2013-07-30 Thread Bård Eirik Winther
The qv4l2 test utility now supports OpenGL-accelerated display of video. This allows for using the graphics card to render the video content to screen and to perform color space conversion. The OpenGL implementation requires OpenGL and QtOpenGL libraries as well as an OpenGL driver (typically

[PATCHv2 FINAL 2/6] qv4l2: add hotkeys for common operations

2013-07-30 Thread Bård Eirik Winther
with high resolutions video on small screen, especially when the window close button may be outside the monitor when repositioning the window. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 8 utils/qv4l2/capture-win.h | 4

[PATCHv2 FINAL 5/6] qv4l2: new modular capture window design

2013-07-30 Thread Bård Eirik Winther
The display of video has been divided into classes to easier implement other ways to render frames on screen. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/Makefile.am| 4 +- utils/qv4l2/capture-win-qt.cpp | 89 +++ utils/qv4l2

[PATCHv2 FINAL 6/6] qv4l2: add OpenGL rendering

2013-07-30 Thread Bård Eirik Winther
Adds OpenGL-accelerated display of video. This allows for using the graphics card to render the video content to screen and to perform color space conversion. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 8 +- utils/qv4l2/Makefile.am| 8

Re: [PATCHv2 FINAL 0/6] qv4l2: add OpenGL rendering and window fixes

2013-07-30 Thread Bård Eirik Winther
On Tuesday, July 30, 2013 10:12:33 AM you wrote: Em Tue, 30 Jul 2013 10:15:18 +0200 Bård Eirik Winther bwint...@cisco.com escreveu: ... Performance: All tests are done on an Intel i7-2600S (with Turbo Boost disabled) using the integrated Intel HD 2000 graphics processor

Re: [PATCHv2 FINAL 6/6] qv4l2: add OpenGL rendering

2013-08-01 Thread Bård Eirik Winther
=20Winther?= bwint...@cisco.com Date: Thu, 1 Aug 2013 13:02:43 +0200 Subject: [PATCH] qv4l2: fix compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a compile error caused when opengl is not available Signed-off-by: Bård Eirik Winther bwint

[PATCH 5/5] qv4l2: add ALSA audio playback

2013-08-02 Thread Bård Eirik Winther
The qv4l2 test utility now supports ALSA playback of audio. This allows for PCM playback during capture for supported devices. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/general-tab.cpp | 296 +++- utils/qv4l2/general-tab.h

[PATCH 4/5] qv4l2: fix a bug where the alsa thread never stops

2013-08-02 Thread Bård Eirik Winther
If the output audio device never read the buffer then the alsa thread would continue to fill it up and never stop when the capture stops. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/alsa_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils

[PATCH 2/5] qv4l2: new ALSA stream source code

2013-08-02 Thread Bård Eirik Winther
Code copied from xawtv3 Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/alsa_stream.c | 645 ++ utils/qv4l2/alsa_stream.h | 5 + 2 files changed, 650 insertions(+) create mode 100644 utils/qv4l2/alsa_stream.c create mode 100644

[PATCH 1/5] qv4l2: alter capture menu

2013-08-02 Thread Bård Eirik Winther
Corrected Use OpenGL Render to Rendering and removed the separation line. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 4dc5a3e..275b399

[PATCH 0/5] qv4l2: add ALSA audio playback

2013-08-02 Thread Bård Eirik Winther
The qv4l2 test utility now supports ALSA playback of audio. This allows for PCM playback during capture for supported devices. This requires at least the OpenGL patch series' qv4l2: add Capture menu patch. A device must be ALSA compatible in order to be used with the qv4l2. The ALSA

[PATCH 3/5] qv4l2: add ALSA stream to qv4l2

2013-08-02 Thread Bård Eirik Winther
Changes the ALSA streaming code to work with qv4l2 and allows it to be compiled in. qv4l2 does not use the streaming function yet. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 6 ++ utils/qv4l2/Makefile.am | 9 - utils/qv4l2/alsa_stream.c

Re: [PATCH 3/5] qv4l2: add ALSA stream to qv4l2

2013-08-05 Thread Bård Eirik Winther
On Saturday, August 03, 2013 12:19:54 AM you wrote: Hello, diff --git a/utils/qv4l2/Makefile.am b/utils/qv4l2/Makefile.am index 22d4c17..eed25b0 100644 --- a/utils/qv4l2/Makefile.am +++ b/utils/qv4l2/Makefile.am @@ -4,7 +4,8 @@ qv4l2_SOURCES = qv4l2.cpp general-tab.cpp ctrl-tab.cpp

[RFC PATCH 1/7] qv4l2: fix YUY2 shader

2013-08-05 Thread Bård Eirik Winther
Fixed the YUY2 shaders to support scaling. The new solution has cleaner shader code and texture upload uses a better format for OpenGL. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 68 ++ 1 file changed, 35

[RFC PATCH 4/7] qv4l2: add function getMargins

2013-08-05 Thread Bård Eirik Winther
Created a function to get the total margins (window frame) in pixels outside the actual video frame beeing displayed. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 14 ++ utils/qv4l2/capture-win.h | 2 ++ 2 files changed, 12 insertions

[RFC PATCH 2/7] qv4l2: fix black screen with opengl after capture

2013-08-05 Thread Bård Eirik Winther
Fixes the issue when the window was beeing resized/moved and the frame image would become black. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture

[RFC PATCH 7/7] qv4l2: add aspect ratio support

2013-08-05 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 24 ++-- utils/qv4l2/capture-win.h | 8 +++- utils/qv4l2/general-tab.cpp | 36 utils/qv4l2/general-tab.h | 3 +++ utils/qv4l2/qv4l2.cpp

[RFC PATCH 3/7] qv4l2: show frames option can be toggled during capture

2013-08-05 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 77 ++- utils/qv4l2/qv4l2.h | 2 +- 2 files changed, 41 insertions(+), 38 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index e078e91

[RFC PATCH 6/7] qv4l2: add hotkey for reset scaling to frame size

2013-08-05 Thread Bård Eirik Winther
Adds hotkey CTRL + F for both CaptureWin and main Capture menu. Resets the scaling of CaptureWin to fit frame size. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 3 +++ utils/qv4l2/capture-win.h | 1 + utils/qv4l2/qv4l2.cpp | 1 + 3 files changed

[RFC PATCH 5/7] qv4l2: add video scaling for CaptureWin

2013-08-05 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 26 -- utils/qv4l2/capture-win-gl.h | 8 utils/qv4l2/capture-win-qt.cpp | 24 +- utils/qv4l2/capture-win-qt.h | 5 ++ utils/qv4l2/capture-win.cpp| 106

[RFC PATCH 0/7] qv4l2: scaling and pixel aspect ratio

2013-08-05 Thread Bård Eirik Winther
The patch series depends on the qv4l2 ALSA and OpenGL patch series. This adds scaling and aspect ratio support to the qv4l2 CaptureWin. It also fixes some issues with the original OpenGL patch series, as well as adding tweaks and improvements left out in the original patches. Some of the

[PATCHv2 2/5] qv4l2: new ALSA stream source code

2013-08-06 Thread Bård Eirik Winther
Code copied from xawtv3 Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/alsa_stream.c | 645 ++ utils/qv4l2/alsa_stream.h | 5 + 2 files changed, 650 insertions(+) create mode 100644 utils/qv4l2/alsa_stream.c create mode 100644

[PATCHv2 1/5] qv4l2: alter capture menu

2013-08-06 Thread Bård Eirik Winther
Corrected Use OpenGL Render to Rendering and removed the separation line. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 4dc5a3e..275b399

[PATCHv2 4/5] qv4l2: add ALSA stream to qv4l2

2013-08-06 Thread Bård Eirik Winther
Changes the ALSA streaming code to work with qv4l2 and allows it to be compiled in. qv4l2 does not use the streaming function yet. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 7 +++ utils/qv4l2/Makefile.am | 8 ++-- utils/qv4l2/alsa_stream.c

[PATCHv2 5/5] qv4l2: add ALSA audio playback

2013-08-06 Thread Bård Eirik Winther
The qv4l2 test utility now supports ALSA playback of audio. This allows for PCM playback during capture for supported devices. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/general-tab.cpp | 296 +++- utils/qv4l2/general-tab.h

[PATCHv2 3/5] qv4l2: fix a bug where the alsa thread never stops

2013-08-06 Thread Bård Eirik Winther
If the output audio device never read the buffer then the alsa thread would continue to fill it up and never stop when the capture stops. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/alsa_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils

[PATCHv2 0/5] qv4l2: add ALSA audio playback

2013-08-06 Thread Bård Eirik Winther
The qv4l2 test utility now supports ALSA playback of audio. This allows for PCM playback during capture for supported devices. This requires at least the OpenGL patch series' qv4l2: add Capture menu patch. A device must be ALSA compatible in order to be used with the qv4l2. The ALSA

[PATCH 0/9] qv4l2: scaling, pixel aspect ratio and render fixes

2013-08-06 Thread Bård Eirik Winther
The patch series depends on the qv4l2 ALSA and OpenGL patch series. This adds scaling and aspect ratio support to the qv4l2 CaptureWin. In that regard it fixes a lot of other issues that would otherwise make scaling render incorrectly. It also fixes some issues with the original OpenGL patch

[PATCH 3/9] qv4l2: fix black screen with opengl after capture

2013-08-06 Thread Bård Eirik Winther
Fixes the issue when the window was beeing resized/moved and the frame image would become black. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture

[PATCH 4/9] qv4l2: show frames option can be toggled during capture

2013-08-06 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 79 +++ utils/qv4l2/qv4l2.h | 2 +- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 5510041

[PATCH 2/9] qv4l2: fix YUY2 shader

2013-08-06 Thread Bård Eirik Winther
Fixed the YUY2 shaders to support scaling. The new solution has cleaner shader code and texture upload uses a better format for OpenGL. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 68 ++ 1 file changed, 35

[PATCH 1/9] qv4l2: generalized opengl include guards

2013-08-06 Thread Bård Eirik Winther
Created a general QtGL makefile condition and using config.h to check in code if QtGL is present. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 6 -- utils/qv4l2/Makefile.am| 4 ++-- utils/qv4l2/capture-win-gl.cpp | 12 ++-- utils

[PATCH 6/9] qv4l2: add video scaling for CaptureWin

2013-08-06 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 26 ++-- utils/qv4l2/capture-win-gl.h | 7 utils/qv4l2/capture-win-qt.cpp | 23 ++- utils/qv4l2/capture-win-qt.h | 5 +++ utils/qv4l2/capture-win.cpp| 93

[PATCH 8/9] qv4l2: add hotkey for reset scaling to frame size

2013-08-06 Thread Bård Eirik Winther
Adds hotkey CTRL + F for both CaptureWin and main Capture menu. Resets the scaling of CaptureWin to fit frame size. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 3 +++ utils/qv4l2/capture-win.h | 1 + utils/qv4l2/qv4l2.cpp | 1 + 3 files changed

[PATCH 7/9] qv4l2: added resize to frame size in Capture menu

2013-08-06 Thread Bård Eirik Winther
This will resize the CaptureWin to the original frame size. It also works with maximized windows. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 12 utils/qv4l2/capture-win.h | 3 +++ utils/qv4l2/qv4l2.cpp | 6 -- utils/qv4l2

[PATCH 9/9] qv4l2: add pixel aspect ratio support for CaptureWin

2013-08-06 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 36 ++-- utils/qv4l2/capture-win.h | 6 utils/qv4l2/general-tab.cpp | 68 + utils/qv4l2/general-tab.h | 4 +++ utils/qv4l2/qv4l2.cpp

[PATCH 5/9] qv4l2: create function getMargins

2013-08-06 Thread Bård Eirik Winther
Created a function to get the total margins (window frame) in pixels outside the actual video frame beeing displayed. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 14 ++ utils/qv4l2/capture-win.h | 1 + 2 files changed, 11 insertions(+), 4

Re: [git:v4l-utils/master] qv4l2: add aspect ratio support

2013-08-08 Thread Bård Eirik Winther
Hi. Bad news. While rebasing my cropping support branch I noticed that Hans has merged in the wrong patch series for the scaling. The one Hans have merged is one of our internal revisions, as only v1 is present on the mailing list. I sent out a full patch series on Tuesday that consists of 9

[PATCHv2 0/9] qv4l2: scaling, pixel aspect ratio and render fixes

2013-08-08 Thread Bård Eirik Winther
The PATCHv2 only rebases for master pull. This adds scaling and aspect ratio support to the qv4l2 CaptureWin. In that regard it fixes a lot of other issues that would otherwise make scaling render incorrectly. It also fixes some issues with the original OpenGL patch series, as well as adding

[PATCHv2 3/9] qv4l2: fix black screen with opengl after capture

2013-08-08 Thread Bård Eirik Winther
Fixes the issue when the window was beeing resized/moved and the frame image would become black. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture

[PATCHv2 2/9] qv4l2: fix YUY2 shader

2013-08-08 Thread Bård Eirik Winther
Fixed the YUY2 shaders to support scaling. The new solution has cleaner shader code and texture upload uses a better format for OpenGL. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 68 ++ 1 file changed, 35

[PATCHv2 1/9] qv4l2: generalized opengl include guards

2013-08-08 Thread Bård Eirik Winther
Created a general QtGL makefile condition and using config.h to check in code if QtGL is present. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- configure.ac | 6 -- utils/qv4l2/Makefile.am| 4 ++-- utils/qv4l2/capture-win-gl.cpp | 12 ++-- utils

[PATCHv2 6/9] qv4l2: add video scaling for CaptureWin

2013-08-08 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 26 ++-- utils/qv4l2/capture-win-gl.h | 7 utils/qv4l2/capture-win-qt.cpp | 23 ++- utils/qv4l2/capture-win-qt.h | 5 +++ utils/qv4l2/capture-win.cpp| 93

[PATCHv2 5/9] qv4l2: create function getMargins

2013-08-08 Thread Bård Eirik Winther
Created a function to get the total margins (window frame) in pixels outside the actual video frame beeing displayed. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 14 ++ utils/qv4l2/capture-win.h | 1 + 2 files changed, 11 insertions(+), 4

[PATCHv2 4/9] qv4l2: show frames option can be toggled during capture

2013-08-08 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 84 +++ utils/qv4l2/qv4l2.h | 2 +- 2 files changed, 46 insertions(+), 40 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 6f39726

[PATCHv2 9/9] qv4l2: add pixel aspect ratio support for CaptureWin

2013-08-08 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 36 ++-- utils/qv4l2/capture-win.h | 6 utils/qv4l2/general-tab.cpp | 68 + utils/qv4l2/general-tab.h | 4 +++ utils/qv4l2/qv4l2.cpp

[PATCHv2 7/9] qv4l2: added resize to frame size in Capture menu

2013-08-08 Thread Bård Eirik Winther
This will resize the CaptureWin to the original frame size. It also works with maximized windows. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 12 utils/qv4l2/capture-win.h | 3 +++ utils/qv4l2/qv4l2.cpp | 6 -- utils/qv4l2

[PATCHv2 8/9] qv4l2: add hotkey for reset scaling to frame size

2013-08-08 Thread Bård Eirik Winther
Adds hotkey CTRL + F for both CaptureWin and main Capture menu. Resets the scaling of CaptureWin to fit frame size. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win.cpp | 3 +++ utils/qv4l2/capture-win.h | 1 + utils/qv4l2/qv4l2.cpp | 1 + 3 files changed

[PATCH 0/2] qv4l2: fix input parameters and missing status tips

2013-08-08 Thread Bård Eirik Winther
- Fixes some of the missing status tips in the general tab. - Fixes the frequency hint, now displaying correct value hints. - Fixes the program parameters. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH 1/2] qv4l2: fix missing status tips

2013-08-08 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/general-tab.cpp | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp index c404a3b..2605397 100644 --- a/utils/qv4l2/general-tab.cpp +++ b

[PATCH 2/2] qv4l2: fix input parameters

2013-08-08 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 112 ++ 1 file changed, 96 insertions(+), 16 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 892d9c3..644abe6 100644 --- a/utils/qv4l2

[PATCH 1/2] qv4l2: change m_scaledFrame to m_scaledSize

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-qt.cpp | 12 ++-- utils/qv4l2/capture-win-qt.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/qv4l2/capture-win-qt.cpp b/utils/qv4l2/capture-win-qt.cpp index f746379..82c618c

[PATCH 2/2] qv4l2: add cropping and qt opimization

2013-08-09 Thread Bård Eirik Winther
Adds cropping to CaptureWin. It also optimizes Qt renderer to make it perform as expected with cropping and scaling. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 27 +++-- utils/qv4l2/capture-win-gl.h | 1 + utils/qv4l2/capture-win-qt.cpp

[PATCH 0/2] qv4l2: add cropping and qt opimization

2013-08-09 Thread Bård Eirik Winther
Add cropping to CaptureWin as well as optimizing the Qt renderer. There is also other fixes and tweaks to the code itself. Cropping allows removal of letterboxing from the video display. Qt optimization no longer needs to copy the frame data for every frame and scaling or cropping is only

[PATCH FINAL 0/6] qv4l2: cropping, optimization and documentatio

2013-08-09 Thread Bård Eirik Winther
qv4l2: Add cropping to the CaptureWin. In order to make the Qt renderer work with this as well, it had to be optimized to not lose framerate. A basic manpage is added along width fixing the input parameters. New Features/Improvements: - Add cropping to CaptureWin - Qt renderer has been optimized

[PATCH FINAL 1/6] qv4l2: change m_scaledFrame to m_scaledSize

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-qt.cpp | 12 ++-- utils/qv4l2/capture-win-qt.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/qv4l2/capture-win-qt.cpp b/utils/qv4l2/capture-win-qt.cpp index f746379..82c618c

[PATCH FINAL 3/6] qv4l2: fix missing status tips

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/general-tab.cpp | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp index 3855296..cfc6bcf 100644 --- a/utils/qv4l2/general-tab.cpp +++ b

[PATCH FINAL 4/6] qv4l2: fix program input parameters

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 137 -- 1 file changed, 121 insertions(+), 16 deletions(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 7e2dba0..a0f21cd 100644 --- a/utils/qv4l2

[PATCH FINAL 2/6] qv4l2: add cropping to CaptureWin and Qt render

2013-08-09 Thread Bård Eirik Winther
Allows for removal of letterboxes from common video formats. The Qt renderer has been rewritten to increase performance required when applying cropping. No longer uses memcpy. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/capture-win-gl.cpp | 27 +++-- utils/qv4l2

[PATCH FINAL 5/6] qv4l2: add manpage

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/Makefile.am | 1 + utils/qv4l2/qv4l2.1 | 58 + 2 files changed, 59 insertions(+) create mode 100644 utils/qv4l2/qv4l2.1 diff --git a/utils/qv4l2/Makefile.am b/utils/qv4l2

[PATCH FINAL 6/6] qv4l2: updated about window

2013-08-09 Thread Bård Eirik Winther
Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/qv4l2.cpp | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index a0f21cd..056e15d 100644 --- a/utils/qv4l2/qv4l2.cpp +++ b/utils/qv4l2/qv4l2.cpp

[PATCH] qv4l2: fix GeneralTab layout

2013-08-09 Thread Bård Eirik Winther
This moves the layout items for cropping, scaling and ALSA to not interfere with driver specific controls. Signed-off-by: Bård Eirik Winther bwint...@cisco.com --- utils/qv4l2/general-tab.cpp | 129 ++-- 1 file changed, 64 insertions(+), 65 deletions

[PATCH] qv4l2: fix GeneralTab layout

2013-08-09 Thread Bård Eirik Winther
Cleans up the layout of GeneralTab. Also removes a single debug printout from original ALSA source. The debug was in a corner case and will most likely not be noticed there anyway, but is now removed. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message