Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: VerzatileDevOrg/C_image_processing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: release
Choose a base ref
...
head repository: VerzatileDevOrg/C_image_processing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: releasev0.0.2
Choose a head ref
  • 20 commits
  • 32 files changed
  • 2 contributors

Commits on Aug 18, 2023

  1. Update on Issue templates

    Additionally added Documentation, Bug Report and Feature Request templates for better workflow.
    VerzatileDev authored Aug 18, 2023
    Configuration menu
    Copy the full SHA
    950e046 View commit details
    Browse the repository at this point in the history
  2. Refactored Codebase 2

    Removed unnecessary comments, improved readability by adding comment into the variable.
    
    Comments now Include small when inside a function or for loop and Big standard when outside of it, to further improve readability.
    
    - Still Requires the reduction of repetition of code!
    VerzatileDev committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    d21c06c View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2023

  1. #include <gtk/gtk.h> Addition

    In the following addition it is required to keep " C_cpp_properties.json and tasks.json within the project as that is required for the library to work.
    
    Having removed user based vscode additions it should work as intended!
    Leaving instructions here:
    Step 1: in  Msys2 terminal you write this  pacman -S mingw-w64-x86_64-gtk4
    Step 2: pacman -S mingw-w64-x86_64-toolchain base-devel
    After you got those fuckers
    Step 3: you have a c project, and you need to generate those I'll most likely include in the commit so you dont have to fuck around with them unless you want to.
    Image
    Step 4: In main.c you want to try the code so copy paste
    #include <gtk/gtk.h>
    
    static void
    print_hello (GtkWidget *widget,
                 gpointer   data)
    {
      g_print ("Hello World\n");
    }
    
    static void
    activate (GtkApplication *app,
              gpointer        user_data)
    {
      GtkWidget *window;
      GtkWidget *button;
    
      window = gtk_application_window_new (app);
      gtk_window_set_title (GTK_WINDOW (window), "Window");
      gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
    
      button = gtk_button_new_with_label ("Hello World");
      g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
      gtk_window_set_child (GTK_WINDOW (window), button);
    
      gtk_window_present (GTK_WINDOW (window));
    }
    
    int
    main (int    argc,
          char **argv)
    {
      GtkApplication *app;
      int status;
    
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
      g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
      status = g_application_run (G_APPLICATION (app), argc, argv);
      g_object_unref (app);
    
      return status;
    }
    Step 5: Open c_cpp_proprties.json
    Step 6: you need this exact promt, make sure that the root directory is correct!!!!
    {
      "configurations": [
          {
              "name": "Win32",
              "includePath": [
                  "${workspaceFolder}/**",
                  "C:/msys64/mingw64/include/gtk-4.0",
                  "C:/msys64/mingw64/include/glib-2.0",
                  "C:/msys64/mingw64/include/**",
                  "C:/msys64/mingw64/lib/**"
              ],
              "defines": [
                  "_DEBUG",
                  "UNICODE",
                  "_UNICODE"
              ],
              "windowsSdkVersion": "10.0.22000.0",
              "compilerPath": "C:/msys64/mingw64/bin/gcc.exe",
              "cStandard": "c17",
              "cppStandard": "c++17",
              "intelliSenseMode": "windows-gcc-x64"
          }
      ],
      "version": 4
    }
    Step 7: Make sure you add it into "edit environment settings"    You got to add it to the System Environment - >
    Image
    So you need to add the bin folder that you downloaded mingw64 to and the gtk4 will be there as well
    Make sure that is right after program files otherwise won't work.
    Image
    
    all those ther and paths must be there for us to use it
    Image
    And that too, this is inside c_cpp_properties
    Image
    
    Step 8: you need task.json as well with this code
    {
     "version": "2.0.0",
     "tasks": [
      {
       "type": "cppbuild",
       "label": "C/C++: gcc.exe build active file",
       "command": "C:/msys64/mingw64/bin/gcc.exe",
       "args": [
        "-fdiagnostics-color=always",
        "-g",
        "-IC:/msys64/mingw64/include/gtk-4.0",
        "-IC:/msys64/mingw64/include/pango-1.0",
        "-IC:/msys64/mingw64/include",
        "-IC:/msys64/mingw64/include/glib-2.0",
        "-IC:/msys64/mingw64/lib/glib-2.0/include",
        "-IC:/msys64/mingw64/include/harfbuzz",
        "-IC:/msys64/mingw64/include/freetype2",
        "-IC:/msys64/mingw64/include/libpng16",
        "-IC:/msys64/mingw64/include/fribidi",
        "-IC:/msys64/mingw64/include/cairo",
        "-IC:/msys64/mingw64/include/pixman-1",
        "-IC:/msys64/mingw64/include/gdk-pixbuf-2.0",
        "-IC:/msys64/mingw64/include/webp",
        "-DLIBDEFLATE_DLL",
        "-IC:/msys64/mingw64/include/graphene-1.0",
        "-IC:/msys64/mingw64/lib/graphene-1.0/include",
        "-mfpmath=sse",
        "-msse",
        "-msse2",
    
        "${file}",
    
        "-LC:/msys64/mingw64/lib",
        "-lgtk-4",
        "-lpangowin32-1.0",
        "-lpangocairo-1.0",
        "-lpango-1.0",
        "-lharfbuzz",
        "-lgdk_pixbuf-2.0",
        "-lcairo-gobject",
        "-lcairo",
        "-lgraphene-1.0",
        "-lgio-2.0",
        "-lgobject-2.0",
        "-lglib-2.0",
        "-lintl",
    
        "-o",
        "${fileDirname}\\${fileBasenameNoExtension}.exe"
       ],
       "options": {
        "cwd": "C:/msys64/mingw64/bin"
       },
       "problemMatcher": [
        "$gcc"
       ],
       "group": "build",
       "detail": "compiler: C:/msys64/mingw64/bin/gcc.exe"
      }
     ]
    }
    VerzatileDev committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    f4724f7 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. .vscode Removal.

    VerzatileDev committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    3f590c1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from VerzatileDev/main

    Refactored Codebase 2
    Sommos authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    df72e07 View commit details
    Browse the repository at this point in the history
  3. Removed .vscode

    VerzatileDev committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    dde8368 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0a84c36 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #3 from VerzatileDev/main

    .vscode Ignored Add your own!
    Sommos authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    23e72a3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bba0364 View commit details
    Browse the repository at this point in the history
  7. refactored filters, added filter logic to UI, and modified .gitignore…

    … to ignore filtered images
    Sommos committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    98cf9d2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9ff0068 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #4 from Sommos/main - Stable

    added basic GTK+4.0 UI, and modified README.md
    VerzatileDev authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    4c3e9ec View commit details
    Browse the repository at this point in the history
  10. fixed negative filter algorithm, and added responsive image to UI to …

    …compare filtered image & input image
    Sommos committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    49f2d92 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    14b3cc6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5f6f864 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    26e1ff9 View commit details
    Browse the repository at this point in the history
  14. reverted error check change

    Sommos committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    02f732b View commit details
    Browse the repository at this point in the history
  15. renamed project file to src

    Sommos committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    f1b1286 View commit details
    Browse the repository at this point in the history
  16. moved .gitignore to src

    Sommos committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    4eec94f View commit details
    Browse the repository at this point in the history
  17. Merge pull request #5 from Sommos/main

    Fixed (1) / add (2) filters, modified UI
    Sommos authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    fa85bba View commit details
    Browse the repository at this point in the history
Loading