Switch EGLRenderer to the shared functions for CSC matrix generation and chroma co-siting

This commit is contained in:
Cameron Gutman 2025-11-05 22:27:31 -06:00
commit 7f7cc89e61
3 changed files with 22 additions and 65 deletions

View file

@ -7,13 +7,14 @@ in vec2 vTextCoord;
uniform mat3 yuvmat;
uniform vec3 offset;
uniform vec2 chromaOffset;
uniform samplerExternalOES plane1;
uniform samplerExternalOES plane2;
void main() {
vec3 YCbCr = vec3(
texture2D(plane1, vTextCoord)[0],
texture2D(plane2, vTextCoord).xy
texture2D(plane2, vTextCoord + chromaOffset).xy
);
YCbCr -= offset;