FFmpeg
Functions | Variables
movenc_ttml.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "isom.h"
#include "movenc.h"
#include "movenc_ttml.h"
#include "libavcodec/packet_internal.h"

Go to the source code of this file.

Functions

static int mov_init_ttml_writer (MOVTrack *track, AVFormatContext **out_ctx)
 
static int mov_write_ttml_document_from_queue (AVFormatContext *s, AVFormatContext *ttml_ctx, MOVTrack *track, AVPacket *pkt, int64_t *out_start_ts, int64_t *out_duration)
 
int ff_mov_generate_squashed_ttml_packet (AVFormatContext *s, MOVTrack *track, AVPacket *pkt)
 

Variables

static const unsigned char empty_ttml_document []
 

Function Documentation

◆ mov_init_ttml_writer()

static int mov_init_ttml_writer ( MOVTrack track,
AVFormatContext **  out_ctx 
)
static

Definition at line 32 of file movenc_ttml.c.

Referenced by ff_mov_generate_squashed_ttml_packet().

◆ mov_write_ttml_document_from_queue()

static int mov_write_ttml_document_from_queue ( AVFormatContext s,
AVFormatContext ttml_ctx,
MOVTrack track,
AVPacket pkt,
int64_t *  out_start_ts,
int64_t *  out_duration 
)
static

Definition at line 57 of file movenc_ttml.c.

Referenced by ff_mov_generate_squashed_ttml_packet().

◆ ff_mov_generate_squashed_ttml_packet()

int ff_mov_generate_squashed_ttml_packet ( AVFormatContext s,
MOVTrack track,
AVPacket pkt 
)

Definition at line 108 of file movenc_ttml.c.

Referenced by mov_write_squashed_packet().

Variable Documentation

◆ empty_ttml_document

const unsigned char empty_ttml_document[]
static
Initial value:
=
"<tt xml:lang=\"\" xmlns=\"http://www.w3.org/ns/ttml\" />"

Definition at line 29 of file movenc_ttml.c.

Referenced by ff_mov_generate_squashed_ttml_packet().