<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions?]]></title><description><![CDATA[<p dir="auto">Hi<br />
I am using Qt5.12.10  multimedia module,<br />
I found, with the same camera, on Windows I can get all resolution of my camera by using QCamera::supportedViewfinderResolutions(), but on Linux (Ubuntu18.04) , it return empty list.</p>
<p dir="auto">after test Qt camera example, I found I can got resolutions by using QCameraImageCapture::supportedResolutions().</p>
<p dir="auto">so, what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? which way is the correct way to write a cross application?</p>
<p dir="auto">Thanks for your time.</p>
]]></description><link>https://forum.qt.io/topic/127158/what-is-the-difference-between-using-qcamera-supportedviewfinderresolutions-and-qcameraimagecapture-supportedresolutions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 03:45:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/127158.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 May 2021 08:19:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Thu, 17 Jun 2021 18:49:28 GMT]]></title><description><![CDATA[<p dir="auto">As silly as it may sound: does it work ?<br />
If so, then the backend has been updated and all is well. You can back port the possible fixes if need and if it's not working then this will be material for a potential ticket to open.</p>
]]></description><link>https://forum.qt.io/post/665897</link><guid isPermaLink="true">https://forum.qt.io/post/665897</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 17 Jun 2021 18:49:28 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Thu, 17 Jun 2021 02:14:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">One more thing, what information do you need from test?</p>
]]></description><link>https://forum.qt.io/post/665668</link><guid isPermaLink="true">https://forum.qt.io/post/665668</guid><dc:creator><![CDATA[Mozzie]]></dc:creator><pubDate>Thu, 17 Jun 2021 02:14:05 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Thu, 17 Jun 2021 02:02:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/665651">what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions?</a>:</p>
<blockquote>
<p dir="auto">an you test a more recent version of Qt ?</p>
</blockquote>
<p dir="auto">em.........I will try, give me some time</p>
]]></description><link>https://forum.qt.io/post/665665</link><guid isPermaLink="true">https://forum.qt.io/post/665665</guid><dc:creator><![CDATA[Mozzie]]></dc:creator><pubDate>Thu, 17 Jun 2021 02:02:43 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Wed, 16 Jun 2021 21:01:40 GMT]]></title><description><![CDATA[<p dir="auto">Can you test a more recent version of Qt ?</p>
]]></description><link>https://forum.qt.io/post/665651</link><guid isPermaLink="true">https://forum.qt.io/post/665651</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 16 Jun 2021 21:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Wed, 16 Jun 2021 03:00:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
I am sorry, I fogot this question so long.</p>
<p dir="auto">the output of gst-device-monitor-1.0 is</p>
<pre><code>Device found:

	name  : LAIQU-RX Camera : LAIQU-RX Came
	class : Video/Source
	caps  : video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1;
	        video/x-raw, format=(string)YUY2, width=(int)1600, height=(int)896, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1;
	        video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1;
	        video/x-raw, format=(string)YUY2, width=(int)1024, height=(int)768, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1;
	        video/x-raw, format=(string)YUY2, width=(int)960, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1;
	        video/x-raw, format=(string)YUY2, width=(int)1024, height=(int)576, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1;
	        video/x-raw, format=(string)YUY2, width=(int)800, height=(int)600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)20/1;
	        video/x-raw, format=(string)YUY2, width=(int)864, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1;
	        video/x-raw, format=(string)YUY2, width=(int)800, height=(int)448, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)20/1;
	        video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        video/x-raw, format=(string)YUY2, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        video/x-raw, format=(string)YUY2, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)1600, height=(int)896, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)1280, height=(int)1024, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 5/1 };
	        image/jpeg, width=(int)960, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)1024, height=(int)576, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)960, height=(int)544, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)800, height=(int)600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 5/1 };
	        image/jpeg, width=(int)864, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)800, height=(int)448, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 5/1 };
	        image/jpeg, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	        image/jpeg, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
	properties:
		udev-probed = true
		device.bus_path = pci-0000:00:0c.0-usb-0:2:1.0
		sysfs.path = /sys/devices/pci0000:00/0000:00:0c.0/usb1/1-2/1-2:1.0/video4linux/video0
		device.bus = usb
		device.subsystem = video4linux
		device.vendor.id = 0c45
		device.vendor.name = "LAIQU-RX\\x20Camera\\x20"
		device.product.id = 6366
		device.product.name = "LAIQU-RX\ Camera\ :\ LAIQU-RX\ Came"
		device.serial = LAIQU-RX_Camera_LAIQU-RX_Camera_SN0001
		device.capabilities = :capture:
		device.api = v4l2
		device.path = /dev/video0
		v4l2.device.driver = uvcvideo
		v4l2.device.card = "LAIQU-RX\ Camera\ :\ LAIQU-RX\ Came"
		v4l2.device.bus_info = usb-0000:00:0c.0-2
		v4l2.device.version = 328805 (0x00050465)
		v4l2.device.capabilities = 2225078273 (0x84a00001)
		v4l2.device.device_caps = 69206017 (0x04200001)
	gst-launch-1.0 v4l2src ! ...


