1. 31 Oct, 2018 1 commit
  2. 30 Oct, 2018 2 commits
    • Rostislav Pehlivanov's avatar
      Rewrite msac.c · 33d16d81
      Rostislav Pehlivanov authored
      This rewrites msac.c to the point of there being no libaom project
      code left, hence changing the license of the file to the dav1d
      project's license.
      
      The rewrite much simplifies and optimizes entropy decoding.
      Some encoder specific code also remained, such as tell_offs, to
      tell the fractional amount of bits left, which the decoder does
      not need.
      
      ctx_refill is much simpler and has a tighter loop with less
      instructions, which on some CPUs can actually be ran in one cycle.
      The old mechanism which checked to see if the buffer reached the
      end to disable calling ctx_refill is gone, as all it saved was
      a mostly well predicted branch.
      The optimizations regarading this function enabled us to use
      an ec_win of 64 bits whilst improving performance. This was not
      possible with the old needlessly robust system.
      
      Some msac-specific API changes were made - msac_decode_bool now
      takes a scaled value directly rather than doing scaling itself.
      This saves a shift in most use cases as the function is mainly
      used to read equiprobable bools rather than ones with specific
      probabilities.
      
      There's still room for optimizations, mainly in that update_cdf
      could be SIMD'd. This commit prepares for some of them by
      moving the init function at the bottom of the file.
      
      Overall decoder speedup seems to be around 3%-5%, specific on
      bitrate and encoder as expected.
      33d16d81
    • Janne Grunau's avatar
      6e796314
  3. 29 Oct, 2018 2 commits
    • Ronald S. Bultje's avatar
      Don't use msac_decode_bool() for edge partition parsing · 8fac3029
      Ronald S. Bultje authored
      This is identical to what libaom does, and fixes #119. After
      gather_left/top_partition_prob(), probabilities *can* overlap,
      and in extreme cases the output CDF[0] can therefore be 0, which
      will cause an assert failure when used with msac_decode_bool().
      8fac3029
    • Janne Grunau's avatar
      unref reference pictures after decoding errors · 9f17489c
      Janne Grunau authored
      Fix #115. Fix 'assert(seg_id < 8)' in
      clusterfuzz-testcase-minimized-dav1d_fuzzer-5740590025670656 due to
      decoding error in the primary reference picture. Credits to oss-fuzz.
      9f17489c
  4. 28 Oct, 2018 1 commit
  5. 25 Oct, 2018 1 commit
  6. 24 Oct, 2018 4 commits
  7. 23 Oct, 2018 1 commit
  8. 22 Oct, 2018 2 commits
  9. 21 Oct, 2018 1 commit
  10. 19 Oct, 2018 1 commit
  11. 18 Oct, 2018 3 commits
  12. 13 Oct, 2018 3 commits
  13. 11 Oct, 2018 4 commits
  14. 09 Oct, 2018 1 commit
  15. 08 Oct, 2018 7 commits
  16. 07 Oct, 2018 1 commit
  17. 05 Oct, 2018 1 commit
  18. 04 Oct, 2018 4 commits