Git Product home page Git Product logo

enhancer's People

Contributors

yuki-koyama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

enhancer's Issues

GLM instead of Eigen?

GLM should be a natural choice for this kind of projects preparing with both C++ and GLSL APIs. Eigen is overkill.

Potential memory leaks and a solution

In this code, vertex_shader and fragment_shader are newed but never deleted, which may cause memory leaks.

QOpenGLShader *vertex_shader = new QOpenGLShader(QOpenGLShader::Vertex, this);
vertex_shader->compileSourceFile("://shaders/enhancer.vs");
QOpenGLShader *fragment_shader = new QOpenGLShader(QOpenGLShader::Fragment, this);
fragment_shader->compileSourceFile("://shaders/enhancer.fs");
program_ = std::make_shared<QOpenGLShaderProgram>();
program_->addShader(vertex_shader);
program_->addShader(fragment_shader);
program_->link();

To fix this, simply using addShaderFromSourceFile seems fine:
https://doc.qt.io/qt-5/qopenglshaderprogram.html#addShaderFromSourceFile

Support of a filling mode in EnhancerWidget

Currently, EnhancerWidget inserts black margins when the aspect ratio of the image is different from that of the widget, but this is not always suitable. It is better to support a "filling" mode as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.