</code></pre>
]]></description><link>https://forum.qt.io/post/665340</link><guid isPermaLink="true">https://forum.qt.io/post/665340</guid><dc:creator><![CDATA[Mozzie]]></dc:creator><pubDate>Wed, 16 Jun 2021 03:00:27 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Wed, 02 Jun 2021 20:04:08 GMT]]></title><description><![CDATA[<p dir="auto">Can GStreamer return that information ?</p>
]]></description><link>https://forum.qt.io/post/663134</link><guid isPermaLink="true">https://forum.qt.io/post/663134</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 02 Jun 2021 20:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Wed, 02 Jun 2021 00:59:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
hi<br />
it is the same camera, and it can be properly detected on Linux,<br />
the Qt camera example can work with my camera on Linux, just I can not get all resolution of my camera by using QCamera::supportedViewfinderResolutions() on Linux</p>
]]></description><link>https://forum.qt.io/post/662945</link><guid isPermaLink="true">https://forum.qt.io/post/662945</guid><dc:creator><![CDATA[Mozzie]]></dc:creator><pubDate>Wed, 02 Jun 2021 00:59:38 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Tue, 01 Jun 2021 21:10:41 GMT]]></title><description><![CDATA[<p dir="auto">Is it the same camera ?<br />
Is it properly detected on Linux ?</p>
]]></description><link>https://forum.qt.io/post/662930</link><guid isPermaLink="true">https://forum.qt.io/post/662930</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 01 Jun 2021 21:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Tue, 01 Jun 2021 00:57:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
thank you ver much.</p>
<p dir="auto">I check it when the camera state is QCamera::ActiveState, this is working on windows not on linux</p>
<pre><code>connect(camera, &amp;QCamera::stateChanged, this, [this](QCamera::State state){
	qDebug() &lt;&lt; "QCamera::State" &lt;&lt; state;
	if (QCamera::ActiveState == state) {

#ifdef QT_DEBUG
		for (const auto&amp; rate : camera-&gt;supportedViewfinderFrameRateRanges(settings)) {
			qDebug() &lt;&lt; "rate: " &lt;&lt; rate.minimumFrameRate &lt;&lt; rate.maximumFrameRate;
		}
		qDebug() &lt;&lt; camera-&gt;supportedViewfinderPixelFormats();
		qDebug() &lt;&lt; camera-&gt;supportedViewfinderResolutions();
#endif
		QList&lt;QCameraViewfinderSettings &gt; ViewSets = camera-&gt;supportedViewfinderSettings();
		foreach (QCameraViewfinderSettings ViewSet, ViewSets) {
			qDebug() &lt;&lt; "haha" &lt;&lt; ViewSet.pixelFormat() 
					 &lt;&lt; " " &lt;&lt; ViewSet.resolution().width()
					 &lt;&lt; " " &lt;&lt; ViewSet.resolution().height() 
					 &lt;&lt; "," &lt;&lt; ViewSet.minimumFrameRate();
		}
	}
}, Qt::QueuedConnection);
</code></pre>
]]></description><link>https://forum.qt.io/post/662707</link><guid isPermaLink="true">https://forum.qt.io/post/662707</guid><dc:creator><![CDATA[Mozzie]]></dc:creator><pubDate>Tue, 01 Jun 2021 00:57:07 GMT</pubDate></item><item><title><![CDATA[Reply to what is the difference between using QCamera::supportedViewfinderResolutions and QCameraImageCapture::supportedResolutions? on Mon, 31 May 2021 19:33:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If memory serves well, the second one is for the size of the images the encoder can generate.</p>
<p dir="auto">The first one is for the viewfinder to show.</p>
<p dir="auto">Did you ensure that the camera is loaded before checking that one ?</p>
]]></description><link>https://forum.qt.io/post/662683</link><guid isPermaLink="true">https://forum.qt.io/post/662683</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 31 May 2021 19:33:30 GMT</pubDate></item></channel></rss>