This commit is contained in:
Pin
2021-10-22 10:01:22 -04:00
parent 968ca756c3
commit 83dda0ef00
3 changed files with 145 additions and 58 deletions

View File

@@ -33,6 +33,18 @@ 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;
int width;
int color_range;
unsigned int win_size;
};
extern const long png_signature[8];
unsigned long check_header_length(unsigned char *addr, long offset);