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

Ville Syrjälä syrjala at sci.fi
Thu Aug 31 02:03:01 EEST 2017


On Sun, Feb 26, 2017 at 11:57:27PM +0200, Ville Syrjälä wrote:
> Add support for NV12/NV21 by just using the YV12 code. It works since it
> doesn't actually touch chroma.

Could someone please commit this patch as well? The vo_xv stuff is
now in so this is all we're missing for a decent NV12 experience.

> ---
>  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
> 

-- 
Ville Syrjälä
syrjala at sci.fi
http://www.sci.fi/~syrjala/


More information about the MPlayer-dev-eng mailing list