mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
74c8506391
Also fix white spaces in led drivers, make led drivers use standard driver format. Begin work on translation driver. Add salamander files to gitignore.
28 lines
522 B
C
28 lines
522 B
C
#ifndef __OCR_DRIVER__H
|
|
#define __OCR_DRIVER__H
|
|
|
|
struct ocr_image_info
|
|
{
|
|
int game_character_set;
|
|
unsigned image_width;
|
|
unsigned image_height;
|
|
unsigned pixel_format;
|
|
void* image_data;
|
|
};
|
|
|
|
typedef struct ocr_driver
|
|
{
|
|
void* (*init)();
|
|
void (*free)(void* data);
|
|
|
|
char* (*get_text)(struct ocr_image_info image);
|
|
|
|
const char *ident;
|
|
} ocr_driver_t;
|
|
|
|
extern const ocr_driver_t ocr_tesseract;
|
|
extern const ocr_driver_t ocr_null;
|
|
|
|
char* ocr_get_text(struct ocr_image_info image);
|
|
|
|
#endif |