Skip to content

Commit 8a36849

Browse files
committed
video/out/gpu/video: change srgb-as-power22=auto behave like input on macOS
macOS is using 2.2 by default, so no need to override output transfer function at auto mode. Signed-off-by: Shengyu Qu <[email protected]>
1 parent ee1184b commit 8a36849

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

video/out/vo_gpu_next.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,13 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame)
13051305
bool target_pq = !target_unknown && target_csp.transfer == PL_COLOR_TRC_PQ;
13061306
if (opts->treat_srgb_as_power22 & 4 && target_pq)
13071307
target.color.transfer = PL_COLOR_TRC_SRGB;
1308+
#endif
1309+
#ifdef __APPLE__
1310+
// Seems macOS is using 2.2 by default, so no need to override function
1311+
// at auto mode.
1312+
// See: <https://projects.blender.org/blender/blender/issues/145022>
1313+
if (opts->treat_srgb_as_power22 & 4)
1314+
target.color.transfer = PL_COLOR_TRC_SRGB;
13081315
#endif
13091316
}
13101317
update_overlays(vo, p->osd_res,

0 commit comments

Comments
 (0)