hwcontext: Hardware frame mapping