similarity index 100%
rename from include/libcamera/internal/shaders/bayer_8.frag
rename to include/libcamera/internal/shaders/bayer_unpacked.frag
similarity index 100%
rename from include/libcamera/internal/shaders/bayer_8.vert
rename to include/libcamera/internal/shaders/bayer_unpacked.vert
@@ -4,7 +4,7 @@
# for the purposes of inclusion in OpenGL debayering
shader_files = files([
'bayer_1x_packed.frag',
- 'bayer_8.frag',
- 'bayer_8.vert',
+ 'bayer_unpacked.frag',
+ 'bayer_unpacked.vert',
'identity.vert',
])
@@ -6,8 +6,8 @@
<file>../../../../../include/libcamera/internal/shaders/YUV_3_planes.frag</file>
<file>../../../../../include/libcamera/internal/shaders/YUV_packed.frag</file>
<file>../../../../../include/libcamera/internal/shaders/bayer_1x_packed.frag</file>
- <file>../../../../../include/libcamera/internal/shaders/bayer_8.frag</file>
- <file>../../../../../include/libcamera/internal/shaders/bayer_8.vert</file>
+ <file>../../../../../include/libcamera/internal/shaders/bayer_unpacked.frag</file>
+ <file>../../../../../include/libcamera/internal/shaders/bayer_unpacked.vert</file>
<file>../../../../../include/libcamera/internal/shaders/identity.vert</file>
</qresource>
</RCC>
@@ -235,29 +235,29 @@ bool ViewFinderGL::selectFormat(const libcamera::PixelFormat &format)
case libcamera::formats::SBGGR8:
firstRed_.setX(1.0);
firstRed_.setY(1.0);
- vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.vert";
- fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.frag";
+ vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.vert";
+ fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.frag";
textureMinMagFilters_ = GL_NEAREST;
break;
case libcamera::formats::SGBRG8:
firstRed_.setX(0.0);
firstRed_.setY(1.0);
- vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.vert";
- fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.frag";
+ vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.vert";
+ fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.frag";
textureMinMagFilters_ = GL_NEAREST;
break;
case libcamera::formats::SGRBG8:
firstRed_.setX(1.0);
firstRed_.setY(0.0);
- vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.vert";
- fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.frag";
+ vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.vert";
+ fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.frag";
textureMinMagFilters_ = GL_NEAREST;
break;
case libcamera::formats::SRGGB8:
firstRed_.setX(0.0);
firstRed_.setY(0.0);
- vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.vert";
- fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_8.frag";
+ vertexShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.vert";
+ fragmentShaderFile_ = ":include/libcamera/internal/shaders/bayer_unpacked.frag";
textureMinMagFilters_ = GL_NEAREST;
break;
case libcamera::formats::SBGGR10_CSI2P: