Log in Register Dashboard Temp Share Shortlinks Frames API

abh - HTMLify profile

abh's Profile Picture

abh

523 Files

134561 Views

Latest files of /abh/learning/c/BPPL/Phase-3/image-filter

filter.h abh/learning/c/BPPL/Phase-3/image-filter/filter.h
52 Views
0 Comments
#include "image.h"

#ifndef FILTER_H
#define FILTER_H

typedef struct {
char *name;
int argc;
image.h abh/learning/c/BPPL/Phase-3/image-filter/image.h
46 Views
0 Comments
#include <stdbool.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

#ifndef IMAGE_H
#define IMAGE_H

typedef struct {
unsigned char r;
image.c abh/learning/c/BPPL/Phase-3/image-filter/image.c
49 Views
0 Comments
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <stdbool.h>
#include <stdlib.h>
#include "image.h"

Image *load_image(const char *image_path) {
GError *error = NULL;
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(image_path, &error);
filter.c abh/learning/c/BPPL/Phase-3/image-filter/filter.c
45 Views
0 Comments
#include "string.h"
#include "filter.h"


// filters

Image *grayscale(const Image *image) {
Image *filtered = image_new(image->width, image->height);
gui.h abh/learning/c/BPPL/Phase-3/image-filter/gui.h
46 Views
0 Comments
#include <gtk/gtk.h>

#ifndef GUI_H
#define GUI_H

int gui();

#endif
gui.c abh/learning/c/BPPL/Phase-3/image-filter/gui.c
33 Views
0 Comments
#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "image.h"
#include "filter.h"
#include "gui.h"

extern char *image_path_1;
extern char *image_path_2;
main.c abh/learning/c/BPPL/Phase-3/image-filter/main.c
34 Views
0 Comments
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "image.h"
#include "filter.h"
#include "gui.h"