
Go to the source code of this file.
Data Structures | |
| union | asa_pcre |
| parser reuse. More... | |
| struct | asa_repl |
| replacement element for ASAI_SG / ASAI_SGU More... | |
| struct | asa_tspec |
| time specification element More... | |
| struct | asa_import_insn |
| single import instruction More... | |
| struct | asa_import_format |
| importing instructions for format More... | |
| struct | asa_import_detect |
| format detection rules More... | |
Typedefs | |
| typedef int( | asa_import_callback )(demux_t *demux, void *arg, int64_t start, int64_t stop, const char *buffer, size_t buffer_length) |
Enumerations | |
| enum | asa_import_insn_type { ASAI_COMMIT = 0, ASAI_DISCARD, ASAI_BREAK, ASAI_SELECT, ASAI_SG, ASAI_SGU, ASAI_APPEND, ASAI_FPS, ASAI_SHOW, ASAI_HIDE, ASAI_CHILD } |
| import instruction code More... | |
| enum | asa_import_target { ASAI_TARGET_TEXT = (1 << 0), ASAI_TARGET_SSA = (1 << 1) } |
| destination format of import rules More... | |
Functions | |
| int | asa_pcre_compile (asa_pcre *out, const char *str) |
| pcre_compile wrapper. | |
| struct asa_import_detect * | asa_imports_detect (const void *data, size_t dlen) |
| asa_imports_detect - autodetect subtitle format. | |
| int | asa_import (demux_t *d, const void *data, size_t dlen, int64_t usecperframe, struct asa_import_detect *det, asa_import_callback *callback, void *arg) |
| void | asa_init_import (void) |
Variables | |
| struct asa_import_detect * | asa_det_first |
| struct asa_import_detect ** | asa_det_last |
| struct asa_import_format * | asa_fmt_first |
| struct asa_import_format ** | asa_fmt_last |
| typedef int( asa_import_callback)(demux_t *demux, void *arg, int64_t start, int64_t stop, const char *buffer, size_t buffer_length) |
| enum asa_import_insn_type |
import instruction code
| enum asa_import_target |
| int asa_import | ( | demux_t * | d, | |
| const void * | data, | |||
| size_t | dlen, | |||
| int64_t | usecperframe, | |||
| struct asa_import_detect * | det, | |||
| asa_import_callback * | callback, | |||
| void * | arg | |||
| ) |
References asai_run_insns(), callback(), asa_import_state::cb, asa_import_state::cb_arg, asa_import_state::demux, asa_import_state::end, asa_import_detect::fmt, asa_import_format::insns, asa_import_state::line, asa_import_state::matches, asa_import_state::origusecperf, asa_import_state::out, asa_import_state::outlen, asa_import_state::remain, asa_import_state::selstr, asa_import_state::start, asa_import_state::usecperf, and xfree.
| struct asa_import_detect* asa_imports_detect | ( | const void * | data, | |
| size_t | dlen | |||
| ) | [read] |
asa_imports_detect - autodetect subtitle format.
| data | pointer to subtitle byte data | |
| datalen | byte length of data |
References det, asa_import_detect::next, asa_pcre::pcre, and asa_import_detect::re.
| void asa_init_import | ( | void | ) |
References asa_imports_crosslink(), and preparse_add().
| int asa_pcre_compile | ( | asa_pcre * | out, | |
| const char * | str | |||
| ) |
pcre_compile wrapper.
used to allow loading differently for imports-to-C conversion.
| out | output (parsed pcre) | |
| str | regular expression string |
References err, and asa_pcre::pcre.
| struct asa_import_detect* asa_det_first |
| struct asa_import_detect ** asa_det_last |
| struct asa_import_format* asa_fmt_first |
| struct asa_import_format ** asa_fmt_last |
1.5.6