#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 |
Definition in file jacosubdec.c.
#define SSEP "%*1[.:]" |
Referenced by get_shift().
static int cmp_timed_sub | ( | const void * | a, | |
const void * | b | |||
) | [static] |
static int get_jss_cmd | ( | char | k | ) | [static] |
static int get_shift | ( | int | timeres, | |
const char * | buf | |||
) | [static] |
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().
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.