Encapsulate hw acceleration

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Fix missing definition