-
Notifications
You must be signed in to change notification settings - Fork 1
/
dlnameta.h
49 lines (39 loc) · 1.25 KB
/
dlnameta.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* MiniDLNA media server
* Copyright (C) 2008-2012 Justin Maggard
* Copyright (C) 2012 Lukas Jirkovsky
*
* This file is part of MiniDLNA.
*
* MiniDLNA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* MiniDLNA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __DLNA_META_H__
#define __DLNA_META_H__
struct AVFormatContext;
struct dlna_meta_s
{
char* mime;
char* dlna_pn;
};
void
free_dlna_metadata(struct dlna_meta_s *m);
struct dlna_meta_s
get_dlna_metadata_image(int fd);
struct dlna_meta_s
get_dlna_metadata_image_res(char* format, int width, int height);
struct dlna_meta_s
get_dlna_metadata_audio(int fd);
struct dlna_meta_s
get_dlna_metadata_video(int fd);
struct dlna_meta_s
get_dlna_metadata_video_ctx(struct AVFormatContext *ctx, int audio_stream, int video_stream);
#endif /* __DLNA_META_H__ */