[FFmpeg-devel] [PATCH] avcodec: Add smpte2084 transfer function to videotoolboxenc
Michael Niedermayer
michael at niedermayer.cc
Wed Jun 12 11:01:16 EEST 2019
On Wed, Jun 12, 2019 at 09:44:26AM +0200, Nomis101 🐝 wrote:
> This patch will add support of the smpte2084 transfer function to videotoolboxenc. kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ is available on macOS 10.13 and up.
> This is on the bug tracker at https://trac.ffmpeg.org/ticket/7953
>
> diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
> index 3665581283..e786ebe3a7 100644
> --- a/libavcodec/videotoolboxenc.c
> +++ b/libavcodec/videotoolboxenc.c
> @@ -909,6 +909,12 @@ static int get_cv_transfer_function(AVCodecContext *avctx,
> case AVCOL_TRC_SMPTE240M:
> *transfer_fnc = kCVImageBufferTransferFunction_SMPTE_240M_1995;
> break;
> +
> +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
> + case AVCOL_TRC_SMPTE2084:
> + *transfer_fnc = kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ;
> + break;
> +#endif
>
> case AVCOL_TRC_GAMMA22:
> gamma = 2.2;
git does not like this patch
Applying: avcodec: Add smpte2084 transfer function to videotoolboxenc
Using index info to reconstruct a base tree...
error: patch failed: libavcodec/videotoolboxenc.c:909
error: libavcodec/videotoolboxenc.c: patch does not apply
error: Did you hand edit your patch?
It does not apply to blobs recorded in its index.
[..]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190612/7292d72f/attachment.sig>
More information about the ffmpeg-devel
mailing list