[FFmpeg-devel] [PATCH] libavfilter/af_ambisonic.c Added File for Ambisonic Filter

Sanchit Sinha sanchit15083 at iiitd.ac.in
Thu Aug 17 02:05:13 EEST 2017


On Thu, Aug 17, 2017 at 1:32 AM, Michael Niedermayer <michael at niedermayer.cc
> wrote:

> On Tue, Aug 15, 2017 at 11:57:18PM +0530, Sanchit Sinha wrote:
> > On Tue, Aug 15, 2017 at 4:46 PM, Paul B Mahol <onemda at gmail.com> wrote:
> >
> > > Hi,
> > >
> > > subject of patch file is wrong.
> > >
> > > Why is code for rotation so limited? One should be able to rotate by
> > > all 3 directions at once.
> > > _______________________________________________
> > > ffmpeg-devel mailing list
> > > ffmpeg-devel at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >
> >
> >
> >
> [...]
>
> > +/*Matrix for scaling options*/
> > +static const struct {
> > +    float matrix[4][1];
> > +} scaler_matrix[]= {
> > +    [N3D]={
> > +        .matrix={
> > +            {1},
> > +            {1},
> > +            {1},
> > +            {1},
> > +        },
> > +    },
> > +    [SN3D]={
> > +        .matrix={
> > +            {sqrt(2*floor(sqrt(0))+1)},
> > +            {sqrt(2*floor(sqrt(1))+1)},
> > +            {sqrt(2*floor(sqrt(2))+1)},
> > +            {sqrt(2*floor(sqrt(3))+1)},
> > +        },
> > +    },
> > +    [FURMUL]={
> > +        .matrix={
> > +            {sqrt(2)},
> > +            {sqrt(3)},
> > +            {sqrt(3)},
> > +            {sqrt(3)},
> > +        },
> > +    },
> > +};
>
> fails to build:
>
> src/libavfilter/af_ambisonic.c:225:14: error: initializer element is not
> a compile-time constant
>             {sqrt(2*floor(sqrt(0))+1)},
>
>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Elect your leaders based on what they did after the last election, not
> based on what they say before an election.
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


-- 
Sanchit Sinha
B.Tech- CSE
IIIT-Delhi
Roll-2015083
https://sinhaaftersanchit.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavfilter-af_ambisonic.c-Added-File-for-Ambisonic-.patch
Type: text/x-patch
Size: 31569 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170817/0ba07c4a/attachment.bin>


More information about the ffmpeg-devel mailing list