Added support for BBC's 16:9 overscan standard.

Originally committed to SVN as r1314.
This commit is contained in:
Rodrigo Braz Monteiro 2007-06-28 23:27:37 +00:00
parent b8d5125d6c
commit 7082e21765
1 changed files with 15 additions and 3 deletions

View File

@ -296,9 +296,21 @@ void VideoDisplay::DrawTVEffects() {
// Draw overscan mask // Draw overscan mask
if (drawOverscan) { if (drawOverscan) {
// Parameters // Get aspect ration
DrawOverscanMask(int(sw * 0.067),int(sh * 0.05),wxColour(30,70,200),0.5); double ar = context->GetAspectRatioValue();
DrawOverscanMask(int(sw * 0.033),int(sh * 0.035),wxColour(30,70,200),0.5);
// Based on BBC's guidelines: http://www.bbc.co.uk/guidelines/dq/pdf/tv/tv_standards_london.pdf
// 16:9 or wider
if (ar > 1.75) {
DrawOverscanMask(int(sw * 0.1),int(sh * 0.05),wxColour(30,70,200),0.5);
DrawOverscanMask(int(sw * 0.035),int(sh * 0.035),wxColour(30,70,200),0.5);
}
// Less wide than 16:9 (use 4:3 standard)
else {
DrawOverscanMask(int(sw * 0.067),int(sh * 0.05),wxColour(30,70,200),0.5);
DrawOverscanMask(int(sw * 0.033),int(sh * 0.035),wxColour(30,70,200),0.5);
}
} }
} }