Skip to content
Snippets Groups Projects
  1. Apr 30, 2012
  2. Apr 29, 2012
  3. Apr 25, 2012
  4. Apr 24, 2012
  5. Apr 23, 2012
  6. Apr 20, 2012
  7. Apr 13, 2012
  8. Apr 12, 2012
  9. Apr 08, 2012
  10. Apr 07, 2012
    • Jean-Marc Valin's avatar
      Fixes some overflows in the fixed-point pitch code · 178758b8
      Jean-Marc Valin authored
      The overflows reported were:
      - Syy in find_best_pitch() in pitch.c
      - xy, xx and yy in remove_doubling() in pitch.c
      
      The fixes are:
      - Adaptive scaling in pitch_downsample() which also improves quality
      - Adding a missing downshift in find_best_pitch()
      - More conservative yshift when calling find_best_pitch()
      178758b8
  11. Apr 05, 2012
    • Ralph Giles's avatar
      Rename to header makefile fragements to .mk · cd539dfd
      Ralph Giles authored
      The opus_headers.txt, etc. files are makefile
      fragments defining variables with a list of
      required header files for the build. As such
      they should use the .mk filename extension,
      just like opus_sources.mk, etc.
      cd539dfd
    • Ralph Giles's avatar
      Add opus_custom.h to celt_headers.txt. · 8779266c
      Ralph Giles authored
      This file is included unconditionally by celt.h.
      As such it's a required part of the build and
      should be in the header index files.
      8779266c
  12. Apr 02, 2012
    • Ralph Giles's avatar
      Cast a factor to maintain precision on 16 bit systems. · d9474d90
      Ralph Giles authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      The multiply would overflow with 16 bit ints. Thanks
      to Riccardo Micci for pointing out the issue. Thanks
      to Tim Terriberry for the valid range of the decay
      argument.
      
      Note that ft is unsigned, but always less than 32736,
      so we could use a 16 bit signed type here if it allows
      the compiler to produce faster code (with signed 16*16
      and 16*32 multiplies). In the absense of actual cycle
      counts from a real platform, I've left it as an unsigned
      for the sake of readability.
      
      For similar reasons we cast (16384-decay) to a signed
      integer even though it is also always positive.
      d9474d90
    • Ralph Giles's avatar
      Improve decoder_create documentation. · f4028521
      Ralph Giles authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      The parameter descriptions look like they were copied
      from encoder_create. Update them for the decode side
      and repeat the clarifications about what sample rates
      are allowed and what they mean.
      f4028521
    • Ralph Giles's avatar
      Remove trailing whitespace. · 5f6e472c
      Ralph Giles authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      Also fixes a minor typo.
      5f6e472c
  13. Mar 08, 2012
  14. Mar 06, 2012
    • Gregory Maxwell's avatar
      CLANG IOC no longer likes the 'deterministic random' bitstreams, so move the... · 8770b070
      Gregory Maxwell authored
      CLANG IOC no longer likes the 'deterministic random' bitstreams, so move the test_opus_decode bailout up.
      8770b070
    • Ralph Giles's avatar
      Fix documenation typos. · 873fc5b0
      Ralph Giles authored
      Doxygen is smart enough to insert a period if the paragraph
      before the @see directive, which starts a new section, doesn't
      have one. Unfortunately it's not smart enough to convert a
      comma to a period. So while the "description, @see foo" idiom
      used for the CTL documentation scans well in the header file,
      the Doxygen output end up with "description,.\n".
      
      Minimal change to remove the offending commas.
      873fc5b0
    • Ralph Giles's avatar
      Fix typos in the API documentation. · 1e0ba0f4
      Ralph Giles authored
      opus_decode() takes a sixth 'enable_fec' option. Naive invocations
      shoudl set this to zero.
      1e0ba0f4
    • Ralph Giles's avatar
      Restore the windows-side #ifdef check in silk/MacroDebug.h. · b46991c3
      Ralph Giles authored
      We still override the '#if 0' with FIXED_DEBUG, but this
      leaves whatever Koen intended here more intact. Suggestion
      from Greg Maxwell.
      b46991c3
    • Ralph Giles's avatar
      Check for underflow in the debug USUB32. · a855a1f0
      Ralph Giles authored
      a855a1f0
    • Ralph Giles's avatar
      Enable the silk debug macros with FIXED_DEBUG. · 9357ae97
      Ralph Giles authored
      This isn't entirely accurate, since it's also used on integer
      math. However, the idea is similar: to add bounds checking.
      
      This code asserts rather than warning, so one must pass
      --enable-assertions to configure as well to get any output,
      and in that case the first instance is fatal.
      
      Quick testing shows both test_opus_decode and test_opus_encode
      trigger the assertions, but running the draft-10 test vectors
      does not.
      9357ae97
    • Ralph Giles's avatar
      Fix a signed-compare warning. · 2fa9e6e5
      Ralph Giles authored
      The silk math debug macros include a bounds check on silk_abs.
      Because INT_MIN = (-INT_MAX - 1), abs(INT_MIN) can't be
      represented as an int. The macro was checking for this value
      as 0x8000... without a cast to signed, warning on gcc.
      
      silk/typedef.h already defines minimum values for the int
      types, so we correct the warning by using those.
      2fa9e6e5
    • Ralph Giles's avatar
      Print the actual arguments to the debug UADD/SUB32 routines. · 9620cf77
      Ralph Giles authored
      The versions of UADD32 and USUB32 in fixed_debug.h take
      unsigned long long (ideally 64 bit) inputs, and range
      check the arguments. However, the printed warnings cast
      them to (unsigned), which is confusing. Instead, print
      the full value passed in.
      
      NB this will make negative values print has huge,
      rather than negative, values.
      9620cf77
    • Ralph Giles's avatar
Loading