On Wed, 15 Feb 2017 11:16:40 -0500
Vittorio Giovara <[email protected]> wrote:

> On Wed, Feb 15, 2017 at 11:12 AM, wm4 <[email protected]> wrote:
> > On Fri, 10 Feb 2017 16:08:10 -0500
> > Vittorio Giovara <[email protected]> wrote:  
> >> @@ -3369,6 +3393,26 @@ static int 
> >> mov_parse_uuid_spherical(MOVStreamContext *sc, AVIOContext *pb, size_
> >>          val = av_stristr(buffer, "<GSpherical:InitialViewRollDegrees>");
> >>          if (val)
> >>              sc->spherical->roll = strtol(val, NULL, 10) * (1 << 16);
> >> +
> >> +        /* tiling */
> >> +        val = av_stristr(buffer, "<GSpherical:CroppedAreaLeftPixels>");
> >> +        if (val)
> >> +            sc->spherical->left_bound = strtol(val, NULL, 10);
> >> +        val = av_stristr(buffer, "<GSpherical:CroppedAreaTopPixels>");
> >> +        if (val)
> >> +            sc->spherical->top_bound = strtol(val, NULL, 10);
> >> +        val = av_stristr(buffer, 
> >> "<GSpherical:CroppedAreaImageWidthPixels>");
> >> +        if (val)
> >> +            sc->spherical->right_bound =
> >> +                sc->width - sc->spherical->left_bound - strtol(val, NULL, 
> >> 10);
> >> +        val = av_stristr(buffer, 
> >> "<GSpherical:CroppedAreaImageHeightPixels>");
> >> +        if (val)
> >> +            sc->spherical->bottom_bound =
> >> +                sc->height - sc->spherical->top_bound - strtol(val, NULL, 
> >> 10);  
> >
> > Does this try to parse XML?  
> 
> ¯\_(ツ)_/¯
> 
> > Who is responsible for this crime (storing it as XML in mp4)?  
> 
> https://github.com/google/spatial-media/blob/master/docs/spherical-video-rfc.md

If it calls itself RFC it's not too late yet?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to