aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-08-06 11:31:51 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2014-08-06 11:31:51 +0200
commitafc06c00aa003548f95d84e0faf1371658ddf8b9 (patch)
tree21deb5254f8e331e0581603431af4bb70d2bef6b
parent082bcf13d98580c3c8f42462247ea9fcad13725d (diff)
qv4l2: correct PAL pixel aspect values
There are two almost-identical-but-not-quite possible pixel aspect ratios in use for PAL: either 59:54 or 12:11. Since all our drivers report 59:54 this is the one we should use in qv4l2 as well. See also http://en.wikipedia.org/wiki/Pixel_aspect_ratio for more information on why there are two competing pixel aspect ratios. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/qv4l2/general-tab.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/qv4l2/general-tab.cpp b/utils/qv4l2/general-tab.cpp
index 02abd3f7..4b80ede8 100644
--- a/utils/qv4l2/general-tab.cpp
+++ b/utils/qv4l2/general-tab.cpp
@@ -2192,12 +2192,12 @@ double GeneralTab::getPixelAspectRatio()
ratio.denominator = 40;
break;
case 4:
- ratio.numerator = 11;
- ratio.denominator = 12;
+ ratio.numerator = 54;
+ ratio.denominator = 59;
break;
case 5:
- ratio.numerator = 11;
- ratio.denominator = 16;
+ ratio.numerator = 81;
+ ratio.denominator = 118;
break;
default:
break;

Privacy Policy