MLK-19247: mxc-jpeg: Remove jpeg-encoder hardcoding to 64x64 yuv422
Remove hardcodings for encoder (configuration stream especially). This fix also requires a fixed version of the test applications, encoder_test.out/decoder_test.out (linux-test repo). Also fixed MLK-19453: Add support for YUV420 format in jpeg decoder YUV420 is generally working on encoder/decoder, but for some particular small files the decoder enters infinite error: "Instance released before the end of transaction". RGB24 is working, but the colors are strange in jpeg. Since YUV444 and RGB24 have the same subsampling, a RGB24 raw file can be encoded/decoded as YUV444 with the same results. Fixes for invalid pixel formats. Full battery of tests run. Signed-off-by:Mirela Rabulea <mirela.rabulea@nxp.com>
Showing
- drivers/media/platform/imx8/mxc-jpeg-hw.h 2 additions, 0 deletionsdrivers/media/platform/imx8/mxc-jpeg-hw.h
- drivers/media/platform/imx8/mxc-jpeg.c 345 additions, 118 deletionsdrivers/media/platform/imx8/mxc-jpeg.c
- drivers/media/platform/imx8/mxc-jpeg.h 3 additions, 2 deletionsdrivers/media/platform/imx8/mxc-jpeg.h
This diff is collapsed.
Please register or sign in to comment