[vlc-devel] [PATCH] demux: mp4: support 360° v2 spatial metadata

Francois Cartegnie fcvlcdev at free.fr
Wed Nov 16 18:16:38 CET 2016


Le 16/11/2016 à 17:17, Steve Lhomme a écrit :
> as found here https://github.com/google/spatial-media/blob/master/docs/spherical-video-v2-rfc.md

> +        switch( BOXDATA(p_st3d)->i_stereo_mode )
> +        {
> +        case ST3D_MONOSCOPIC:
> +            p_track->fmt.video.multiview_mode = MULTIVIEW_2D;
> +            break;
> +        case ST3D_STEREOSCOPIC_TOP_BOTTOM:
> +            p_track->fmt.video.multiview_mode = MULTIVIEW_STEREO_TB;
> +            break;
> +        case ST3D_STEREOSCOPIC_LEFT_RIGHT:
> +            p_track->fmt.video.multiview_mode = MULTIVIEW_STEREO_SBS;
> +            break;
> +        }

Seems correct, but compiler will bug about missing default case.

Unsure if we need to handle 'mandatory' atom cases.

Francois



More information about the vlc-devel mailing list