HW decoding for ffmpeg(ffplay) h.264/265 for VIM2

Hi,
I’m using Khadas vim2 with ubuntu(VIM2_Ubuntu-xfce-bionic_Linux-5.5-rc2_arm64_SD-USB_V20191231).
I want to enable HW h.264/265 decoding for ffmpeg.
I read all topics about hardware decoding, but i got nothing.
How i can enable that?
please help me.