FFmpeg
Functions
hlsplaylist.c File Reference
#include "config.h"
#include <stdint.h>
#include <time.h>
#include "libavutil/time_internal.h"
#include "avformat.h"
#include "hlsplaylist.h"

Go to the source code of this file.

Functions

void ff_hls_write_playlist_version (AVIOContext *out, int version)
 
void ff_hls_write_audio_rendition (AVIOContext *out, const char *agroup, const char *filename, const char *language, int name_id, int is_default)
 
void ff_hls_write_subtitle_rendition (AVIOContext *out, const char *sgroup, const char *filename, const char *language, int name_id, int is_default)
 
void ff_hls_write_stream_info (AVStream *st, AVIOContext *out, int bandwidth, const char *filename, const char *agroup, const char *codecs, const char *ccgroup, const char *sgroup)
 
void ff_hls_write_playlist_header (AVIOContext *out, int version, int allowcache, int target_duration, int64_t sequence, uint32_t playlist_type, int iframe_mode)
 
void ff_hls_write_init_file (AVIOContext *out, const char *filename, int byterange_mode, int64_t size, int64_t pos)
 
int ff_hls_write_file_entry (AVIOContext *out, int insert_discont, int byterange_mode, double duration, int round_duration, int64_t size, int64_t pos, const char *baseurl, const char *filename, double *prog_date_time, int64_t video_keyframe_size, int64_t video_keyframe_pos, int iframe_mode)
 
void ff_hls_write_end_list (AVIOContext *out)
 

Function Documentation

◆ ff_hls_write_playlist_version()

void ff_hls_write_playlist_version ( AVIOContext out,
int  version 
)

◆ ff_hls_write_audio_rendition()

void ff_hls_write_audio_rendition ( AVIOContext out,
const char *  agroup,
const char *  filename,
const char *  language,
int  name_id,
int  is_default 
)

Definition at line 40 of file hlsplaylist.c.

Referenced by create_master_playlist(), and write_manifest().

◆ ff_hls_write_subtitle_rendition()

void ff_hls_write_subtitle_rendition ( AVIOContext out,
const char *  sgroup,
const char *  filename,
const char *  language,
int  name_id,
int  is_default 
)

Definition at line 55 of file hlsplaylist.c.

Referenced by create_master_playlist().

◆ ff_hls_write_stream_info()

void ff_hls_write_stream_info ( AVStream st,
AVIOContext out,
int  bandwidth,
const char *  filename,
const char *  agroup,
const char *  codecs,
const char *  ccgroup,
const char *  sgroup 
)

Definition at line 70 of file hlsplaylist.c.

Referenced by create_master_playlist(), and write_manifest().

◆ ff_hls_write_playlist_header()

void ff_hls_write_playlist_header ( AVIOContext out,
int  version,
int  allowcache,
int  target_duration,
int64_t  sequence,
uint32_t  playlist_type,
int  iframe_mode 
)

Definition at line 99 of file hlsplaylist.c.

Referenced by hls_window(), and write_hls_media_playlist().

◆ ff_hls_write_init_file()

void ff_hls_write_init_file ( AVIOContext out,
const char *  filename,
int  byterange_mode,
int64_t  size,
int64_t  pos 
)

Definition at line 123 of file hlsplaylist.c.

Referenced by hls_window(), and write_hls_media_playlist().

◆ ff_hls_write_file_entry()

int ff_hls_write_file_entry ( AVIOContext out,
int  insert_discont,
int  byterange_mode,
double  duration,
int  round_duration,
int64_t  size,
int64_t  pos,
const char *  baseurl,
const char *  filename,
double prog_date_time,
int64_t  video_keyframe_size,
int64_t  video_keyframe_pos,
int  iframe_mode 
)

Definition at line 133 of file hlsplaylist.c.

Referenced by hls_window(), and write_hls_media_playlist().

◆ ff_hls_write_end_list()

void ff_hls_write_end_list ( AVIOContext out)

Definition at line 190 of file hlsplaylist.c.

Referenced by hls_window(), and write_hls_media_playlist().