Skip to content

[Bug]: Issues with Motion JPEG Decoder #544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anjn opened this issue Mar 27, 2025 · 0 comments
Open

[Bug]: Issues with Motion JPEG Decoder #544

anjn opened this issue Mar 27, 2025 · 0 comments
Labels

Comments

@anjn
Copy link

anjn commented Mar 27, 2025

Summary

  1. When inputting data larger than 10MB per frame into the Motion JPEG decoder, the decoder returns AMF_FAIL.
  2. Decoding Grayscale JPEG images results in distorted output images.

Steps to Reproduce

Issue 1: AMF_FAIL with Large Data

  1. Prepare a JPEG file larger than 10MB. Please download a sample large images from this link.
  2. Input this file into the decoder. Please check this source code for the decoder setup.
  3. Observe that AMF_FAIL is returned from component->SubmitInput().

Issue 2: Distorted Output with Grayscale JPEG

  1. Prepare a Grayscale JPEG image. Attaching a sample image.
  2. Input this image into the decoder.
  3. Observe that the output image is corrupted. I used FFmpeg for converting RAW NV12 output to viewable formats.

Expected Behavior

  • Issue 1: Data larger than 10MB per frame should be successfully decoded without returning AMF_FAIL.
  • Issue 2: Grayscale JPEG images should be decoded correctly, producing the expected output.

Actual Behavior

  • Issue 1: AMF_FAIL is returned.
  • Issue 2: The output image is distorted.

Screenshots

Issue 2: Distorted Output with Grayscale JPEG

System Information

  • Hardware: Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
  • OS: Windows 11 22H2
  • AMF Version: 1.4.36.0
  • Driver Version: 25.3.2

Additional Notes

Test Code

I created a simple decoder application to perform the tests mentioned above.

https://github.com/anjn/amf-jpeg-hw-decode

Related Issues

In #477, there is a discussion about input file size limitations, and it was mentioned that this was fixed in driver version 24.12.1. However, it appears that the input file size limitation still persists up to around 10MB.

@anjn anjn added the bug label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant