asademux.h File Reference

Include dependency graph for asademux.h:

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_detectasa_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_detectasa_det_first
struct asa_import_detect ** asa_det_last
struct asa_import_formatasa_fmt_first
struct asa_import_format ** asa_fmt_last


Typedef Documentation

typedef int( asa_import_callback)(demux_t *demux, void *arg, int64_t start, int64_t stop, const char *buffer, size_t buffer_length)


Enumeration Type Documentation

import instruction code

Enumerator:
ASAI_COMMIT  put current buffer as line
ASAI_DISCARD  discard current buffer
ASAI_BREAK  leave child group
ASAI_SELECT  select source matchgroup
ASAI_SG  execute search & replace on selected
ASAI_SGU  like ASAI_SG, but update matchgroups
ASAI_APPEND  append selected source to buffer
ASAI_FPS  set fixed fps
ASAI_SHOW  set start time
ASAI_HIDE  set end time
ASAI_CHILD  child regex match

destination format of import rules

Enumerator:
ASAI_TARGET_TEXT  plain text packets
ASAI_TARGET_SSA  MKV ASS packets.


Function Documentation

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 
)

struct asa_import_detect* asa_imports_detect ( const void *  data,
size_t  dlen 
) [read]

asa_imports_detect - autodetect subtitle format.

Parameters:
data pointer to subtitle byte data
datalen byte length of data
Returns:
the detect structure that hit or NULL if detection failed

References det, asa_import_detect::next, asa_pcre::pcre, and asa_import_detect::re.

void asa_init_import ( void   ) 

int asa_pcre_compile ( asa_pcre out,
const char *  str 
)

pcre_compile wrapper.

used to allow loading differently for imports-to-C conversion.

Parameters:
out output (parsed pcre)
str regular expression string
Returns:
0 on success, any other on error

References err, and asa_pcre::pcre.


Variable Documentation


Generated on Sat Nov 21 08:05:35 2009 for VLC by  doxygen 1.5.6