#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "libavutil/time.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "url.h"
Go to the source code of this file.
Data Structures | |
struct | segment |
struct | variant |
struct | HLSContext |
struct | variant_info |
struct | key_info |
Defines | |
#define | INITIAL_BUFFER_SIZE 32768 |
Enumerations | |
enum | KeyType { KEY_NONE, KEY_AES_128 } |
Functions | |
static int | read_chomp_line (AVIOContext *s, char *buf, int maxlen) |
static void | free_segment_list (struct variant *var) |
static void | free_variant_list (HLSContext *c) |
static void | reset_packet (AVPacket *pkt) |
static struct variant * | new_variant (HLSContext *c, int bandwidth, const char *url, const char *base) |
static void | handle_variant_args (struct variant_info *info, const char *key, int key_len, char **dest, int *dest_len) |
static void | handle_key_args (struct key_info *info, const char *key, int key_len, char **dest, int *dest_len) |
static int | parse_playlist (HLSContext *c, const char *url, struct variant *var, AVIOContext *in) |
static int | open_input (struct variant *var) |
static int | read_data (void *opaque, uint8_t *buf, int buf_size) |
static int | hls_read_header (AVFormatContext *s) |
static int | recheck_discard_flags (AVFormatContext *s, int first) |
static int | hls_read_packet (AVFormatContext *s, AVPacket *pkt) |
static int | hls_close (AVFormatContext *s) |
static int | hls_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags) |
static int | hls_probe (AVProbeData *p) |
Variables | |
AVInputFormat | ff_hls_demuxer |
Definition in file hls.c.
#define INITIAL_BUFFER_SIZE 32768 |
static void free_segment_list | ( | struct variant * | var | ) | [static] |
Definition at line 116 of file hls.c.
Referenced by free_variant_list(), hls_close(), and parse_playlist().
static void free_variant_list | ( | HLSContext * | c | ) | [static] |
static void handle_variant_args | ( | struct variant_info * | info, | |
const char * | key, | |||
int | key_len, | |||
char ** | dest, | |||
int * | dest_len | |||
) | [static] |
static int hls_close | ( | AVFormatContext * | s | ) | [static] |
static int hls_probe | ( | AVProbeData * | p | ) | [static] |
static int hls_read_header | ( | AVFormatContext * | s | ) | [static] |
static int hls_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int hls_read_seek | ( | AVFormatContext * | s, | |
int | stream_index, | |||
int64_t | timestamp, | |||
int | flags | |||
) | [static] |
static struct variant* new_variant | ( | HLSContext * | c, | |
int | bandwidth, | |||
const char * | url, | |||
const char * | base | |||
) | [static, read] |
static int parse_playlist | ( | HLSContext * | c, | |
const char * | url, | |||
struct variant * | var, | |||
AVIOContext * | in | |||
) | [static] |
Definition at line 202 of file hls.c.
Referenced by hls_open(), hls_read(), hls_read_header(), and read_data().
static int read_chomp_line | ( | AVIOContext * | s, | |
char * | buf, | |||
int | maxlen | |||
) | [static] |
static int recheck_discard_flags | ( | AVFormatContext * | s, | |
int | first | |||
) | [static] |
static void reset_packet | ( | AVPacket * | pkt | ) | [static] |
Definition at line 149 of file hls.c.
Referenced by hls_read_packet(), hls_read_seek(), and new_variant().
Initial value:
{ .name = "hls,applehttp", .long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"), .priv_data_size = sizeof(HLSContext), .read_probe = hls_probe, .read_header = hls_read_header, .read_packet = hls_read_packet, .read_close = hls_close, .read_seek = hls_read_seek, }