Skip to content
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

Support for R8 and RG88 #586

Open
shutaozhenzhen opened this issue Aug 12, 2024 · 3 comments
Open

Support for R8 and RG88 #586

shutaozhenzhen opened this issue Aug 12, 2024 · 3 comments

Comments

@shutaozhenzhen
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

There are truly some strange formats out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants