Fix resize-mode: use the current number of SBs under pcs (instead of scs) to derive norm_me_dist

Description

Use the current number of SBs under pcs (instead of scs) to derive norm_me_dist. Move initialization of pcs->cdef_dist_dev to avoid a race condition.

Issue

closes #2282 (closed) closes #2260 (closed)

Author(s)

@hguermaz @PhoenixWorth

Performance impact

  • quality
  • memory
  • speed
  • 8 bit
  • 10 bit
  • N/A

Test set

  • obj-1-fast can be found here
  • other
  • N/A

Merge method

  • Allow the maintainer to squash and merge when PR is ready to create a 1-commit to the master branch. The maintainer will be able to fix typos / combine commit messages to create a more readable 1-commit message or use whatever is stated in the 'Description' section
  • I will clean up my commits and the maintainer shall use 'rebase and merge' to the master branch
Edited by Hassen Guermazi

Merge request reports

Loading