libavformat/jacosubdec.c File Reference

JACOsub subtitle demuxer. More...

#include "avformat.h"
#include "internal.h"
#include "subtitles.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  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, int64_t *start, int *duration)
static int get_shift (int timeres, const char *buf)
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 get_jss_cmd ( char  k  )  [static]

Definition at line 83 of file jacosubdec.c.

Referenced by jacosub_read_header().

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

Definition at line 132 of file jacosubdec.c.

Referenced by jacosub_read_header().

static int jacosub_probe ( AVProbeData p  )  [static]

Definition at line 49 of file jacosubdec.c.

static int jacosub_read_close ( AVFormatContext s  )  [static]

Definition at line 94 of file jacosubdec.c.

static int jacosub_read_header ( AVFormatContext s  )  [static]

Definition at line 154 of file jacosubdec.c.

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

Definition at line 245 of file jacosubdec.c.

static const char* read_ts ( JACOsubContext jacosub,
const char *  buf,
int64_t *  start,
int duration 
) [static]

Definition at line 101 of file jacosubdec.c.

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

Definition at line 42 of file jacosubdec.c.

Referenced by jacosub_probe(), jacosub_read_header(), and subviewer_read_header().


Variable Documentation

const char* const cmds[] [static]

Initial value:

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

Definition at line 70 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 251 of file jacosubdec.c.


Generated on Fri Oct 26 02:50:06 2012 for FFmpeg by  doxygen 1.5.8