Displaying 7 results from an estimated 7 matches for "bad_arg".
Did you mean:
add_arg
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...der *st, int request,
...)
ret = celt_encoder_ctl(celt_enc, OPUS_SET_ENERGY_MASK(value));
}
break;
+ case OPUS_GET_IN_DTX_REQUEST:
+ {
+ opus_int32 *value = va_arg(ap, opus_int32*);
+ if (!value)
+ {
+ goto bad_arg;
+ }
+ *value = 0;
+ if (st->silk_mode.useDTX) {
+ /* DTX determined by Silk. */
+ void *silk_enc = (char*)st+st->silk_enc_offset;
+ *value =
((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >=
NB_...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...T_ENERGY_MASK(value));
> > }
> > break;
> > + case OPUS_GET_IN_DTX_REQUEST:
> > + {
> > + opus_int32 *value = va_arg(ap, opus_int32*);
> > + if (!value)
> > + {
> > + goto bad_arg;
> > + }
> > + *value = 0;
> > + if (st->silk_mode.useDTX) {
> > + /* DTX determined by Silk. */
> > + void *silk_enc = (char*)st+st->silk_enc_offset;
> > + *value =
> > ((s...
2010 Mar 02
1
question about CELT_SET_COMPLEXITY_REQUEST
...as to why
Complexity is described as a value from 0-10, but the code only appears to
have one setting for 0-2 and another setting for 3-10. Is that for future
use or am I missing something?
case CELT_SET_COMPLEXITY_REQUEST:
{
int value = va_arg(ap, celt_int32);
if (value<0 || value>10)
goto bad_arg;
if (value<=2) {
st->pitch_enabled = 0;
st->pitch_available = 0;
} else {
st->pitch_enabled = 1;
if (st->pitch_available<1)
st->pitch_available = 1;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachme...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
...ret = celt_encoder_ctl(celt_enc, OPUS_SET_ENERGY_MASK(value));
> }
> break;
> + case OPUS_GET_IN_DTX_REQUEST:
> + {
> + opus_int32 *value = va_arg(ap, opus_int32*);
> + if (!value)
> + {
> + goto bad_arg;
> + }
> + *value = 0;
> + if (st->silk_mode.useDTX) {
> + /* DTX determined by Silk. */
> + void *silk_enc = (char*)st+st->silk_enc_offset;
> + *value =
> ((silk_encoder*)silk_enc)->state_Fx...
2009 Sep 22
1
[PATCH] edit-livecd in python
...$help = 1 && { usage; exit 0; }
-
-# Require "-o OUTPUT_FILE"
-test -z "$OUTPUT_FILE" \
- && { warn "no output file specified; use -o FILE.iso"; try_h; exit 1; }
-
-# Fail if there are any extra command-line arguments.
-if test $OPTIND -le $#; then
- bad_arg=$(eval "echo \$$OPTIND")
- warn "extra argument '$bad_arg'"; try_h; exit 1
-fi
-
-# first, check to see we are root
-if [ $( id -u ) -ne 0 ]; then
- die "Must run as root"
-fi
-
-# Check for some prerequisites.
-# "type" prints "PROG not foun...
2009 Oct 14
4
Refactor ovirt-node-image code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora.
Removed ks files, now in ovirt-node-recipe, which is subpackage of ovirt-node.
Removed tools, these are now in ovirt-node-recipe which is subpackage of
ovirt-node.
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora.
Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe.
Removes old sub packages form ovirt-node, stateless, logos, selinux.
Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221
Added License file.