Lines 1-4
Link Here
|
1 |
--- src/video/cameradevice.cpp.orig 2016-08-09 23:12:33 UTC |
1 |
--- src/video/cameradevice.cpp.orig 2016-11-13 15:20:00 UTC |
2 |
+++ src/video/cameradevice.cpp |
2 |
+++ src/video/cameradevice.cpp |
3 |
@@ -31,7 +31,7 @@ extern "C" { |
3 |
@@ -31,7 +31,7 @@ extern "C" { |
4 |
#ifdef Q_OS_WIN |
4 |
#ifdef Q_OS_WIN |
Lines 27-33
Link Here
|
27 |
else if (iformat->name == QString("video4linux2,v4l2")) |
27 |
else if (iformat->name == QString("video4linux2,v4l2")) |
28 |
devices += v4l2::getDeviceList(); |
28 |
devices += v4l2::getDeviceList(); |
29 |
#endif |
29 |
#endif |
30 |
@@ -461,7 +461,7 @@ QVector<VideoMode> CameraDevice::getVide |
30 |
@@ -467,7 +467,7 @@ QVector<VideoMode> CameraDevice::getVide |
31 |
else if (iformat->name == QString("dshow")) |
31 |
else if (iformat->name == QString("dshow")) |
32 |
return DirectShow::getDeviceModes(devName); |
32 |
return DirectShow::getDeviceModes(devName); |
33 |
#endif |
33 |
#endif |
Lines 36-43
Link Here
|
36 |
else if (iformat->name == QString("video4linux2,v4l2")) |
36 |
else if (iformat->name == QString("video4linux2,v4l2")) |
37 |
return v4l2::getDeviceModes(devName); |
37 |
return v4l2::getDeviceModes(devName); |
38 |
#endif |
38 |
#endif |
39 |
@@ -482,7 +482,7 @@ QVector<VideoMode> CameraDevice::getVide |
39 |
@@ -488,7 +488,7 @@ QVector<VideoMode> CameraDevice::getVide |
40 |
*/ |
40 |
*/ |
41 |
QString CameraDevice::getPixelFormatString(uint32_t pixel_format) |
41 |
QString CameraDevice::getPixelFormatString(uint32_t pixel_format) |
42 |
{ |
42 |
{ |
43 |
-#ifdef Q_OS_LINUX |
43 |
-#ifdef Q_OS_LINUX |
Lines 45-52
Link Here
|
45 |
return v4l2::getPixelFormatString(pixel_format); |
45 |
return v4l2::getPixelFormatString(pixel_format); |
46 |
#else |
46 |
#else |
47 |
return QString("unknown"); |
47 |
return QString("unknown"); |
48 |
@@ -498,7 +498,7 @@ false otherwise (such as if there's no p |
48 |
@@ -504,7 +504,7 @@ QString CameraDevice::getPixelFormatStri |
49 |
*/ |
49 |
*/ |
50 |
bool CameraDevice::betterPixelFormat(uint32_t a, uint32_t b) |
50 |
bool CameraDevice::betterPixelFormat(uint32_t a, uint32_t b) |
51 |
{ |
51 |
{ |
52 |
-#ifdef Q_OS_LINUX |
52 |
-#ifdef Q_OS_LINUX |
Lines 54-60
Link Here
|
54 |
return v4l2::betterPixelFormat(a, b); |
54 |
return v4l2::betterPixelFormat(a, b); |
55 |
#else |
55 |
#else |
56 |
return false; |
56 |
return false; |
57 |
@@ -518,7 +518,7 @@ bool CameraDevice::getDefaultInputFormat |
57 |
@@ -524,7 +524,7 @@ bool CameraDevice::getDefaultInputFormat |
58 |
avdevice_register_all(); |
58 |
avdevice_register_all(); |
59 |
|
59 |
|
60 |
// Desktop capture input formats |
60 |
// Desktop capture input formats |
Lines 63-69
Link Here
|
63 |
idesktopFormat = av_find_input_format("x11grab"); |
63 |
idesktopFormat = av_find_input_format("x11grab"); |
64 |
#endif |
64 |
#endif |
65 |
#ifdef Q_OS_WIN |
65 |
#ifdef Q_OS_WIN |
66 |
@@ -526,7 +526,7 @@ bool CameraDevice::getDefaultInputFormat |
66 |
@@ -532,7 +532,7 @@ bool CameraDevice::getDefaultInputFormat |
67 |
#endif |
67 |
#endif |
68 |
|
68 |
|
69 |
// Webcam input formats |
69 |
// Webcam input formats |