1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * Apple HTTP Live Streaming segmenter 3cabdff1aSopenharmony_ci * Copyright (c) 2012, Luca Barbato 4cabdff1aSopenharmony_ci * Copyright (c) 2017 Akamai Technologies, Inc. 5cabdff1aSopenharmony_ci * 6cabdff1aSopenharmony_ci * This file is part of FFmpeg. 7cabdff1aSopenharmony_ci * 8cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 9cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 10cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 11cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 12cabdff1aSopenharmony_ci * 13cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 14cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 15cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16cabdff1aSopenharmony_ci * Lesser General Public License for more details. 17cabdff1aSopenharmony_ci * 18cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 19cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 20cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21cabdff1aSopenharmony_ci */ 22cabdff1aSopenharmony_ci 23cabdff1aSopenharmony_ci#ifndef AVFORMAT_HLSPLAYLIST_H 24cabdff1aSopenharmony_ci#define AVFORMAT_HLSPLAYLIST_H 25cabdff1aSopenharmony_ci 26cabdff1aSopenharmony_ci#include <stdint.h> 27cabdff1aSopenharmony_ci 28cabdff1aSopenharmony_ci#include "avformat.h" 29cabdff1aSopenharmony_ci#include "avio.h" 30cabdff1aSopenharmony_ci 31cabdff1aSopenharmony_citypedef enum { 32cabdff1aSopenharmony_ci PLAYLIST_TYPE_NONE, 33cabdff1aSopenharmony_ci PLAYLIST_TYPE_EVENT, 34cabdff1aSopenharmony_ci PLAYLIST_TYPE_VOD, 35cabdff1aSopenharmony_ci PLAYLIST_TYPE_NB, 36cabdff1aSopenharmony_ci} PlaylistType; 37cabdff1aSopenharmony_ci 38cabdff1aSopenharmony_civoid ff_hls_write_playlist_version(AVIOContext *out, int version); 39cabdff1aSopenharmony_civoid ff_hls_write_audio_rendition(AVIOContext *out, const char *agroup, 40cabdff1aSopenharmony_ci const char *filename, const char *language, 41cabdff1aSopenharmony_ci int name_id, int is_default); 42cabdff1aSopenharmony_civoid ff_hls_write_subtitle_rendition(AVIOContext *out, const char *sgroup, 43cabdff1aSopenharmony_ci const char *filename, const char *language, 44cabdff1aSopenharmony_ci int name_id, int is_default); 45cabdff1aSopenharmony_civoid ff_hls_write_stream_info(AVStream *st, AVIOContext *out, int bandwidth, 46cabdff1aSopenharmony_ci const char *filename, const char *agroup, 47cabdff1aSopenharmony_ci const char *codecs, const char *ccgroup, 48cabdff1aSopenharmony_ci const char *sgroup); 49cabdff1aSopenharmony_civoid ff_hls_write_playlist_header(AVIOContext *out, int version, int allowcache, 50cabdff1aSopenharmony_ci int target_duration, int64_t sequence, 51cabdff1aSopenharmony_ci uint32_t playlist_type, int iframe_mode); 52cabdff1aSopenharmony_civoid ff_hls_write_init_file(AVIOContext *out, const char *filename, 53cabdff1aSopenharmony_ci int byterange_mode, int64_t size, int64_t pos); 54cabdff1aSopenharmony_ciint ff_hls_write_file_entry(AVIOContext *out, int insert_discont, 55cabdff1aSopenharmony_ci int byterange_mode, double duration, 56cabdff1aSopenharmony_ci int round_duration, int64_t size, 57cabdff1aSopenharmony_ci int64_t pos /* Used only if HLS_SINGLE_FILE flag is set */, 58cabdff1aSopenharmony_ci const char *baseurl /* Ignored if NULL */, 59cabdff1aSopenharmony_ci const char *filename, double *prog_date_time, 60cabdff1aSopenharmony_ci int64_t video_keyframe_size, int64_t video_keyframe_pos, 61cabdff1aSopenharmony_ci int iframe_mode); 62cabdff1aSopenharmony_civoid ff_hls_write_end_list (AVIOContext *out); 63cabdff1aSopenharmony_ci 64cabdff1aSopenharmony_ci#endif /* AVFORMAT_HLSPLAYLIST_H_ */ 65