[MPlayer-dev-eng] [PATCH 1/2] osd: Add NV12/NV21 support

Ville Syrjälä syrjala at sci.fi
Sun Feb 26 23:57:27 EET 2017


Add support for NV12/NV21 by just using the YV12 code. It works since it
doesn't actually touch chroma.
---
 sub/osd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sub/osd.c b/sub/osd.c
index 81633d98c29f..a2d002526fe5 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -450,6 +450,8 @@ vo_draw_alpha_func vo_get_draw_alpha(unsigned fmt) {
     case IMGFMT_YV12:
     case IMGFMT_I420:
     case IMGFMT_IYUV:
+    case IMGFMT_NV12:
+    case IMGFMT_NV21:
         return vo_draw_alpha_yv12;
     case IMGFMT_YUY2:
     case IMGFMT_YVYU:
-- 
2.10.2



More information about the MPlayer-dev-eng mailing list