Skip to content
Snippets Groups Projects
  1. Mar 18, 2022
  2. Mar 16, 2022
    • Wan-Teh Chang's avatar
      Set f->n_tile_data to 0 in dav1d_decode_frame() · 56e7ffc0
      Wan-Teh Chang authored and James Almer's avatar James Almer committed
      Set f->n_tile_data to 0 after the dav1d_decode_frame_exit() call in
      dav1d_decode_frame(). dav1d_decode_frame_exit() unrefs every element in
      use in the f->tile array, so it is good to set f->n_tile_data to 0 to
      indicate that no elements are in use.
      
      We are already doing this after all other dav1d_decode_frame_exit()
      calls.
      
      NOTE: It is tempting to have dav1d_decode_frame_exit() itself set
      f->n_tile_data to 0. I did not do that in this merge request, because
      the following is a common pattern:
      
          dav1d_decode_frame_exit(f, error);
          f->n_tile_data = 0;
          pthread_cond_signal(&f->task_thread.cond);
      
      corresponding to the waiting code:
      
          while (f->n_tile_data > 0)
              pthread_cond_wait(&f->task_thread.cond,
                                &c->task_thread.lock);
      
      I wonder if f->n_tile_data is set to 0 outside dav1d_decode_frame_exit()
      to make clear the association of f->n_tile_data with the condition
      variable f->task_thread.cond.
      56e7ffc0
  3. Mar 15, 2022
  4. Mar 13, 2022
  5. Mar 10, 2022
  6. Mar 09, 2022
  7. Mar 08, 2022
  8. Mar 07, 2022
  9. Mar 04, 2022
  10. Mar 01, 2022
    • Martin Storsjö's avatar
      arm: itx: Do clipping in all narrowing downshifts · b53ff29d
      Martin Storsjö authored
      This should avoid the risk of unexpected wraparound. This shouldn't
      technically be needed for spec compliant bitstreams. In practice,
      this fixes the mismatch observed in issue !388 (in checkasm generated
      input data).
      b53ff29d
  11. Feb 28, 2022
  12. Feb 27, 2022
  13. Feb 26, 2022
  14. Feb 25, 2022
  15. Feb 23, 2022
  16. Feb 21, 2022
  17. Feb 19, 2022
  18. Feb 17, 2022
  19. Feb 16, 2022
Loading