xine-lib: xine-lib-1.2.13/include/xine/mfrag.h Source File

xine-lib 1.2.13-20230125hg15249

mfrag.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 the xine project
3 * Copyright (C) 2021 Torsten Jager <t.jager@gmx.de>
4 *
5 * This file is part of xine, a free video player.
6 *
7 * xine is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * xine is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
20 *
21 * Xine media fragment list utility.
22 */
23
24#ifndef HAVE_XINE_MFRAG_H
25#define HAVE_XINE_MFRAG_H
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <stdint.h>
32#include <xine/attributes.h>
33#include <xine/compat.h>
34
43 typedef int32_t xine_mfrag_index_t;
44
45 typedef struct xine_mfrag_list_s xine_mfrag_list_t;
46
48void xine_mfrag_list_open (xine_mfrag_list_t **plist) XINE_PROTECTED;
49
51int32_t xine_mfrag_get_frag_count (xine_mfrag_list_t *list) XINE_PROTECTED;
52
54 xine_mfrag_index_t xine_mfrag_find_time (xine_mfrag_list_t *list, int64_t timepos) XINE_PROTECTED;
55 xine_mfrag_index_t xine_mfrag_find_pos (xine_mfrag_list_t *list, off_t offs) XINE_PROTECTED;
56
65int xine_mfrag_set_index_frag (xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t dur, off_t len) XINE_PROTECTED;
66int xine_mfrag_get_index_frag (xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t *dur, off_t *len) XINE_PROTECTED;
67
75int xine_mfrag_get_index_start (xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t *timepos, off_t *offs) XINE_PROTECTED;
76
77void xine_mfrag_list_close (xine_mfrag_list_t **plist) XINE_PROTECTED;
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif
compat.h
attributes.h
XINE_PROTECTED
#define XINE_PROTECTED
Definition attributes.h:75
xine_mfrag_get_frag_count
int32_t xine_mfrag_get_frag_count(xine_mfrag_list_t *list)
Definition mfrag.c:212
xine_mfrag_get_index_start
int xine_mfrag_get_index_start(xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t *timepos, off_t *offs)
Definition mfrag.c:281
xine_mfrag_list_close
void xine_mfrag_list_close(xine_mfrag_list_t **plist)
Definition mfrag.c:301
xine_mfrag_get_index_frag
int xine_mfrag_get_index_frag(xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t *dur, off_t *len)
Definition mfrag.c:262
xine_mfrag_index_t
int32_t xine_mfrag_index_t
Definition mfrag.h:43
xine_mfrag_list_open
void xine_mfrag_list_open(xine_mfrag_list_t **plist)
Definition mfrag.c:89
xine_mfrag_find_pos
xine_mfrag_index_t xine_mfrag_find_pos(xine_mfrag_list_t *list, off_t offs)
Definition mfrag.c:240
xine_mfrag_find_time
xine_mfrag_index_t xine_mfrag_find_time(xine_mfrag_list_t *list, int64_t timepos)
Definition mfrag.c:218
xine_mfrag_set_index_frag
int xine_mfrag_set_index_frag(xine_mfrag_list_t *list, xine_mfrag_index_t index, int64_t dur, off_t len)
Definition mfrag.c:125
xine_mfrag_list_s
Definition mfrag.c:48