mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Add generic get_optimized_sad implementation
NOTE: To force generic SAD implementation on devices supporting vectorized variants, you now have to override both get_optimized_sad and reg_sad to generic (only overriding get_optimized_sad on AVX2 hardware would just run all SAD blocks through reg_sad_avx2). Let's see if there's a more sensible way to do it, but it's not trivial.
This commit is contained in:
parent
45f36645a6
commit
91380729b1
|
@ -588,6 +588,10 @@ static void inter_recon_bipred_generic(const int hi_prec_luma_rec0,
|
|||
}
|
||||
|
||||
|
||||
static optimized_sad_func_ptr_t get_optimized_sad_generic(int32_t width)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int kvz_strategy_register_picture_generic(void* opaque, uint8_t bitdepth)
|
||||
{
|
||||
|
@ -624,6 +628,7 @@ int kvz_strategy_register_picture_generic(void* opaque, uint8_t bitdepth)
|
|||
success &= kvz_strategyselector_register(opaque, "pixels_calc_ssd", "generic", 0, &pixels_calc_ssd_generic);
|
||||
success &= kvz_strategyselector_register(opaque, "inter_recon_bipred", "generic", 0, &inter_recon_bipred_generic);
|
||||
|
||||
success &= kvz_strategyselector_register(opaque, "get_optimized_sad", "generic", 0, &get_optimized_sad_generic);
|
||||
|
||||
return success;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue