FFmpeg
Loading...
Searching...
No Matches
movenc_ttml.c File Reference
#include "libavutil/mem.h"
#include "avformat.h"
#include "avio_internal.h"
#include "isom.h"
#include "movenc.h"
#include "movenc_ttml.h"
#include "packet_internal.h"

Go to the source code of this file.

Functions

static int mov_init_ttml_writer (MOVTrack *track, AVFormatContext **out_ctx)
 
static void mov_calculate_start_and_end_of_other_tracks (AVFormatContext *s, MOVTrack *track, int64_t *start_pts, int64_t *end_pts)
 
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 33 of file movenc_ttml.c.

Referenced by ff_mov_generate_squashed_ttml_packet().

◆ mov_calculate_start_and_end_of_other_tracks()

static void mov_calculate_start_and_end_of_other_tracks ( AVFormatContext * s,
MOVTrack * track,
int64_t * start_pts,
int64_t * end_pts )
static

Definition at line 58 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 100 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 236 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 30 of file movenc_ttml.c.

Referenced by ff_mov_generate_squashed_ttml_packet().