From 0e2549e457074e2f2acb9044ef321d70ca8b83a6 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Wed, 22 Mar 2017 21:26:28 +0100 Subject: h265: add YUV444P pixel format --- modules/h265/decode.c | 4 +--- modules/h265/encode.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/h265/decode.c b/modules/h265/decode.c index f1f82f0..f469f56 100644 --- a/modules/h265/decode.c +++ b/modules/h265/decode.c @@ -309,11 +309,9 @@ int h265_decode(struct viddec_state *vds, struct vidframe *frame, fmt = VID_FMT_YUV420P; break; -#if 0 case AV_PIX_FMT_YUV444P: - fmt = VID_FMT_YUV444; + fmt = VID_FMT_YUV444P; break; -#endif default: warning("h265: decode: bad pixel format (%i) (%s)\n", diff --git a/modules/h265/encode.c b/modules/h265/encode.c index 83264b2..955d8dd 100644 --- a/modules/h265/encode.c +++ b/modules/h265/encode.c @@ -197,11 +197,9 @@ int h265_encode(struct videnc_state *st, bool update, colorspace = X265_CSP_I420; break; -#if 0 - case VID_FMT_YUV444: + case VID_FMT_YUV444P: colorspace = X265_CSP_I444; break; -#endif default: warning("h265: encode: pixel format not supported (%s)\n", -- cgit v1.2.3