Extended PNG Support
Signed-off-by: Pin <wf6DJd8a3xSSCZbn@protonmail.com>
This commit is contained in:
@@ -33,9 +33,24 @@ struct PNG_FILE_STRUCT {
|
||||
struct PNG_IDAT_FILE_STRUCT png_idat_data;
|
||||
};
|
||||
|
||||
struct EMBED_THREAD_STRUCT {
|
||||
pthread_mutex_t mutex_lock;
|
||||
pthread_t thread_id;
|
||||
int *searching;
|
||||
unsigned char *data;
|
||||
unsigned int data_len;
|
||||
size_t uncom_data_len;
|
||||
size_t cur_offset;
|
||||
size_t cur_iteration;
|
||||
int width;
|
||||
int color_range;
|
||||
unsigned int win_size;
|
||||
char *message;
|
||||
};
|
||||
|
||||
extern const long png_signature[8];
|
||||
|
||||
int check_header_length(unsigned char *addr, long offset);
|
||||
unsigned long check_header_length(unsigned char *addr, long offset);
|
||||
int check_file_header(char *addr);
|
||||
int create_cc_file(unsigned char *addr, unsigned long file_length);
|
||||
unsigned char* file_to_char_array(FILE *in_file, size_t* size);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
int check_file_header(char *addr);
|
||||
int check_header_length(unsigned char *addr, long offset);
|
||||
unsigned long first_idat(unsigned char *addr);
|
||||
int total_idat(unsigned char *addr);
|
||||
void build_png_file(struct PNG_FILE_STRUCT *png_file, char *out_file_name);
|
||||
Reference in New Issue
Block a user