Hardware support for Jpeg encoding/decoding with cv::Mat

Hello!

How can i use hardware support for Jpeg encoding/decoding with cv::Mat from OpenCV?
I’m interested in analogues of methods cv::imencode, cv::imdecode.