carina-studio / PixelViewer

A cross-platform image viewer which supports reading raw Luminance/YUV/RGB/ARGB/Bayer pixels data from file and rendering it.
https://carina-studio.github.io/PixelViewer/
MIT License
225 stars 36 forks source link

How to show YUV image with correct colors? #17

Closed jigoku1206 closed 2 months ago

jigoku1206 commented 2 months ago

Hi,

My test image: Image_YUYV_1920x1200

I have a YUYV format image and I want to show the image in PixelViewer. But It showed a image with incorrect color when I selected YUYV whatever I changed setting. image

I expect the correct image like below: image

I currently set L16 to show mono image to check image but I hope I can get color image with PixelViewer. image

Thanks!

hamster620 commented 2 months ago

@jigoku1206 YUYV format is not currently supported by PixelViewer. We will add support with next preview release.

hamster620 commented 2 months ago

Seems the image is YVYU instead of YUYV. Both formats will be support in next preview release.

hamster620 commented 2 months ago

@jigoku1206 YUYV and YVYU are now supported in 3.1.1.428.

jigoku1206 commented 2 months ago

Thanks for your help!