27 lines
511 B
C
Raw Normal View History

2018-01-25 12:22:42 -08:00
#ifndef TESS_GET_TEXT
#define TESS_GET_TEXT
2018-01-26 04:35:47 +01:00
#include <boolean.h>
#include <retro_common_api.h>
2018-01-25 12:22:42 -08:00
2018-01-26 04:35:47 +01:00
RETRO_BEGIN_DECLS
2018-01-25 12:22:42 -08:00
2018-01-26 04:35:47 +01:00
typedef struct
{
unsigned width;
unsigned height;
unsigned bytes_per_pixel;
void* data;
} tess_image;
2018-01-25 12:22:42 -08:00
2018-01-26 04:35:47 +01:00
/* if running in RetroArch language should be "eng" or "jpn" */
2018-01-25 12:22:42 -08:00
bool tess_init(const char* lang_data_dir, const char* language);
2018-01-26 04:35:47 +01:00
void tess_deinit(void);
2018-01-25 12:22:42 -08:00
char* tess_get_text(tess_image image);
2018-01-26 04:35:47 +01:00
extern char tess_last_error[];
2018-01-25 12:22:42 -08:00
2018-01-26 04:35:47 +01:00
RETRO_END_DECLS
2018-01-25 12:22:42 -08:00
2018-01-26 04:35:47 +01:00
#endif