FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hlsplaylist.h
Go to the documentation of this file.
1 /*
2  * Apple HTTP Live Streaming segmenter
3  * Copyright (c) 2012, Luca Barbato
4  * Copyright (c) 2017 Akamai Technologies, Inc.
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVFORMAT_HLSPLAYLIST_H
24 #define AVFORMAT_HLSPLAYLIST_H
25 
26 #include <stdint.h>
27 
28 #include "libavutil/common.h"
29 #include "avformat.h"
30 #include "avio.h"
31 
32 typedef enum {
37 } PlaylistType;
38 
40 void ff_hls_write_audio_rendition(AVIOContext *out, char *agroup,
41  char *filename, int name_id, int is_default);
43  int bandwidth, char *filename, char *agroup,
44  char *codecs, char *ccgroup);
45 void ff_hls_write_playlist_header(AVIOContext *out, int version, int allowcache,
46  int target_duration, int64_t sequence,
47  uint32_t playlist_type);
48 void ff_hls_write_init_file(AVIOContext *out, char *filename,
49  int byterange_mode, int64_t size, int64_t pos);
50 int ff_hls_write_file_entry(AVIOContext *out, int insert_discont,
51  int byterange_mode,
52  double duration, int round_duration,
53  int64_t size, int64_t pos, //Used only if HLS_SINGLE_FILE flag is set
54  char *baseurl, //Ignored if NULL
55  char *filename, double *prog_date_time);
57 
58 #endif /* AVFORMAT_HLSPLAYLIST_H_ */
Bytestream IO Context.
Definition: avio.h:161
Buffered I/O operations.
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, char *baseurl, char *filename, double *prog_date_time)
Definition: hlsplaylist.c:103
PlaylistType
Definition: hlsplaylist.h:32
void ff_hls_write_playlist_header(AVIOContext *out, int version, int allowcache, int target_duration, int64_t sequence, uint32_t playlist_type)
Definition: hlsplaylist.c:74
void ff_hls_write_audio_rendition(AVIOContext *out, char *agroup, char *filename, int name_id, int is_default)
Definition: hlsplaylist.c:38
int version
Definition: avisynth_c.h:766
static struct codec_string codecs[]
void ff_hls_write_end_list(AVIOContext *out)
Definition: hlsplaylist.c:156
int64_t duration
Definition: movenc.c:63
ptrdiff_t size
Definition: opengl_enc.c:101
void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, int bandwidth, char *filename, char *agroup, char *codecs, char *ccgroup)
Definition: hlsplaylist.c:48
void ff_hls_write_playlist_version(AVIOContext *out, int version)
Definition: hlsplaylist.c:31
void ff_hls_write_init_file(AVIOContext *out, char *filename, int byterange_mode, int64_t size, int64_t pos)
Definition: hlsplaylist.c:94
Stream structure.
Definition: avformat.h:873
Main libavformat public API header.
common internal and external API header
FILE * out
Definition: movenc.c:54