forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbc51fb
commit 18035bc
Showing
5 changed files
with
96 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 15 additions & 16 deletions
31
translation/drivers_ocr/tesseract/wrapper/tess_get_text.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
#ifndef TESS_GET_TEXT | ||
#define TESS_GET_TEXT | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
#include <boolean.h> | ||
#include <retro_common_api.h> | ||
|
||
typedef struct { | ||
unsigned width; | ||
unsigned height; | ||
unsigned bytes_per_pixel; | ||
void* data; | ||
}tess_image; | ||
RETRO_BEGIN_DECLS | ||
|
||
extern char tess_last_error[]; | ||
typedef struct | ||
{ | ||
unsigned width; | ||
unsigned height; | ||
unsigned bytes_per_pixel; | ||
void* data; | ||
} tess_image; | ||
|
||
//if running in RetroArch language should be "eng" or "jpn" | ||
/* if running in RetroArch language should be "eng" or "jpn" */ | ||
bool tess_init(const char* lang_data_dir, const char* language); | ||
void tess_deinit(); | ||
void tess_deinit(void); | ||
char* tess_get_text(tess_image image); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
extern char tess_last_error[]; | ||
|
||
RETRO_END_DECLS | ||
|
||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters