[FFmpeg-devel] [PATCH] libavfilter/af_ambisonic.c Added File for Ambisonic Filter
Michael Niedermayer
michael at niedermayer.cc
Wed Aug 16 23:02:24 EEST 2017
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170816/73d020a2/attachment.sig>
More information about the ffmpeg-devel
mailing list