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

Sanchit Sinha sanchit15083 at iiitd.ac.in
Thu Aug 17 12:27:05 EEST 2017


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

> On Thu, Aug 17, 2017 at 04:35:13AM +0530, Sanchit Sinha wrote:
> > 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: 9FF2128B147EF6730BADF133611EC7
> 87040B0FAB
> > >
> > > 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/
>
> >  Changelog                  |    1
> >  libavfilter/Makefile       |    1
> >  libavfilter/af_ambisonic.c |  733 ++++++++++++++++++++++++++++++
> +++++++++++++++
> >  libavfilter/allfilters.c   |    1
> >  4 files changed, 736 insertions(+)
> > 6b86b37d0b2ce57e59a0afe6a4e933c016e29108  0001-libavfilter-af_ambisonic.
> c-Added-File-for-Ambisonic-.patch
> > From 47da82bdbe31708f843052744ffc98488fa406c1 Mon Sep 17 00:00:00 2001
> > From: Sanchit Sinha <sanchit15083 at iiitd.ac.in>
> > Date: Thu, 17 Aug 2017 04:33:36 +0530
> > Subject: [PATCH] libavfilter/af_ambisonic.c:Added File for Ambisonic
> Decoding
>
> src/libavfilter/af_ambisonic.c:226:14: error: initializer element is not
> a compile-time constant
>             {sqrt(3)},
>              ^~~~~~~
> 1 error generated.
>
>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> it is not once nor twice but times without number that the same ideas make
> their appearance in the world. -- Aristotle
>
> _______________________________________________
> 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: 31570 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170817/37e56793/attachment.bin>


More information about the ffmpeg-devel mailing list