mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-28 18:18:38 +00:00
[139/906] fix warnings when compiling upload/download shaders
This commit is contained in:
parent
b384525a55
commit
e0f1cfeac5
1 changed files with 42 additions and 36 deletions
|
@ -227,6 +227,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
//YUY2:r,g,a
|
//YUY2:r,g,a
|
||||||
//UYVY:a,b,r
|
//UYVY:a,b,r
|
||||||
display->text_shader_upload_YUY2_UYVY =
|
display->text_shader_upload_YUY2_UYVY =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect Ytex, UVtex;\n"
|
"uniform sampler2DRect Ytex, UVtex;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
" float fx, fy, y, u, v, r, g, b;\n"
|
" float fx, fy, y, u, v, r, g, b;\n"
|
||||||
|
@ -245,6 +246,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
display->text_shader_upload_I420_YV12 =
|
display->text_shader_upload_I420_YV12 =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect Ytex,Utex,Vtex;\n"
|
"uniform sampler2DRect Ytex,Utex,Vtex;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
" float r,g,b,y,u,v;\n"
|
" float r,g,b,y,u,v;\n"
|
||||||
|
@ -262,6 +264,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
display->text_shader_upload_AYUV =
|
display->text_shader_upload_AYUV =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect tex;\n"
|
"uniform sampler2DRect tex;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
" float r,g,b,y,u,v;\n"
|
" float r,g,b,y,u,v;\n"
|
||||||
|
@ -281,6 +284,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
//YUY2:y2,u,y1,v
|
//YUY2:y2,u,y1,v
|
||||||
//UYVY:v,y1,u,y2
|
//UYVY:v,y1,u,y2
|
||||||
display->text_shader_download_YUY2_UYVY =
|
display->text_shader_download_YUY2_UYVY =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect tex;\n"
|
"uniform sampler2DRect tex;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
" float fx,fy,r,g,b,r2,g2,b2,y1,y2,u,v;\n"
|
" float fx,fy,r,g,b,r2,g2,b2,y1,y2,u,v;\n"
|
||||||
|
@ -304,6 +308,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
display->text_shader_download_I420_YV12 =
|
display->text_shader_download_I420_YV12 =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect tex;\n"
|
"uniform sampler2DRect tex;\n"
|
||||||
"uniform float w, h;\n"
|
"uniform float w, h;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
|
@ -328,6 +333,7 @@ gst_gl_display_init (GstGLDisplay *display, GstGLDisplayClass *klass)
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
display->text_shader_download_AYUV =
|
display->text_shader_download_AYUV =
|
||||||
|
"#extension GL_ARB_texture_rectangle : enable\n"
|
||||||
"uniform sampler2DRect tex;\n"
|
"uniform sampler2DRect tex;\n"
|
||||||
"void main(void) {\n"
|
"void main(void) {\n"
|
||||||
" float r,g,b,y,u,v;\n"
|
" float r,g,b,y,u,v;\n"
|
||||||
|
|
Loading…
Reference in a new issue