Switch EGLRenderer to the shared functions for CSC matrix generation and chroma co-siting
This commit is contained in:
parent
7116efd8de
commit
7f7cc89e61
3 changed files with 22 additions and 65 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue