aboutsummaryrefslogtreecommitdiffstats
path: root/utils/qvidcap/capture-win-gl.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-08-17 13:25:17 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-08-17 13:25:17 +0200
commit61e220672c4bacdd78778f1c835c2ac272878fc8 (patch)
tree082ed87d6218f7dd38e0ee5dabbe2061603a777e /utils/qvidcap/capture-win-gl.cpp
parent8e18caca01fed71f04bea41c038bb168db3b20d4 (diff)
qvidcap: support -P for video devices
Use -P to select a specific pixel format. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/qvidcap/capture-win-gl.cpp')
-rw-r--r--utils/qvidcap/capture-win-gl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/qvidcap/capture-win-gl.cpp b/utils/qvidcap/capture-win-gl.cpp
index 2e639d77..59117ab6 100644
--- a/utils/qvidcap/capture-win-gl.cpp
+++ b/utils/qvidcap/capture-win-gl.cpp
@@ -333,8 +333,7 @@ void CaptureGLWin::showCurrentOverrides()
if (m_mode == AppModeTest)
return;
- firstTime = false;
- if (m_canOverrideResolution) {
+ if (m_canOverrideResolution || firstTime) {
printf("%sPixel Format: '%s' %s\n", prefix,
fcc2s(m_origPixelFormat).c_str(),
pixfmt2s(m_origPixelFormat).c_str());
@@ -347,6 +346,7 @@ void CaptureGLWin::showCurrentOverrides()
else if (!m_is_rgb)
printf("%sY'CbCr Encoding: %s\n", prefix, ycbcr_enc2s(m_origYCbCrEnc).c_str());
printf("%sQuantization Range: %s\n", prefix, quantization2s(m_origQuantization).c_str());
+ firstTime = false;
}
void CaptureGLWin::restoreAll(bool checked)

Privacy Policy