Skip to content
Snippets Groups Projects
  1. Sep 03, 2013
    • Timothy B. Terriberry's avatar
      Mark a bunch of API functions const. · 23c8a83d
      Timothy B. Terriberry authored
      This makes it clear they don't modify the state, which is a useful
       indicator of what is safe to call from the application decode
       callback.
      23c8a83d
    • Timothy B. Terriberry's avatar
      Document that we will always have at least 1 link. · 87b951c3
      Timothy B. Terriberry authored
      Otherwise we would have failed to open the stream.
      87b951c3
    • Timothy B. Terriberry's avatar
      Minor simplification to end-trimming logic. · 4d75f855
      Timothy B. Terriberry authored
      This is a little easier to read, and allows us to save some
       subtractions and a comparison.
      4d75f855
    • Timothy B. Terriberry's avatar
      Get rid of the op_float2short_filter() wrapper. · 80751579
      Timothy B. Terriberry authored
      The increasingly-inaccurately named op_shaped_dither16() can serve
       this role instead, without much additional complexity (perhaps
       less, once you consider the required shuffling around of the
       function parameters).
      80751579
    • Timothy B. Terriberry's avatar
      Add an API to disable dithering. · 8396a1f8
      Timothy B. Terriberry authored
      This is to correspond to the feature in opus-tools's opusdec.
      opusdec itself probably won't be able to use it, because it still
       wants to do dithering after resampling, but the motivation for the
       feature is the same.
      8396a1f8
    • Timothy B. Terriberry's avatar
      Avoid clipping in short->float stereo downmixing. · a88a90f9
      Timothy B. Terriberry authored
      Previously I'd said this would require a large stack buffer, which
       was true if you simply wanted to re-use the existing
       op_short2float_filter() and floating-point op_stereo_filter().
      But the latter is not normally compiled for fixed-point anyway, so
       we can instead write new code that doesn't need the stack buffer
       without harming anything.
      a88a90f9
    • Timothy B. Terriberry's avatar
      Remove some OP_UNLIKELY macros. · 49233ebf
      Timothy B. Terriberry authored
      These were unlikely when I originally expected applications to
       normally provide a decode buffer in the right format of sufficient
       size.
      However, the decode filter API works by asking to decode into a
       0-byte buffer, which will trigger both of these tests on every
       packet.
      Since this is how three of the four decoding APIs are implemented,
       this is not really that unlikely anymore.
      49233ebf
    • Timothy B. Terriberry's avatar
      a5a99116
    • Timothy B. Terriberry's avatar
      Minor decode control flow updates. · e0ab29d4
      Timothy B. Terriberry authored
      This makes op_fetch_and_process_page() always try to fetch another
       page, like it used to (and like its name implies).
      There was only one place where we needed the early return for
       unprocessed packets, and getting rid of that actually simplifies
       the logic there (replacing a conditional continue with an
       unconditional one in a slightly different location).
      e0ab29d4
    • Timothy B. Terriberry's avatar
      Add an application decoding callback API. · 1b114a82
      Timothy B. Terriberry authored
      This is needed to allow advanced usage, like that of opusdec in
       opus-tools, which can simulate packet loss or save the range coder
       state for decoder verification.
      It could also be used in a pinch to use libopusfile for access to
       the raw Ogg packets, though this is somewhat of a hack.
      1b114a82
  2. Aug 26, 2013
  3. Aug 25, 2013
  4. Aug 24, 2013
  5. Aug 23, 2013
  6. Aug 21, 2013
  7. Aug 20, 2013
  8. Aug 19, 2013
  9. Aug 12, 2013
    • Timothy B. Terriberry's avatar
      Fix an uninitialized variable. · 8f26e5a1
      Timothy B. Terriberry authored
      Surprisingly, the actual initial value of this variable is
       irrelevant, since we always insert 24 bits of data into and then
       read only those bits out.
      However, fixing this still removes undefined behavior and removes
       extraneous register dependencies.
      8f26e5a1
    • Timothy B. Terriberry's avatar
      Minor UTF-8/UTF-16 cleanups. · cfa59561
      Timothy B. Terriberry authored
      - Reject 'not a character' values 0xFFFE and 0xFFFF.
      - Remove some unnecessary string length checks.
      cfa59561
  10. Aug 10, 2013
  11. Aug 08, 2013
  12. Aug 06, 2013
Loading