FFmpeg
Enumerations | Functions | Variables
jacosubdec.c File Reference

JACOsub subtitle decoder. More...

#include <time.h>
#include "ass.h"
#include "jacosub.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"

Go to the source code of this file.

Enumerations

enum   {
  ALIGN_VB = 1<<0, ALIGN_VM = 1<<1, ALIGN_VT = 1<<2, ALIGN_JC = 1<<3,
  ALIGN_JL = 1<<4, ALIGN_JR = 1<<5
}
 

Functions

static int  insert_text (AVBPrint *dst, const char *in, const char *arg)
 
static int  insert_datetime (AVBPrint *dst, const char *in, const char *arg)
 
static int  insert_color (AVBPrint *dst, const char *in, const char *arg)
 
static int  insert_font (AVBPrint *dst, const char *in, const char *arg)
 
static void  jacosub_to_ass (AVCodecContext *avctx, AVBPrint *dst, const char *src)
 
static int  jacosub_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
 

Variables

struct {
   const char *   from
 
   const char *   arg
 
   int(*   func )(AVBPrint *dst, const char
      *in, const char *arg)
 
 
 

Detailed Description

JACOsub subtitle decoder.

See Also
http://unicorn.us.com/jacosub/jscripts.html

Definition in file jacosubdec.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ALIGN_VB
ALIGN_VM
ALIGN_VT
ALIGN_JC
ALIGN_JL
ALIGN_JR

Definition at line 88 of file jacosubdec.c.

Function Documentation

static int insert_text ( AVBPrintdst,
const char *  in,
const char *  arg 
)
static

Definition at line 35 of file jacosubdec.c.

static int insert_datetime ( AVBPrintdst,
const char *  in,
const char *  arg 
)
static

Definition at line 41 of file jacosubdec.c.

static int insert_color ( AVBPrintdst,
const char *  in,
const char *  arg 
)
static

Definition at line 57 of file jacosubdec.c.

static int insert_font ( AVBPrintdst,
const char *  in,
const char *  arg 
)
static

Definition at line 62 of file jacosubdec.c.

static void jacosub_to_ass ( AVCodecContextavctx,
AVBPrintdst,
const char *  src 
)
static

Definition at line 97 of file jacosubdec.c.

Referenced by jacosub_decode_frame().

static int jacosub_decode_frame ( AVCodecContextavctx,
voiddata,
int *  got_sub_ptr,
AVPacketavpkt 
)
static

Definition at line 168 of file jacosubdec.c.

Variable Documentation

const char* from

Definition at line 68 of file jacosubdec.c.

Referenced by ff_sctp_recvmsg(), jacosub_to_ass(), rtp_read(), and webvtt_event_to_ass().

const char* arg

Definition at line 69 of file jacosubdec.c.

Referenced by av_find_info_tag(), av_force_cpu_flags(), av_log_set_flags(), avcodec_thread_execute(), bktr_init(), check_keyboard_interaction(), decode_lowdelay_slice(), decode_subband_golomb(), dv_decode_video_segment(), dv_encode_video_segment(), ff_cos(), finish_group(), frame_worker_thread(), init(), jacosub_to_ass(), mxf_read_content_storage(), mxf_read_cryptographic_context(), mxf_read_generic_descriptor(), mxf_read_index_table_segment(), mxf_read_partition_pack(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_timecode_component(), mxf_read_track(), new_output_stream(), opt_attach(), opt_codec(), opt_filter_complex(), opt_input_file(), opt_show_entries(), parse_acl_row(), parse_ffconfig(), parse_meta_type(), process_callback(), pthread_create(), read_thread(), shutdown_callback(), split_commandline(), subtitle_thread(), thread_entry(), video_thread(), win32thread_worker(), and xrun_callback().

int(* func)(AVBPrint *dst, const char *in, const char *arg)

Definition at line 70 of file jacosubdec.c.

Referenced by av_fifo_generic_read(), av_fifo_generic_write(), avcodec_default_execute(), avcodec_default_execute2(), avcodec_thread_execute(), avfilter_transform(), compute_metric(), and main().

struct { ... } ass_codes_map[]
Initial value:
= {
{"\\~", "~", insert_text},
{"~", "{\\h}", insert_text},
{"\\n", "\\N", insert_text},
{"\\D", "%d %b %Y", insert_datetime},
{"\\T", "%H:%M", insert_datetime},
{"\\N", "{\\r}", insert_text},
{"\\I", "{\\i1}", insert_text},
{"\\i", "{\\i0}", insert_text},
{"\\B", "{\\b1}", insert_text},
{"\\b", "{\\b0}", insert_text},
{"\\U", "{\\u1}", insert_text},
{"\\u", "{\\u0}", insert_text},
{"\\C", "", insert_color},
{"\\F", "", insert_font},
}

Referenced by jacosub_to_ass().

AVCodec ff_jacosub_decoder
Initial value:
= {
.name = "jacosub",
.long_name = NULL_IF_CONFIG_SMALL("JACOsub subtitle"),
}

Definition at line 198 of file jacosubdec.c.


Generated on Sat May 25 2013 03:58:55 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /