libavformat/jacosubdec.c File Reference

JACOsub subtitle demuxer. More...

#include "avformat.h"
#include "internal.h"
#include "libavcodec/jacosub.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  SubEntry
struct  JACOsubContext

Defines

#define SSEP   "%*1[.:]"

Functions

static int timed_line (const char *ptr)
static int jacosub_probe (AVProbeData *p)
static int get_jss_cmd (char k)
static int jacosub_read_close (AVFormatContext *s)
static const char * read_ts (JACOsubContext *jacosub, const char *buf, int *ts_start, int *ts_end)
static int get_shift (int timeres, const char *buf)
static int cmp_timed_sub (const void *a, const void *b)
static int jacosub_read_header (AVFormatContext *s)
static int jacosub_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static const char *const cmds []
AVInputFormat ff_jacosub_demuxer


Detailed Description

JACOsub subtitle demuxer.

See also:
http://unicorn.us.com/jacosub/jscripts.html
Todo:
Support P[ALETTE] directive.

Definition in file jacosubdec.c.


Define Documentation

#define SSEP   "%*1[.:]"

Referenced by get_shift().


Function Documentation

static int cmp_timed_sub ( const void *  a,
const void *  b 
) [static]

Definition at line 164 of file jacosubdec.c.

Referenced by jacosub_read_header().

static int get_jss_cmd ( char  k  )  [static]

Definition at line 91 of file jacosubdec.c.

Referenced by jacosub_read_header().

static int get_shift ( int  timeres,
const char *  buf 
) [static]

Definition at line 142 of file jacosubdec.c.

Referenced by jacosub_read_header().

static int jacosub_probe ( AVProbeData p  )  [static]

Definition at line 57 of file jacosubdec.c.

static int jacosub_read_close ( AVFormatContext s  )  [static]

Definition at line 102 of file jacosubdec.c.

static int jacosub_read_header ( AVFormatContext s  )  [static]

Definition at line 169 of file jacosubdec.c.

static int jacosub_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 279 of file jacosubdec.c.

static const char* read_ts ( JACOsubContext jacosub,
const char *  buf,
int *  ts_start,
int *  ts_end 
) [static]

Definition at line 114 of file jacosubdec.c.

static int timed_line ( const char *  ptr  )  [static]

Definition at line 50 of file jacosubdec.c.

Referenced by jacosub_probe(), and jacosub_read_header().


Variable Documentation

const char* const cmds[] [static]

Initial value:

 {
    "CLOCKPAUSE",
    "DIRECTIVE",
    "FONT",
    "HRES",
    "INCLUDE",
    "PALETTE",
    "QUANTIZE",
    "RAMP",
    "SHIFT",
    "TIMERES",
}

Definition at line 78 of file jacosubdec.c.

Referenced by get_jss_cmd(), and jacosub_read_header().

Initial value:

 {
    .name           = "jacosub",
    .long_name      = NULL_IF_CONFIG_SMALL("JACOsub subtitle format"),
    .priv_data_size = sizeof(JACOsubContext),
    .read_probe     = jacosub_probe,
    .read_header    = jacosub_read_header,
    .read_packet    = jacosub_read_packet,
    .read_close     = jacosub_read_close,
    .flags          = AVFMT_GENERIC_INDEX,
}

Definition at line 298 of file jacosubdec.c.


Generated on Fri Oct 26 02:47:57 2012 for FFmpeg by  doxygen 1.5.8