summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-22 21:26:28 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-03-22 21:26:28 +0100
commit0e2549e457074e2f2acb9044ef321d70ca8b83a6 (patch)
tree6a3daa21af2b872ed964ed0d877a571d80658bab /modules
parentfa3208e3a1e09131885ba42cef537f1e4a17bbaa (diff)
h265: add YUV444P pixel format
Diffstat (limited to 'modules')
-rw-r--r--modules/h265/decode.c4
-rw-r--r--modules/h265/encode.c4
2 files changed, 2 insertions, 6 deletions
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",