diff --git a/ext/vulkan/shaders/ayuv_to_rgb.frag b/ext/vulkan/shaders/ayuv_to_rgb.frag index 41640ee5a0..dc99a7094e 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 d47bbf5f94..389e52ffaf 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 010499125e..d085d7cc00 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 97a7b3332d..c24e23d813 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 84e9b2464d..966dde5fae 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 5498e9f256..0ff6b5459d 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 9134c169b1..492ecb2cb1 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 d4ae731fcd..2a58b8ebab 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 945926fd01..c7aabed654 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 a2ab72a0e6..b6aa23a0ba 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 6d4817ecd2..ee13d564dd 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 65ffe86dfd..52bc86236d 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 e10cea827c..1bf2ae4214 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 7ca23fc10d..f5407e462d 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 7033d3aa9f..c82295944f 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 640260aaa7..2d77557263 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 434fc86aae..fb7641e924 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 2e31e387c7..684800b12b 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"