mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Correct offsets for 3D OSD. Allow 1920x1200 OSD.
This commit is contained in:
parent
aad3742670
commit
cb91c779d3
10
video.c
10
video.c
@ -7493,11 +7493,13 @@ static void VdpauMixOsd(void)
|
|||||||
switch (Osd3DMode) {
|
switch (Osd3DMode) {
|
||||||
case 1:
|
case 1:
|
||||||
output_rect.x1 = output_rect.x1 / 2;
|
output_rect.x1 = output_rect.x1 / 2;
|
||||||
output_double_rect.x0 = output_rect.x1;
|
output_double_rect.x0 = output_rect.x0 + (VideoWindowWidth / 2);
|
||||||
|
output_double_rect.x1 = output_rect.x1 + (VideoWindowWidth / 2);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
output_rect.y1 = output_rect.y1 / 2;
|
output_rect.y1 = output_rect.y1 / 2;
|
||||||
output_double_rect.y0 = output_rect.y1;
|
output_double_rect.y0 = output_rect.y0 + (VideoWindowHeight / 2);
|
||||||
|
output_double_rect.y1 = output_rect.y1 + (VideoWindowHeight / 2);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -8339,7 +8341,7 @@ static void VdpauSetOutputPosition(VdpauDecoder * decoder, int x, int y,
|
|||||||
// VDPAU OSD
|
// VDPAU OSD
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
static const uint8_t OsdZeros[1920 * 1080 * 4]; ///< 0 for clear osd
|
static const uint8_t OsdZeros[1920 * 1200 * 4]; ///< 0 for clear osd
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Clear subpicture image.
|
/// Clear subpicture image.
|
||||||
@ -8367,7 +8369,7 @@ static void VdpauOsdClear(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (OsdWidth * OsdHeight > 1920 * 1080) {
|
if (OsdWidth * OsdHeight > 1920 * 1200) {
|
||||||
Error(_("video/vdpau: osd too big: unsupported\n"));
|
Error(_("video/vdpau: osd too big: unsupported\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user