PAM-less i3lock-color fork
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
436 B

#ifndef _JPG_H
#define _JPG_H
typedef struct {
uint height;
uint width;
uint stride; // The width of each row in memory, in bytes
} JPEG_INFO;
/*
* Checks if the file is a JPEG by looking for a valid JPEG header.
*/
bool file_is_jpg(char* file_path);
/*
* Reads a JPEG from a file into memory, in a format that Cairo can create a
* surface from.
*/
void* read_JPEG_file(char *filename, JPEG_INFO *jpg_info);
#endif