#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 |
Definition in file jacosubdec.c.
| #define SSEP "%*1[.:]" |
Referenced by get_shift().
| static int get_jss_cmd | ( | char | k | ) | [static] |
| 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().
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.
1.5.8