mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
More Konfigs nad skindesigner fixes
This commit is contained in:
parent
56932f47e4
commit
2253957c11
@ -1079,9 +1079,10 @@ void cMenuSetupSoft::Create(void)
|
|||||||
(int *)&Background, 0, 0x00FFFFFF));
|
(int *)&Background, 0, 0x00FFFFFF));
|
||||||
Add(new cMenuEditIntItem(tr("Video background color (Alpha)"),
|
Add(new cMenuEditIntItem(tr("Video background color (Alpha)"),
|
||||||
(int *)&BackgroundAlpha, 0, 0xFF));
|
(int *)&BackgroundAlpha, 0, 0xFF));
|
||||||
Add(new cMenuEditBoolItem(tr("Use studio levels (vdpau only)"),
|
|
||||||
&StudioLevels, trVDR("no"), trVDR("yes")));
|
|
||||||
#endif
|
#endif
|
||||||
|
Add(new cMenuEditBoolItem(tr("Use studio levels"),
|
||||||
|
&StudioLevels, trVDR("no"), trVDR("yes")));
|
||||||
|
|
||||||
Add(new cMenuEditBoolItem(tr("60hz display mode"), &_60HzMode,
|
Add(new cMenuEditBoolItem(tr("60hz display mode"), &_60HzMode,
|
||||||
trVDR("no"), trVDR("yes")));
|
trVDR("no"), trVDR("yes")));
|
||||||
Add(new cMenuEditBoolItem(tr("Soft start a/v sync"), &SoftStartSync,
|
Add(new cMenuEditBoolItem(tr("Soft start a/v sync"), &SoftStartSync,
|
||||||
|
6
video.c
6
video.c
@ -3448,6 +3448,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, int level)
|
|||||||
memcpy(&img->color,&pl_color_space_bt709,sizeof(struct pl_color_space));
|
memcpy(&img->color,&pl_color_space_bt709,sizeof(struct pl_color_space));
|
||||||
// img->color.primaries = PL_COLOR_PRIM_BT_709;
|
// img->color.primaries = PL_COLOR_PRIM_BT_709;
|
||||||
// img->color.transfer = PL_COLOR_TRC_BT_1886;
|
// img->color.transfer = PL_COLOR_TRC_BT_1886;
|
||||||
|
// img->color.light = PL_COLOR_LIGHT_SCENE_709_1886;
|
||||||
// img->color.light = PL_COLOR_LIGHT_DISPLAY;
|
// img->color.light = PL_COLOR_LIGHT_DISPLAY;
|
||||||
break;
|
break;
|
||||||
case AVCOL_SPC_BT2020_NCL:
|
case AVCOL_SPC_BT2020_NCL:
|
||||||
@ -3592,7 +3593,7 @@ static void CuvidDisplayFrame(void)
|
|||||||
last_time = GetusTicks();
|
last_time = GetusTicks();
|
||||||
if (!p->swapchain)
|
if (!p->swapchain)
|
||||||
return;
|
return;
|
||||||
|
usleep(1000);
|
||||||
if (!pl_swapchain_start_frame(p->swapchain, &frame)) { // get new frame
|
if (!pl_swapchain_start_frame(p->swapchain, &frame)) { // get new frame
|
||||||
usleep(10);
|
usleep(10);
|
||||||
}
|
}
|
||||||
@ -3602,7 +3603,10 @@ static void CuvidDisplayFrame(void)
|
|||||||
pl_tex_clear(p->gpu,target.fbo,black); // clear frame
|
pl_tex_clear(p->gpu,target.fbo,black); // clear frame
|
||||||
|
|
||||||
target.repr.sys = PL_COLOR_SYSTEM_RGB;
|
target.repr.sys = PL_COLOR_SYSTEM_RGB;
|
||||||
|
if (VideoStudioLevels)
|
||||||
target.repr.levels = PL_COLOR_LEVELS_PC;
|
target.repr.levels = PL_COLOR_LEVELS_PC;
|
||||||
|
else
|
||||||
|
target.repr.levels = PL_COLOR_LEVELS_TV;
|
||||||
target.repr.alpha = PL_ALPHA_UNKNOWN;
|
target.repr.alpha = PL_ALPHA_UNKNOWN;
|
||||||
// target.repr.bits.sample_depth = 16;
|
// target.repr.bits.sample_depth = 16;
|
||||||
// target.repr.bits.color_depth = 16;
|
// target.repr.bits.color_depth = 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user