mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
[threading] Added more margin to fracmv_within_tile() because of nondeterministic behaviour
This commit is contained in:
parent
2cdeff75cb
commit
2545081be5
|
@ -116,15 +116,15 @@ static INLINE bool fracmv_within_tile(const inter_search_info_t *info, int x, in
|
|||
// Check that the block does not reference pixels that are not final.
|
||||
|
||||
// Margin as luma pixels.
|
||||
int margin = 0;
|
||||
int margin = 2; // Added two-pixel margin since some nondeterministic behaviour happens otherwise
|
||||
if (is_frac_luma) {
|
||||
// Fractional motion estimation needs up to 4 pixels outside the
|
||||
// block.
|
||||
margin = 4;
|
||||
margin += 4;
|
||||
} else if (is_frac_chroma) {
|
||||
// Odd chroma interpolation needs up to 2 luma pixels outside the
|
||||
// block.
|
||||
margin = 2;
|
||||
margin += 2;
|
||||
}
|
||||
|
||||
if (ctrl->cfg.sao_type) {
|
||||
|
|
Loading…
Reference in a new issue