Displaying 10 results from an estimated 10 matches for "mapping_matrix_init".
2017 Oct 12
2
[PATCH] Support for Channel Mapping 253.
thanks for all your feedback. here's the revised patch:
On Wed, Oct 11, 2017 at 2:20 PM Timothy B. Terriberry <tterribe at xiph.org>
wrote:
> Jean-Marc Valin wrote:
> > I think you'll want something like:
> > (opus_int16)((unsigned)demixing_matrix[2*i+1] << 8)
> > (though you might want to check it too)
>
> FWIW, we use the construct
> int s =
2017 Oct 31
7
[PATCH] Support for Channel Mapping 253.
...ems even earlier in the code? If not, then maybe an
> assertion would be better. Also, is the size of the matrix the only
> thing you can validate?
>
> Removed it. You're right, it's functionally impossible for the user to
create an invalid matrix with the current API.
> 6) mapping_matrix_init() returns an error code, but the code that's
> calling it never checks it. Considering that it's an internal call, I
> would say it's probably better not to return anything, but instead to
> assert in the function.
>
> Done.
> 7) Same for mapping_matrix_multiply_shor...
2017 Nov 03
1
[PATCH] Support for Channel Mapping 253.
...assertion would be better. Also, is the size of the matrix the only
> > thing you can validate?
> >
> > Removed it. You're right, it's functionally impossible for the user to
> > create an invalid matrix with the current API.
> >
> >
> > 6) mapping_matrix_init() returns an error code, but the code that's
> > calling it never checks it. Considering that it's an internal call, I
> > would say it's probably better not to return anything, but instead to
> > assert in the function.
> >
> > Done.
> >...
2017 Oct 31
0
[PATCH] Support for Channel Mapping 253.
...ure I understand the purpose of mapping_matrix_validate().
Can the user really cause the matrix not to be valid? If yes, then can't
this cause problems even earlier in the code? If not, then maybe an
assertion would be better. Also, is the size of the matrix the only
thing you can validate?
6) mapping_matrix_init() returns an error code, but the code that's
calling it never checks it. Considering that it's an internal call, I
would say it's probably better not to return anything, but instead to
assert in the function.
7) Same for mapping_matrix_multiply_short() and
mapping_matrix_multiply_float...
2017 Nov 02
0
[PATCH] Support for Channel Mapping 253.
...If not, then maybe an
> assertion would be better. Also, is the size of the matrix the only
> thing you can validate?
>
> Removed it. You're right, it's functionally impossible for the user to
> create an invalid matrix with the current API.
>
>
> 6) mapping_matrix_init() returns an error code, but the code that's
> calling it never checks it. Considering that it's an internal call, I
> would say it's probably better not to return anything, but instead to
> assert in the function.
>
> Done.
>
>
> 7) Same for...
2017 Nov 07
0
[PATCH] Support for Channel Mapping 253.
...> >
> > > Removed it. You're right, it's functionally impossible
> for the user to
> > > create an invalid matrix with the current API.
> > >
> > >
> > > 6) mapping_matrix_init() returns an error code, but
> the code
> > that's
> > > calling it never checks it. Considering that it's an
> internal
> > call, I
> > > would say it's probably better not to re...
2017 Nov 09
2
[PATCH] Support for Channel Mapping 253.
...impossible
> > > for the user to
> > > > > create an invalid matrix with the current API.
> > > > >
> > > > >
> > > > > 6) mapping_matrix_init() returns an error
> > code, but
> > > the code
> > > > that's
> > > > > calling it never checks it. Considering
> > that it's an
> > > intern...
2017 Nov 09
0
[PATCH] Support for Channel Mapping 253.
...39;s functionally
> impossible
> > for the user to
> > > > create an invalid matrix with the current API.
> > > >
> > > >
> > > > 6) mapping_matrix_init() returns an error
> code, but
> > the code
> > > that's
> > > > calling it never checks it. Considering
> that it's an
> > internal
> > &...
2017 Nov 09
0
[PATCH] Support for Channel Mapping 253.
...gt;> > > for the user to
>> > > > > create an invalid matrix with the current API.
>> > > > >
>> > > > >
>> > > > > 6) mapping_matrix_init() returns an error
>> > code, but
>> > > the code
>> > > > that's
>> > > > > calling it never checks it. Considering
>> > that it's an
>> >...
2017 Nov 10
2
[PATCH] Support for Channel Mapping 253.
... for the user to
> > > > > create an invalid matrix with the
> current API.
> > > > >
> > > > >
> > > > > 6) mapping_matrix_init() returns
> an error
> > code, but
> > > the code
> > > > that's
> > > > > calling it never checks it.
> Considering
> &...