IENT / YUView

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

Support for R8 and RG88 #586

Open shutaozhenzhen opened 1 month ago

shutaozhenzhen commented 1 month ago

Is your feature request related to a problem? Please describe. view RGB by yuview only support RGB or RGBA, do not support R8 and RG88

Describe the solution you'd like support R8 and RG88

Describe alternatives you've considered support R8 and RG88

ChristianFeldmann commented 1 month ago

Hi You are referring to these formats as described here, right? I did not find any information on RG88 in there but did you mean RG16?

I have personally never encountered these formats. Could you provide some sample files? That would really help with the impleentation.

shutaozhenzhen commented 1 month ago

Hi You are referring to these formats as described here, right? I did not find any information on RG88 in there but did you mean RG16?

I have personally never encountered these formats. Could you provide some sample files? That would really help with the impleentation.

I use this name from drm fourcc code.

https://github.com/torvalds/linux/blob/7c626ce4bae1ac14f60076d00eafe71af30450ba/include/uapi/drm/drm_fourcc.h#L140C1-L142C1

https://github.com/torvalds/linux/blob/7c626ce4bae1ac14f60076d00eafe71af30450ba/include/uapi/drm/drm_fourcc.h#L152C1-L155C1

Just very simple formats.

R8 is just YUV400 colored with red. RG88 is packed RG format, 8bytes R followed with 8byte G

I'm working with opengl es 3.2, and want to view saved textures. sometimes texture can be in GL_R8 or GL_RG8 format.

ChristianFeldmann commented 2 weeks ago

There are truly some strange formats out there.