[vlc-devel] [PATCH] picture: use maximum 4 planes per picture

Steve Lhomme robux4 at ycbcr.xyz
Tue Apr 23 12:57:39 CEST 2019


Alternatively VOUT_MAX_PLANES could be merged into PICTURE_PLANE_MAX. 
It's only used by 2 modules, one a video filter, the other a video 
splitter. I don't think the value of 5 makes sense in any case.

On 4/23/2019 8:36 AM, Steve Lhomme wrote:
> We don't support any pixel format with more than 4 planes according to fourcc.c
> The max is for RGBA/YUVA.
> ---
>   include/vlc_picture.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/vlc_picture.h b/include/vlc_picture.h
> index 58aba49445..9aa7a01dce 100644
> --- a/include/vlc_picture.h
> +++ b/include/vlc_picture.h
> @@ -63,7 +63,7 @@ typedef struct plane_t
>   /**
>    * Maximum number of plane for a picture
>    */
> -#define PICTURE_PLANE_MAX (VOUT_MAX_PLANES)
> +#define PICTURE_PLANE_MAX  4
>   
>   typedef struct picture_context_t
>   {
> -- 
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list