YUView icon indicating copy to clipboard operation
YUView copied to clipboard

Support for R8 and RG88

Open shutaozhenzhen opened this issue 1 year ago • 3 comments

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

shutaozhenzhen avatar Aug 12 '24 07:08 shutaozhenzhen

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.

ChristianFeldmann avatar Aug 12 '24 09:08 ChristianFeldmann

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.

shutaozhenzhen avatar Aug 12 '24 10:08 shutaozhenzhen

There are truly some strange formats out there.

ChristianFeldmann avatar Aug 24 '24 14:08 ChristianFeldmann