From 3cf0abddbb2d56860bffc3d5e48930f048bfa672 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 12 Jun 2020 15:48:14 +1000 Subject: [PATCH] vulkan/shaders: add explicit license headers Part-of: --- ext/vulkan/shaders/ayuv_to_rgb.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/bin2array.py | 19 +++++++++++++++++++ ext/vulkan/shaders/color_convert_generic.glsl | 19 +++++++++++++++++++ ext/vulkan/shaders/identity.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/identity.vert | 19 +++++++++++++++++++ ext/vulkan/shaders/nv12_to_rgb.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/rgb_to_ayuv.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/rgb_to_nv12.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/rgb_to_yuy2.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/swizzle.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/swizzle.glsl | 19 +++++++++++++++++++ ext/vulkan/shaders/swizzle_and_clobber_alpha.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/upsample_ayuv.glsl | 19 +++++++++++++++++++ ext/vulkan/shaders/upsample_nv12.glsl | 19 +++++++++++++++++++ ext/vulkan/shaders/upsample_yuy2.glsl | 19 +++++++++++++++++++ ext/vulkan/shaders/view_convert.frag | 19 +++++++++++++++++++ ext/vulkan/shaders/view_defines.h | 19 +++++++++++++++++++ ext/vulkan/shaders/yuy2_to_rgb.frag | 19 +++++++++++++++++++ 18 files changed, 342 insertions(+) diff --git a/ext/vulkan/shaders/ayuv_to_rgb.frag b/ext/vulkan/shaders/ayuv_to_rgb.frag index 41640ee..dc99a70 100644 --- a/ext/vulkan/shaders/ayuv_to_rgb.frag +++ b/ext/vulkan/shaders/ayuv_to_rgb.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" diff --git a/ext/vulkan/shaders/bin2array.py b/ext/vulkan/shaders/bin2array.py index d47bbf5..389e52f 100755 --- a/ext/vulkan/shaders/bin2array.py +++ b/ext/vulkan/shaders/bin2array.py @@ -1,4 +1,23 @@ #!/usr/bin/env python3 +# GStreamer +# Copyright (C) 2020 Matthew Waters +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. +# + import binascii import sys import os diff --git a/ext/vulkan/shaders/color_convert_generic.glsl b/ext/vulkan/shaders/color_convert_generic.glsl index 0104991..d085d7c 100644 --- a/ext/vulkan/shaders/color_convert_generic.glsl +++ b/ext/vulkan/shaders/color_convert_generic.glsl @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + struct ColorMatrices { mat4 to_RGB_matrix; diff --git a/ext/vulkan/shaders/identity.frag b/ext/vulkan/shaders/identity.frag index 97a7b33..c24e23d 100644 --- a/ext/vulkan/shaders/identity.frag +++ b/ext/vulkan/shaders/identity.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core layout(location = 0) in vec2 inTexCoord; diff --git a/ext/vulkan/shaders/identity.vert b/ext/vulkan/shaders/identity.vert index 84e9b24..966dde5 100644 --- a/ext/vulkan/shaders/identity.vert +++ b/ext/vulkan/shaders/identity.vert @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core layout(location = 0) in vec4 inPos; diff --git a/ext/vulkan/shaders/nv12_to_rgb.frag b/ext/vulkan/shaders/nv12_to_rgb.frag index 5498e9f..0ff6b54 100644 --- a/ext/vulkan/shaders/nv12_to_rgb.frag +++ b/ext/vulkan/shaders/nv12_to_rgb.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" diff --git a/ext/vulkan/shaders/rgb_to_ayuv.frag b/ext/vulkan/shaders/rgb_to_ayuv.frag index 9134c16..492ecb2 100644 --- a/ext/vulkan/shaders/rgb_to_ayuv.frag +++ b/ext/vulkan/shaders/rgb_to_ayuv.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" diff --git a/ext/vulkan/shaders/rgb_to_nv12.frag b/ext/vulkan/shaders/rgb_to_nv12.frag index d4ae731..2a58b8e 100644 --- a/ext/vulkan/shaders/rgb_to_nv12.frag +++ b/ext/vulkan/shaders/rgb_to_nv12.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" diff --git a/ext/vulkan/shaders/rgb_to_yuy2.frag b/ext/vulkan/shaders/rgb_to_yuy2.frag index 945926f..c7aabed 100644 --- a/ext/vulkan/shaders/rgb_to_yuy2.frag +++ b/ext/vulkan/shaders/rgb_to_yuy2.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" diff --git a/ext/vulkan/shaders/swizzle.frag b/ext/vulkan/shaders/swizzle.frag index a2ab72a..b6aa23a 100644 --- a/ext/vulkan/shaders/swizzle.frag +++ b/ext/vulkan/shaders/swizzle.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "swizzle.glsl" diff --git a/ext/vulkan/shaders/swizzle.glsl b/ext/vulkan/shaders/swizzle.glsl index 6d4817e..ee13d56 100644 --- a/ext/vulkan/shaders/swizzle.glsl +++ b/ext/vulkan/shaders/swizzle.glsl @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #ifndef _SWIZZLE_H_ #define _SWIZZLE_H_ diff --git a/ext/vulkan/shaders/swizzle_and_clobber_alpha.frag b/ext/vulkan/shaders/swizzle_and_clobber_alpha.frag index 65ffe86..52bc862 100644 --- a/ext/vulkan/shaders/swizzle_and_clobber_alpha.frag +++ b/ext/vulkan/shaders/swizzle_and_clobber_alpha.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "swizzle.glsl" diff --git a/ext/vulkan/shaders/upsample_ayuv.glsl b/ext/vulkan/shaders/upsample_ayuv.glsl index e10cea8..1bf2ae4 100644 --- a/ext/vulkan/shaders/upsample_ayuv.glsl +++ b/ext/vulkan/shaders/upsample_ayuv.glsl @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include "swizzle.glsl" vec4 upsample_AYUV(in sampler2D tex, in vec2 texCoord, in ivec4 inReorderIdx) diff --git a/ext/vulkan/shaders/upsample_nv12.glsl b/ext/vulkan/shaders/upsample_nv12.glsl index 7ca23fc..f5407e4 100644 --- a/ext/vulkan/shaders/upsample_nv12.glsl +++ b/ext/vulkan/shaders/upsample_nv12.glsl @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include "swizzle.glsl" vec3 upsample_NV12(in sampler2D Ytex, in sampler2D UVtex, in vec2 texCoord, in ivec4 inReorderIdx) diff --git a/ext/vulkan/shaders/upsample_yuy2.glsl b/ext/vulkan/shaders/upsample_yuy2.glsl index 7033d3a..c822959 100644 --- a/ext/vulkan/shaders/upsample_yuy2.glsl +++ b/ext/vulkan/shaders/upsample_yuy2.glsl @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + vec3 upsample_YUY2(in sampler2D tex, in vec2 texCoord, in vec2 texSize, in ivec4 inReorderIdx) { vec2 dx = vec2(-1.0 / texSize.x, 0.0); diff --git a/ext/vulkan/shaders/view_convert.frag b/ext/vulkan/shaders/view_convert.frag index 640260a..2d77557 100644 --- a/ext/vulkan/shaders/view_convert.frag +++ b/ext/vulkan/shaders/view_convert.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "view_defines.h" diff --git a/ext/vulkan/shaders/view_defines.h b/ext/vulkan/shaders/view_defines.h index 434fc86..fb7641e 100644 --- a/ext/vulkan/shaders/view_defines.h +++ b/ext/vulkan/shaders/view_defines.h @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + /* values match GstVideoMultiviewMode */ #define VIEW_MONO_DOWNMIX 0 #define VIEW_MONO_LEFT 1 diff --git a/ext/vulkan/shaders/yuy2_to_rgb.frag b/ext/vulkan/shaders/yuy2_to_rgb.frag index 2e31e38..684800b 100644 --- a/ext/vulkan/shaders/yuy2_to_rgb.frag +++ b/ext/vulkan/shaders/yuy2_to_rgb.frag @@ -1,3 +1,22 @@ +/* GStreamer + * Copyright (C) 2020 Matthew Waters + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #version 450 core #include "color_convert_generic.glsl" -- 2.7.4