[vlc-commits] hw: vaapi: remove not implemented I420_10* cases

Thomas Guillem git at videolan.org
Tue Nov 7 11:52:52 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov  7 09:44:23 2017 +0100| [933955f73ef05904fea472a570c88087c47bb235] | committer: Thomas Guillem

hw: vaapi: remove not implemented I420_10* cases

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=933955f73ef05904fea472a570c88087c47bb235
---

 modules/hw/vaapi/chroma.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/modules/hw/vaapi/chroma.c b/modules/hw/vaapi/chroma.c
index 15a38afcf7..ec2fa9001c 100644
--- a/modules/hw/vaapi/chroma.c
+++ b/modules/hw/vaapi/chroma.c
@@ -105,6 +105,7 @@ FillPictureFromVAImage(picture_t *dest,
      *    break;
      */
     default:
+        vlc_assert_unreachable();
         break;
     }
 }
@@ -207,10 +208,8 @@ FillVAImageFromPicture(VAImage *dest_img, uint8_t *dest_buf,
 
         break;
     }
-    case VLC_CODEC_I420_10L || VLC_CODEC_I420_10B:
-        break;
     default:
-        break;
+        vlc_assert_unreachable();
     }
 }
 
@@ -265,16 +264,12 @@ vlc_vaapi_OpenChroma(vlc_object_t *obj)
         return VLC_EGENERIC;
 
     if (filter->fmt_in.video.i_chroma == VLC_CODEC_VAAPI_420 &&
-        (filter->fmt_out.video.i_chroma == VLC_CODEC_I420 ||
-         filter->fmt_out.video.i_chroma == VLC_CODEC_I420_10L ||
-         filter->fmt_out.video.i_chroma == VLC_CODEC_I420_10B))
+        filter->fmt_out.video.i_chroma == VLC_CODEC_I420)
     {
         is_upload = false;
         filter->pf_video_filter = DownloadSurface;
     }
-    else if ((filter->fmt_in.video.i_chroma == VLC_CODEC_I420 ||
-              filter->fmt_in.video.i_chroma == VLC_CODEC_I420_10L ||
-              filter->fmt_in.video.i_chroma == VLC_CODEC_I420_10B) &&
+    else if (filter->fmt_in.video.i_chroma == VLC_CODEC_I420 &&
              filter->fmt_out.video.i_chroma == VLC_CODEC_VAAPI_420)
     {
         is_upload = true;



More information about the vlc-commits mailing list