Skip to content

media: imx-jpeg: Fix some motion-jpeg decoding issues

[email protected] imx linux-arm-kernel linux-media lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 1 replyIn review
  2. v55 patches 6 repliesSuperseded
  3. v44 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches5 repliesSuperseded
v23 patches16 repliesSuperseded
v13 patches4 repliesSuperseded

Changelog from the cover letter

v6
- Improve commit message
- Add Fixes tag

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5media: imx-jpeg: Move mxc_jpeg_free_slot_data() aheaddrivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c+20 -200 replies
2/5media: imx-jpeg: Reset slot data pointers when freeddrivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c+6 -01 reply
3/5media: imx-jpeg: Cleanup after an allocation errordrivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c+1 -00 replies
4/5media: imx-jpeg: Change the pattern size to 128x64drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h+39 -80 replies
5/5media: imx-jpeg: Check decoding is ongoing for motion-jpegdrivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c+31 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchNicolas DufresneFrank Li
1/5R-b R-b
2/5R-b R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/5] media: imx-jpeg: Fix some motion-jpeg decoding issues

From: Ming Qian <[email protected]>

To support decoding motion-jpeg without DHT, driver will try to decode a pattern jpeg before actual jpeg frame by use of linked descriptors (This is called "repeat mode"), then the DHT in the pattern jpeg can be used for decoding the motion-jpeg.

But there is some hardware limitation in the repeat mode, that may cause corruption or decoding timeout.

Try to make workaround for these limitation in this patchset.

Changelog:
v6
- Improve commit message
- Add Fixes tag

v5
- Split the resetting pointers when freed to a separate patch

v4:
- Improve commit message

v3:
- Read the slot_status register twice
- Improve commit message
- Split the moving of code into a separate patch

v2:
- Add the Fixes tag
- Improve commit message

Ming Qian (5):
media: imx-jpeg: Move mxc_jpeg_free_slot_data() ahead
media: imx-jpeg: Reset slot data pointers when freed
media: imx-jpeg: Cleanup after an allocation error
media: imx-jpeg: Change the pattern size to 128x64
media: imx-jpeg: Check decoding is ongoing for motion-jpeg

 .../media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h |   1 +
 .../media/platform/nxp/imx-jpeg/mxc-jpeg.c    | 120 +++++++++++++-----
 .../media/platform/nxp/imx-jpeg/mxc-jpeg.h    |   5 +
 3 files changed, 97 insertions(+), 29 deletions(-)
Signature · 1 line
2.43.0-rc1