HD DVD obviously rocks on HD content, but the SD content on the discs often grates me as it is displayed as widescreen content with black bars on the top and the sides. This happens because the original content (usually Extras) came from old fashioned DVD, and was 16:9 content letterboxed into a 4:3 frame. Thats ok, but if you just ask the HD DVD player to show that, it will add bars on both sides, so you end up with bars on every side. You can see this here , which is from the Extras from Bourne Supremacy. To make the problem more obvious I changed the outer frame color to blue and ran the content on a 4:3 monitor. (I am not picking on Bourne: every title I have seen does this, Bourne happened to be lying on my desk). Please excuse the low quality of the shot and ignore the stickies on the monitor.
So, HD DVD content creators, here is the code to fix it:
// All arguments passed in pixels based on the video size
// Common values are 480, 60, 60
// Code assumes a 1920x1080 aperture
function Zoom43WS( VideoHeight, TopMargin, BottomMargin )
var scale = 1080.0 / (VideoHeight-TopMargin-BottomMargin);
Player.video.main.changeLayout( 0, -TopMargin*scale, new Player.createVideoScale(scale*16,16),0,0,1920,1080,"00:00:00:00");
Now some content (like the Bourne clip shown) has sections which are 16:9 and sections which are full 4:3, so you might need to switch the zoom back at different times. Here is the code to use when 4:3 content kicks in:
Player.video.main.changeLayout(0,0, null, 0,0,0,0, "00:00:00:00");
To detect when to switch, you can use Scheduled Events, though you'll need to do something extra to handle FF and REW (as those events don't fire then). That is left as an exercise to the reader.