MLK-18493: mxc-jpeg: Use image settings from jpeg markers inside jpeg decoder
Image information can be extracted from the JPEG SOH marker: image format (YUV444/YUV420/YUV422/Gray), width & height, precision. Use that information and apply it to the JPEG-DEC_WRP control registers. Also fixed the decoder for non-square images. Replace pr_*() and printk() calls with dev_*(). Currently working image formats: YUV444, YUV422, Gray Not working formats: YUV420 Signed-off-by:Mirela Rabulea <mirela.rabulea@nxp.com> Reviewed-by:
Robert Chiras <robert.chiras@nxp.com>, Sandor Yu <sandor.yu@nxp.com>
Showing
- drivers/media/platform/imx8/mxc-jpeg-hw.c 67 additions, 68 deletionsdrivers/media/platform/imx8/mxc-jpeg-hw.c
- drivers/media/platform/imx8/mxc-jpeg-hw.h 31 additions, 4 deletionsdrivers/media/platform/imx8/mxc-jpeg-hw.h
- drivers/media/platform/imx8/mxc-jpeg.c 132 additions, 36 deletionsdrivers/media/platform/imx8/mxc-jpeg.c
- drivers/media/platform/imx8/mxc-jpeg.h 19 additions, 3 deletionsdrivers/media/platform/imx8/mxc-jpeg.h
Loading
Please register or sign in to comment