[vlc-devel] [PATCH 17/19] ttml codec: add displayAlign attribute support

Francois Cartegnie fcvlcdev at free.fr
Tue Aug 30 12:47:15 CEST 2016


Le 29/08/2016 à 23:01, Stanislas Plessia a écrit :

> +        else if( !strcasecmp( "tts:displayAlign", attr ) )
> +        {
> +            if( !strcasecmp ( "before", val ) )
> +                p_ttml_style->i_align = SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_LEFT;
> +            else if( !strcasecmp ( "after", val ) )
> +                p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_RIGHT;
> +            else if( !strcasecmp ( "center", val ) )
> +                p_ttml_style->i_align = SUBPICTURE_ALIGN_BOTTOM;
> +        }

How can before/after become top/left and bottom/right ?

Francois


More information about the vlc-devel mailing list