On Wed, Feb 15, 2017 at 11:29 AM, wm4 <nfx...@googlemail.com> wrote:
> On Wed, 15 Feb 2017 11:16:40 -0500
> Vittorio Giovara <vittorio.giov...@gmail.com> wrote:
>
>> On Wed, Feb 15, 2017 at 11:12 AM, wm4 <nfx...@googlemail.com> wrote:
>> > On Fri, 10 Feb 2017 16:08:10 -0500
>> > Vittorio Giovara <vittorio.giov...@gmail.com> 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?

There is a v2 which supersedes this one, this code is minimal support
for random files that might be still around.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to