leandrotsampa It looks like you are hacking a vendor-proprietary rendering system into Kodi similar to Amcodec, iMX6, etc. which have now been exorcised from the codebase. If HiSilicon have V4L2 support, this is the technical direction to invest time into, as your current approach will not be accepted upstream.
Yes, if have v4l2 but you think hisilicon will release this support?
For put this in upstream need use direct kernel driver, and I not will port this for now.
So, it's decoding very good for me and I can view 4K without any problem.