Merge v0.0.2
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);
|
||||
|
||||
7
include/pspng.h
Normal file
7
include/pspng.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
int check_file_header(char *addr);
|
||||
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);
|
||||
int change_idat_content(unsigned char *addr, struct PNG_FILE_STRUCT *png_file, char *message, int accuracy, unsigned long offset, char *out_file_name);
|
||||
Reference in New Issue
Block a user