@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user