Skip to content

Commit d202cb3

Browse files
committed
video/out/vo_gpu_next: don't make sdr-adjust-gamma=auto behave like
"no" on macOS On macOS, global color management is always enabled, so there's no need to make "auto" behaves like "no". Signed-off-by: Shengyu Qu <[email protected]>
1 parent a5ddd60 commit d202cb3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DOCS/man/options.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7377,7 +7377,8 @@ them.
73777377
``yes``, it will be converted based on the available metadata.
73787378

73797379
``auto`` (default) behaves like ``no``, except when ``--target-trc`` is
7380-
explicitly set, in which case it behaves like ``yes``.
7380+
explicitly set, in which case it behaves like ``yes``. Besides, on macOS it
7381+
should always behaves like ``yes``.
73817382

73827383
Generally it's recommended to enable this option, if you can ensure that
73837384
both source and target metadata is correct. Besides, on color managed

video/out/vo_gpu_next.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,10 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame)
12691269
case PL_COLOR_TRC_BT_1886:
12701270
case PL_COLOR_TRC_GAMMA22:
12711271
case PL_COLOR_TRC_SRGB:
1272+
#ifdef __APPLE__
1273+
if (opts->sdr_adjust_gamma == 0)
1274+
break;
1275+
#endif
12721276
target.color.transfer = frame->current->params.color.transfer;
12731277
}
12741278
}

0 commit comments

Comments
 (0)