IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.78k stars 353 forks source link

RawFile info parsing by filename need bugfix #547

Closed for13to1 closed 7 months ago

for13to1 commented 7 months ago

Describe the bug In the older version (like 2.13), when .yuv file or .rgb file be added to playlist, the width/height/pixel_format/bit_depth can be guessed from the filename and be filled into the info chart automatically. Image can can be showed smoothly as you open it.

Now in the newest version, it failed to display this type of raw data automatically, until you set the size/format/bitdpth info on the right pane specifically. It prompts like "With the given settings, the YUV data can not be converted to RGB:" But the yuv file size is OK and surely can be converted to RGB.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'PlayList'
  2. Click on 'Open'
  3. Add a normal yuv file with filename containing the size/format/bitdepth info
  4. See error

Expected behavior The yuv file can be showed normally and smoothly

Screenshots image

The corresponding yuv file is uploaded here: 512x512_444p_8bit-chessboard16m16(0_128128)(255_128_128).zip

Version (please complete the following information):

ChristianFeldmann commented 7 months ago

Hi! Thank you for the report. This was a quick one to fix. I am working a bit to refactor the internal code to have a clear separation from Qt as much as possible. In that I forgot this signed unsigned edge case. I am, however, a bit confused about the rest of the changes you made in the linked PR. Did you also have an issue with other extensions / formats? That might be another issue.

ChristianFeldmann commented 7 months ago

Fix is merged. Please comment here or open a new issue if not all you issues were addressed.