Skip to content

RFC qv4l2: scaling and pixel aspect ratio

Bård Eirik Winther linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7qv4l2: fix YUY2 shaderutils/qv4l2/capture-win-gl.cpp+35 -330 replies
2/7qv4l2: fix black screen with opengl after captureutils/qv4l2/capture-win-gl.cpp+6 -00 replies
3/7qv4l2: show frames option can be toggled during captureutils/qv4l2/qv4l2.cpp utils/qv4l2/qv4l2.h+41 -380 replies
4/7qv4l2: add function getMarginsutils/qv4l2/capture-win.cpp utils/qv4l2/capture-win.h+12 -40 replies
5/7qv4l2: add video scaling for CaptureWinutils/qv4l2/capture-win-gl.cpp utils/qv4l2/capture-win-gl.h utils/qv4l2/capture-win-qt.cpp +5 more+181 -370 replies
6/7qv4l2: add hotkey for reset scaling to frame sizeutils/qv4l2/capture-win.cpp utils/qv4l2/capture-win.h utils/qv4l2/qv4l2.cpp+5 -00 replies
7/7qv4l2: add aspect ratio supportutils/qv4l2/capture-win.cpp utils/qv4l2/capture-win.h utils/qv4l2/general-tab.cpp +3 more+84 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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 changes/improvements:
- CaptureWin have scaling support for video frames for all renderers
- CaptureWin support pixel aspect ratio scaling
- Aspect ratio and scaling can be changed during capture
- CaptureWin's setMinimumSize is now resize, which resizes the window to the frame size given and minimum size is set automatically
- The YUY2 shader programs are rewritten and has the resizing issue fixed
- The Show Frames option in Capture menu can be toggled during capture
- Reset and disable scaling options
- Added a hotkey:
CTRL + F : (size to video 'F'rame)
When either the main window or capture window is selected
this will reset the scaling to fit the frame size.
This option is also available in the Capture menu.

Pixel Aspect Ratio Modes:
- Autodetect (if not supported this assumes square pixels)
- Square
- NTSC/PAL-M/PAL-60
- NTSC/PAL-M/PAL-60, Anamorphic
- PAL/SECAM
- PAL/SECAM, Anamorphic