In the GdiExample sample, the place where it sets the display mode, you have modified it to use the 1080i50 display mode and you are creating a frame in NTSC size which can lead to the behaviour you are observing.
This scenario is not supported on Desktop Video 10.2.1 where it horizontally repeats the frame, whereas, in other versions of Desktop Video i.e 10.8.4, where the NTSC size frame is centered around the 1080i50 display size.
If your intent is to create both frame and display size in 1080i50 mode, then instead of using the first display mode, iterate over all the display modes and explicitly select 1080i50 display mode.
See example code:
- Code: Select all
while (displayModeIterator->Next(&deckLinkDisplayMode) == S_OK)
{
if (deckLinkDisplayMode != NULL)
{
if (deckLinkDisplayMode->GetDisplayMode() != bmdModeHD1080i50)
{
continue;
}
else
{
break;
}
}
}
Hope this helps.