mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 11:53:25 +00:00
corrected function declaration
This commit is contained in:
parent
a08c7b1871
commit
7bb4e842dd
@ -141,9 +141,5 @@ void handle_end_of_data(ccx_decoder_608_context *context, struct cc_subtitle *su
|
|||||||
int write_cc_buffer(ccx_decoder_608_context *context, struct cc_subtitle *sub);
|
int write_cc_buffer(ccx_decoder_608_context *context, struct cc_subtitle *sub);
|
||||||
unsigned char *debug_608toASC(unsigned char *ccdata, int channel);
|
unsigned char *debug_608toASC(unsigned char *ccdata, int channel);
|
||||||
|
|
||||||
//void delete_all_lines_but_current(ccx_decoder_608_context *context, struct eia608_screen *data, int row);
|
|
||||||
|
|
||||||
LLONG get_visible_end(void);
|
|
||||||
|
|
||||||
#define __608_H__
|
#define __608_H__
|
||||||
#endif
|
#endif
|
||||||
|
@ -334,7 +334,7 @@ int add_word(const char *word)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int add_built_in_words()
|
int add_built_in_words(void)
|
||||||
{
|
{
|
||||||
if (!spell_builtin_added)
|
if (!spell_builtin_added)
|
||||||
{
|
{
|
||||||
@ -378,7 +378,8 @@ void shell_sort(void *base, int nb, size_t size, int(*compar)(const void*p1, con
|
|||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ccx_encoders_helpers_perform_shellsort_words(){
|
void ccx_encoders_helpers_perform_shellsort_words(void)
|
||||||
|
{
|
||||||
shell_sort(spell_lower, spell_words, sizeof(*spell_lower), string_cmp2, NULL);
|
shell_sort(spell_lower, spell_words, sizeof(*spell_lower), string_cmp2, NULL);
|
||||||
shell_sort(spell_correct, spell_words, sizeof(*spell_correct), string_cmp2, NULL);
|
shell_sort(spell_correct, spell_words, sizeof(*spell_correct), string_cmp2, NULL);
|
||||||
}
|
}
|
||||||
|
@ -28,11 +28,11 @@ unsigned get_decoder_line_encoded(unsigned char *buffer, int line_num, struct ei
|
|||||||
|
|
||||||
int string_cmp(const void *p1, const void *p2);
|
int string_cmp(const void *p1, const void *p2);
|
||||||
int string_cmp2(const void *p1, const void *p2, void *arg);
|
int string_cmp2(const void *p1, const void *p2, void *arg);
|
||||||
int add_built_in_words();
|
int add_built_in_words(void);
|
||||||
int add_word(const char *word);
|
int add_word(const char *word);
|
||||||
|
|
||||||
void shell_sort(void *base, int nb, size_t size, int(*compar)(const void*p1, const void *p2, void*arg), void *arg);
|
void shell_sort(void *base, int nb, size_t size, int(*compar)(const void*p1, const void *p2, void*arg), void *arg);
|
||||||
|
|
||||||
void ccx_encoders_helpers_perform_shellsort_words();
|
void ccx_encoders_helpers_perform_shellsort_words(void);
|
||||||
void ccx_encoders_helpers_setup(enum ccx_encoding_type encoding, int no_font_color, int no_type_setting, int trim_subs);
|
void ccx_encoders_helpers_setup(enum ccx_encoding_type encoding, int no_font_color, int no_type_setting, int trim_subs);
|
||||||
#endif
|
#endif
|
||||||
|
@ -202,7 +202,7 @@ int switch_to_next_file (struct lib_ccx_ctx *ctx, LLONG bytesinbuffer)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void position_sanity_check ()
|
void position_sanity_check (void)
|
||||||
{
|
{
|
||||||
#ifdef SANITY_CHECK
|
#ifdef SANITY_CHECK
|
||||||
if (in!=-1)
|
if (in!=-1)
|
||||||
|
@ -767,7 +767,7 @@ void rcwt_loop(struct lib_ccx_ctx *ctx, void *enc_ctx)
|
|||||||
|
|
||||||
if (parsebuf[6] == 0 && parsebuf[7] == 2)
|
if (parsebuf[6] == 0 && parsebuf[7] == 2)
|
||||||
{
|
{
|
||||||
tlt_read_rcwt();
|
tlt_read_rcwt(ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ int atoi_hex (char *s);
|
|||||||
int stringztoms (const char *s, struct ccx_boundary_time *bt);
|
int stringztoms (const char *s, struct ccx_boundary_time *bt);
|
||||||
|
|
||||||
// general_loop.c
|
// general_loop.c
|
||||||
void position_sanity_check ();
|
void position_sanity_check (void);
|
||||||
int init_file_buffer( void );
|
int init_file_buffer( void );
|
||||||
LLONG ps_getmoredata(struct lib_ccx_ctx *ctx);
|
LLONG ps_getmoredata(struct lib_ccx_ctx *ctx);
|
||||||
LLONG general_getmoredata(struct lib_ccx_ctx *ctx);
|
LLONG general_getmoredata(struct lib_ccx_ctx *ctx);
|
||||||
@ -341,16 +341,11 @@ extern void build_parity_table(void);
|
|||||||
void tlt_process_pes_packet(struct lib_ccx_ctx *ctx, uint8_t *buffer, uint16_t size);
|
void tlt_process_pes_packet(struct lib_ccx_ctx *ctx, uint8_t *buffer, uint16_t size);
|
||||||
void telxcc_init(struct lib_ccx_ctx *ctx);
|
void telxcc_init(struct lib_ccx_ctx *ctx);
|
||||||
void telxcc_close(struct lib_ccx_ctx *ctx);
|
void telxcc_close(struct lib_ccx_ctx *ctx);
|
||||||
void tlt_read_rcwt();
|
void tlt_read_rcwt(struct lib_ccx_ctx *ctx);
|
||||||
void mstotime(LLONG milli, unsigned *hours, unsigned *minutes,
|
|
||||||
unsigned *seconds, unsigned *ms);
|
|
||||||
|
|
||||||
extern unsigned rollover_bits;
|
extern unsigned rollover_bits;
|
||||||
extern int global_timestamp_inited;
|
extern int global_timestamp_inited;
|
||||||
|
|
||||||
extern LLONG result; // Number of bytes read/skipped in last read operation
|
|
||||||
|
|
||||||
|
|
||||||
extern int strangeheader;
|
extern int strangeheader;
|
||||||
|
|
||||||
extern unsigned char *filebuffer;
|
extern unsigned char *filebuffer;
|
||||||
@ -362,7 +357,6 @@ extern const char *desc[256];
|
|||||||
|
|
||||||
|
|
||||||
extern long FILEBUFFERSIZE; // Uppercase because it used to be a define
|
extern long FILEBUFFERSIZE; // Uppercase because it used to be a define
|
||||||
extern struct ccx_s_options ccx_options;
|
|
||||||
extern unsigned long net_activity_gui;
|
extern unsigned long net_activity_gui;
|
||||||
|
|
||||||
/* General (ES stream) video information */
|
/* General (ES stream) video information */
|
||||||
@ -371,12 +365,8 @@ extern unsigned current_vert_size;
|
|||||||
extern unsigned current_aspect_ratio;
|
extern unsigned current_aspect_ratio;
|
||||||
extern unsigned current_frame_rate;
|
extern unsigned current_frame_rate;
|
||||||
|
|
||||||
extern int end_of_file;
|
|
||||||
extern LLONG inbuf;
|
|
||||||
extern enum ccx_bufferdata_type bufferdatatype; // Can be CCX_BUFFERDATA_TYPE_RAW or CCX_BUFFERDATA_TYPE_PES
|
extern enum ccx_bufferdata_type bufferdatatype; // Can be CCX_BUFFERDATA_TYPE_RAW or CCX_BUFFERDATA_TYPE_PES
|
||||||
|
|
||||||
extern unsigned top_field_first;
|
|
||||||
|
|
||||||
extern int firstcall;
|
extern int firstcall;
|
||||||
|
|
||||||
#define MAXBFRAMES 50
|
#define MAXBFRAMES 50
|
||||||
|
Loading…
Reference in New Issue
Block a user