summaryrefslogtreecommitdiff
path: root/utils
ModeNameSize
-rwxr-xr-xcheckstyle.py25680logplain
-rwxr-xr-xgen-controls.py6908logplain
-rwxr-xr-xgen-formats.py3547logplain
-rwxr-xr-xgen-header.sh623logplain
-rwxr-xr-xgen-ipa-priv-key.sh313logplain
-rwxr-xr-xgen-ipa-pub-key.py1261logplain
-rwxr-xr-xgen-version.sh1526logplain
d---------hooks113logplain
d---------ipc258logplain
d---------ipu3166logplain
-rw-r--r--meson.build357logplain
d---------raspberrypi79logplain
d---------rkisp145logplain
-rw-r--r--run-dist.sh454logplain
d---------tracepoints131logplain
-rwxr-xr-xupdate-kernel-headers.sh2252logplain
-rwxr-xr-xupdate-mojo.sh1602logplain
>PixelFormat &format, const QSize &size) override; void render(libcamera::FrameBuffer *buffer, MappedBuffer *map) override; void stop() override; QImage getCurrentImage() override; Q_SIGNALS: void renderComplete(libcamera::FrameBuffer *buffer); protected: void initializeGL() override; void paintGL() override; void resizeGL(int w, int h) override; QSize sizeHint() const override; private: bool selectFormat(const libcamera::PixelFormat &format); void configureTexture(QOpenGLTexture &texture); bool createFragmentShader(); bool createVertexShader(); void removeShader(); void doRender(); /* Captured image size, format and buffer */ libcamera::FrameBuffer *buffer_; libcamera::PixelFormat format_; QSize size_; unsigned char *data_; /* Shaders */ QOpenGLShaderProgram shaderProgram_; std::unique_ptr<QOpenGLShader> vertexShader_; std::unique_ptr<QOpenGLShader> fragmentShader_; QString fragmentShaderFile_; QStringList fragmentShaderDefines_; /* Vertex buffer */ QOpenGLBuffer vertexBuffer_; /* Textures */ std::array<std::unique_ptr<QOpenGLTexture>, 3> textures_; /* YUV texture parameters */ GLuint textureUniformU_; GLuint textureUniformV_; GLuint textureUniformY_; GLuint textureUniformStepX_; unsigned int horzSubSample_; unsigned int vertSubSample_; QMutex mutex_; /* Prevent concurrent access to image_ */ }; #endif /* __VIEWFINDER_GL_H__ */