Skip to content
Snippets Groups Projects
  1. Dec 31, 2015
    • Ralph Giles's avatar
      Add tonality_analysis_reset(). · 9e3872a8
      Ralph Giles authored
      
      Add a reset function for the TonalityAnalysisState struct
      and call it on encoder reset.
      
      Move the state struct above the clear line in OpusEncoder
      so reset doesn't clobber reusable fields. Currently this
      is only the arch field, which is moved to to top of the
      struct so we can use the same memset-to-the-end pattern
      as OpusEncoder.
      
      Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
      9e3872a8
    • Ralph Giles's avatar
      Add an initializer for TonalityAnalysisState. · d43445f3
      Ralph Giles authored
      
      This interns the asm flags parameter in the state struct
      so we don't need to pass it with every call. It can be
      expensive, so we don't want to query every run_analysis()
      call, but since this (private) api is used by webrtc code
      we need to provide a supportable interface for filling in
      the correct value.
      
      Note the initialization code is partially duplicated between
      opus_encoder_init and the OPUS_RESET_STATE switch case, so we
      must re-initialize it there.
      
      Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
      d43445f3
  2. Dec 30, 2015
  3. Dec 04, 2015
  4. Oct 07, 2015
  5. Aug 20, 2015
  6. Aug 07, 2015
    • Mark Harris's avatar
      Fix const struct to work with C++ compilation · 8adff0bb
      Mark Harris authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      This allows the libopus source files to be compiled with a C++ compiler,
      by ensuring that the "extern const MLP net" declaration is visible at
      the point of the "const MLP net" in src/mlp_data.c.  Otherwise it will
      default to static linkage in C++, resulting in an undefined symbol.
      
      Note that if compiled with a C++ compiler the symbols will be mangled,
      so don't do that if you want to be able to call it from C code or run
      the tests (which still require a C compiler).
      8adff0bb
    • Mark Harris's avatar
      Silence clang -Wcast-align warnings · 4feb0dff
      Mark Harris authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
      4feb0dff
  7. Aug 05, 2015
  8. Aug 04, 2015
  9. Feb 27, 2015
  10. Feb 24, 2015
  11. Dec 26, 2014
  12. Nov 27, 2014
  13. Oct 04, 2014
  14. Sep 30, 2014
  15. Sep 04, 2014
  16. Jun 21, 2014
  17. May 14, 2014
    • Ralph Giles's avatar
      Fix type conversion warning. · 3996642c
      Ralph Giles authored
      Use abs(sweep_bps) instead of fabs(). "sweep_bps" is an integer,
      and on some compilers this line generates a warning.
      
      Patch from Tina le Grand.
      Reviewed by Jean-Marc Valin
      3996642c
  18. Jan 30, 2014
  19. Jan 27, 2014
  20. Jan 08, 2014
  21. Jan 06, 2014
  22. Dec 17, 2013
  23. Dec 10, 2013
  24. Dec 09, 2013
  25. Nov 25, 2013
Loading