1 /***************************************************************** 2 * gmerlin - a general purpose multimedia framework and applications 3 * 4 * Copyright (c) 2001 - 2011 Members of the Gmerlin project 5 * gmerlin-general@lists.sourceforge.net 6 * http://gmerlin.sourceforge.net 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * *****************************************************************/ 21 22 #ifndef __BG_OCR_H_ 23 #define __BG_OCR_H_ 24 25 #include <gmerlin/pluginregistry.h> 26 27 typedef struct bg_ocr_s bg_ocr_t; 28 29 bg_ocr_t * bg_ocr_create(bg_plugin_registry_t * plugin_reg); 30 const bg_parameter_info_t * bg_ocr_get_parameters(); 31 int bg_ocr_set_parameter(void * ocr, const char * name, 32 const bg_parameter_value_t * val); 33 int bg_ocr_init(bg_ocr_t *, 34 const gavl_video_format_t * format, 35 const char * language); 36 int bg_ocr_run(bg_ocr_t *, 37 const gavl_video_format_t * format, 38 gavl_video_frame_t * frame, 39 char ** ret); 40 41 void bg_ocr_destroy(bg_ocr_t *); 42 43 #endif // __BG_OCR_H_ 44