/* The function is used to config and reset JPEG IP.  */
INT jpegOpen(void)
/* The function is used to config and reset JPEG IP.  */
INT jpegOpen(void)
{
    return (rt_device_open(&g_sNuJpeg.dev, RT_DEVICE_FLAG_RDWR) == RT_EOK) ? E_SUCCESS : E_FAIL;
}