/third_party/ffmpeg/libavfilter/ |
H A D | vf_subtitles.c | 30 #include <ass/ass.h> 100 AssContext *ass = ctx->priv; in init() local 102 if (!ass->filename) { in init() 107 ass->library = ass_library_init(); in init() 108 if (!ass->library) { in init() 112 ass_set_message_cb(ass->library, ass_log, ctx); in init() 114 ass_set_fonts_dir(ass->library, ass->fontsdir); in init() 115 ass_set_extract_fonts(ass in init() 128 AssContext *ass = ctx->priv; uninit() local 145 AssContext *ass = inlink->dst->priv; config_input() local 169 overlay_ass_image(AssContext *ass, AVFrame *picref, const ASS_Image *image) overlay_ass_image() argument 188 AssContext *ass = ctx->priv; filter_frame() local 230 AVFILTER_DEFINE_CLASS(ass); global() variable 234 AssContext *ass = ctx->priv; init_ass() local 320 AssContext *ass = ctx->priv; init_subtitles() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | assenc.c | 48 ASSContext *ass = s->priv_data; in write_header() local 67 ass->trailer_size = par->extradata_size - header_size; in write_header() 68 if (ass->trailer_size) in write_header() 69 ass->trailer = trailer; in write_header() 75 ass->ssa_mode = !strstr(par->extradata, "\n[V4+ Styles]"); in write_header() 78 ass->ssa_mode ? "Marked" : "Layer"); in write_header() 87 ASSContext *ass = s->priv_data; in purge_dialogues() local 88 DialogueLine *dialogue = ass->dialogue_cache; in purge_dialogues() 90 while (dialogue && (dialogue->readorder == ass->expected_readorder || force)) { in purge_dialogues() 92 if (dialogue->readorder != ass in purge_dialogues() 114 insert_dialogue(ASSContext *ass, DialogueLine *dialogue) insert_dialogue() argument 156 ASSContext *ass = s->priv_data; write_packet() local 204 ASSContext *ass = s->priv_data; write_trailer() local [all...] |
H A D | assdec.c | 52 static int read_dialogue(ASSContext *ass, AVBPrint *dst, const uint8_t *p, in read_dialogue() argument 75 av_bprintf(dst, "%u,%d,%s", ass->readorder++, layer, p + pos); in read_dialogue() 105 ASSContext *ass = s->priv_data; in ass_read_header() local 123 ass->q.keep_duplicates = 1; in ass_read_header() 134 if (read_dialogue(ass, &rline, line.str, &ts_start, &duration) < 0) { in ass_read_header() 138 sub = ff_subtitles_queue_insert(&ass->q, rline.str, rline.len, 0); in ass_read_header() 152 ff_subtitles_queue_finalize(s, &ass->q); in ass_read_header() 162 .name = "ass",
|
/third_party/ffmpeg/tests/fate/ |
H A D | subtitles.mak | 2 fate-sub-aqtitle: CMD = fmtstdout ass -sub_charenc windows-1250 -i $(TARGET_SAMPLES)/sub/AQTitle_capability_tester.aqt 5 fate-sub-cc: CMD = fmtstdout ass -f lavfi -i "movie=$(TARGET_SAMPLES)/sub/Closedcaption_rollup.m2v[out0+subcc]" 8 fate-sub-cc-realtime: CMD = fmtstdout ass -real_time 1 -f lavfi -i "movie=$(TARGET_SAMPLES)/sub/Closedcaption_rollup.m2v[out0+subcc]" 11 fate-sub-cc-scte20: CMD = fmtstdout ass -f lavfi -i "movie=$(TARGET_SAMPLES)/sub/scte20.ts[out0+subcc]" 13 FATE_SUBTITLES_ASS-$(call DEMDEC, ASS, ASS) += fate-sub-ass-to-ass-transcode 14 fate-sub-ass-to-ass-transcode: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/1ededcbd7b.ass [all...] |
/third_party/libwebsockets/lib/roles/http/server/ |
H A D | access-log.c | 151 char *p = wsi->http.access_log.user_agent, ass[512], in lws_access_log() local 178 l = lws_snprintf(ass, sizeof(ass) - 7, "%s %d %lu \"%s", in lws_access_log() 182 if (strlen(p) > sizeof(ass) - 6 - (unsigned int)l) { in lws_access_log() 183 p[sizeof(ass) - 6 - (unsigned int)l] = '\0'; in lws_access_log() 186 l += lws_snprintf(ass + (unsigned int)l, sizeof(ass) - 1 - (unsigned int)l, "\" \"%s\"\n", p); in lws_access_log() 188 ass[sizeof(ass) - 1] = '\0'; in lws_access_log() 190 if ((int)write(wsi->a.vhost->log_fd, ass, (size_ in lws_access_log() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | movtextenc.c | 30 #include "ass.h" 179 ASS *ass; in encode_sample_description() local 217 ass = (ASS*)s->ass_ctx; in encode_sample_description() 220 if (s->frame_height && ass->script_info.play_res_y) in encode_sample_description() 221 s->font_scale_factor = (double)s->frame_height / ass->script_info.play_res_y; in encode_sample_description() 226 if (!style && ass->styles_count) { in encode_sample_description() 227 style = &ass->styles[0]; in encode_sample_description() 262 if (style && ass->styles_count) { in encode_sample_description() 268 for (i = 0; i < ass->styles_count; i++) { in encode_sample_description() 270 if (!ass in encode_sample_description() 648 const char *ass = sub->rects[i]->ass; mov_text_encode_frame() local [all...] |
H A D | ttmlenc.c | 36 #include "ass.h" 90 const char *ass = sub->rects[i]->ass; in ttml_encode_frame() local 98 dialog = ff_ass_split_dialog(s->ass_ctx, ass); in ttml_encode_frame() 304 ASS *ass = (ASS *)s->ass_ctx; in ttml_write_header_content() local 305 ASSScriptInfo script_info = ass->script_info; in ttml_write_header_content() 331 for (int i = 0; i < ass->styles_count; i++) { in ttml_write_header_content() 333 ass->styles[i]); in ttml_write_header_content()
|
H A D | assenc.c | 27 #include "ass.h" 51 const char *ass = sub->rects[i]->ass; in ass_encode_frame() local 58 len = av_strlcpy(buf+total_len, ass, bufsize-total_len); in ass_encode_frame() 85 .p.name = "ass",
|
H A D | ass_split.c | 206 ASS ass; member 216 int *count = (int *)((uint8_t *)&ctx->ass + section->offset_count); in realloc_section_array() 217 void **section_ptr = (void **)((uint8_t *)&ctx->ass + section->offset); in realloc_section_array() 342 uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset; in ass_split_section() 399 uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset; in free_section() 404 count = (int *)((uint8_t *)&ctx->ass + section->offset_count); in free_section() 418 av_freep((uint8_t *)&ctx->ass + section->offset); in free_section() 580 ASS *ass = &ctx->ass; in ff_ass_style_get() local 585 for (i=0; i<ass in ff_ass_style_get() [all...] |
H A D | assdec.c | 25 #include "ass.h" 57 sub->rects[0]->ass = av_strdup(avpkt->data); in ass_decode_frame() 58 if (!sub->rects[0]->ass) in ass_decode_frame() 78 .p.name = "ass",
|
H A D | webvttenc.c | 28 #include "ass.h" 168 const char *ass = sub->rects[i]->ass; in webvtt_encode_frame() local 175 dialog = ff_ass_split_dialog(s->ass_ctx, ass); in webvtt_encode_frame()
|
H A D | libzvbi-teletextdec.c | 22 #include "libavcodec/ass.h" 62 int format_id; /* 0 = bitmap, 1 = text/ass, 2 = ass */ 146 av_freep(&(*sub_rect)->ass); in subtitle_rect_free() 220 sub_rect->ass = create_ass_text(ctx, buf.str); in gen_sub_text() 222 if (!sub_rect->ass) { in gen_sub_text() 226 av_log(ctx, AV_LOG_DEBUG, "subtext:%s:txetbus\n", sub_rect->ass); in gen_sub_text() 294 /* Draw a page as ass formatted text */ 398 sub_rect->ass = ff_ass_get_dialog(ctx->readorder++, 0, is_subtitle_page ? "Subtitle" : "Teletext", NULL, buf.str); in gen_sub_ass() 400 if (!sub_rect->ass) { in gen_sub_ass() [all...] |
H A D | srtenc.c | 29 #include "ass.h" 243 const char *ass = sub->rects[i]->ass; in encode_frame() local 250 dialog = ff_ass_split_dialog(s->ass_ctx, ass); in encode_frame()
|
H A D | Makefile | 224 OBJS-$(CONFIG_SSA_DECODER) += assdec.o ass.o 225 OBJS-$(CONFIG_SSA_ENCODER) += assenc.o ass.o 226 OBJS-$(CONFIG_ASS_DECODER) += assdec.o ass.o 227 OBJS-$(CONFIG_ASS_ENCODER) += assenc.o ass.o 268 OBJS-$(CONFIG_CCAPTION_DECODER) += ccaption_dec.o ass.o 445 OBJS-$(CONFIG_JACOSUB_DECODER) += jacosubdec.o ass.o 467 OBJS-$(CONFIG_MICRODVD_DECODER) += microdvddec.o ass.o 482 OBJS-$(CONFIG_MOVTEXT_DECODER) += movtextdec.o ass.o 524 OBJS-$(CONFIG_MPL2_DECODER) += mpl2dec.o ass.o 579 OBJS-$(CONFIG_PJS_DECODER) += textdec.o ass [all...] |
H A D | ass.c | 23 #include "ass.h" 153 rect->ass = ass_str; in ff_ass_add_rect2()
|
H A D | avcodec.h | 2264 * authoritative. ass and pict fields may contain approximations. 2269 * Formatted text, the ass field must be set by the decoder and is 2286 * Can be set for text/ass as well once they are rendered. 2300 char *ass; member
|
H A D | avcodec.c | 430 av_freep(&rect->ass); in avsubtitle_free()
|
H A D | decode.c | 871 sub->rects[i]->ass && !utf8_check(sub->rects[i]->ass)) { in avcodec_decode_subtitle2()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_assembler.cpp | 126 AssamblerVisitor ass(m_sh, m_key); in lower() 130 b->accept(ass); in lower() 131 if (!ass.m_result) in lower() 135 ass.finalize(); in lower() 137 return ass.m_result; in lower()
|
/third_party/ffmpeg/ |
H A D | configure | 222 needed for subtitles and ass filter [no] 6532 enabled libass && require_pkg_config libass "libass >= 0.11.0" ass/ass.h ass_library_init
|