[vlc-devel] [PATCH 3/4] chroma: add a converter from I420/YV12 to NV12

Jean-Baptiste Kempf jb at videolan.org
Wed May 11 16:11:13 CEST 2016


On 11 May, Steve Lhomme wrote :
> +/*****************************************************************************
> + * planar I420 4:2:0 Y:U:V to planar NV12 4:2:0 Y:UV
> + *****************************************************************************/
> +static void I420_NV12( filter_t *p_filter, picture_t *p_src,
> +                                           picture_t *p_dst )
> +{


> +/*****************************************************************************
> + * planar YV12 4:2:0 Y:V:U to planar NV12 4:2:0 Y:UV
> + *****************************************************************************/
> +static void YV12_NV12( filter_t *p_filter, picture_t *p_src,
> +                                           picture_t *p_dst )
> +{

Those functions are almost the same, except U and V inverted. Please
factorize.

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list